Barriers to scala adoption(infoq.com) |
Barriers to scala adoption(infoq.com) |
I'm glad he at least mentioned Fantom. I haven't done much other than play around with it, but it seems like a much prettier "better" Java than a lot of the other contenders. I've never understood why it hasn't "caught on." Maybe he's right, maybe it just isn't different enough to be compelling.
Basically, for JVM environment you have a lot of noisy judgments around language uptake: the big 4 (scala, JRuby, groovy, clojure) and the little 3 (Ceylon, kotlin, gosu).
One of its greatest features require a meaningful rethink of the JEE stack. Actors passing messages seems to not really work in a one thread to one request world where you should fork new threads.
There are too many ways to do the same thing in it. Manipulating maps or list can be done with various features of the collection library. This becomes the Java version of Perl. Some developers will use $_, some prefer variables and they each prefer their own ways. It can make it hard for one developer to pick up where the other left off.
Finally, the documentation seems to be more complicated than necessary. The Scala version of JavaDoc available on their site is almost a difficult to navigate as MSDN. From here we go to the books about Scala. These take careful reading to glean even the most basic structures (took me a while to figure out that the primary constructor is all of the lines between the {} of a class that isn't encapsulated by a method declaration).
Then don't use Actors, you can still use the rest of the language and you're still a lot better off than Java.
There are too many ways to do the same thing in it. ... This becomes the Java version of Perl.
Problems that only manifest once you have a large code base aren't barriers to adoption. Mainstream languages would be a lot better if they were! After all, Perl became widely adopted, so this didn't hurt Perl from being adopted and may even have helped.
Finally, the documentation seems to be more complicated than necessary.
I agree, and this is a problem for adoption right now. The documentation is the opposite of K&R's book on C. However, this can change easily, since third parties can write books about Scala. It's not like changing a language feature, where it takes a committee 10 years to actually make the change. Anyone can write a book, and we're starting to see that: the O'Reilly book on Scala is a really good introduction.
Ye Gods. Of course it is. If your code base is small you can pretty much get away with using anything. It's only when the code base is large enough to make maintenance challenging that differences between code paradigms start to matter.
If scala is only good for the sorts of projects PERL can handle, why would I stop using PERL?
I'm sure my use of Scala would disappoint the first interviewee, but it was an effective use-case for me. Use the index on the book to scan for likely topics, then round things out with Google.
I found the IDE support a bit broken in NetBeans (6.9). I suspect that the Scala plugin was incompatible with my vi/vim plugin, but I'm not sure. (it would go into a mode where the editing keys would stop working)
Keep up the good work !
You seem to be implying they all are ugly, as if mainstream languages are chosen for their beauty?
I would argue that Scala helps to keep your code base smaller and easier to manipulate (due to extra type safety). In any language, a big codebase needs coding standards and the project develops it's own "culture". You have the same multiple approaches problem in Java: how do you search for items in a collection?
I have yet to run into a project for which the use of Java is too complicated, and I'm concerned the designers of Scala have made a few mistakes of the kind you see in C++, like operator overloading.