Open Nouuu opened 2 years ago
j'ai relu tous les patterns de création le plus pertinent pour l'instant, c'est builder. Pour faire simple le type de sandwitch ne change pas. seulement ses valeurs
Let's go
It can be confused sometimes with the Factory pattern, but there’s a very important difference: Factories can be used to create an object instance based on some rules and return an interface. The result will be any concrete implementation of that interface, but consumers won’t (and don’t need to ) know which one.
D'accord ouais je comprend la différence maintenant 👌
Swann "Utiliser un pattern de création"