知识卡片

延伸参考卡 · 6974.a.9 · 生成模型:gpt-6.1-terra

Code Complete错误处理

理解等级:中级

《Code Complete》在本书引用的段落中比较两类错误处理目标:一种在结果不可靠时宁可不返回,另一种尽量维持服务,即使结果有时不准确。安全关键和娱乐软件的失败代价不同,因此不能无视场景选择错误处理方式。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • Is there a problem? · 查看原书依据

      Correctness means never returning an inaccurate result; returning no result is better than returning an inaccurate result. Robustness means always trying to do something that will allow the software to keep operating, even if that leads to results that are inaccurate sometimes.

    参考来源

    - 位置:《Machine Learning System Design》第2章《Is there a problem?》(来源项目 a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Machine Learning System Design/_epub-src/OEBPS/Text/chapter-2.xhtml) - 结论依据:本书实质引用 Code Complete 对错误处理的解释及场景对比。 - 原始内容:Correctness means never returning an inaccurate result; returning no result is better than returning an inaccurate result. Robustness means always trying to do something that will allow the software to keep operating, even if that leads to results that are inaccurate sometimes.