BP17: Don't use singleton. It's an anti-pattern

Singletons can't be easily replaced by different implementation. Dependency injection with object life-iime control is way better solution.

Comments

Anonymous
Spelling

Download Better Coder application to your phone and get unlimited access to the collection of enterprise best practices.

Get it on Google Play