On Sun, Jun 04, 2006 at 02:57:59PM -0700, kelsey hudson wrote:
> Lan Barnes wrote:
> >I have an even better idea: Avoid clever algorithms altogether. Oh,
> >wait, that wasn't my idea ... it was from Kernighan and Plauger in "The
> >Elements of Programming Style."
> 
> So now we stifle creativity for readability? Just put a comment. Or, if 
> you can't understand it, think harder. I haven't come across a piece of 
> code yet I couldn't understand after 15 minutes of, "ok, now just *what* 
> the hell is going on here?" Then again, I find myself *thinking* in code 
> sometimes.
> 
> -kelsey

The point K&P make (you've heard of them?) is that clever is often not,
and is always brittle. The book is short, still in print, and well worth
reading. I recommend it.

-- 
Lan Barnes
Linux Guy, SCM Specialist     
Tcl/Tk Enthusiast 


-- 
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to