Contents tagged with Design Patterns
Another question that gets asked during interviews is "What is the difference between a static class and a singleton?" or "When would you use a static class vs a singleton?".
The … more
The builder design pattern is often employed to make object creation more readable and understandable when your class has a big old constructor with a long parameter list. Rather than call … more
The most famous design pattern and most reviled is the singleton. Its what you can use if you want only one instance of a class. Its disliked because it violates separation of concerns … more