The kitchen does many things but does not, thankfully, expose them all to its customers. It has a public interface that customers are expected to use; the menu. Within the kitchen many things happen, many other messages get passed, but these messages are private and thus invisible to customers. Even though they may have ordered it, customers are not welcome to come in and stir the soup.
- Chapter 4. Creating Flexible Interfaces
- from Practical Object-Oriented Design in Ruby: An Agile Primer
- Publisher: Addison-Wesley Professional
- Released: September 2012
Good analogy - of how a kitchen is not intended to show all it's inner workings. A customer can't stir the soup.
Share this highlighthttp://www.safaribooksonline.com/a/practical-object-oriented-design/75685/