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.
- 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
- Plan it
1. list all the features with deadline
2. then solve them one by one
3. aware the dependency
- Write test case first --- TDD
1. Junit alike unit testing
2. Input, output compared with expected output
- Develop: designing, coding, debugging
- testing
TDD follows the top-down design criteara
- to solve the problem, write a codes---testing codes
- to finish the testiing code, write codes
- the finish the codes
- then write each function
本文介绍了一种采用测试驱动开发(TDD)的最佳实践流程。从明确目标问题开始,到详细规划、编写测试用例,再到具体实现,提供了一套完整的软件开发指导方案。
21

被折叠的 条评论
为什么被折叠?



