Convention is better than configuration principle (study notes)

Source: Internet
Author: User

Convention over configuration) 

The design concept derived from the Ruby on Rails framework is also considered to be one of the key factors for rails's great success. The so-called convention here can be understood as some constraints of the framework on programming. We can use reflection skills to establish objects and collaborate with Objects Based on the default principle developed by implementation, it is even the assembly of programs. For example, in the implementation of the MVC mode in rails, the directory structure and naming rules of model, view, and controller are established in advance. In this case, you do not need to configure the metadata. The ASP. Net MVC framework also adopts the idea that the Convention is better than the configuration. By convention, although the flexibility of the system is lost to a certain extent, it brings about good maintainability. At the same time, it can still remove the strong coupling between the system and the specific object.

Convention is better than configuration principle (study notes)

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.