Should I take the time to clean my code once it's working if it isn't clean?  Cleaning can take a lot of time. My boss just need it working but I feel unhappy if my code isn't clean.
Should I take the time to clean my code once it's working if it isn't clean?
programming practices;clean code
This is the core idea behind code reviews: to make code cleaner after it works, to keep it maintainable. But I guess in your company you don't even do code reviews, otherwise you would not have asked. So start with that.However, I recommend heavily to avoid getting code too dirty in the first place. Next time you add something to an existing code base, try to follow the boy scout principle: leave the place (code) behind in a better shape than you found it. Then this question becomes obsolete.