Habit 4: Keep the mode unique and advantages
Keeping Patterns Distinct and Complementary
There is a tend to avoid when you develop multiple modes.
When you write a pattern, it may tend to be in detail and
The caliber increased at the same time. It is easy to forget at this time
Other modes. The difference between the mode is blurred,
Make others unable to group (Collectively) to understand the mode.
They begin to overlap each other in the caliber and purpose. This may
It is very clear about the author, but the novice is not so
clear. They will don't know when to use a model
It's not another, because the difference between them is not so
obvious.
So make sure your pattern is orthogonal (Orthogonal) and
They work together (SYNERGISTILY). Continue to ask you
I: "What is the difference between pattern x and pattern y?"
To solve the same or similar problems, you can merge them.
If two modes use similar classes (hierarchies),
Don't worry. There are so many ways to use in OO programming
Relatively little inheritance mechanism. Usually the same class use will
A significant different object structure that represents a wide variety of changes.
Let the mode's intentions as they different points, not to achieve them
Class structure guide.
A good way to test your mode how to orthogonize and cooperate
Is a separate document comparison (Compare) and comparison
(Contrast) Your mode. In << Design Mode >>
We offer a number of parts for this purpose. attempt
Simple behavior of explaining mode relationship under the form of writing
Give us a new perspective of our model. More than once
It lets us think about some of them.
My only regret is that we have not paid attention to it in the game.
relationship. I suggest you start writing this attachment material as soon as possible.
This may seem to be a stupid thing, especially when you have a lot of modes
Need to be compared. But when you only have two modes, overlapping
It is possible to appear. Initial spend time comparison and comparison
Mud mode will help you keep your pattern unique
And the advantage is prominent.