Re:First look: adding type annotations to JavaScript
by vlovich123 on Thursday March 10, 2022 @11:06AM
(#30628449)
I think "truly expert programmer" is hypothetical. I don't think I encounter many programmers that prefer to eschew typing unless it's a quick one-off script. Typing your code takes maybe 1-10% of the time it takes to right (if that). It provides far more value than tests. Just like Rust's ownership model in the type system provides much better results than C++'s implicit ownership model + tests.
[ Parent
| on HN ]
Re:First look: adding type annotations to JavaScript
by kemiller2002 on Thursday March 10, 2022 @02:15PM
(#30631153)
That's exactly my point. There are very few people that are real experts, people that can see code and reason everything in their heads with little or no help. There really aren't any. Everyone thinks they are, but they aren't. Having types helps the rest of us understand what is going.