Re:Code is Engineering, Types are Science
by radicalbyte on Sunday June 27, 2021 @02:34PM
(#27653981)
I can spend a day coding* in a typed language without compiling, and my code more often compile than not work first time with the tests all green.
The exact same thing happens with dynamic languages - as long as I skip the tests (or write bad tests).
If I don't specify a type in the input, I have to check in the method body that what was passed in was something usable. Skip this is very bad, the best case scenario is something your code will error out on wrong input, the worst case is it computes the wrong result with no errors.