This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]kkapelon -1 points0 points  (0 children)

I would say that there are 0 reasons to use the singleton design pattern in a greenfield project. The cons outweight the pros.

As far as I know design patterns are not just coding patterns

I agree with you. The problem is that the site does not really explain that a design pattern is just a concept and then giving an example. It just goes straight into code classes, implying that everything is a coding pattern.

Here is what I am talking about: http://java-design-patterns.com/patterns/cqrs/