Thoughts on System Design, software, life and more. Short notes and longer write-ups.
Most thread-safe singleton examples online are correct—but not optimal. Learn the hidden cost of locking every access and why Lazy<T> is the better choice.