Software Design principles

Source: Internet
Author: User
Tags repetition

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

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.