3 ms·
From my experience it's true in python (ie not a static type system). Removing the distinction between compiling and running makes this point even stronger.
by syrrim 8y ago
From my experience it's true in python (ie not a static type system). Removing the distinction between compiling and running makes this point even stronger.
- 59nadir 8y agoThis is not at all my experience, neither with my own code or code other people produce. Unless the problem is extremely trivial the solution is very unlikely to work without a few test runs. The bigger point in all of this is that statically typed languages at least have some kind of check mark they can put on your code to say "Yeah, at least the types make sense". They also encourage designing with types in order to enforce business logic, which is something you don't get in any of the dynamic languages.
- randomsearch 8y agoAgreed. Have written a lot of code in Ada and Python, I have taught both of them. The fact that Ada code often works first time is something almost every student notices at some point. I have far more experience in Python, and I don’t think I’ve ever made non-trivial code work the first time.
- j88439h84 8y agoIn python this can be true, if you invest in the various protections like pylint, mypy, and full test coverage. Python doesn't force you to do those things if you dont need the reliability for a prototype or one-off code. But if you want to make a reliable system, even convert your prototype into a reliable system, you can.