Live data from Hacker News

8 Considerations on Choosing a Programming Language

scala-academy.com

41–44 of 44 posts

Re: 8 Considerations on Choosing a Programming Language

#41
post #40
post #39

Earlier quoted context omitted.

Its a fact: Using a dynamically typed language you have to write more code (tests etc.) to achieve the situation where you catch the same kind of bugs that a statically typed language would inform you during analysis. Strong and weak typing is a different thing. And I agree, it is not that simple, but only if you take other factors into account.

Why wouldn't you take other factors into account? Or better, why would you take this factor in particular as the only factor that matters?

For me that is the most important factor, because it directly influences the amount of code produced. Less code means less bugs and less code to read/understand when getting back into a codebase.

Re: 8 Considerations on Choosing a Programming Language

#42
post #41
post #40

Earlier quoted context omitted.

Why wouldn't you take other factors into account? Or better, why would you take this factor in particular as the only factor that matters?

For me that is the most important factor, because it directly influences the amount of code produced. Less code means less bugs and less code to read/understand when getting back into a codebase.

Then I guess you chose the wrong side. Dynamically-typed languages produce less code precisely because you don't need to specify the types. E.g. Scala is more verbose than Clojure.

Re: 8 Considerations on Choosing a Programming Language

#43
post #42
post #41

Earlier quoted context omitted.

For me that is the most important factor, because it directly influences the amount of code produced. Less code means less bugs and less code to read/understand when getting back into a codebase.

Then I guess you chose the wrong side. Dynamically-typed languages produce less code precisely because you don't need to specify the types. E.g. Scala is more verbose than Clojure.

I'm not sure that Scala code + types is more verbose than Clojure code + tests. (Which is what the OP argued.)

Re: 8 Considerations on Choosing a Programming Language

#44
post #42

Earlier quoted context omitted.

Then I guess you chose the wrong side. Dynamically-typed languages produce less code precisely because you don't need to specify the types. E.g. Scala is more verbose than Clojure.

I'm not sure that Scala code + types is more verbose than Clojure code + tests. (Which is what the OP argued.)

You need tests everywhere, statically typed doesn't mean you don't need to test.
Post reply on HN