How far should you take clean coding?

rickardengberg

Rickard Engberg

Posted on September 23, 2019

How far should you take clean coding?

I've been thinking about something for quite some time. I'm a strong advocate for clean coding, and that a professional programmer should be allowed time for doing their job right. With that, I mean fixes and features should be done cleanly, and, if needed, legacy code adjacent to what the programmer is working on should be refactored (within reasonable limits). Indeed, certain levels of refactorings and renovation of legacy code should be included in the estimate for the story.
However, now and again, reality happens. Perhaps a bug was found, and it needs to be corrected, tested and distributed asap. There might not be enough time to do the refactoring that part of the code you're in so desperately needs. Alternatively, given the limited time frame, you may not want the risk a possibly complex refactoring adds. Should a professional programmer still enforce clean coding principles? At what cost should these principles be enforced?
There is always the option to make a quick fix, test it and ship it, but also write a story for the backlog on the need for renovation. Of course, we all know how hard it can be to get that story prioritised and scheduled for action.
I want your views on this, so please join the discussion.

💖 💪 🙅 🚩
rickardengberg
Rickard Engberg

Posted on September 23, 2019

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related