Understanding of convention over configuration

1. Concept: Convention over Configuration, also known as programming by convention, is a software design specification. Essentially, it assumes a popular and reasonable default value (default value) for something in the system, class library, or framework. For example, if there is a class named User in the model, then there will be a table named user corresponding to the database. Only when deviating from this convention do you need to do related configuration (for example, you want to name the table name t_user and other non-user Only need to write about the configuration of this name). Simply put, if the configuration you expect is consistent with the agreed configuration, then you don't need to do any configuration, and you need to replace the configuration when the agreement does not meet your expectations.

2. The connotation of the convention is better than the configuration concept. The
  convention is actually a kind of specification. If the specification is followed, there will be versatility, and if there is versatility, then things will become relatively simple. The cost of communication between programmers is mutual Learning efficiency will be greatly improved, and cooperation will become easier.
  
  
  
  

Guess you like

Origin blog.csdn.net/qq_36336332/article/details/105600653