476 karma · joined May 12, 2020 (6y ago) · 570 submissions
comment 4y ago · link · parent
Errors that would be caught by static type checking are exceptionally rare when you do commerical development in dynamically typed languages.
You right now are complaining about a problem that only exists with inside your own head.
comment 4y ago · link · parent
I've worked on dynamically typed codebases for a long time. Passing the wrong type is very rare. I mean how would the code pass the unit tests if it was passing the wrong type?
comment 4y ago · link · parent
Nevertheless let's move on.
It's not a myth, if you are using dynamic typing you will get three times the number of features out the door as someone who uses static typing.
It's just a fact.
1 dynamic typed programmer = 3 static typed programmers in productivity and output.
That is why people use dynamic typing.
From a commerical perspective, static typing does not make sense in most cases. You need something more than a typical business CRUD app to justify it. Usually you only need static typing for performance reasons. Like for a video game or image processing.
In practice, the shipped code doesn't have noticably more bugs. That just something which people who have never used dynamic typing properly like to believe.
If you ever read an article by Eve online where they say Python is their secret weapon or watched what Discord did by implementing everything in Python first. You will understand.
comment 4y ago · link · parent
Passing the wrong type is considerably rarer than the wrong value so need not be considered.
Well one programmer using dynamic typing can deliver the output of three programmers who use static typing.
That why people use dynamic typing, from a business perspective it's a far more compelling argument than the one you are making.
comment 4y ago · link · parent
* An integer that is sum of two primes.
* A string that is created between the hours of 2 pm - 4 pm on a Tuesday.
* A dictionary who's fields comprise a valid tax return.
What do you mean by future proving? If the new version of the code doesn't ship by 2 pm today, the company goes bankrupt and there is no future for the code.
comment 4y ago · link · parent
They are different development experiences, one isn't better than the other. If you want to ship something to market tomorrow use Python with dynamic typing. If you want something to run fast and be error free use Rust with static typing.
Both are good options.
comment 4y ago · link · parent
The increase in the code size usually results in significantly more bugs in the code.
Number of bugs is directly proportional to the number of lines.
The better way is to use unit testing instead.