This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Command Vs Facade Design pattern

 
Pankaj Kumarkk
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I would like to know the difference between command and facade design pattern.

Both design pattern essentially hides the sub-system complexity and provides a easy to use interface to the client.
I am confused how to differentiate.

I know the theoretical difference between command and facade design pattern(as per their definitions). I would like to understand it from a practical perspective so that I can apply it when there is a need.

 
Wouter Oet
Saloon Keeper
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
They are very different.

Facade is used to hide internal structure and provided a simplified interface.
The command pattern is used to encapsulate actions which allow you to program undoable actions, task queue's etc..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic