Comment by Sandeep Panda on "When you come across an old piece of code, that's not written well or that could've been written better, what do you do?" | Hashnode
If it is likely to take 5-10 mins of my time, I take a detour, rewrite it and then come back to what I was doing. Otherwise, I just leave a todo and try to get back to it later. :) What about you?