4 ms·
I mostly use static typing because I don't want the intended behavior of the program to be described solely in my head.
by Retra 8y ago
I mostly use static typing because I don't want the intended behavior of the program to be described solely in my head.
- tabtab 8y agoThat may be asking too much of a programming language not intended for AI. What I see between each approach is tradeoffs. Which one has the net benefit may ultimately depend on personality, domain, and shop practices. It's one of those architectural holy wars that may never end.
- maxxxxx 8y ago"Which one has the net benefit may ultimately depend on personality, domain, and shop practices." I think personality is often the biggest issue. Some people like dynamic, some like static. You can make some rational arguments for your preference but in the end we know that successful projects have been written with either paradigm.
- Retra 8y agoI do the vast majority of my programming in Rust and Python. I love both of those languages, but the fact is, the problem that static typing causes me in Rust is that I have to write a lot more code, but it is all pretty much rote. The problems that dynamic typing causes me in Python is that I have to evaluate large chunks of the program to figure out what it means. These are totally different kinds of frustration, but I can put up with the rote stuff because it doesn't distract me from thinking, but having to question what the code I'm looking at can do requires much more creative thinking and detective work that leaves me less able to passively think about anything else. They're both manageable, really.
- Vaenae 8y agoVery well said!