O'Reilly logo

Swift Functional Programming - Second Edition by Dr. Fatih Nayebi

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

OOP design patterns - a FP perspective

Design patterns describe recurring solutions to common problems in object-oriented software design. Patterns are categorized into three types:

  • Creational: design patterns that deal with object-creation mechanisms, trying to create objects in a manner suitable to the situation.
  • Structural: design patterns that ease the design by identifying a simple way to realize relationships between entities.
  • Behavioral: design patterns that identify common communication patterns between objects and realize these patterns. By doing so, these patterns increase flexibility in carrying out this communication.

This section introduces some OOP design patterns on a very high level, as well as the FP counterparts:

  • Strategy ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required