3 ms·
I’m curious to hear how refactoring can be better in a dynamically typed language, especially if you dont have sufficient test coverage. A statically typed lan
by statictype 8y ago
I’m curious to hear how refactoring can be better in a dynamically typed language, especially if you dont have sufficient test coverage.
A statically typed language - even a relatively weakly typed one would seem superior for refactoring.
- jondubois 8y agoFor a lot of projects, a small number of carefully chosen integration test cases can give you a large amount of coverage. Unit tests are often a problem for refactoring because they discourage you from making necessary changes (since updating unit tests is hard work, it incentivizes developers to limit the scope of the refactoring). The reason why typed languages are slower to refactor is simply because they just take more time to think about. For example, it takes time to discuss and agree on types with your team members; what they should be called and whether or not we should combine some interfaces into a single interface...