Top "Design-patterns" questions

A design pattern is a general reusable solution to a commonly occurring problem in software design.

What is dependency injection?

There have been several questions already posted with specific questions about dependency injection, such as when to use it and …

design-patterns language-agnostic dependency-injection terminology
C++ Singleton design pattern

Recently I've bumped into a realization/implementation of the Singleton design pattern for C++. It has looked like this (I …

c++ design-patterns singleton
What is the difference between MVC and MVVM?

Is there a difference between the standard "Model View Controller" pattern and Microsoft's Model/View/ViewModel pattern?

model-view-controller mvvm design-patterns
What is Inversion of Control?

Inversion of Control (IoC) can be quite confusing when it is first encountered. What is it? Which problem does it …

oop design-patterns inversion-of-control
What is so bad about singletons?

The singleton pattern is a fully paid up member of the GoF's patterns book, but it lately seems rather orphaned …

design-patterns singleton
Difference between static class and singleton pattern?

What real (i.e. practical) difference exists between a static class and a singleton pattern? Both can be invoked without …

design-patterns static singleton
Examples of GoF Design Patterns in Java's core libraries

I am learning GoF Java Design Patterns and I want to see some real life examples of them. What are …

oop design-patterns java
What are MVP and MVC and what is the difference?

When looking beyond the RAD (drag-drop and configure) way of building user interfaces that many tools encourage you are likely …

user-interface model-view-controller design-patterns terminology mvp
What is an efficient way to implement a singleton pattern in Java?

What is an efficient way to implement a singleton pattern in Java?

java singleton design-patterns
Is there a simple, elegant way to define singletons?

There seem to be many ways to define singletons in Python. Is there a consensus opinion on Stack Overflow?

python design-patterns singleton