Fresh Swift
  • About
  • Tags
Fresh Swift

#singleton


Avoiding singletons in Swift

John Sundell makes his case for why we should avoid using singletons. John first describes why singletons are bad, and then demonstrates some techniques to help us avoid them. Although I do agree that singletons sometimes present their own set of problems, I am not on the side of avoiding them completely. When used with care, they sometimes can be a valid solution.

Posted on October 19, 2017

#singleton 

Writing better singletons in Swift

Singletons, whether loved or loathed, are a fact of software development. This is especially evident in iOS development, where they are used in many of the frameworks. In this post, Jesse Squires looks at why singletons sometimes are the right choice, and provides some guidance on how to create singletons the right way.

Posted on June 5, 2017

#singleton  #iOS 

 •  2021  •  Fresh Swift

Hugo v0.82.0 powered  •  Theme by Beautiful Jekyll adapted to Beautiful Hugo