官术网_书友最值得收藏!

Errors in your code

No developer wants to admit there are bugs in their code, but if you create more than a simple chatbot, there probably will be. There are different ways to approach this problem, from writing tests for every function, to thorough end-to-end testing, to wrapping everything in a try/catch. This book will let you decide how you want to deal with these errors, but expecting your code to be error-free is a very dangerous path.

No matter how you want to stop errors getting into your code, you need to deal with them when you get them. This is where having a low-level error handler can also be of use. You can use that to catch errors that have occurred in your code the same way that you deal with errors from external APIs.

主站蜘蛛池模板: 蒙阴县| 民乐县| 泰和县| 湟源县| 洪湖市| 宜州市| 金沙县| 甘德县| 麻栗坡县| 漾濞| 蓬安县| 仁化县| 兖州市| 寿光市| 右玉县| 民乐县| 深泽县| 那曲县| 迭部县| 资溪县| 泽库县| 高碑店市| 大邑县| 诸城市| 汨罗市| 东莞市| 灵石县| 那曲县| 浦县| 泗阳县| 多伦县| 康马县| 大新县| 安溪县| 灵石县| 赤水市| 祁阳县| 苏尼特右旗| 鲁甸县| 抚顺县| 淳安县|