A design pattern is a general reusable solution to a commonly occurring problem in software design.
I recently came across this article on how to write a singleton in Node.js. I know the documentation of …
javascript node.js design-patterns singletonMost of the definition says: An abstract factory provides an interface for creating families of related objects without specifying their …
design-patterns abstract-factoryI'm a software developer. I love to code, but I hate databases... Currently, I'm creating a website on which a …
mysql database design-patterns database-designConsider the below two diagrams. The top one contains a plain arrow at the right end, and the bottom one …
design-patterns uml class-diagramI am under the impression that Spring AOP is best used for application specific tasks such as security, logging, transactions, …
java spring design-patterns aspectj spring-aopI've been reading about the OCP principal and how to use the strategy pattern to accomplish this. I was going …
java c# design-patterns strategy-patternI was looking at the Proxy Pattern, and to me it seems an awful lot like the Decorator, Adapter, and …
design-patterns decorator bridge proxy-patternThis is related to a chapter from beautiful code. And in that chapter I read about the nested ifs. The …
algorithm design-patterns nestedI am confused with this code below, Developer devCopy = (Developer)dev.Clone(); Clone method of Developer class just creating a …
c# design-patterns prototype cloneWhat are the differences between the Strategy design pattern and the State design pattern? I was going through quite a …
design-patterns strategy-pattern state-pattern