
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.
Transcript
Play full episode