IF
+
Further clarify responsibilities to avoid void type
A (ret =
Others
1. The purpose of encapsulation is to isolate changes, such as database operations, as much as possible.
2. Programming the interface. For example, in database operations, we directly use the sequence class SqlHelper of a database, which is too expensive in the era of database switching. If only SQL databases are supported currently, you can also use the factory to return interfaces for the application layer.
3. For the purpose of making products, programmers aim to provide better products and cannot catch up with the progress.
4. Try to use incremental release for the project. When you need to add a function, you can directly copy some files to avoid reinstalling the site or overwriting the site as a whole, which may cause unexpected problems and lead to high risks.
5. Use file records for debugging logs. This reduces the cost in the future. If necessary, clear the logs separately. It is better to carry a notebook and debug it in a single step than there is a problem at the site.
6. When using MVC for development, it is best to analyze the Business Code clearly and directly use the test tool to test the interface. Backend development ensures the rationality and Stability of the backend interface, while the front-end page is assumed to be changeable.