3 ms·
> And makes your code 20% longer One thing I've noticed on larger dynamic language projects: Developers tend to adopt a very defensive strategy in terms of val
by flomo 12y ago
> And makes your code 20% longer
One thing I've noticed on larger dynamic language projects: Developers tend to adopt a very defensive strategy in terms of validating inputs, to ensure it is clear a bug is not in their component. This includes a lot of what are essentially runtime type checks.
This is not necessarily a bad thing, because it ultimately makes the code more reliable. But it is "more code" which needs to be maintained, and eliminates the much of the advantage of using a dynamic type system in the first place.