Big mistake.
Functional languages (not to be confused with procedural languages) can teach you a lot and can change the way you program even in OO languages.
Forum Index > General Forum |
Thread Rules 1. This is not a "do my homework for me" thread. If you have specific questions, ask, but don't post an assignment or homework problem and expect an exact solution. 2. No recruiting for your cockamamie projects (you won't replace facebook with 3 dudes you found on the internet and $20) 3. If you can't articulate why a language is bad, don't start slinging shit about it. Just remember that nothing is worse than making CSS IE6 compatible. 4. Use [code] tags to format code blocks. | ||
Deleted User 101379
4849 Posts
March 22 2013 21:55 GMT
#5521
On March 23 2013 06:13 Holy_AT wrote: Show nested quote + On March 23 2013 06:11 heishe wrote: On March 23 2013 06:09 Recognizable wrote: Man. I just had a very weird experienced. I'm new to programming and I was doing this exercise on Euler and as I got stuck I sat back and looked at my code. Then it hit me. My variable names actually have meaning as in, they have meaning in the English language. When I program they lose all the meaning they had beforehand, the variable names will have become a number or a string. I can have a variable named: "Hello" and during my programming my brain doesn't register its meaning as "Hello" because it has become something entirely different. Made me question meaning, my life and everything for a moment. Then I got mad because my code wouldn't work. Just wait until you learn a functional language. I'd skip them and start directly with OO Big mistake. Functional languages (not to be confused with procedural languages) can teach you a lot and can change the way you program even in OO languages. | ||
Ilintar
Poland794 Posts
March 22 2013 22:10 GMT
#5522
On March 23 2013 06:55 Morfildur wrote: Big mistake. Functional languages (not to be confused with procedural languages) can teach you a lot and can change the way you program even in OO languages. Yes, but functional languages rely on pretty difficult logical principles that not everyone needs to understand in order to do decent OO programming. I mean, I wrote my MSc's coding part in Ocaml, but it's not like I'd force every programmer to learn Haskell before Java. Probably only a very narrow subset of programmers actually need to learn functional programming. | ||
fabiano
Brazil4644 Posts
March 22 2013 22:10 GMT
#5523
He will learn right from the bat to think how to solve problems with OO, and that's a good thing. Learning new paradigms is important though, it will give you different ways to think how to solve a specific problem. But yea, learning functional languages (or at least get in touch with them) is very important. (Scheme syntax (is a (pain in the ass)) though) | ||
Ilintar
Poland794 Posts
March 22 2013 22:22 GMT
#5524
On March 23 2013 07:10 fabiano wrote: That is not a mistake, it's okay. He will learn right from the bat to think how to solve problems with OO, and that's a good thing. Learning new paradigms is important though, it will give you different ways to think how to solve a specific problem. But yea, learning functional languages (or at least get in touch with them) is very important. (Scheme syntax (is a (pain in the ass)) though) This reminds me of a running joke back in my programming fundamentals course (we had an experimental course teaching us fundamentals in Scheme, the other group had C), goes something like this: + Show Spoiler + A hacker manages to break into the Pentagon and modify the page to display a big lambda. The FBI are unable to catch him, but stumble onto one of his mailboxes, so they decide to play nice and ask him to disclose the exploit. The hacker says that he cannot do that, but he can send them the last 500 characters of the exploit code, written in Scheme. The FBI agrees, then he sends them the code... ... 500 closing parentheses. (obviously one of those jokes that's only funny if you've been doing nothing but programming in Scheme for the past year) | ||
RoyGBiv_13
United States1275 Posts
March 22 2013 22:30 GMT
#5525
This comment generated by an AbstractWindowFactorySingletonFactorySingletonCommentFactory. ![]() | ||
Athos
United States2484 Posts
March 23 2013 00:44 GMT
#5526
On March 23 2013 07:22 Ilintar wrote: Show nested quote + On March 23 2013 07:10 fabiano wrote: That is not a mistake, it's okay. He will learn right from the bat to think how to solve problems with OO, and that's a good thing. Learning new paradigms is important though, it will give you different ways to think how to solve a specific problem. But yea, learning functional languages (or at least get in touch with them) is very important. (Scheme syntax (is a (pain in the ass)) though) This reminds me of a running joke back in my programming fundamentals course (we had an experimental course teaching us fundamentals in Scheme, the other group had C), goes something like this: + Show Spoiler + A hacker manages to break into the Pentagon and modify the page to display a big lambda. The FBI are unable to catch him, but stumble onto one of his mailboxes, so they decide to play nice and ask him to disclose the exploit. The hacker says that he cannot do that, but he can send them the last 500 characters of the exploit code, written in Scheme. The FBI agrees, then he sends them the code... ... 500 closing parentheses. (obviously one of those jokes that's only funny if you've been doing nothing but programming in Scheme for the past year) This is a great joke. I'm learning scheme from SICP now and it really does change the way you think about programming. Definitely shouldn't be an intro level class though. | ||
obesechicken13
United States10467 Posts
March 23 2013 19:08 GMT
#5527
On March 23 2013 06:09 Recognizable wrote: Man. I just had a very weird experienced. I'm new to programming and I was doing this exercise on Euler and as I got stuck I sat back and looked at my code. Then it hit me. My variable names actually have meaning as in, they have meaning in the English language. When I program they lose all the meaning they had beforehand, the variable names will have become a number or a string. I can have a variable named: "Hello" and during my programming my brain doesn't register its meaning as "Hello" because it has become something entirely different. Made me question meaning, my life and everything for a moment. Then I got mad because my code wouldn't work. Project Euler really experienced this explosion in popularity recently. | ||
Frigo
Hungary1023 Posts
March 24 2013 00:24 GMT
#5528
On March 23 2013 06:09 Recognizable wrote: Man. I just had a very weird experienced. I'm new to programming and I was doing this exercise on Euler and as I got stuck I sat back and looked at my code. Then it hit me. My variable names actually have meaning as in, they have meaning in the English language. When I program they lose all the meaning they had beforehand, the variable names will have become a number or a string. I can have a variable named: "Hello" and during my programming my brain doesn't register its meaning as "Hello" because it has become something entirely different. Made me question meaning, my life and everything for a moment. Then I got mad because my code wouldn't work. Be sure to name your variables and functions in a way that reflects their meaning ![]() Also get familiar with the concept of unit testing and Test Driven Development, Clean Code is an excellent starting point, it changes everyone's perspective on programming. | ||
Moxi
708 Posts
March 24 2013 23:41 GMT
#5529
| ||
phar
United States1080 Posts
March 25 2013 00:41 GMT
#5530
| ||
obesechicken13
United States10467 Posts
March 25 2013 00:44 GMT
#5531
On March 25 2013 08:41 Moxi wrote: Hey Teamliquid users. I must ask, I want to learn before I go to sleep than just listen to music. Is there a way to listen to some kind of programming person who explains how different things work. Like how to create a database of members and how to make it secure? Would be very nice! If it were me I'd just google both topics. | ||
Fyodor
Canada971 Posts
March 25 2013 01:10 GMT
#5532
On March 25 2013 08:41 Moxi wrote: Hey Teamliquid users. I must ask, I want to learn before I go to sleep than just listen to music. Is there a way to listen to some kind of programming person who explains how different things work. Like how to create a database of members and how to make it secure? Would be very nice! Programming stuff is hard to follow without visual aids. otherwise there's database lectures on coursera. best bet I think. | ||
kollin
United Kingdom8380 Posts
March 28 2013 13:17 GMT
#5533
| ||
DertoQq
France906 Posts
March 28 2013 13:21 GMT
#5534
On March 28 2013 22:17 kollin wrote: I'm pretty new to programming, and I'm currently in the process of learning C through the use of various online guides. I was wondering, is there any resource out there that has a good collection of challenges so I can make sure I understand each concept I learn before I move on? My advice would be to start doing a "big" but simple project, and everytime you learn something new you can find a way to use it in your project. | ||
Abominous
Croatia1625 Posts
March 28 2013 13:45 GMT
#5535
Taking many courses on coursera and hoping to have 90%+ on most of them, which might help my CV and up my first year grades which were terrible, but now that second year has come, with more programming related subjects, I upped the ante. (Judge yourself if the phrase was correctly used ![]() Anyways, thanks in advance. EDIT: Any info on abroad Masters in the field of Computer science is relevant. I'm totally clueless as to the whole applying, evaluation, housing and was hoping to learn it by asking around and taking things one step at a time... | ||
Shield
Bulgaria4824 Posts
March 28 2013 17:27 GMT
#5536
However, I think this is more readable:
Sure, they may want to emphasise that catch is "part of" try{}, but it looks better if it's on a new line imho. Comments? Source: http://www.oracle.com/technetwork/java/codeconventions-150003.pdf (7.9) | ||
![]()
tofucake
Hyrule18982 Posts
March 28 2013 17:37 GMT
#5537
The way you prefer is the root of all evil | ||
ZenithM
France15952 Posts
March 28 2013 17:43 GMT
#5538
On March 29 2013 02:37 tofucake wrote: The first way is proper The way you prefer is the root of all evil Indeed. Plus, it looks ugly :D | ||
zeru
8156 Posts
March 28 2013 17:45 GMT
#5539
| ||
Shield
Bulgaria4824 Posts
March 28 2013 17:53 GMT
#5540
On March 29 2013 02:37 tofucake wrote: The first way is proper The way you prefer is the root of all evil Erm, what's so evil? You're just trying to copy a popular phrase. | ||
| ||
![]() StarCraft 2 StarCraft: Brood War Calm Dota 2![]() Rain ![]() Horang2 ![]() Sea ![]() Hyuk ![]() Pusan ![]() actioN ![]() Larva ![]() BeSt ![]() Harstem ![]() [ Show more ] League of Legends Counter-Strike Super Smash Bros Heroes of the Storm Other Games singsing1922 ceh91119 Happy779 B2W.Neo433 XBOCT375 Pyrionflax338 SortOf247 ArmadaUGS80 ZerO(Twitch)10 Organizations Dota 2 Other Games StarCraft: Brood War StarCraft 2 StarCraft: Brood War
StarCraft 2 • StrangeGG StarCraft: Brood War![]() • AfreecaTV YouTube • intothetv ![]() • Kozan • IndyKCrew ![]() • LaughNgamezSOOP • Migwel ![]() • sooper7s League of Legends |
Wardi Open
Monday Night Weeklies
PiGosaur Monday
Code For Giants Cup
HupCup
Tenacious Turtle Tussle
The PondCast
SOOP
Dark vs MaxPax
PiG Sty Festival
Serral vs MaxPax
ByuN vs Clem
PiG Sty Festival
herO vs Zoun
Classic vs SHIN
[ Show More ] [BSL 2025] Weekly
PiG Sty Festival
Sparkling Tuna Cup
|
|