|
|
|
|
|
by kat
1781 days ago
|
|
It depends - I don't think there is an true answer to this question. I've worked both in early stage startups and in companies that are established and are still using their original startup code base. I've seen some terrible design decisions coupled with quality code that survived 15 years because the company had amazing market fit. It cost the developers a lot of extra time to work around the poor design decision, but the company was profitable enough to make up for the dev cost. That's the most common situation I've seen.
The best codebase I've ever worked with was beautiful because the company had long lead time on sales(avg deal took 12 months) so the developers had time to refactor as needed. This company is still alive, so I consider them a success! The other factor in code quality + business success is team size. With a big team and poor quality code, it spirals down much faster, each new bug/feature gets harder and slower to implement. If its bad code but its always the same 2 developers, they will be consistent enough in their own styles that the code base will not degrade nearly as fast. |
|
A business that is not thriving and running out of cash, with a high-quality codebase, is heading toward a terminal failure state. Situation is not sustainable with restricted options and time to recover.
> The other factor in code quality + business success is team size. With a big team and poor quality code, it spirals down much faster, each new bug/feature gets harder and slower to implement.
Slightly generalised, this a good rule of thumb for categorising different kinds of poor code and prioritising remediation efforts. Poor code that is stable that doesn't need to be modified and rarely needs to be read and understood by humans -- it's fine, no business impact, don't touch it. Poor code that causes production outages every week or that multiplies the time and cost of each new feature -- is causing an ongoing cost to business, can estimate business case of value in fixing it, worth prioritising for fix. Per your example, if the bad design is some architectural decision that impacts many developers or many teams each time any team makes a change: increased blast radius, proportionally larger drag on business.