> but that's good too, else we would not have jobs.
Given how mediocre the average software out there is, I'd much much rather have an industry focus on actual engineering. Its a lot more profitable to find new problems to solve rather than continuously fix your own mess.
I used to write very well documented statically typed code, and then watching people without domain knowledge butcher the hell out of it after I left.
At the end of the day knowing what you're doing is priceless. Just like having guard rails is no excuse to not learn how to drive.
Alls I'm saying is that types are very overrated when it comes to actual robustness and correctness. You can get it without types and you can miss it with types.
As I wrote, static type systems are a superset of dynamic type systems. So they can have both.
Besides, static types are, among other things, automated tests for the trivial stuff -- which the computer automatically tests/ensures them instead of a human writing them as busywork (and potentially getting them wrong).
The "sound" type system requirement doesn't make sense either. A non sound type system can still catch the majority of parameter/variable misuses automatically. With dynamic type systems you don't even have that, so essentially what you wrote means "I want it all or nothing". Cool when it comes to personal ambition, doesn't make sense when what you get still protects you from all kinds of errors and helps you refactor and self-document your code.
>I've done plenty of refactorings in huge statically typed codebases; types are a very, very superficial help there. Everything compiles fine but now you're passing 20 to a function whose range is 1-10. Or you're now generating the wrong filenames.
That would matter if static types somehow prevented unit/functional testing, which they do not.
And, depending on the language, the help of static types can be far from superficial. Even in Ada, back in the 80s, you could define the 1-10 range as a constrain on the type/input parameter.
Yeah, they don't catch all problems -- but that's good too, else we would not have jobs.