News for hackers. Stuff that matters.
Re:What should every programmer know about programming? by arghnoname on Wednesday September 15, 2010 @11:02PM (#1696687)
I've had this experience. It took me a while before I realized that a decent chunk of hairy tricky code could be avoided if I just started out with an appropriate data structure in the first place. Starting with a good data structure in the first place is almost like starting with the solution for a surprisingly large amount of problems.

Now, whenever I find myself getting confused I try to think really hard about where I went wrong. Good code is like good prose. If you have to read it six times to understand what is happening, the writing sucks.

Re:What should every programmer know about programming? by eru on Thursday September 16, 2010 @05:55AM (#1697353)
Have a look at the data structures in "How to roll your own Window manager" (http://donsbot.wordpress.com/2007/05/17/roll-your-own-window...) for a nice example.