by resenteddev · 8y ago · 0 comments
I don't care how shitty your code looks, I see little risk as long as it has well contained boundaries with system at large.
You have ownership of your module, and if you leave, and someone needs to work on it, and cringes at how it looks, since the input/output edges are clear, it can be thrown out at re-written to said dev's personal taste.
Focus on delivering business value and creating the best END-USER experience.
If you are focused on pretty code, you will likely be the only one patting yourself on the back when all is said and done.
I agree 100%. For most projects clean code comes secondary.
Moreover, what is clean and what is sloppy is extremely subjective. If the code doesn't produce too many bugs and is understandable enough for others to modify, great. That's all you need.
From my experience, the correlation between writing clean code and delivering business value isn't a thing. I would even go so far to say that people who really care about writing clean code often tend to ignore business goals. Additionally, I've worked with a few clean code/TDD enthusiasts whose output very often contained bugs.
NOTE: This is my personal and VERY anecdotal experience from working on mostly small to medium sized projects (up to 100k LOC).