3 ms·
I find the opposite happens. Without the protection of the compiler enforcing rules before execution can occur we get "engineers" writing a mountain of fragile,
by sidlls 9y ago
I find the opposite happens. Without the protection of the compiler enforcing rules before execution can occur we get "engineers" writing a mountain of fragile, dynamically typed mess quasi-protected by untold numbers of unit tests (themselves fraught with peril) half of which implement (poorly) type checking.
- l0b0 9y agoDitto. After learning Java at uni I harboured a dislike for it for over 10 years while using dynamic languages. Now, having used it to implement microservices in an actually sane development environment, I love it to bits. Static typing gets rid of a crap-ton of subtly broken code which can only be guarded against with a ridiculous amount of over-testing. You basically need 800% coverage to handle all the special input and output which is handled in frankly insane ways. For example, how many methods treat zero as falsy (`if index`) and how many do the opposite (`if index != false`)?