Video from Geekific on YouTube

Describe the intent, structure and consequences of the Singleton pattern, including thread-safety concerns and why overuse makes it an anti-pattern.

Why this video

This video explains the core intent and structure of the Singleton pattern and walks through naive lazy initialisation and thread-safe implementation strategies.

Part of this line

Covers part of this objective. It leaves out: It does not explain the architectural consequences of the pattern, such as testing and coupling issues, or why overuse makes it an anti-pattern.

Heads up

It covers Java-specific techniques such as Bill Pugh static inner classes and enum singletons that go beyond the course's canonical double-checked locking idiom.

Make a free account to try this line.