No matter what, the way to learn to program is to write code and rewrite it and see it used and rewrite again. Reading other people’s code is invaluable as well.

– Brian Kernighan