This is a really cool explanation of the topic. I used to ask about singleton class on tech interviews and was surprised that only one person ever got it right. Now I could as well recommend the rest to read your post ;)
However, as far as I remember singleton classes have some performance issues. I remember samo talk by Aaron Patterson where he explained that but I can't find that right now.
Ryan is an engineer in the Sacramento Area with a focus in Python, Ruby, and Rust. Bash/Python Exercism mentor. Coding, physics, calculus, music, woodworking. Looking for work!
This is a really cool explanation of the topic. I used to ask about singleton class on tech interviews and was surprised that only one person ever got it right. Now I could as well recommend the rest to read your post ;)
However, as far as I remember singleton classes have some performance issues. I remember samo talk by Aaron Patterson where he explained that but I can't find that right now.
Interesting, I didn’t know about that. I’ll hsve to look that up, thanks!