O'Reilly logo

Scala Functional Programming Patterns by Atul S. Khot

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

Chapter 11. It's a Paradigm Shift

We have come a long way, dear reader, having dabbled with many Scala features. Hopefully, it was an exciting and fruitful journey. All along, we witnessed a novel approach to the programming process. Scala provides startlingly unconventional ways to help us become more effective. Ultimately, we have witnessed a fundamental change in approach, a paradigm shift.

What we need to do remains mostly the same, though. The idea is to cut down the boilerplate and write code at a higher level of abstraction, for example, the need to pass around bits of code, as a comparator to sort things. We will see how the functional way makes sorting a snappy affair.

Java code is pretty verbose when we compare it with Scala. Functions ...

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