Originally posted by Maris Orbidans: But scala is not being used very often in real life.
That's what all the C++ folks said in 1997. Someone has to be first.
And unlike a lot of new languages, since Scala uses the JVM and proven Java libraries, there is not much risk. If Scala turns out to be a bad idea, its not that big a deal to just implement the code in Java.
I don't know if Scala is the answer, but its clear that Java is on the downside of its life cycle.
Originally posted by Maris Orbidans: Do you plan to switch from Java to scala ?
I'd like to do it. But scala is not being used very often in real life.
Honestly, if someone in Columbus in 2009 were planning a project to use Scala, there's a good chance I'd try to get involved, assuming I'd have a decent enough grasp on the language by then that I'd feel I could provide value to the business.
Books on shelves at the bookstore will help to validate the language. Then it's up to us hobbyists to evangelize its wonders to the world.
I don't think I'd call it "switching" to Scala even if I spent the next 5 years in it professionally. I did a lot of Groovy work in 2008 but I still call myself a Java guy because that is my platform of choice. At any rate, I learned Groovy because it was fun. Getting to use it professionally was simply an unexpected joy. I'm approaching Scala the same way - it's teaching me to think about programming in ways I never have before and that makes it fun.
Ah, so great to see JavaRanch is feature a Scala forum topic! This is great!
I own a copy of PiS too, and I can tell you guys that it's pretty good. It give you reason behind some of the choices they made on the language construct and the usage of frequent collection classes. It definitely gives you the feel of Scala after reading it.
If you can't use Scala in real work, then just learning the language will teach you at least what Funtional programming is about. Of course Scala still let you do all the OO things, but the functional parts are really useful to pick up. After you learned it, you just wish Java would add some of it features to it's JDK too.
Enjoy the book and happy Scala programming!
Zemian [ December 20, 2008: Message edited by: Zemian Deng ]
Yeah, scoff all you want. All languages have life cycles, flow into and out of fashion. Some last longer than others. Java has had ten years, that's a pretty good run, and I'm not claiming its life is over. yet.
You heard it here first!
I have no feel for whether or not Scala is the answer. Or even whether a FP or procedural language is better. And it could just be Java-2, for some yet undefined definition of Java. But at some point, backward compatibility is going to kill it, and things like @annotations aren't going to fix the problem. I'm working my way through Stripes, and the code doesn't even feel like Java. The end is near.
Pat, Let me relief you from the suspense you have: Java (VM + language) isn't going any where, it is only the community that began to understand/appreciate that the JVM is able to run languages other than Java. Java is a multi-billion industry, it is not going to vanish, not to mention the "nuclear winter" over other languages which caused by Java. Your application needs scripting? Groovy You miss your LISP structures? Clojure Crazy about Erlang concurrency model? Scala You are math maniac? Jaskell Personally, I think many next major Java applications will be "languages cocktail". Java and Scala for critical and core parts Groovy for presentation tier And maybe Clojure if you want to show your manager that you still have shenanigans under your sleeves. Why Annotations don't feel like Java? does XML feels like Java? I'm not trying to offend you Pat, it is just my opinion
Originally posted by Gabriel Claramunt: I actually have one question: how different is the Scala book from the material already available in the Scala web site?
There's more and it's in one place without repeating the basics over and over and over. My biggest frustration with the Scala online documentation is that the many little tutorials all have some unique info but they all also do the whole Hello World stuff. It's nice to have a book to go chapter by chapter and constantly be reading relatively fresh content.
My only major complaint with the book at the moment is that it sometimes throws in a "Duh!" statement - by that I mean extremely short expanations for extremely basic programming concepts. They're a bit distracting when you're expecting a more advanced level and I seriously doubt anyone new to programming would be able to start with this book and Scala and have much of a clue what in the world is going on anyway.
If nothing else, with the book I'm learning a few good places to start exploring the languages a little deeper. [ December 22, 2008: Message edited by: Marc Peabody ]