O'Reilly logo

Pragmatic Scala by Venkat Subramaniam

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

More with Less

One of the first differences you’ll find as you ease into Scala is that you can do more with a lot less code in Scala than in Java. The conciseness and expressiveness of Scala will shine through every line of code you write. You’ll start applying Scala’s key features and soon they’ll make your routine programing quite productive—Scala simplifies everyday programming.

To get a taste of Scala’s power and its benefits, let’s look at a quick example where we make use of many of the features. Even though the syntax may appear unfamiliar at this time, key in the code and play with it as you read along. The more you work with the code, the quicker it becomes familiar.

If you’ve not installed Scala yet, please see Appendix 1, Installing ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required