From 6a6b1bbeeaad518ef5eb346fde7d1f1a950a54e5 Mon Sep 17 00:00:00 2001 From: Dominik Liebler Date: Fri, 17 Apr 2020 13:36:04 +0200 Subject: [PATCH] no longer list Singleton and ServiceLocator as anti-pattern, still advise against it in examples --- Creational/README.md | 2 +- README.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Creational/README.md b/Creational/README.md index 3183e7d..9f0809d 100644 --- a/Creational/README.md +++ b/Creational/README.md @@ -12,5 +12,5 @@ solve this problem by somehow controlling this object creation. * [Pool](Pool) [:notebook:](http://en.wikipedia.org/wiki/Object_pool_pattern) * [Prototype](Prototype) [:notebook:](http://en.wikipedia.org/wiki/Prototype_pattern) * [SimpleFactory](SimpleFactory) -* [Singleton](Singleton) [:notebook:](http://en.wikipedia.org/wiki/Singleton_pattern) (is considered an anti-pattern! :no_entry:) +* [Singleton](Singleton) [:notebook:](http://en.wikipedia.org/wiki/Singleton_pattern) * [StaticFactory](StaticFactory) diff --git a/README.md b/README.md index 2b77eee..3ee7ddd 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ The patterns can be structured in roughly three different categories. Please cli * [Pool](Creational/Pool) [:notebook:](http://en.wikipedia.org/wiki/Object_pool_pattern) * [Prototype](Creational/Prototype) [:notebook:](http://en.wikipedia.org/wiki/Prototype_pattern) * [SimpleFactory](Creational/SimpleFactory) -* [Singleton](Creational/Singleton) [:notebook:](http://en.wikipedia.org/wiki/Singleton_pattern) (is considered an anti-pattern! :no_entry:) +* [Singleton](Creational/Singleton) [:notebook:](http://en.wikipedia.org/wiki/Singleton_pattern) * [StaticFactory](Creational/StaticFactory) ### [Structural](Structural) @@ -87,4 +87,4 @@ The patterns can be structured in roughly three different categories. Please cli * [EAV](More/EAV) [:notebook:](https://en.wikipedia.org/wiki/Entity%E2%80%93attribute%E2%80%93value_model) * [Repository](More/Repository) -* [ServiceLocator](More/ServiceLocator) [:notebook:](http://en.wikipedia.org/wiki/Service_locator_pattern) (is considered an anti-pattern! :no_entry:) +* [ServiceLocator](More/ServiceLocator) [:notebook:](http://en.wikipedia.org/wiki/Service_locator_pattern)