Design principles for a better life!

No this is not an “art of living” post where I talk about how you can improve your life with doing more yoga and taking less stress :). I rather wanted to focus on how to reduce the impact of changes in the software system and elaborate the design principles that help reduce the re-work…

1

Implementing Singleton using .NET Framework

Leveraging the .NET Framework features (sealed class and read-only properties) to implement the Singleton pattern in a thread safe manner.     The Singleton Class     using System; using System.Collections.Generic; using System.Text;     namespace SingletonUsingDotNetFramework { //Create a sealed class so it cannot be derived sealed class Singleton { private Singleton() { }…

0