Michael Long
Aug 12, 2022

--

Design patterns are ways to think about solutions to a problem. If you're ever written code to map one interface or API to another, standardized interface, then, Hey Presto! You've written an adaptor.

Written code to simplify the interface presented to another object. Facade.

Written a singleton service to... well. Yeah. Singleton.

Used RxSwift or Combine? Observer. (iOS examples)

Builders. Factories. Strategies. The patterns are there in almost any code, OOP or not.

--

--

Michael Long
Michael Long

Written by Michael Long

I write about Apple, Swift, and SwiftUI in particular, and technology in general. I'm also a Lead iOS Engineer at InRhythm, a modern digital consulting firm.

No responses yet