Re:Ask HN: What is your best advice for a developer to write...
by B1FF_PSUVM on Wednesday June 29, 2016 @04:44PM
(#12004674)
The other bit I know, besides this one, is to write comments stating what you're trying to achieve, and why. The how is redundant, but sample data right there may help.
(Someone famously pleaded for documenting the data structures, and leaving aside the processing mechanics.)
Brian Kernighan put it well: "Everyone knows that debugging is twice as hard as writing a program in the first place. So if you're as clever as you can be when you write it, how will you ever debug it?"