Thoughts Caused by a bug

Source: Internet
Author: User

Today, we found a bug that has been hidden for a long time. Unfortunately, it was discovered by the customer.

CheckCodeThe SQL query statement is incorrect. The associated table is incorrect. The result is that data can be displayed on the page, but the data is inaccurate under some conditions.

No error is reported for such pages, but data error bugs are not uncommon in development. Especially if the data is correct in some cases and is incorrect in other cases, it is hard to find out if the test cases are not covered enough.

It's just a bit unwilling, because the developers of this Code are very experienced and have enough business knowledge, and they have invested a lot of people and time to perform tests. This bug is still not avoided.

The reason seems to be that the business is complex and the bug is hard to avoid. After further research, check whether the developer's sense of responsibility, development process, and check whether there are sufficient checks (including code review and testing) problems may exist.

Remind yourself that you need to pay attention to the following two points for quality software:

Developers must be responsible and enthusiastic about writing high-quality code.

Spend enough time checking the business logic and corresponding code (white-box testing ).

(Of course, high-quality software is not enough to achieve the above two points)

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.