Best practices when developing

前端之家收集整理的这篇文章主要介绍了Best practices when developing前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

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

猜你在找的设计模式相关文章