Best practices when developing

本文介绍了一种采用测试驱动开发(TDD)的最佳实践流程。从明确目标问题开始,到详细规划、编写测试用例,再到具体实现,提供了一套完整的软件开发指导方案。

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

the best practice would be TDD(Test DriveDevelopment)

When you want to develop a new software orprogram, no matter how tiny it is or how large it is, the following guide won'tmislead you.

First you must remember and understand,every piece of program or software is to solve some practical problems, so weshould start from the practical problem you want to solve.

  1. Identify and clarify your target problem

1. what problem

2. the requirements

3. specifications

4. what does it look like

5. what it can do

  1. Plan it

1. list all the features with deadline

2. then solve them one by one

3. aware the dependency

  1. Write test case first --- TDD

1. Junit alike unit testing

2. Input, output compared with expected output

  1. Develop: designing, coding, debugging
  2. testing

TDD follows the top-down design criteara

  1. to solve the problem, write a codes---testing codes
  2. to finish the testiing code, write codes
  3. the finish the codes
  4. then write each function

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值