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

Writing a complete application


So far in the book we've seen a lot of examples. Some of them were quite complete, while others were meant to demonstrate only a specific part of what we were looking at. In real applications, it is most likely that you will have to combine multiple design patterns that we went through. In order to do so properly, it is important that the requirements are understood well. In the following subsections, we will provide the application specifications and then we will go step-by-step through actually writing the application. The amount of code we write will be a lot, so we will focus on the more important parts of our application and we might skip some other parts.

Application specifications

Before doing anything, we must always have some specifications. Sometimes these specifications are not entirely clear, and it is our responsibility to make sure everything is detailed enough for us to understand and achieve them. However, in actual software engineering process...