| I am guessing that your definition of "problem" is a bit too narrow and simplistic. > Your “craft” is not to write code, it’s to solve problems. Writing code is part of solving problems. The quality of code has an impact on the various aspects of how a group of people solve problems. As a small example - consider onboarding time for a codebase/system. Longer onboarding time means - lower profits end of the day for the organization (I'd also argue that longer onboarding times correlates higher talent attrition). And code quality has a strong influence on onboarding time. Code quality has an impact on the "debuggability" of your systems. How quickly can you fix stuff when things go wrong? Code quality has an impact on the "deployability" of your systems. If your code is well-done it is easy to deploy, redeploy, etc. I can cite maybe 10 more properties crucial to org health, which are influenced at least partly by code quality. So, "the problem" is not as simple as it may seem at first glance. |
This is why the pursuit of “high quality code” is pointless; you are not an artist, you are aligned to solve a problem. If you do that, code or not, you are doing good work as an engineer. If you are not, you are not. Whether the code fits some arbitrary definition of “good” separate from your ability to solve a problem doesn’t play into it.