TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Do not program defensively

11 点作者 lfborjas超过 14 年前

2 条评论

thibaut_barrere超过 14 年前
Most of the time I would precisely give the opposite advice. That's especially true if I had to deal with a large and/or legacy codebase.<p>It only really works if applied equally at all levels of the codebase.
评论 #2222993 未加载
pipeline_tux超过 14 年前
From a security perspective, this is also a bad idea. One of the golden rules of security is to validate all input. Anything which the programmers didn't expect and check for can potentially be used as part of an exploit.
评论 #2223904 未加载