The Worst Design Pattern in iOS Dev



The Worst Design Pattern in iOS Dev

The Worst Design Pattern in iOS Dev

Go to https://squarespace.com/seanallen to save 10% off your first purchase of a website or domain using code SEANALLEN.

The Singleton design pattern in iOS development has a bad reputation. Many developers say to never use a Singleton, but I don’t agree. A Singleton is a tool that can be used correctly or poorly. In this video you will learn what a Singleton is, the pros and cons of using them and how to create a Singleton.

My iOS Dev Courses:
https://seanallen.teachable.com/

iOS Developer Interview Questions Playlist:
https://www.youtube.com/playlist?list=PL8seg1JPkqgF5wazzCKSq3EEfqt3t8mvA

Twitter:
Sean Allen – https://twitter.com/seanallen_dev

Hired.com:
https://hired.com/x/1n01g

Book and learning recommendations that help out the channel if you decide to purchase (Affiliate Links):

Paul Hudson’s Hacking With Swift:
https://gumroad.com/a/762098803

Donny Wals – Combine:
https://gumroad.com/a/909014131

Mark Moeyken’s SwiftUI Books:
www.bigmountainstudio.com/swiftui-views-book/fzc51

Objc.io Books (Thinking in SwiftUI & Advanced Swift):
https://gumroad.com/a/656585843

#swift #softwaredeveloper #iosdeveloper

Timestamps:
0:00 – Is it really that bad?
0:17 – Example w/ UserDefaults
1:31 – Pros
2:16 – Cons
4:21 – How to create a Singleton
5:33 – It’s a Hammer

Comments are closed.