News for hackers. Stuff that matters.
Re:DHH: How do I learn to program? by jrockway on Wednesday September 22, 2010 @02:21PM (#1717043)
I disagree. I would say I've learned about 40% of what I know about programming by typing stuff in and seeing if I like it. The other 60% I've learned by reading other people's code and stealing the techniques I like.

For example, I learned C by myself when I was in middle school. The memory management technique I developed independently was "the library allocates, the application frees". No errors in valgrind, and my app works.

Then I started reading other people's C code, and switched my technique to "the application allocates, the application frees". Now C is a lot easier to write!

Assuming that you're the smartest person on Earth only gets you to a local maximum. To get to the global maximum, you have to interact with other people.

The way you interact with programmers is with source code.

Re:DHH: How do I learn to program? by run4yourlives on Wednesday September 22, 2010 @02:52PM (#1717133)
I think you've possibly hit on a fundamental difference between learning styles that people have.

I've learned probably 95% of all my programming from doing.

I do take issue though with the idea that the learn by doing crowd is somehow less accomplished. It smacks of baseless elitism.

Re:DHH: How do I learn to program? by dlo on Wednesday September 22, 2010 @08:36PM (#1718098)
Isn't thinking that others have little to offer to you a form of elitism as well? It seems neither option is particularly humble.
Re:DHH: How do I learn to program? by spiffytech on Friday September 24, 2010 @12:27AM (#1722659)
It's not that others have little to offer, it's a different style of learning. Just like some people are visual or auditory learners, some are kinesthetic learners.

Seeing other people's code does little for me because I miss all of the reasoning that went into it's creation. However, when I've fought through the same problem myself, I understand very thoroughly the traps, pitfalls, and solutions the task entails. When I reach this level, I can read other people's code and clearly see why they did what they did, and how it's better or worse than my method. I have to take a crack at the problem myself first, though, in order to learn well.

Reading other people's code is, for me, a way to refine and reinforce my techniques, not to learn entirely new things. I learn much less effectively when I try that.

Re:DHH: How do I learn to program? by hello_moto on Wednesday September 22, 2010 @10:04PM (#1718282)
I read a lot of books, but tend to forget most of them as well.