Seeking design ideas
To do a mold management system.
It is hoped that the object-oriented approach can be used to integrate some patterns of design ideas.
The main purpose is to practice object-oriented design patterns.
"Object-oriented pattern design and practice" It's been almost two times. There is no clue to the actual combat. Inside the mind a blank, after thinking can only think of to get a "mold" class.
Ask for ideas,!!!!!!. Object Oriented Design Patterns System Design
Share to:
------Solution--------------------
Do not object-oriented for object-oriented
Do not rigidly apply "design mode"
It's been almost two times, and it's going to be a reflection.
The key is what your "mold" class is going to do.
------Solution--------------------
Design patterns are not made out of thin air, but are designed to be planned according to specific entities, so you first have to analyze which entities your system should contain.
According to the Mold management system you said, you also said there must be "mold" this entity, there must be other entities, such as
1, the specific person involved. Who manages it? How to manage? What is the management of the mold?
2, the properties of the mold. Is there a difference between the mold and the mold? is the content composition of the mold all text? Is there any multimedia other than text?
3, the mold content presentation. List? Icon?
Wait a minute
With the support of these entities, you can decide which entities can be encapsulated as objects, and what relationships between objects can be implemented through design patterns.
------Solution--------------------
Doing object-oriented is generally a two-way situation
1. A complete set of planning, the entire station process and modules are clear, and then Oo
2. First, according to process-oriented writing procedures, the reuse of blocks of code extracted, the code blocks organized into classes/objects, control parameter changes, and gradually implement OO
1 is abstract thinking, from intangible to tangible, need bigger picture, need website analysis ability
2 is thinking in image, from tangible to invisible, need observation, need to classify and summarize the ability
If you are familiar with an industrial process, it is recommended to use Method 2
If you are familiar with an industrial architecture, it is recommended to use Method 1