Live data from Hacker News

It was easier to learn to program in several languages than in one

joaquinllaneza.com

11–20 of 29 posts

Re: It was easier to learn to program in several languages than in one

#11
post #7

...still better then my "getting raped on your first date" type of intro to programming: starting with C on windows before I knew what a "function" was, and being exposed to the win32 api just after learning to write a for loop and before I understood what a pointer really was :) ...and a seep of Perl after all of this to sooth me up ;) ...things seem much easier if your first experience is "hardcore" ...I guess expo…

hahaha probably

Re: It was easier to learn to program in several languages than in one

#12
post #7

...still better then my "getting raped on your first date" type of intro to programming: starting with C on windows before I knew what a "function" was, and being exposed to the win32 api just after learning to write a for loop and before I understood what a pointer really was :) ...and a seep of Perl after all of this to sooth me up ;) ...things seem much easier if your first experience is "hardcore" ...I guess expo…

[deleted]

Re: It was easier to learn to program in several languages than in one

#13
This is definitely one of the reason to go to university, where they teach you these concepts very well. There's no reason you can't learn concepts sequentially though; I wouldn't advocate trying to learn a million languages at once, just that you are taught the theory of OOP, the theory of concurrency solutions like locks, the theory behind communication protocols, etc.

Re: It was easier to learn to program in several languages than in one

#14
I'd have to wonder if this is essentially that you learn to think then more about function than syntax for getting things done. Whereas if you just learn one language, you've learned perhaps how to do something- not what it really means to do that, or even have that functionality. In learning to think about a problem multiple ways- you really strengthen your knowledge of why over just how.

Re: It was easier to learn to program in several languages than in one

#16
post #7

...still better then my "getting raped on your first date" type of intro to programming: starting with C on windows before I knew what a "function" was, and being exposed to the win32 api just after learning to write a for loop and before I understood what a pointer really was :) ...and a seep of Perl after all of this to sooth me up ;) ...things seem much easier if your first experience is "hardcore" ...I guess expo…

As SquareWheel also said, the rape analogy is pretty tasteless. If you look a little harder, I'm sure you can find a parallel that isn't so cheap and crass.

Re: It was easier to learn to program in several languages than in one

#17
This is the way I teach programming. Do the same simple thing in ruby, python, c, awk ... now another slightly less simple thing.

I use standardized terminology for each language feature and explain how languages are optimized for certain kinds of tasks but often have essentially the same features.

It makes the learner start with the question of "how does the syntax work for language feature x?" rather than asking "what do I type to get the computer to do x".

I think the cross language approach is generally what LPTHW tries to do but it uses python and English.

Re: It was easier to learn to program in several languages than in one

#18
post #14

I'd have to wonder if this is essentially that you learn to think then more about function than syntax for getting things done. Whereas if you just learn one language, you've learned perhaps how to do something- not what it really means to do that, or even have that functionality. In learning to think about a problem multiple ways- you really strengthen your knowledge of why over just how.

I think this hits the nail on the head. You learn more about the concepts of programming itself, rather than just about a single set of syntax and procedure.

At my school, they downplayed specific languages entirely and I think it was very beneficial. We were expected to learn the basics of a language for a class in the first week, whether it be Java or Python or whatever else. Obviously details would always come up later on, but the attitude was always "don't worry about the language, you can learn it as you go, worry about the concepts" and in that mindset, I definitely think the learning was more effective.

Re: It was easier to learn to program in several languages than in one

#19
I was trying to learn cl and haskell t the same time, and it seriously helped me. I think I learned it way faster.

I think it's kind of like science class: seeing two different models, and their flaws, helps you understand the phenomena being modeled in a much stronger manner.

Re: It was easier to learn to program in several languages than in one

#20
One of my profs in undergrad had been programming since the 1950s (no joke). He'd start writing something on the board in, say, C, and by the time he was finished with the code it would have FORTRAN and Lisp in it as well.

Awesome teacher, though.

Post reply on HN