3 ms·
Static typing makes it easier to discover errors before the code is running in production.
by cwkoss 7y ago
Static typing makes it easier to discover errors before the code is running in production.
- kasey_junk 7y agoThere is no rigorous study that has proven this. I wish there were because I strongly prefer static typing but it’s more a belief than anything proven.
- sethammons 7y agoI'm always surprised by what comes across to me as a dogmatic need for a "study" to prove something. There is no study that says my yard needs mowing once a week to look good. I know it because I've lived it. Similarly, I've lived in code bases that were once dynamic and were rewritten to be static. This is not an academic argument: the compiler catches things that I would otherwise have had to remember to put into a test.
- kasey_junk 7y agoMeanwhile I hate the look of tightly manicured lawns. You should definitely grow long grasses. Without a more rigorous set of criteria we are arguing opinion. While my opinion is the same on static types there are people with their own experience on the other side of the argument. They too have lived it.
- dagw 7y agoPerhaps, but how does static typing make a language 'boring' or dynamic typing 'exciting'. I certainly consider Elm and Haskell more 'exciting' than Python or PHP.
- devmunchies 7y agoreplace boring with safe. you get the point.