← Back to home

Guido on Scala

Guido took a look at Scala recently and he came out a bit intimidated by the language, which matches my perception. I initially started with quite a lot of fondness for Scala but as I dug deeper in the language, the complexity and a few specific features started to worry me.

I have been following the Scala mailing-list for a few years now and the snippets of code I read on a daily basis have been increasingly complex and frightening, and it’s taking me more and more time to make sense of them. Not a good sign.

Anyway, read Guido’s take and especially the comments. Here is one I found particularly interesting, from David Pollak, the creator of Lift_:

But, unlike my Ruby code, [with Scala] I only need 50%-60% test coverage (vs. 95% coverage) to have stable, deployable code.

This is an angle that I have often been defending in the debate that pits statically against dynamically typed languages, but it’s the first time that I come across such strong evidence.

Comments (10)

Alex

Would the missing link be to (HTTP) neopythonic.blogspot.com/2008/11/scala.html

Ian Phillips

Where by strong, you presumably mean anecdotal...

Frank

Where by evidence, you mean unsubstantiated claim

Sam

And here I thought you should have 90+% coverage for code regardless of language. Silly me.

Ignacio Coloma

Hmmm. Two witty remarks and someone who thinks that 90% code coverage is a town where everybody lives. Talk about outstanding rebuttal. +1 to the group that thinks that ruby is harder to debug than java (just because I lack proper tools) and requires more tests that I would have to maintain.

Stefan

Hi Cedric, are there any plans to support other languages on Android? (Not necessarily Scala) Stefan

Ricky Clarkson

"the snippets of code I read on a daily basis have been increasingly complex and frightening, and it's taking me more and more time to make sense of them." Perhaps that's a sign of an increasingly diverse user base. Do you write any Scala code, Cedric?

Ankur

How to contact you cedric..whats your mail id..I need to ask some problem

Tony Morris

"...it's taking me more and more time to make sense of them. Not a good sign." We live in a day and age where if one fails to understand a concept, it is the fault of the concept. How incredibly sad.

roger

what about python and the 50 versus 90% code coverage?