Book description
Learn how to write efficient, clean, and reusable code with Scala
About This Book- Unleash the power of Scala and apply it in the real world to build scalable and robust applications.
- Learn about using and implementing Creational, Structural, Behavioral, and Functional design patterns in Scala
- Learn how to build scalable and extendable applications efficiently
If you want to increase your understanding of Scala and apply design patterns to real-life application development, then this book is for you.Prior knowledge of Scala language is assumed/ expected.
What You Will Learn- Immerse yourself in industry-standard design patterns—structural, creational, and behavioral—to create extraordinary applications
- See the power of traits and their application in Scala
- Implement abstract and self types and build clean design patterns
- Build complex entity relationships using structural design patterns
- Create applications faster by applying functional design patterns
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.
Style and approachThe design patterns in the book are explained using real-world, step-by-step examples. For each design pattern, there are tips on when to use it and when to look for something more suitable. This book can also be used as a practical guide, showing you how to leverage design patterns effectively. We've designed the book to be used as a quick reference guide while creating applications.
Table of contents
- Title Page
- Copyright and Credits
- Packt Upsell
- Contributors
- Preface
-
The Design Patterns Out There and Setting Up Your Environment
- Design patterns
-
Design pattern categories
- Creational design patterns
- Structural design patterns
-
Behavioral design patterns
- The value object design pattern
- The null object design pattern
- The strategy design pattern
- The command design pattern
- The chain of responsibility design pattern
- The interpreter design pattern
- The iterator design pattern
- The mediator design pattern
- The memento design pattern
- The observer design pattern
- The state design pattern
- The template method design pattern
- The visitor design pattern
- Functional design patterns
- Scala-specific design patterns
- Choosing a design pattern
- Setting up the development environment
- Summary
- Traits and Mixin Compositions
- Unification
- Abstract and Self Types
- Aspect-Oriented Programming and Components
-
Creational Design Patterns
- What are creational design patterns?
- The factory method design pattern
- The abstract factory
- Other factory design patterns
- Lazy initialization
- The singleton design pattern
- The builder design pattern
- The prototype design pattern
- Summary
- 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
Product information
- Title: Scala Design Patterns - Second Edition
- Author(s):
- Release date: April 2018
- Publisher(s): Packt Publishing
- ISBN: 9781788471305
You might also like
book
Scala Design Patterns
Write efficient, clean, and reusable code with Scala About This Book Unleash the power of Scala …
book
Scala Functional Programming Patterns
Grok and perform effective functional programming in Scala About This Book Understand functional programming patterns by …
book
Functional Programming in Scala
Functional Programming in Scala is a serious tutorial for programmers looking to learn FP and apply …
book
Scala Test-Driven Development
Build robust Scala applications by implementing the fundamentals of test-driven development in your workflow About This …