Back to journal
Engineering

The code you don't write is the code that doesn't break

Zakaria Fahim4 min read
The code you don't write is the code that doesn't break

We inherited a project last year that had twelve thousand lines of JavaScript and three active users. The previous agency had built a plugin architecture, a custom state machine, and a theming layer that could support fifty skins. The client needed one form with three fields and a payment button.

Complexity is not a sign of intelligence. It is a sign that nobody stopped to ask what the system actually needs to do. Every abstraction, every configuration flag, every optional feature adds weight. Weight slows shipping, hides bugs, and makes good engineers quit.

Our rule is simple: solve the current problem with the smallest surface area. If the customer needs to send an email, we use a reliable service and one function. We do not build a notification framework that might one day support push, SMS, and carrier pigeon. We will cross that bridge if we ever reach it.

This approach also makes the code easier to change. A small system has fewer dependencies, fewer tests to maintain, and fewer places for errors to hide. When the business inevitably changes its mind, we can adapt in days instead of weeks.

The best code reviews we run do not ask if the code is clever. They ask if the code is necessary. Can we delete this file? Can we replace this module with a standard library? Can we simplify this function into three lines? If the answer is yes, we make the change before it becomes debt.

Software that lasts is usually boring. It uses proven tools, clear naming, and obvious patterns. The customer does not care how elegant your abstraction is. They care that the page loads, the button works, and their data is safe. Write less, ship more, sleep better.

Want to build a product that sells?

Start a project