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

Functional Programming

Functional programming (FP) has been around for decades, but it’s finally gaining much needed traction. If you’ve mostly done OOP it’ll take some effort to get comfortable with FP, but Scala eases the burden quite a bit.

The nature of Scala being a hybrid language—we can write in both imperative and functional style—can be a blessing and a curse. It’s a blessing because when writing code in Scala, we can make it work and make it better. Programmers new to FP can initially write code in imperative style and refactor it to functional style. Also, if a particular algorithm will truly benefit from an imperative implementation, we can easily code that in Scala. However, it could be a curse if teams use this flexibility to arbitrarily ...

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