-
Defensive Programming
Defensive programming is a form of defensive design intended to ensure the continuing function of a piece of software under unforeseen circumstances.
Defensive programming practices are often used where high avaiability, safety, or security is needed.
Secure programming is the subset of defensive programming concerned with computer security.
-
简单理解
加入assert,try/except等功能,让代码可以更好的应对error
-
References
理解defensive programming
最新推荐文章于 2024-09-13 23:14:05 发布
本文探讨了防御编程的概念,包括如何通过assert和try/except等机制来增强代码错误处理,确保在未知环境下程序的稳定性和安全性。特别关注了与计算机安全相关的secure programming在防御编程中的应用。
176

被折叠的 条评论
为什么被折叠?



