Design of a business model (II)

Source: Internet
Author: User

Based on the model design in the previous article, the O/R Mapping of this system relies heavily on reflection or proxy and attribute for marking. For the sake of performance, we don't need to reflect all classes every time, and we have implemented a metadata model for classes. In the end, is this model as flexible and efficient as the designer imagined ~~~

With the deepening of the project, I seem to have recovered the coding feeling. When working on metadata, I realized the powerful reflection mechanism of. net. Reflection, Oo, and template are mixed together, and sometimes you may feel confused. It seems that you do not have a deep understanding of compile-time and runtime.

For this project, writing flat code like PHP can quickly develop a prototype system, but for some "scalability" and "scalability ", we chose the O/R Mapping + metadata format. However, I found that some aspects of flexibility are indeed at the cost of other aspects of rigidity. Maybe our model is still not flexible enough. Our design and implementation are more agile than the traditional development process, but we have not used the code "agile" written in PHP ". What kind of "degree" is the compromise between "flexibility" and "quick?

 

Related Article

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.