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.
Overview
Syllabus
Retiring the Singleton Pattern, Concrete Suggestions for What to Use Instead - Pete Muldoon ACCU 21
Taught by
ACCU Conference