Coding Blocks cover image

Design Patterns Part 1 – You Create Me!

Coding Blocks

00:00

Java Singleton

Singleton patterns are generally a facade for global variables and global methods. John Skeet is a fan of the static constructor version, whereas I prefer the double checked locking version. The lazy T implementation can be specific to dot net or other versions of Java. There's no cheating because you're not using them necessarily to share some values.

Play episode from 01:13:58
Transcript

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app