News for hackers. Stuff that matters.
Re:Want to learn to code? Don't copy and paste, type out oth... by hammock on Friday December 14, 2012 @02:18PM (#4922695)
Can anyone else relate to this? Back in the day (early 90s), I would go down to the public library, pick out a thick book full of computer games written qBASIC, and of course I had to type them in all by hand. We didn't have internet yet, the idea of copy-and-paste from somewhere did not even exist in my mind. So I would copy these 10,000-line BASIC programs in by hand into our 386 computer, one line at a time.

For some reason, probably because I was a tiny kid learning a new thing, this tedious task was so much fun. And that's how I learned my first programming language. Never opened a single tut or instructional book.

Re:Want to learn to code? Don't copy and paste, type out oth... by powdahound on Friday December 14, 2012 @02:26PM (#4922752)
Similar story here, but in the late 90s. I used to print out TI-82 calculator apps/games and type them in by hand because my parents wouldn't buy the $60 connector cable. It was surprisingly fun. All my initial programming knowledge came from debugging the typos I had made.
Re:Want to learn to code? Don't copy and paste, type out oth... by Lockyy on Friday December 14, 2012 @05:04PM (#4923609)
This is pretty much how the book I'm using on Pygame is working. It's a load of games written in Pygame that the author encourages you to copy out and try to learn how it works yourself. Then afterwards he explains in detail how it all works. The writing it really helps with learning how you can use the simple stuff together to make more complex stuff.

Book: http://inventwithpython.com/pygame/index.html

Re:Want to learn to code? Don't copy and paste, type out oth... by cjg on Saturday December 15, 2012 @04:12AM (#4924999)
Sure, I can relate to that. In the early eighties computer magazines had huge listings of code which I dutifully typed in.

They never worked worked first time as I'd invariably mistyped various characters, but the subsequent bug finding taught me about how the code worked.

The bonus was you got a playable game at the end of it.

Re:Want to learn to code? Don't copy and paste, type out oth... by hammock on Friday December 14, 2012 @03:18PM (#4923063)
You know what, this guy makes a good point to consider as well. http://news.ycombinator.com/item?id=4922853