Nobody Codes a Bad System On Purpose
I have been writing up a little one pager for a JasperFx Software client for their new CTO on why and how their flagship system could use some technical transformation and modernization. I ran my write up past one of their senior developers that I've been collaborating on for tactical performance improvements, and he more or less agreed with everything but felt bad that I was maybe throwing the original development team (all since departed for other opportunities) under the bus a bit -- my words, not his.
My response was that their planned approach might have been working just fine upfront when the system was simpler, but maybe they would have happily and competently adapted over time as the system overgrew the original patterns and reference architecture, but just weren't around to get that feedback.
And let's be honest, I know I've created some clever architectures that got dropped on unsuspecting other people in my day too. Including the (actually kind of successful) workflow system I did in Classic ASP + Oracle that had ~70 metadata tables and the system that was written in 6 different programming languages.
That brings me finally to my main point here, and that's even though I see plenty of systems where the codebase is very challenging to work with and puts the system at risk, I don't think that any of the teams were necessarily incompetent or didn't care about doing good work or didn't have an organized theory about how the code should be structured or even what the architecture should be. Moreover, I can't say that I've even seen a true, classic ball of mud in a couple decades.
Instead, I would say that the systems that I've seen in the past decade that were widely known as having code that was hard to work on and suffered from poor performance all had a pretty cohesive coding approach and architecture. The real problem was that at some point the system or the database had grown enough to expose the flaws in the approach or simply grown too complex to be confined within the system's prescriptive approach, but the teams who owned those systems did not, or were not able to, adapt over time.
To try to make this post not ramble on too long, here's a couple follow up points:
Summary
Anyway, to close out, I think that the mass majority of us really do care about doing a good job in our software development work, but we're all quite capable of having ideas about how a system should be coded, structured, and architected that simply will not work out over time. The only real solution is empowered teams that constantly adapt as necessary instead of letting a codebase get out of control in the first place.
Wait, what's that you ask? How do you work with your product owners to give you the space to do that? And that's my cue to start my week long vacation! Good luck folks, and try to be a little easier on your feelings toward the "previous folks". And that goes double for me.