3 ms·
I think the concept of refactoring in dynamically typed vs statically typed languages is a double-edged sword comparison. On one hand, refactoring code written
by jondubois 10y ago
I think the concept of refactoring in dynamically typed vs statically typed languages is a double-edged sword comparison.
On one hand, refactoring code written in a statically typed languages is less error-prone - But on the other hand, such refactorings tend to affect more code than those of dynamically-typed code.
If your business requirements change often and refactorings are common, it can be a pain to keep having to rethink your code structure.
Dynamically-typed code is often easier to extend and modify. I find that with statically typed code, if you start messing with a small part of your code, sometimes you have to rethink your entire class hierarchy. With dynamic languages, your code can handle quite a few changes before it gets to a point were you need to rethink the overall structure.
- talideon 10y agoHowever if you're dealing with a language with type inference, you can get a good chunk of the ease benefits of dynamic languages.