News for hackers. Stuff that matters.
Re:Economies of Scala by msluyter on Thursday April 18, 2013 @11:08AM (#5571015)
At the company I worked at previously, the case was often made that java should be used because it's easy to find java programmers. That sounds plausible, but in practice we found it very difficult to find good java programmers. Perhaps to some extent it's even harder than with other languages, because a lot of really talented people are drawn to new shiny ecosystems -- not saying java folks aren't talented, but as a java programmer myself, I see many of the most driven/passionate people wanting to get away from java.
Re:Economies of Scala by shawndumas on Thursday April 18, 2013 @11:19AM (#5571087)
Re:Economies of Scala by dopamean on Thursday April 18, 2013 @01:15PM (#5571808)
> if a company chooses to write its software in a comparatively esoteric language, they'll be able to hire better programmers, because they'll attract only those who cared enough to learn it.

I cant help but think of Jane Street Capital's use of OCaml when reading that line. From what I understand there are some extremely bright people writing fantastic code over there.

Re:Economies of Scala by trailfox on Thursday April 18, 2013 @08:33AM (#5570218)
I consider myself very fortunate to be coding in Scala. I know of many Java developers who code Java at work and wish that they could land a Scala job.
Re:Economies of Scala by pivo on Thursday April 18, 2013 @09:57AM (#5570597)
I've had only one project in Scala and in general I really liked the language. My biggest reservation about Scala though is what I consider the over-DSLy-ness of some of the Scala libraries (3rd party libraries).

In my project different source files using different libraries could almost look like different languages due to the DSLs of the libraries those source files used. Maybe it's just my lack of experience with Scala, but I dislied this because I thought it reduced readability.

Even worse is when two or more DSLs in use in the same source file conflict, for example, with their implicits. Then you may be stuck with different source files using the same library but with different syntax, one with the DSL syntax (where there were no conflicts) and one without.

I suppose this is something you get used to with Scala, but I wonder if you've run into this and if so, what your reaction to it is?

Re:Economies of Scala by sbilstein on Thursday April 18, 2013 @12:29PM (#5571501)
Luckily it seems like this is becoming a less common practice in library development in Scala. As the Scala community matures, people are starting to shy away from abusing Scala's DSL features.
Re:Economies of Scala by JPKab on Thursday April 18, 2013 @08:54AM (#5570294)
Just curious: As someone who is teaching himself Clojure at the moment, what are the advantages of Scala over Clojure?
Re:Economies of Scala by mercurial on Thursday April 18, 2013 @10:37AM (#5570811)
The type system. Performance from benchmarks appears to be better. Also, I suppose that interaction with Java code is more natural, since Scala is a weird mix of object-oriented and functional languages.

On the other hand, the compiler is extraordinarily slow.

Re:Economies of Scala by voidlogic on Thursday April 18, 2013 @10:07AM (#5570646)
All the usual benchmark disclaimers apply, but Scala appears to compare pretty favourably in the Programming Language Shootout:

http://benchmarksgame.alioth.debian.org/u64q/benchmark.php?t...

Generally Scala appears to use less time, less memory and less code. I have not ever used either so I cannot anecdotally confirm this.

Re:Economies of Scala by terhechte on Thursday April 18, 2013 @09:48AM (#5570547)
The way it combines functional programming with object oriented programming. This kinda gives you the best of both worlds (others may refer to it as 'frankensteinian' though).
Re:Economies of Scala by candybar on Thursday April 18, 2013 @12:03PM (#5571341)
People have mentioned type system, performance and closer semantics equivalence with Java, but the real advantage in the wild is that Clojure's syntax (or lack thereof) is alienating to most people.
Re:Economies of Scala by rz2k on Thursday April 18, 2013 @12:41PM (#5571581)
One advantage is the Coursera class being taught by Martin Odersky[1] right now.

[1] https://www.coursera.org/course/progfun

(Though I suppose that is like saying you should only look for your lost keys under a street lamp)

Re:Economies of Scala by kasey_junk on Thursday April 18, 2013 @09:22AM (#5570412)
The type system.
Re:Economies of Scala by jshen on Thursday April 18, 2013 @09:26AM (#5570428)
He asked for advantages ;)
Re:Economies of Scala by octo_t on Thursday April 18, 2013 @09:36AM (#5570471)
The type system.
Re:Economies of Scala by willismichael on Thursday April 18, 2013 @11:06AM (#5571006)
"I’m not against types, but I don’t know of any type systems that aren’t a complete pain, so I still like dynamic typing." -Alan Kay
Re:Economies of Scala by gtani on Thursday April 18, 2013 @12:20PM (#5571447)
Re:Economies of Scala by sbilstein on Thursday April 18, 2013 @12:33PM (#5571527)
I've been working in a Scala shop for the last year. Once you've begun to take advantage of the type systems, monads, and writing in a functional manner, Scala becomes a extremely pleasant language to work with and significantly improves productivity.
Re:Economies of Scala by ruudud on Thursday April 18, 2013 @06:06AM (#5569696)
Interesting numbers. Why do you think that Java developers are the most likely to look for other languages?
Re:Economies of Scala by JulianMorrison on Thursday April 18, 2013 @10:15AM (#5570687)
Java wants everything done in its way, and its way is painfully, needlessly verbose, and weak at expressing algorithms in a way that encourages bugs. Also Java's conventions and culture magnify its verbosity, it's popular libraries and extensions are over-engineered, and its package file format lacks versions and versioned dependencies, producing inevitable conflicts. It's slow to start up and a memory hog. Really the only advantage is that it's fast.

The other JVM languages reduce some of its flaws. Go, I have found, avoids them all.

Re:Economies of Scala by trailfox on Thursday April 18, 2013 @08:21AM (#5570159)
Mostly because the Java syntax has remained (mostly) unchanged since September 2004. Java 8 will change that, but it's still a far cry from what's available in Scala.
Re:Economies of Scala by rohshall on Thursday April 18, 2013 @06:11AM (#5569715)
Most probably because Java is verbose and does not support some simple concepts like functions.
Re:Economies of Scala by Ingon on Thursday April 18, 2013 @06:57AM (#5569842)
Thats does not sound like the whole truth. I would guess that Java long ago lost its sexiness - now everybody and everything uses Java. The other problem is that now there is vast amount of legacy code. By choosing Scala you are actually eliminating that from the equation.
Re:Economies of Scala by mercurial on Thursday April 18, 2013 @02:14PM (#5572138)
The fact that it failed to evolve for so long, unlike c#, doesn't help.
Re:Economies of Scala by taeric on Thursday April 18, 2013 @10:36AM (#5570804)
I disagree with the other responses at the basic level. I think this is a simple supply/demand response. There is an over supply of Java developers. This means that many of them are looking to alternative languages to differentiate their own skills for others. This is particularly true among Java "leadership." Where the heads of the languages have been increasingly visible in other languages.
Re:Economies of Scala by KentBeck on Thursday April 18, 2013 @10:47AM (#5570877)
That's an interesting reversal of the logic in the paper. I assumed that the programmers looking for the next cool languages were doing so in pursuit of novelty and not doing it for economic reasons. I wonder how you could empirically support one or the other hypothesis.
Re:Economies of Scala by taeric on Thursday April 18, 2013 @01:38PM (#5571926)
Well, sadly, I basically have no idea on how to explore my thought here. Really, all I have are some platitudes. "Go where the money is," combined with "Don't go where everyone else is going."

So, yeah, I would be curious on how to support either hypothesis, as well. Best I could think would be to track job listings. While I think you will get a few folks doing things for the novelty and to make it work. I think the majority entering an industry are chasing the buck the last success made.

Re:Economies of Scala by candybar on Thursday April 18, 2013 @12:08PM (#5571366)
Because the ubiquity of Java means people are forced to use it.
Re:Economies of Scala by ganarajpr on Thursday April 18, 2013 @07:35AM (#5569949)
love the title of the article.. Very creative.
Re:Economies of Scala by seunosewa on Thursday April 18, 2013 @08:17AM (#5570134)
A more meaningful title - e.g. My Business Case For Scala - would probably have worked better, though.
Re:Economies of Scala by olecr on Thursday April 18, 2013 @08:54AM (#5570295)