Code Is a Liability

18 Aug 2012. comments

Sometimes a developer or organization will consider their code to be valuable. Is code valuable? I don’t think so. Code is a reusable and disposable resource. It’s also a liability. When you write code and it solves a problem, it is useful. But once the problem changes, it’s just bytes that you have to maintain. And the problem will change. Code then is a liability and the longer it sticks around the more drag you’re creating on the future.

The best code is the code that doesn’t get written. Any time you can work with your stakeholders or peers to find a solution that involves either no code, or deleting code, you are making your team move faster now and in the future. Neither you nor your organization are your code. Delete the code after its served its purpose.


Tagged: agile software craftsmanship yagni

2018 Ben Lakey

The words here do not reflect those of my employer.