Q: What's the cleverest kind of code?
A: No code at all!I was looking for this quote:
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." Brian Kernighan
...and I found it on Chris Sell's blog. But in the comments I found this even more profound point... "Debugging is like farting - it's not so bad when it's your own code." Paul Downey
And that's truer than anything. Code is always noxious to human senses. It's not built for human consumption. You get used to your own. But even still -- it's noxious stuff. The less of it the better.
'Jeff' on Sun, 07 Oct 2007 21:50:10 GMT, sez: And some debugging is going to be a lot easier now that microsoft are releasing the source code for the .net framework!
'Ben Hoskings' on Sun, 07 Oct 2007 23:44:29 GMT, sez: Interesting point.
I think some languages are less noxious than others, and in fact since I've started programming in Ruby my crap smells like cinnamon buns.
'Michael' on Mon, 08 Oct 2007 12:31:59 GMT, sez: I know you'd like to thank your sh*t don't stank
But lean a little bit closer
See that roses really smell like poo-oo-ooo
Yeah, roses really smell like poo-oo-ooo
- Outkast
'mikeb' on Wed, 17 Oct 2007 22:35:56 GMT, sez: Another advantage to 'no code at all' is (to paraphrase Raymond Chen): doing nothing is fast!
'don2' on Wed, 31 Oct 2007 23:29:20 GMT, sez: this is so true! when people talk about Code Smells I always think --
Hey, all Code Smells.
The idea is to get rid of the code altogether.
|