1123
Now listen here you little shit
(media.piefed.social)
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
ITT: AI induced dunning-kruger. Everybody can write maintenable code, just somehow it happens that nobody does.
Most of the unmaintainable code I've seen is because businesses don't appreciate the need to occasionally refactor/rewrite or do anything to maintain code. They only appreciate piling more on. They'd do away with bug fixing too if they could.
Many opensource projects are in same state, I know for sure my projects become spaghetti if I work more than a year on them.
Besides, I'd argue that if you need to rewrite (part of) it is because it wasn't maintainable in the first place.
I disagree.
Rewrites can happen due to new feature support.
For examlle: It's entirely possible that a synchronous state machine worked for the previous needs of the software, but it grew to a point where now that state machine is unable to meet the new requirements and needs to be replaced with a modern fam with asynchronous singals/delegates.
Just because that system was replaced doesn't mean that it wasn't maintainable, wasn't readable, or easy to understand. It just wasn't compatible with the growing needs of the application.
It can, but usually that's not the case.