How to solve the problem of seeking design ideas

Source: Internet
Author: User
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
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.