Jul 24 2008

Minimalist Coding Style

Published by Chris at 12:39 pm 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…

Share and Enjoy:
  • Digg
  • del.icio.us
  • Reddit
  • StumbleUpon
  • Technorati

Related posts:

  1. Minimalist-style cooking for the holidays Technorati Tags: minimalist,cooking,holidays From unclutter.com: "Wednesday, Bittman wrote a...

| 2 views | Tags: ,

Trackback URI | Comments RSS

Leave a Reply