
Design Patterns Part 1 – You Create Me!
Coding Blocks
00:00
You've Got a Singleton, Right?
You're saving memory as well, right? But yeah, but also, and also not only the memory problems. If you had multiple objects are trying to write to the same file, then you could get into IO concurrency issues too. logging is an off an example that you will often see in regards to, well, why would I want a singleton? Well, another place is like database connections.
Transcript
Play full episode