2 ms·
Properly used, static typing actually enhances modularity and reduces unwanted coupling among software components. This means that a larger code base is far les
by zozbot234 7y ago
Properly used, static typing actually enhances modularity and reduces unwanted coupling among software components. This means that a larger code base is far less likely to become practically "unwieldly" if static types have been consistently used in development. Even in exploratory programming where dynamic types may actually have some limited value, using them effectively requires a lot more "skill".
- wellpast 7y agoThought experiment, in your mind what would better produce modularity — TDD or static type verification? If you had to pick one.
- tome 7y agoAnecdata: in Python I used to (and still do to some extent) practice TDD very conscientiously because I felt it really helped me structure my programs well and get them "correct my construction". One of the reasons for moving to Haskell was that the type system has the same effect at a lower cost (once the barrier to entry of learning about the type system has been crossed).