CloudCoders / Design-Patterns

Project for learning and discuss about design patterns
16 stars 1 forks source link

Discuss about Command pattern for Little Kai #8

Open Cotel opened 7 years ago

Cotel commented 7 years ago

After implementing the pattern (yet to see if it is correct) I still don't see its utility.

I think it is much easier to call Cart methods directly in my example. After all, it is an interface and it is already decoupled. Superior layers in the abstraction won't know how this methods are implemented.

Please, enlighten me 🙏

tonilopezmr commented 7 years ago

You are alone @Cotel

Cotel commented 7 years ago