TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Do not program defensively

11 pointsby lfborjasover 14 years ago

2 comments

thibaut_barrereover 14 years ago
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_tuxover 14 years ago
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 未加载