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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Real programmers don't test

2 点作者 muriithi超过 17 年前

2 条评论

makecheck超过 17 年前
The article treats unit tests and code as one task, a reasonable idea to make sure programmers actually are testing before "done" means "done". But the article also seems to conclude that unit testing and a few "high level tests" are all it takes. That's almost true, but they've left out a big one: regressions.<p>A project can be burned, and burned badly, if it doesn't have a regression test suite to demonstrate clearly what the code is supposed to be doing. The main reason for regressions is to catch unintended consequences...where adding Feature A wasn't supposed to fark up features B and C, or a bug marked "fixed" 3 months ago is suddenly back. Another really important reason is documentation: new programmers on a project can learn a program surprisingly quickly by examining a set of well-designed (canonical) regression tests.
boredguy8超过 17 年前
Summary: Don't test at the end of coding, test as you code.<p>Duh?<p>(A fine article, I guess I didn't realize there are people who don't code that way...seems sortof self-evident to me.)