TDD is a thinking style

本文探讨了为何需要TDD,TDD的核心是通过快速的测试反馈促进重构,提高生产力。介绍了TDD的定义,强调它不仅是测试案例,更是指导思想。详细阐述如何进行TDD,包括从简单开始、逐步完善、避免大规模重构等原则,并指出TDD思维在日常生活中的应用,能帮助我们更快实现目标。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

why need TDD

  • why we use tdd , is because we want refactor , not we want to capture bugs
  • you can get a result timely when you pass a test , you have a good feeling because you finish some case ,and you will todo next case very quickly ,this will be a cycle in your coding and you will coding very happy and don’t want stop
  • the power of TDD , the ability to defer refactoring after weeks/months
    • your boss don’t care your tdd , he just want the code can work,and you can do the code very fast , tdd give a ability to dfer refactoring
    • why to defer refactoring
      • To maximum the productivity
      • To get feedback early face to the end-users in order to discover the real needs before a deeper refactoring step

what is TDD

  • the tdd is not the case ,it is the guide to let the test case drive it
  • think clean way more than clean c
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值