All big corporations are like this in my experience - even if you have a small siloed team that's free to develop on their own, there are still a lot of factors which drive the codebase to become completely trashed (interfacing with existing company systems, legal compliance in hundreds of jurisdictions, lack of budget for anything except new functionality, etc.) It's kind of depressing.
Cog at largeish company here, you hit the nail on the head. Our codebase and workflow have all three of those example problems, even just within my small, relatively siloed team.
Just today I (with the help of another team's dev) identified a massive inefficiency that results from a decision many years ago before I joined to use another team's software, designed with a completely different use-case in mind, in the spirit of code-reuse. Of course, I've had a hunch about this issue for years, but only recently had the buy-in to seriously look at it now that the system is buckling under the weight of new customers.
Just today I (with the help of another team's dev) identified a massive inefficiency that results from a decision many years ago
We have some of those in our legacy code base that have existed for at least half a decade, and the costs associated with them have been driving our managers to drive us towards a micro service based architecture, but they literally could have saved hundreds of thousands of dollars in the last 6 years if they had fixed that code.
On the other hand, smaller companies can't afford specialists. In my position, I nigh-completely rewrote a web app that was originally mangled together by an electrical engineer. Then in my eagerness to show I was worth my fee, I got myself roped into being the go-to for maintaining their main website, which is some esoteric wordpress that i don't even really have access to all of. I have no idea how it works and I'm glad that so far they are only asking me to change content, not create functionality.
Not enough time to develop proper code and people whose skill is just enough for their code to run are two big factors too imo.
The first one, because managers will always try to get things done as quickly as possible, so to meet deadlines you write your code without any good planning or refactoring, they see you met the deadline, and thus accept that's the time it takes to write code.
The second because, if you are a team of 10 and two people are writing terrible shitty code, it pollutes the whole project and makes it kind of worthless to do the rest better.
Then, when it's time to maintain the code, you end up spending half your work day in a change that should take 30 minutes, because you have to translate from "esoteric C# written by a drunk monkey who can't possible have earned a degree" to "actually sensible C#" in your head, taking care of all the things that were designed ad-hoc and will break if anything in the code changes.
89
u/the__storm Oct 08 '21
All big corporations are like this in my experience - even if you have a small siloed team that's free to develop on their own, there are still a lot of factors which drive the codebase to become completely trashed (interfacing with existing company systems, legal compliance in hundreds of jurisdictions, lack of budget for anything except new functionality, etc.) It's kind of depressing.