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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: Learning Test Based Programming

7 点作者 typhonic超过 2 年前
What resources do you recommend for me to learn Test Based Programming? I have a little exposure to the concept, but I generally do not think of programming in that way. While I have added some tests to some of my programs, I have met people who start with testing, and I'd like help developing that mindset.

4 条评论

jdlshore超过 2 年前
I have a free video series here:<p><a href="https:&#x2F;&#x2F;www.jamesshore.com&#x2F;v2&#x2F;projects&#x2F;lunch-and-learn" rel="nofollow">https:&#x2F;&#x2F;www.jamesshore.com&#x2F;v2&#x2F;projects&#x2F;lunch-and-learn</a><p>In contrast to a lot of material out there, this spends comparatively little time on questions like &quot;how do I test a function&quot; and more time on real-world questions like &quot;how do I test a network call.&quot;<p>PS: The correct term is &quot;Test-Driven Development,&quot; unless I&#x27;ve misunderstood you, and if you search for that term you&#x27;ll find countless articles and resources. But I still like mine. ;-)
评论 #34484373 未加载
sn9超过 2 年前
If you have an interest or experience in web development, there&#x27;s a book on TDD for web development with Python you can read for free online: <a href="https:&#x2F;&#x2F;www.obeythetestinggoat.com&#x2F;pages&#x2F;book.html" rel="nofollow">https:&#x2F;&#x2F;www.obeythetestinggoat.com&#x2F;pages&#x2F;book.html</a>
cratermoon超过 2 年前
<i>Test-Driven Development By Example</i> by Kent Beck
评论 #34484360 未加载
tedyoung超过 2 年前
Best way to learn (as with most things) is by doing. As mentioned, TDD by Example (Kent Beck) is a good start. Pairing or coding in a group (&quot;mob programming&quot; or &quot;ensembling&quot; as it&#x27;s called) is even better than doing it on your own.<p>You can also watch me build a complete small game from scratch using TDD here: <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=LjYKzodYuoE&amp;list=PLBHctPrH7Z28J2MJvUTRHN2K6RbSiY-Pm">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=LjYKzodYuoE&amp;list=PLBHctPrH7Z...</a>