Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

In the amount of time you’ve repeatedly said this all over this thread you could have provided a citation


Here: https://games.greggman.com/game/dynamic-typing-static-typing...

I think it's more effective to show that there is no evidence to contradict me first.


lol wow you're really something, this is literally one guy, there is TONS of research on this which contradicts his findings. This guy does a pretty good summary https://danluu.com/empirical-pl/ definitely heavier on the research wouldn't you say?

He also misses the biggest add of typing your code which is that other people can understand it better. This is often lost on junior programmers...


Well according to most of that research I'm correct.

See: "Work In Progress: an Empirical Study of Static Typing in Ruby; Daly, M; Sazawal, V; Foster, J."

See: "Haskell vs. Ada vs. C++ vs. Awk vs. ... An Experiment in Software Prototyping Productivity; Hudak, P; Jones, M."

Lisp - A dynamically typed language had the lowest development time by a factor of 2.5x. Seems to be the same figure I'm giving, fancy that!

"He also misses the biggest add of typing your code which is that other people can understand it better."

Nope.

See: "How Do API Documentation and Static Typing Affect API Usability? Endrikat, S.; Hanenberg, S.; Robbes, Romain; Stefik, A."

You need documentation and whilst Java students may study with dynamic typing since they haven't been taught it, it's pretty clear that on it's own static typing provides almost no useful documentation.

"This is often lost on junior programmers..." I'm far more experience than you, which is why I'm calling out the BS.

I think you will find that the research suggests that static typing and dynamic typing have a similar bug rate per line of code.

See: "A Large Scale Study of Programming Languages and Code Quality in Github; Ray, B; Posnett, D; Filkov, V; Devanbu, P"

Once you combine that knowledge with the knowledge that dynamically typed programs have less lines per feature.

Relational Lisp 274 compared to Ada 767 or C++ 1105.

Dynamic typing wins out because the programs are smaller, making them faster to write and contain less bugs per software feature.

The link you posted confirms it.

Do you understand that you are wrong?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: