Skip to content
0:00 / 0:00

#singletonpattern#dependencyinversion#swift

Careful With “Singleton” Lookalikes (WAY TOO COMMON)

Essential Developer

40K subscribers • 3 videos on Hallway

YouTube
  • Recommended by 1 person: 1 in engineering communities.
  • May be out of date. Uploaded 7 years ago, in an area where tools change fast.
  • An opinion. It argues one side of a question engineers disagree on.

Intermediate. Assumes working knowledge.

16K views7 years ago1 recommendation

Software designMobile developmentDesign patternsSoftware architectureiOS and SwiftUI

An explanation of the good and bad traits of the Singleton pattern and how dependency inversion can protect your systems.

★ Register Now to Our Free iOS Career Course! essentialdeveloper.com/courses/career-and-market-strategy-fo… Subscribe to our channel: youtube.com/essentialdeveloper?sub_confirmation=1 Have you ever been told that Singleton is an anti-pattern? Well, Singletons can be ok, but if you are not careful, they aren’t just an anti-pattern. THEY CAN BE DANGEROUS! In this episode, we discuss the good and bad traits of the Singleton pattern, its common benefits and pitfalls, and showcase how dependency inversion can help us protect our systems in 4 simple steps. Read more: essentialdeveloper.com/articles/careful-with-singleton-looka… • Gist: gist.github.com/caiozullo/547ed5483221e6cb9509e4134cb1ce09 ★ Professional iOS Engineering Series Take your skillset to the next level and boost your career essentialdeveloper.com/professional-ios-engineering-series ★ Download our new app You can download Neat Trivia from the App Store today at itunes.apple.com/app/id1253119287. Connect with us on: • Website: essentialdeveloper.com • Twitter: twitter.com/essentialdevcom • Facebook: facebook.com/essentialdeveloper

Why it's here

1 person recommends this

What people say. Recommended as a crucial resource for understanding design patterns and architecture in iOS.

u/Adrimi1in r/swift • Recommends

On “Must know Concepts for Jr. iOS Devs”

1. Lifecycle of view controllers 2. Delegate pattern - its easy, really :) and very repaying 3. App architecture is a broader topic than UI Design Pattern itself. What's suprised me that I and most of iOS devs on beginning though that MVVM or VIPER are all the things in projects. I really recommend you take a look on it (and whole channel) [video 4. Struct vs Class, eternal fight for a right :) 5. Singletons - we should use it anyway, but just be very cautious. 99% of any app is connecting to the network API anyway, so take a look [video 6. And some bonus - learn what is: git add/commit/push/fetch/pull/checkout and "DO NOT PUSH ON DEVELOP" :)