By mswatcher
via codethinked.com
Published: Jun 20 2008 / 12:12
A while back I made a post entitled don't be clever. In this post I postulated that in the modern world of programming we need to be more cognizant of making our code readable and grokkable than to make it clever or sneaky. In this post I also used one of my favorite programming quotes of all time (which I will put here again because it is awesome):



Comments
Rob Signorelli replied ago:
Well I think the author should elaborate on the "cleverness" spectrum. There's being clever for the heck of it because it shrinks your code by a few lines (and that's all). And then there's clever which can axe out an order of magnitude from your runtime or save a significant amount of memory (not just an object or two). One is good clever while one is bad clever (if hope I shouldn't have to tell you which is which). So although I agree with his particular example, I don't agree with his 99% assumption.
dengar007 replied ago:
Did you check out Part 1 of this series? That may clear some things up... http://www.codethinked.com/post/2007/12/Dont-be-clever.aspx
Rob Signorelli replied ago:
So noted. Thanks!
Voters For This Link (8)
Voters Against This Link (0)