In this chapter, we saw how to apply some of the advanced concepts of the Scala programming language in order to tackle problems that commonly emerge in actual software projects. We looked at the lens design pattern, where we also had our first encounter with the brilliant Scalaz library. We saw how to implement dependency injection without any extra libraries in Scala, and what it is used for. We also learned how we can write extensions to the libraries which we don't have any modification access for. Last but not least, we looked at the type class design pattern, lazy evaluation in Scala, partial functions (also known as function currying), duck typing, memoization, and implicit injection. By now, you should have quite an extensive knowledge of the language possibilities of Scala as well as design patterns, which can be used together to write exceptional software...
Scala Design Patterns - Second Edition
By :
Scala Design Patterns - Second Edition
By:
Overview of this book
Design patterns make developers’ 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’ll learn about the various features of Scala and will 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 and latest features of Scala while using practical real-world examples. We will be learning about IDE’s and Aspect Oriented Programming. We will be looking into different components in Scala. We will also cover the popular "Gang of Four" design patterns and show you how to incorporate functional patterns effectively. The book ends with a practical example that demonstrates how the presented material can be combined in real-life applications. You’ll learn the necessary concepts to build enterprise-grade applications.
By the end of this book, you’ll have enough knowledge and understanding to quickly assess problems and come up with elegant solutions.
Table of Contents (14 chapters)
Preface
Free Chapter
The Design Patterns Out There and Setting Up Your Environment
Traits and Mixin Compositions
Unification
Abstract and Self Types
Aspect-Oriented Programming and Components
Creational Design Patterns
Structural Design Patterns
Behavioral Design Patterns – Part One
Behavioral Design Patterns – Part Two
Functional Design Patterns – the Deep Theory
Applying What We Have Learned
Real-Life Applications
Other Books You May Enjoy
Customer Reviews