A, Github Address : https://github.com/HoinLueng/WC
Two, PSP form
PSP2.1 | Personal Software Process Stages | Estimated time consuming (minutes) | The actual time-consuming (minutes) |
---|---|---|---|
Planning | plan | 30 | 40 |
· Estimate | • Estimate how much time this task requires | 50 | 60 |
Development | Develop | 1000 | 900 |
· Analysis | · demand analysis | 100 | 120 |
· Design Spec | Generate design documents | 40 | 30 |
· Design Review | · Design Review | 30 | 30 |
· Coding Standard | · Code Specification | 30 | 30 |
· Design | · Specific design | 80 | 60 |
· Coding | · Specific coding | 200 | 180 |
· Code Review | · Code Review | 40 | 30 |
· Test | · Test (self-test, modify the code, submit modifications) | 60 | 40 |
Reporting | report | 120 | 130 |
· Test Report | · testing report | 20 | 30 |
· Size Measurement | · Computing workload | 10 | 20 |
· Postmortem & Process Improvement Plan | · Hindsight, and propose process improvement plan | 30 | 40 |
total | 1840 | 1740 |
Third, the problem-solving ideas
To get the title, after a certain time of reading comprehension, I sort out the needs of the project, the project requires the file to read and count field information therein. After my preliminary analysis of statistical processing of individual files and multiple file processing complex and high computing the number of lines (ie two expansion capabilities) difficulty. Then I read a focus on document processing and expression lines of code routines and norms of knowledge, learning. Wherein selecting the sub-three cases calculation processing mode (single file, multiple files, folders), and the filter setting file. And the resolution of lines of code, through the study of the code written specification, the corresponding logical expression obtained, the information processing.
The process of building project, GUI design I used windowbuilder of plug-in tools, and then make really a software by setting the listener to the successful operation.
Fourth, the design and implementation process
Code is divided into the main class, the class file filtering, basic functional class, class expansion feature, document processing interface, file-based logic and information collections most 7
Wherein the GUI embedded in the layout inside the main class
The main call flow
Fifth, test run
Test files include: an empty file, a single character, word file, single file, a standard java source files
1. Empty file
2. The single-character file
3. word file
4. The single-line file
5. Standard java file
Code coverage
VI project summary
According to this project "Construction of the law," a book and the knowledge learned in class, from needs analysis to finalize the project design to build the project, this process completely gone aside, familiar with the software development process, from the development also to consolidate the use of java language, but also gained some experience in debugging.
For this development, code redundancy is still not optimistic, interface design is satisfactory, in future designs to be more attention to these aspects.