Publishers of technology books, eBooks, and videos for creative people

Home > Articles > Web Design & Development > PHP/MySQL/Scripting

  • Print
  • + Share This
Like this article? We recommend

Conclusion

The command pattern is deceptively simple. It paves the way for really powerful operations against a basic object set. The complexity for these operations then exists solely in the command pattern classes, which helps to keep your basic object model lean and mean by moving operations code outside your basic classes. In the code examples, I showed how it’s easy to define network entities and then define the associated operations in external command pattern classes.

This notion of separation is being enthusiastically adopted by the computing industry as it strives to separate disciplines (for example, architects, modelers, designers, programmers, and so on). The command pattern helps facilitate such separation at the level of design and coding. This is the magic of patterns!

The command pattern can be used effectively with just a small investment of coding and more importantly focused thinking.

  • + Share This
  • 🔖 Save To Your Account