Re:Why Scala seems difficult but really isn’t
by fogus on Wednesday June 22, 2011 @09:29AM
(#2682992)
There are a handful of commercial success
stories with Scala
Correction: There are a handful of commercial success stories with Scala made public. There are companies trying to solve hard problems with Scala that are not necessarily interested in language advocacy.
Re:Why Scala seems difficult but really isn’t
by bad_user on Wednesday June 22, 2011 @09:15AM
(#2682950)
small team could build something fiendishly clever in
Scala that's maybe 2,000 lines of code that does the
work of 20,000 lines of code
I actually provoke you to pick a language, any language other than assembler, and write a piece of software with both languages, of reasonable complexity (no micro-benchmarks shit), as concise as you can.If the source-code in Scala is at least 3 times smaller, I'll buy you a drink.
Re:Why Scala seems difficult but really isn’t
by jeswin on Wednesday June 22, 2011 @11:06AM
(#2683426)
I work as a consultant in Bangalore; most of my daytime job involves reviewing projects (for code quality). I see about 8-10 projects a month (Java/.Net).
There are projects which are just bad, let's ignore those. Those which can be classified as maintainable, are well structured and object-oriented, they abstract implementations behind interfaces etc.
But, they are verbose. I could probably accomplish the same thing in about 3x less code using FP/declarative constructs.
Reminds me of Yegge's Kingdom of Nouns; it is a funny read if you haven't read it yet.
Re:Why Scala seems difficult but really isn’t
by TylerE on Wednesday June 22, 2011 @10:09AM
(#2683153)
COBOL?
Re:Why Scala seems difficult but really isn’t
by rauljara on Wednesday June 22, 2011 @09:15AM
(#2682949)
He made his statement in the general sense, and I responded in the general sense. I don't know scala and can't speak to it. But I've heard that exact same sentiment applied to ruby (rails, specifically). But ruby has enabled huge increases in productivity for me over php. So I can safely say that the sentiment that if one is doing something fashionable one must not care about shipping, is full of shit.
Re:Why Scala seems difficult but really isn’t
by melling on Wednesday June 22, 2011 @09:20AM
(#2682962)
Yesterday on HN, someone from FourSquare said they have 150k lines of Scala.
http://news.ycombinator.com/item?id=2679041
Is it safe to assume that would be 300k-450k if written in Java?
I can definitely see how an individual or small team could build something fiendishly clever in Scala that's maybe 2,000 lines of code that does the work of 20,000 lines of code in some other language.
On the other hand, I'm not sure that systems 10x that size developed by bigger teams would succeed in Scala, and I fear for what happens when that 2,000 line Scala system falls into the hands of maintenance programmers.