Re:When to refactor code
by tetha on Thursday May 16, 2013 @10:57AM
(#5718919)
If you touch it, it will never work again. Even if you revert all your changes.
[ Parent
| on HN ]
Re:When to refactor code
by precisioncoder on Thursday May 16, 2013 @11:27AM
(#5719108)
I've had this happen often enough that when refactoring something tricky I like to copy the function and rework it. Then I'll change references from the old method to the new one one at a time and test. One of my favorite methods returned a Map<Long, Map<Long, Map<Long, Map<Long, Long>>>> with no comment explaining what any of those Long values were...