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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: Is TDD still a thing in 2018?

4 点作者 bengrunfeld将近 7 年前
I&#x27;m prepping to go job hunting again (sigh...), and wondering whether or not TDD is in vogue.<p>A few years ago, it was the in-thing and everyone was preaching it like it was some type of technological savior, but I don&#x27;t see many articles about it anymore.<p>So is TDD&#x2F;BDD still cool, or has it been added to the IT scrap pile?<p>NOTE: I am not asking about Unit Tests - just about TDD&#x2F;BDD as a development practice for a mid-level developer.

3 条评论

vforgione将近 7 年前
I find it useful for new projects. It allows me to define acceptance of core functionality and features.<p>For established projects, not so much. This is especially true for people new to the project as they typically don’t yet know the full system and it may push them to recreate some functionality that already exists.
JanisL将近 7 年前
There are times where TDD makes a lot of sense, I find it to be quite useful in situations where you have some sort of known interface you need to implement exactly. In that case writing the tests first tends to save a lot of time overall.
marenkay将近 7 年前
TL;DR yes, it still works well.<p>Ignore any hype. TDD&#x2F;BDD is great for anyone who has seen some shit hitting the fan in his&#x2F;her professional life.<p>In fact, jobs not asking for TDD&#x2F;BDD will probably be throwing shit at you.
评论 #17821955 未加载