Code is cheap. Throw it away regularly. – J. Scott Nelson
How much do you love your code? Is it important? Are you tied to it?
You shouldn’t be.
The code you write is cheap. Another developer could look at your solution and tear it to pieces. Yet another developer could rewrite your code from scratch in a quarter of the time it took you.
Because the Hard Problem isn’t writing code, it’s solving the problem.
You Don’t Know What You Don’t Know
Code is cheap. Thinking is expensive. As a developer, you’re not being paid to write code, you’re being paid to think.
Have you thought through every use case, every boundary condition, every exception? Where can you simplify? How abstract are your models?
How complete are your solutions?
I would have written a shorter letter, but I did not have the time.
– Blaise Pascal
To your business, the cost of development is arriving at the solution. It’s the mind share around problem resolution.
The best developers are competing at a global scale for their minds. The brightest developers may employ clever programming tricks or interesting algorithms, but what makes them the best and brightest isn’t necessarily their raw coding skill: It’s their ability to think through a problem, clearly identify a resolution and quickly implement a solution.
I constantly ask myself, “How can I improve?” There’s absolutely no value in looking at a block of business application logic and thinking “This is the best it can ever be,” because it can always be improved.
During development, hopefully you employed deep, critical thought. While you were thinking, you had ideas. While implementing your solution, you ran into a roadblock that you subsequently solved. You now have a unique insight into a business problem that no other individual possesses.
Think about that for a moment.
Because of your unique insight, you can now reevaluate your code. You can improve it. You can throw it out and start over (not that you want to! Written code does have value, but that’s a topic for another time). The insight and creativity around your solution is the real value to your business.
Code is cheap. Your mind, however, is invaluable.