From 8b5f532a50923cb334b06dd7507126f3572af4d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ilkka=20Sepp=C3=A4l=C3=A4?= Date: Sun, 6 Sep 2020 19:55:38 +0300 Subject: [PATCH] Update README.md --- factory/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/factory/README.md b/factory/README.md index 5fd97ccae..8983f393c 100644 --- a/factory/README.md +++ b/factory/README.md @@ -118,10 +118,12 @@ Use the Simple Factory pattern when you only care about the creation of a object and manage it. Pros + * Allows keeping all objects creation in one place and avoid of spreading 'new' key value across codebase. * Allows to writs loosely coupled code. Some of its main advantages include better testability, easy-to-understand code, swappable components, scalability and isolated features. Cons + * The code becomes more complicated than it should be. ## Related patterns