Get a project, first split the demand, the code can not split a complete and correct finish.
For example:
Requirements: Users log on three times, success: print successful login; three failed quit.
Step a: splitting function
1, username and password authentication
2, three chances:
Step two: patchwork functions:
Step three: commissioning, complete:
So far, this code is completed.