Experiment: Unit testing isn't enough; You need static types, too
evanfarrer.blogspot.ca
Experiment: Unit testing isn't enough; You need static types, too
1–10 of 276 posts
Re: Experiment: Unit testing isn't enough; You need static types, too
#2Really inspiring, painstaking piece of work.
Re: Experiment: Unit testing isn't enough; You need static types, too
#3Re: Experiment: Unit testing isn't enough; You need static types, too
#4Re: Experiment: Unit testing isn't enough; You need static types, too
#5It is definitely refreshing to see some actual evidence in something where arguments tend to be based on speculation, experience, or opinion. Now, we just need someone to research Emacs v. Vim, Tabs v. Spaces, etc.
On second thought, let's forget about them after all...
Re: Experiment: Unit testing isn't enough; You need static types, too
#6It is definitely refreshing to see some actual evidence in something where arguments tend to be based on speculation, experience, or opinion. Now, we just need someone to research Emacs v. Vim, Tabs v. Spaces, etc.
Not exactly this, but there exists "Program indentation and comprehensibility" http://www.cs.umd.edu/~ben/papers/Miara1983Program.pdf which tries to tackle the "2 spaces vs 4 spaces vs 8 spaces indent". Not very good tho, since they seem to add superfluous indent levels like a separately indented "then" after "if" (Pascal), which effectively doubles the actual indent of the semantic block.
Re: Experiment: Unit testing isn't enough; You need static types, too
#7Interesting, but worth remembering, as Rich Hickey says, every bug has got past both your unit tests and your type checking.
Re: Experiment: Unit testing isn't enough; You need static types, too
#8If a whole program has 1 bug due to being implemented with dynamic types over static types, and that bug has gone unnoticed, then it can't be particularly important.
The other common proposition is that dynamically typed languages are faster to write in than statically typed languages. If this is true then we need to compare the saving in development time with the cost of the bugs which go undetected.
My gut feeling says that this line of analysis is never going to prove that static typing in inherently "better".
Re: Experiment: Unit testing isn't enough; You need static types, too
#9Re: Experiment: Unit testing isn't enough; You need static types, too
#10After over ten years working in dynamic languages I'm very happy to have a compiler on my side again.