Skip to content

Commit 6a6b1bb

Browse files
author
Dominik Liebler
committed
no longer list Singleton and ServiceLocator as anti-pattern, still advise against it in examples
1 parent 7b847bd commit 6a6b1bb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Creational/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ solve this problem by somehow controlling this object creation.
1212
* [Pool](Pool) [:notebook:](http://en.wikipedia.org/wiki/Object_pool_pattern)
1313
* [Prototype](Prototype) [:notebook:](http://en.wikipedia.org/wiki/Prototype_pattern)
1414
* [SimpleFactory](SimpleFactory)
15-
* [Singleton](Singleton) [:notebook:](http://en.wikipedia.org/wiki/Singleton_pattern) (is considered an anti-pattern! :no_entry:)
15+
* [Singleton](Singleton) [:notebook:](http://en.wikipedia.org/wiki/Singleton_pattern)
1616
* [StaticFactory](StaticFactory)

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ The patterns can be structured in roughly three different categories. Please cli
5151
* [Pool](Creational/Pool) [:notebook:](http://en.wikipedia.org/wiki/Object_pool_pattern)
5252
* [Prototype](Creational/Prototype) [:notebook:](http://en.wikipedia.org/wiki/Prototype_pattern)
5353
* [SimpleFactory](Creational/SimpleFactory)
54-
* [Singleton](Creational/Singleton) [:notebook:](http://en.wikipedia.org/wiki/Singleton_pattern) (is considered an anti-pattern! :no_entry:)
54+
* [Singleton](Creational/Singleton) [:notebook:](http://en.wikipedia.org/wiki/Singleton_pattern)
5555
* [StaticFactory](Creational/StaticFactory)
5656

5757
### [Structural](Structural)
@@ -87,4 +87,4 @@ The patterns can be structured in roughly three different categories. Please cli
8787

8888
* [EAV](More/EAV) [:notebook:](https://en.wikipedia.org/wiki/Entity%E2%80%93attribute%E2%80%93value_model)
8989
* [Repository](More/Repository)
90-
* [ServiceLocator](More/ServiceLocator) [:notebook:](http://en.wikipedia.org/wiki/Service_locator_pattern) (is considered an anti-pattern! :no_entry:)
90+
* [ServiceLocator](More/ServiceLocator) [:notebook:](http://en.wikipedia.org/wiki/Service_locator_pattern)

0 commit comments

Comments
 (0)