Nouuu / OhMySandwich

MIT License
0 stars 0 forks source link

Sandwich builder #5

Open Nouuu opened 2 years ago

Nouuu commented 2 years ago

Swann "Utiliser un pattern de création"

SwannHERRERA commented 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

Nouuu commented 2 years ago

Let's go

SwannHERRERA commented 2 years ago

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.

Nouuu commented 2 years ago

D'accord ouais je comprend la différence maintenant 👌