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