你是怎么学习TDD的? [英] How did you learn TDD?
本文介绍了你是怎么学习TDD的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想帮助一些学生朋友并解释TDD的概念。由于我没有时间,我想知道是否有更快/更好的方法来学习初学者的TDD概念和基础知识。我知道有很多课程,博客,指南。
我很想知道其他人是如何学习TDD的。
我尝试了什么:
我看过(但并不彻底):Pluralsight,Udemy,edX,各种博客和文章。
I wanted to help some of my student friends and explain the concept of TDD. As I don't have the time for it, I wanted to know if there's a faster/better way to learn the concept and basics of TDD for beginners. I know there are plenty of courses, blogs, guides.
I'm interested to know how did others learn TDD.
What I have tried:
I've looked at (but not thoroughly): Pluralsight, Udemy, edX, various blogs, and articles.
推荐答案
通过这样做你可以学到任何东西,就这么简单。
至于TDD:
1)为你想要的输出写一个测试/使用代码。
2)实现实际代码以达到指定输入的输出,并使第1步通过。
3)重复上述步骤。
You learn anything by doing it, it's that simple.
As for TDD :
1) Write a test/usage code for what you want the output to be.
2) Implement the actual code to reach the output from a specified input, and make step 1 pass.
3) Repeat the above.
这篇关于你是怎么学习TDD的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文