HTML5 Canvas
Written by: Simon Sarris
Featured Refcardz: Top Refcardz:
  1. Apache Hadoop
  2. Web Driver
  3. MVVM
  4. REST
  5. ADO.NET
  1. HTML5
  2. Ajax
  3. jQuery Selectors
  4. CSS Part 1
  5. Git

Link Details

Link 88551 thumbnail
User 225256 avatar

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):
  • 8
  • 0
  • 1731
  • 0

Comments

Add your comment
User 282119 avatar

Rob Signorelli replied ago:

2 votes Vote down Vote up Reply

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.

User 247528 avatar

dengar007 replied ago:

0 votes Vote down Vote up Reply

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

User 282119 avatar

Rob Signorelli replied ago:

0 votes Vote down Vote up Reply

So noted. Thanks!

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (8)



Voters Against This Link (0)