4 ms·
I've heard many times something along the line "I can just start hacking on a big refactoring because the compiler will tell me all the places that need fixing"
by 21 9y ago
I've heard many times something along the line "I can just start hacking on a big refactoring because the compiler will tell me all the places that need fixing".
- kcorbitt 9y agoWell, that doesn't mean it's wrong. I'm far less likely to introduce bugs when "just hacking" on a Flow-typed JS project than I am when carefully (and tediously) trying to refactor an untyped one.
- seanwilson 9y agoAgree with this. I recently refactored a TypeScript code base for around 3 hours (renaming things, moving functionality into new classes, reducing duplication) without running the code once and it nearly worked first time. Simply renaming a variable in plain JavaScript can be a challenging refactor in comparison.