Software development experience collection

Source: Internet
Author: User

1. If the data range of smalldatetime can meet your requirements, do not use datetime.

2. When the data is deleted, it is only deleted.
Id. For example, if deletemark is set to 1, the data is deleted but not deleted. 0 indicates that the data is valid.

Although this is a good starting point, the problem is coming up. Let's write allProgramThe logic and judgment of is to add a condition, that is, deletemark = 0.
The data is the valid data. Even though a simple requirement is added, you need to add a flag for judgment on the whole. In fact, the workload is
There will be a lot more, so sometimes, for a simple function implementation, there will be a lot of extra work, extra effort, this
It depends on what effect you want to achieve.

Of course, you can also create a view. For example, a view is deleted and a view is not deleted.
For logical operations, the workload of the program will be much smaller, and some modifications may be enough. However, these operations are all very high.
Only by understanding this truth can we conclude that, including myself, there will be many detours to understand this. This will only happen in the next system.
Experience.

3. Page form: JS verification, which is mandatory

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.