Jaaved Ali Khan

18%
Flag icon
Here we have messages going to three different objects. We want to read this as a three part operation, but because the operations are on three different objects it is hard to put the pieces together. We can solve the problem by making sure that all messages go through a single object. However, creating new selectors just for the fun of it is a bad idea. Each selector in the system must justify its existence by solving a real problem; encoding an important decision.
Smalltalk Best Practice Patterns
Rate this book
Clear rating
Open Preview