Should You Keep That Code?

Sometimes the most rewarding project is dismantling a project.

2026-12-05

Breaking It Off

In my previous blog post, I questioned the maintenance obligations I’d put on myself over years of enthusiastic software development.

Today, I again spent my Saturday programming so that I could spend fewer of my future Saturdays programming.

A few months ago, I implemented a headless CMS for a client website so they could manage their own content. A separate backend, a PostgreSQL database, and object storage for images, all integrated with their pre-existing Astro frontend. Changes to the CMS triggered static rebuilds of the website, keeping the benefits of a static frontend while allowing the client to manage their content dynamically.

It seemed like a good compromise. Not every content update would have to run through me.

However, the client hadn’t actually asked for a CMS. They were still fine with dropping pictures and content into a shared folder for me to put onto their site.

And when Railway’s October 2026 security incident had me rotating credentials just a month after implementing the CMS, the reality of the tradeoff hit me.

Un-Solving the Problem

I’d introduced three backend services, extra dependencies, recurring expenses that I absorbed, and new security concerns to solve a problem that the client didn’t have.

In an effort to relieve myself of content management responsibilities, I’d taken on server management responsibilities.

So today, I reverted the staging website to a purely static architecture using Astro’s native content collections. The CMS never made it past staging, so the client wasn’t losing anything they’d come to rely on. I migrated the content, preserved the frontend’s features, and even improved a few things along the way.

Then came the fun part. Backed up the database. Tested the restoration. Deleted the database. Backed up and verified images. Deleted the storage bucket. Revoked the credentials. Archived the backend codebase. Canceled the new subscriptions.

And there you have it. A perfectly functional website with two direct dependencies, no backend to maintain, and no loss of functionality for its end users.

Less is More

In the past, I gauged the success of my projects by what I’ve added to them. New features, new technologies, bigger and better architectures. I’ve been hesitant to undo things because of how much effort I’d put into them.

But the time spent building something doesn’t justify the time required to keep maintaining it. Sunk cost fallacy strikes again.

I work with databases and enterprise software all week. Outside of work, I’ve been trying to be more intentional about the things I choose to build and maintain.

I’m no less capable of implementing a headless CMS now that I’ve dismantled this one. If anything, recognizing when to dismantle something is as much a sign of growth as learning to build it.

Now, I think I’ll go touch some grass or something.

Tags