3 ms·
I liked the way Brent Simmons put it: since debugging is 10 times harder than writing code, write the code as you were 10 times dumber, otherwise you will not b
by yoz-y 5y ago
I liked the way Brent Simmons put it: since debugging is 10 times harder than writing code, write the code as you were 10 times dumber, otherwise you will not be able to fix it.
- chj 5y agoI thought it was from bwk.
- username90 5y agoWriting code is 10 times harder than debugging code if you write the code to be easy to debug. Partly because writing such code is harder and partly thanks to reducing the debug burden.
- graderjs 5y agoI thought this was Kernighan https://news.ycombinator.com/item?id=22348386 https://news.ycombinator.com/item?id=22348386
- oblio 5y agohttps://en.wikiquote.org/wiki/Brian_Kernighan https://en.wikiquote.org/wiki/Brian_Kernighan > 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? From: https://en.wikipedia.org/wiki/The_Elements_of_Programming_Style https://en.wikipedia.org/wiki/The_Elements_of_Programming_St..., 2nd edition, 1978
- yoz-y 5y agoI see. Brent’s blog was where I first read it but this is definitely older. Thanks.