I wonder how do programmers refactor code that is written in languages like Ruby, Python?
Assuming you get code after a 'previous' guy—so you cannot be sure about quality of tests and their coverage.
Do you use any specific approach?
Without an IDE, you will have to take smaller steps, well protected by comprehensive unit tests. Martin Fowler's Refactoring, written before all the software tools were available, is a pretty good guide to how to refactor safely. You take small steps, checking all along that you're not breaking anything, frequently leaving original code in place until the replacement has been completed. It's tedious but doable.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With