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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Why We Don't Write Tests

14 点作者 genericsteele超过 11 年前

3 条评论

drharris超过 11 年前
He forgot two of the most important reasons people don&#x27;t test:<p>1) We inherited this monolithic spaghetti mess of a legacy system with a class hierarchy that does not lend itself to testing without a major rewrite of the codebase.<p>2) Online tutorials expertly teach you how to test methods like add(x, y) and things associated with the 5-minute blog tutorial they also have, but fail miserably at teaching you how to test code that actually might exist in the real world.
评论 #7018715 未加载
waterlion超过 11 年前
I read the headline and skimmed the article. I only realised at the end, when he&#x27;s trying to sell you something, that the &#x27;we&#x27; is inclusive-marketing-speak.<p>Before that I thought that it was &#x27;we (my organisation) don&#x27;t write tests, and here&#x27;s a defence of why&#x27;, followed by a list of excuses (in which I thought &#x27;I wouldn&#x27;t touch this guy with a bargepole&#x27;). I only realised he wasn&#x27;t making excuses for himself after reading the homepage.<p>tl;dr misleading title and confessional writing style YMMV
a3voices超过 11 年前
In my opinion, tests should be an after-thought until your product is seeing success and heavy use.
评论 #7018237 未加载
评论 #7018284 未加载
评论 #7018223 未加载