One of the programmer’s occupational diseases (professionalism): consider exception handling before writing business code

One of the programmer's occupational diseases (professionalism): Consider exception handling before writing business code. Before Jerry's brain surgery in May, whether it was searched on the Internet or personally heard from the surgeon, he mentioned that the operation has certain risks. In other words, I have a certain probability that I will die on the spot during the operation. Then the question arises. Suppose I died during the operation, what should I do with the money in my bank card?


After contacting my China Merchants Bank account manager, I got a professional and humane response, and I finally felt more at ease. I know that my try...catch...finally are all written, all that is left is to wait for the doctor to hit me with a knife.

From the perspective of outsiders, it is a very negative and pessimistic attitude to want to die before the operation. Maybe only real programmers can understand this way of thinking about problems. Although the surgical process was thrilling, the process was not executed in the catch code block, which is a blessing in misfortune.

For more original articles by Jerry, please follow the public account "Wang Zixi":

Guess you like

Origin blog.csdn.net/i042416/article/details/108818031