Praxis Scala
The first time I looked at the Scala language I just thought “No way!” – years of Java made the syntax unsightly to me and not palatable on first sight. I just didn’t want that!
But functional programming was intriguing virgin soil. And the more I approached it, the more was I willing to give the Scala language a chance to prove itself.
A big plus in contrast to other languages on the Java Virtual Machine: Scala not only is functional but also has an object oriented approach! So, for the general Java developer like me there is – for a start – no need to rethink all long evolved concepts and patterns in software development. You just inherit and implement happily as you did before, just the language is another. But then come the moments: “This could be designed differently.” or: “That would perfectly fit a trait (aka implemented interface).”
You get used to the concise syntax of Scala with time, writing goes off hand naturally and the code is much more readable than Java in the end. You’re not dismissed commenting and testing your code with Scala, either. But with the infering type system the source code is much more clearly laid out (bad writing habit can do harm, though).
Enthusiasm can be contagious. I’m going to spread the word and am writing a book on that topic: “Praxis Scala” is the current working title, to be published next midyear at the Hanser Verlag. It will be in German, but who knows, maybe there’ll be a translation of it one day. I’ll focus on the Java developers willing to take a step further and advance in their programming skills. There are quite a few traps and pitfalls one stumbles over when coming from Java – not everyone has to learn it the hard way.
I’ll keep you posted on the progress here, stay tuned!
Scala simply brings back fun to programming!
— Jan.
Tags : Book, Java, Programming, Scala
5 Responses to “Praxis Scala”
said on November 28th, 2008 at 13:52
Sounds great! I think Scala is a nicely designed language but lacks basic things like stable IDE support and support for GUI designers which make it impractical for daily usage. Do you plan on covering those aspects as well?
Btw…I think I should start working on a GtkScala binding
said on November 28th, 2008 at 14:31
Hi Daniel,
the lack of stable IDE support is really somewhat annoying, although especially IntelliJ IDEA and NetBeans are developing Scala support in an amazing pace. Most people are missing refactoring support the most which keeps them decide against Scala – IMHO not really a strong point.
On the GUI: I don’t think I’ll cover that cause neither ScalaSwing nor ScalaFX are a) final releases yet and b) would be reasons to change over to Scala.
Best regards, — Jan.
said on November 28th, 2008 at 22:04
Grossartig!
Stephan
–
Blog at http://www.codemonkeyism.com
said on Mai 7th, 2010 at 13:15
Hi Jan,
which web framework have you been using in your scala projects? Is Wicket still your best joice?
Peter
said on Mai 7th, 2010 at 13:23
Hi Peter,
yeah, Wicket is still my favorite. I have tried Lift as well, but I like the component model of Wicket way better – it’s just easier to re-use and the co-working with Java devs is also a plus.
Best regards, — Jan.
Leave a Reply