News for hackers. Stuff that matters.
Re:Want to learn to code? Don't copy and paste, type out oth... by tedmiston on Friday December 14, 2012 @02:44PM (#4922870)
I do this.

My very first programming class was Java and I had no experience prior.

I felt so alive writing every character and every line. I was too excited to read the paragraphs of description in the textbook because the code told most of the story anyway. I could look at it, read it and mostly understand it, then retype each character at a time and watch it work. Once it worked, I varied small things. Anything I could improve. Sometimes the goal was to make it as condensed as possible, sometimes it was to try to make it simpler to read, or to adapt a method for ints to also work on floats, or to add parameters making the code even more flexible. Kid in a candy store mentality fits perfect.

I did this for almost every example in the book, even ones we didn't cover in class, a few hundred in total.

There are no comments on this comment yet.