Jul 24 2008

Minimalist Coding Style

Published by Chris under Tips

Technorati Tags: ,

From notesfromatooluser.com:

6a00d8341cc2cf53ef00e553afce568833-pi

““Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away” - Antoine de Saint  Exupéry. If you’ve ever invited me do some pair programming with you, you probably have a good idea what this quote is all about. I often wind up asking questions like:

    * Why do you need this boolean named retVal? Could it be eliminated the use of early return statements?
    * Is the else clause in this if statement necessary? Could it be avoided with a return statement? Or break/continue in a loop?
    * I noticed that this method has parts that are nested five levels of braces deep. Is there anything we can do to reduce that?”

Read more…

No responses yet

Page 1 of 11