3 ms·
Yup. In a codebase without static types, large-scale refactors are probably just not practical, which may be why fans of dynamic types don't have this problem;
by dgreensp 7y ago
Yup. In a codebase without static types, large-scale refactors are probably just not practical, which may be why fans of dynamic types don't have this problem; they can't, and thus don't, do substantial refactors without rewriting.
- z3t4 7y agoThe trick is to write the code so that one piece of code does not affect another piece of code. You can write static code in a dynamic language by making all functions pure functions eg. no side effects.
- z3t4 7y agoThere are also static analysis tools for JavaScript. For example Google closure compiler. Which can infer about 80% of all types.