>>106868it's much much harder to write less code and to document it. that's a full focus, good sleep, good communication whitepeople thing.
most enterprise programming is about abstracting problems away, making existing solutions somewhat reusable, not messing with and breaking the existing thing, making the code more and more declarative (what 2 do it in business terms) than procedural (how 2 do it in terms of lower level compooter language).
it is easier to just pass the output of the existing thing to a new thing that is relatively quickly written as a wrapper for the specific to the task at hand, made with the highest level most human readable naming abstractions.
that's one way incomprehensible jeetcode bloat nonsense maze gets made. one abstraction around another. functions and classes (a collection of data + it's associated functions) for the most simple that get extended and wrapped endlessly. random hooks and callbacks into the existing code to extend it's functionality without changing it proper risking of breaking it. more function parameters tacked on to handle one specific case.
days can be spent cutting out the fat and useless guardrails of one existing 150-10k loc script/module if you really want to make it le good and reduce it's length 5-10x. lotsa enterprise applications can be 100 or 1000x smaller than they are.
except it's too much work and you don't even know all the expected yet undocumented edge cases it handles or emits, so it will be your responsibility when the application breaks in production. better not touch it and do just what's actually asked from u. bugs are estimated, but not really planned.
le barely works but works fuck maintainability is the norm for the businesses. slowdown of work from it is not so measurable and no one would bother to soyentifically estimate it, so just throw more money and jeets or "AI" (lol) at it, that should work right(?). no product owner will ask you to sit there for a week per month throwing out shit code and report back how much shit you threw out, because they are not taught the value of it, nor it's their problem. they may know it's accumulated shit but they are just there to loot, like the other guy said.