Facade vs Adapter

Adapter's about supplying a given protocol required by client-code

0 or, gain polymorphism via homogeneity

0 Facade is about simplifying a rich interface when just a subset is often needed

0 Facade most often "fronts" for many objects, Adapter for just one

Without Facade

With Facade

http://www.tonymarston.net/php-mysql/design-patterns.html

Was this article helpful?

0 0

Post a comment