For the existing [Storage] Code, [style] Change, [Reference] Other precautions for code correction!

Source: Internet
Author: User

Preface:

Some time ago, we performed a [automatic switch] batch processing (bts01 ),

Follow the code in reference (btc02) to correct the common function of bts01 code.

That is to say, in bts01, common methods are used for processing.

Now, you need to write your own method according to the reference.

Use your own method. (Do not use common processing)


For such jobs, you must understand the relationship between the three.


Confirm the reserved [Storage] and those for use [Reference ].


[Storage] (in the following cases, the storage is generally used, but not completely)

Generally, the [overall logic] is reserved for storage, and some [Exception Handling Methods] are also reserved for storage.

(For example, processing when db 0 is updated, the method used when an exception is thrown, and the overall processing sequence.

When updating the database, whether there is any update processing in finally after an update fails)


[Reference] (in the following cases, the reference is generally used, but not completely)

The logic of [implementation of each method] is as follows:

(The updated field when dB is updated, and the condition before dB is updated)


[Style book]

The format sometimes mentions [handling method for exceptions]

(In this case, the correction part of the style book is generally copied directly from the style book of the reference code)

(However, the overall exception handling is sometimes different)


In a word, you must confirm who is used for this assignment and who you refer!

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.