Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Retiring the Singleton Pattern - Concrete Suggestions for What to Use Instead

ACCU Conference via YouTube

Overview

Explore concrete alternatives to the Singleton pattern in large codebases through this ACCU Conference talk. Learn how to replace Singleton implementations with explicitly passed wrapper classes, enabling dependency injection and improved testability. Discover techniques for maintaining ABI stability, handling non-copyable types, managing delayed construction, and addressing Singleton dependency groupings. Gain insights into resolving initialization order issues for interdependent Singletons and implementing a gradual transition strategy for large-scale refactoring. Benefit from real-world examples of successful Singleton replacements at Bloomberg, demonstrating practical solutions for scenarios where developers previously saw no feasible alternatives.

Syllabus

Retiring the Singleton Pattern, Concrete Suggestions for What to Use Instead - Pete Muldoon ACCU 21

Taught by

ACCU Conference

Reviews

Start your review of Retiring the Singleton Pattern - Concrete Suggestions for What to Use Instead

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.