In the actual project development, when we constantly do some function repetition and structure similar things
The idea of a member of the son will have a sense of repetition of things we don't want,
We want to be "lazy", that is, to design a highly reusable component
1. Similar function and similar structure, code repetition is approximately equal to software design unreasonable
2, a query, bring more than one query must pay attention to the database operation of the 1+n times
3. Universal operation of the database: Use common SQL operation statements to maintain the acid of the transaction: atomicity (atomicity), consistency (consistency), isolation (isolation), persistence (durability)
4, the standard MVC design pattern thought embodiment: cannot direct from A to B, must make a through C to b the data decoupling operation
5, establish a good fault-tolerant mechanism
6, the system design time change space space change time in the implementation of the project process, according to the specific application environment for comprehensive evaluation
7, to ensure that the data entered into the business layer is correct
Shortcomings, welcome colleagues to comment,,,
Constantly updated in ...
Software Design principles