Scala Design Patterns: Patterns for Practical Reuse and Design

Scala Design Patterns: Patterns for Practical Reuse and Design Front Cover
1 Reviews
291 pages

Book Description

Scala is a new and exciting language that is a hybrid between object oriented languages such as Java and functional languages such as . As such it has its own idioms and development styles.

Scala looks at how reuse can be successfully achieved in Scala. A major aspect of this is the reinterpretation of the original Gang of Four design patterns in terms of Scala and its language structures (that is the use of Traits, Classes, Objects and Functions). It includes an exploration of functional design patterns and considers how these can be interpreted in Scala's uniquely hybrid style.

A key aspect of the book is the many code examples that accompany each design pattern, allowing the reader to understand not just the design pattern but also to explore powerful and flexible Scala language features. Including numerous source code examples, this book will be of value to professionals and practitioners working in the field of engineering.

Table of Contents

Part I: Introduction
Chapter 1: Introduction
Chapter 2: Design Patterns
Chapter 3: UML and Scala

Part II: Fundamental Patterns
Chapter 4: Immutability
Chapter 5: Singleton
Chapter 6: Marker Trait
Chapter 7: Delegation

Part III: Code Reuse Patterns
Chapter 8: Lazy Parameters
Chapter 9: Partially Applied Functions
Chapter 10: Trait Based Template Operation
Chapter 11: Stackable Traits
Chapter 12: Currying and Code Reuse
Chapter 13: Cake Pattern
Chapter 14: Structural Injection
Chapter 15: Implicit Injection Pattern

Part IV: Gang of Four Patterns
Chapter 16: Gang of Four Design Patterns
Chapter 17: GoF Patterns Catalog
Chapter 18: Factory Operation
Chapter 19: Abstract Factory Pattern
Chapter 20: Builder
Chapter 21: Adapter Pattern
Chapter 22: Decorator
Chapter 23: Fa├žade
Chapter 24: Flyweight
Chapter 25: Proxy
Chapter 26: Filter
Chapter 27: Bridge
Chapter 28: Chain of Responsibility
Chapter 29: Command
Chapter 30: Strategy
Chapter 31: Mediator
Chapter 32: Observer
Chapter 33: State
Chapter 34: Visitor
Chapter 35: Memento

Part V: Functional Design Patterns
Chapter 36: Functor
Chapter 37: Applicative Functor
Chapter 38: Monoid Pattern
Chapter 39: Monad Pattern
Chapter 40: Foldable
Chapter 41: Zipper
Chapter 42: Lens Pattern
Chapter 43: View Pattern
Chapter 44: Arrow Pattern

Book Details

  • Title: Scala Design Patterns: Patterns for Practical Reuse and Design
  • Author:
  • Length: 291 pages
  • Edition: 2013
  • Language: English
  • Publisher:
  • Publication Date: 2013-12-06
  • ISBN-10: 3319021915
  • ISBN-13: 9783319021911