PROJECT REFLECTION 01 Systems & Operations

Taking Over a System Someone Else Built

I was involved with Insurance Buffalo from its early days, primarily working on the UI/UX design. About two years later, the developer left. There was no immediate replacement, and the project had been dormant for two years. I had to take over development and bring it back to life.

There wasn't any documentation, which isn't particularly unusual in a small team. The code was reasonably organised in places, but the technology had moved on and parts of the application no longer worked. Some shortcuts had also been taken to get the project off the ground when time was tight.

First, I had to fix the worst problems just to get the application running again. Then came the research: understanding how the code was organised, how its different parts fitted together, and documenting what I found. With a better understanding of what I had inherited, I could reassess the technology and decide how best to modernise it.

I decided the existing technology stack was still worth keeping, but it needed modernising. This involved considerably more than updating PHP. Files were reorganised, and functions were put into a more sensible order and grouped more logically. Some parts of the application also had to be rewritten, particularly for security reasons.

Much of this work wasn't visible to visitors. The website might look exactly the same, but underneath, it was becoming easier to maintain, extend and develop further. That's often the fate of this kind of work: do it well, and nobody notices you've done anything at all.

One part of the code really impressed me. There was a search filter with dozens of criteria, many of them divided into further subcriteria, all working through a generic search field controlled by the user. It worked flawlessly. Once I understood how it had been put together, I could appreciate just how ingenious it was. I kept much of that code. Rewriting it would have been less an improvement and more an act of vandalism.

Other parts of the code initially left me wondering why they had been done that way. But as I learned more about the circumstances in which they had been written, I began to understand. Technology and available resources were different back then, and some of the apparent complications were perfectly reasonable solutions to the problems at hand. I came away with a much greater appreciation of the original developer's work. He had done the best he could with what he had.

The experience changed how I approach my own projects. I document more, pay closer attention to how code is organised and try not to rush just to get something out of the door. I want files and functions to be easy to follow, so another developer can understand the project without spending months figuring out how everything fits together. Ideally, bringing someone new into a project should take days rather than months.

Not every customer sees the value in spending additional time on work that makes little visible difference. Those familiar with software development generally understand, but others understandably tend to focus on what they can see and use. Sometimes, even after explaining the benefits, we reach a point where time or budget dictates what can be done. Documentation is often the first casualty, particularly on smaller projects. On the other hand, basic security and fundamental reliability are not things I'm prepared to compromise on, especially with systems connected to the internet. Missing documentation can be inconvenient; missing security can be considerably more memorable.

There have been occasions when a bug has come to light a few weeks after the warranty period ended, and I've gone back to fix it. It's not something I do as a matter of course, but I take pride in my work and sometimes feel it's simply the right thing to do.

I've continued adding functionality and improving the system. It is considerably more stable and secure than when I took it over, thanks in part to introducing more modern technologies. I also moved it onto my own server, which gave me the opportunity to learn more about the infrastructure behind the application. There is still work to do, but progressively less of the original legacy code remains.

The system earns some money and has received praise from people with relevant expertise, but it needs considerably more marketing to become truly commercially viable. I continue to maintain it, add functionality and promote it where I can.

Taking over the project changed more than the way I write code. It also made me slower to judge work I inherit and more conscious of the people who might eventually inherit mine. I know now that some of what initially looks like a mess may be the result of years of decisions made for good reasons. I also know what it feels like to be the person who has to make sense of it.