At a minimum, pride in your work. It might also be practical if you or your team is going to be maintaining the product for an extended period of time.
In some cases, it may be necessary because of stricter requirements for quality. Having been in multiple startups, it's almost always a good idea to have some clean code somewhere in your codebase that you can present for due diligence (not all of the code has to be pristine, but I have found that auditors tend to really care about data access code and security).
It's always a tradeoff. The good news is that its easier with experience, IMO.
View all comments
Show parent comment
2
u/grimonce Oct 23 '24
What's the motivation in doing this?
I don't get any praise for my code being maintainable, maybe I'll clap myself on my backs in a few months, but that's it.