diff --git a/README.md b/README.md index 1ccdc835..bfc8d119 100644 --- a/README.md +++ b/README.md @@ -341,7 +341,7 @@ When there are interrelated dependencies with not-that-simple creation logic inv 👷 Builder -------------------------------------------- Real world example -> Imagine you are at Hardee's and you order a specific deal, lets say, "Big Hardee" and they hand it over to you without *any questions*; this is the example of simple factory. But there are cases when the creation logic might involve more steps. For example you want a customized Subway deal, you have several options in how your burger is made e.g what bread do you want? what types of sauces would you like? What cheese would you want? etc. In such cases builder pattern comes to the rescue. +> Imagine you are at Hardee's and you order a specific deal, lets say, "Big Hardee" and they hand it over to you without *any questions*; this is the example of simple factory. But there are cases when the creation logic might involve more steps. For example you want a customized Hardee's deal, you have several options in how your burger is made e.g what bread do you want? What types of sauces would you like? What cheese would you want? etc. In such cases builder pattern comes to the rescue. In plain words > Allows you to create different flavors of an object while avoiding constructor pollution. Useful when there could be several flavors of an object. Or when there are a lot of steps involved in creation of an object.