Writing Code with DHH: Take 3

clean code comments edit

I was listening to The Tim Ferris Show with David “DHH” Heinemeier Hansson this weekend. DHH is the creator of Ruby on Rails and the founder of Basecamp (formerly 37signals).

He described his approach for writing code:

Take 1: Let’s get this working.

Take 2: Let’s make this right.

Take 3: let’s make this beautiful.

Take 4: Let’s simplify this.

Take 5: …

This really resonated with me. So often we (myself included) tend to stop after Take 1. This leads to code that is buggy and difficult to maintain. Only rare individuals ever do three or four takes to create good quality code.