by taude · 7y ago · 0 comments
I will not participate in Hacker News Static vs Dynamic typing debates.
I will not participate in Hacker News Static vs Dynamic typing debates.
I will not participate in Hacker News Static vs Dynamic typing debates.
I will not participate in Hacker News Static vs Dynamic typing debates.
I will not participate in Hacker News Static vs Dynamic typing debates.
Stay strong, Me
The debate fundamentally comes down to 'under what circumstances is the extra cost of working with a static type system worth it for the benefits'.
For a 15 line helper script of the sort I've just written, Python with its dynamic typing is (to me - a proponent of static typing) the fastest thing to work with due to the low overhead. To me there is a threshold of project complexity where the cost-benefit ratio flips. Is that actually true? Does that vary for all people?
Here you go: "A large-scale study of programming languages and code quality in GitHub"[0]. I've only read the abstract (are we OK on sharing sci-hub links? [1]), spoiler alert, according to this research some languages are more defect prone than others but the effect is small.
[0] https://cacm.acm.org/magazines/2017/10/221326-a-large-scale-...
[1] sci-hub.se/10.1145/3126905
It's a total cost analysis that's interesting - and there's a lot of costs. Cost of development, how that varies depending on required time to market, cost of bugs (fixing them, and loss of sales due to customer reliability concerns), cost of complexity as software has to be maintained over time.
Yeah, good point. I read an old research where they tried to test the "productivity" offered by different languages, but then it became difficult to asses the experience of the different developers...
Besides, this thread still has only 65 comments and it will likely have thousands before the day is out:
That being said, every now and then I find them a good refresher in software politics, with a side of insight.
I suspect the same about procedural vs. functional programming.
And I suspect that's why discussions about them wind up the way they do. It's just obvious which one is better - to you. It's so obvious that it doesn't even seem to need proof. And therefore it seems that everyone who sees it differently must be ignorant, an idiot, or a troll.
Or so I suspect.