3 ms·
There are two methods that helped me learn to code. [1] Copy examples, and tweak them to understand how they work. [2] Program a game or a puzzle. (Here I'm t
by GnarfGnarf 15y ago
There are two methods that helped me learn to code.
[1] Copy examples, and tweak them to understand how they work.
[2] Program a game or a puzzle. (Here I'm talking about a simple game like Tic-Tac-Toe, not a full-fledged PS3 of XBox game). Programming something that is purely for fun provides a lot of gratification and reward. The joy of seeing the result is what propels you in spite of the frustration of error and failure. Plus, since you're in control of the project, you can focus on the fun stuff and postpone or skip boring things. For example, have a go at writing a Sudoku solver, or Cryptoquote, or Mastermind.