How do you cope with ugly code that you wrote?

Posted by Ralph on Programmers See other posts from Programmers or by Ralph
Published on 2010-11-25T22:45:19Z Indexed on 2011/01/06 6:59 UTC
Read the original article Hit count: 294

Filed under:

So your client asks you to write some code, so you do. He then changes the specs on you, as expected, and you diligently implement his new features like a good little lad. Except... the new features kind of conflict with the old features, so now your code is a mess. You really want to go back and fix it, but he keeps requesting new things and every time you finish cleaning something, it winds up a mess again.

What do you do? Stop being an OCD maniac and just accept that your code is going to wind up a mess no matter what you do, and just keep tacking on features to this monstrosity? Save the cleaning for version 2?

© Programmers or respective owner

Related posts about code