Is “Dying is Awesome” preferred?

后端 未结 16 829
栀梦
栀梦 2020-12-08 11:09

Recently I attended Jeffrey Richter\'s training courses about .NET. He mentions one strategy of coding \"Dying is awesome\". That is, don\'t write \"catch (Exception ex)\" e

16条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-08 11:41

    What does your customer expects?

    It all comes back to that. If the customer can handle the program dying and they can restart it, so be it.

    Sometimes, it is better to let a process die and create another to handle requests.

    Sometimes, it is better to attempt to resolve the problem.

提交回复
热议问题