Book Image

Scala Design Patterns

By : Ivan Nikolov
Book Image

Scala Design Patterns

By: Ivan Nikolov

Overview of this book

Scala has become increasingly popular in many different IT sectors. The language is exceptionally feature-rich which helps developers write less code and get faster results. Design patterns make developer’s lives easier by helping them write great software that is easy to maintain, runs efficiently and is valuable to the company or people concerned. You will learn about the various features of Scala and be able to apply well-known, industry-proven design patterns in your work. The book starts off by focusing on some of the most interesting features of Scala while using practical real-world examples. We will also cover the popular "Gang of Four" design patterns and show you how to incorporate functional patterns effectively. By the end of this book, you will have enough knowledge and understanding to quickly assess problems and come up with elegant solutions.
Table of Contents (20 chapters)
Scala Design Patterns
Credits
About the Author
Acknowledgments
About the Reviewer
www.PacktPub.com
Preface
Index

Chapter 11. Functional Design Patterns – Applying What We Learned

We have already come a long way in Scala and in learning about the various design patterns in the language. Now, you should be at a stage where you are confident about when to use specific design patterns and when to avoid them. You saw some of the specifics and nice features of Scala that lead to its expressiveness. We went through the Gang of Four design patterns as well as some important functional programming concepts such as monads. Throughout the book, we have tried to keep mathematics theories to a really basic level, and we have tried to avoid some scary Greek letters in formulas that are hard to understand by non-mathematicians, who may also want to use a functional programming language to its full potential.

The aim of this and the next chapter is to look at Scala from a more practical point of view. Knowing about a language and some design patterns is not always enough for a developer to see the whole picture and...