Java Code Inspection Checklist¶
附录 F¶
Java Code Inspection Checklist¶
1. Variable and Constant Declaration Defects (VC)¶
(1) Are descriptive variable and constant names used in accord with naming conventions?
2. Function Definition Defects (FD)¶
3. Class Definition Defects (CD)¶
4. Computation/Numeric Defects (CN)¶
5. Comparison/Relational Defects (CR)¶
(20) Are there improper and unnoticed side-effects of a comparison?
6. Control Flow Defects (CF)¶
(21) For each loop: Is the best choice of looping constructs used?
(22) Will all loops terminate?
(23) When there are multiple exits from a loop, is each exit necessary and handled properly?
Praktikum Software Engineering 99: Code Inspection Checklist
7. Input-Output Defects (IO)¶
8. Module Interface Defects (MI)¶
9. Comment Defects (CM)¶
10. Packaging Defects (LP)¶
Praktikum Software Engineering 99: Code Inspection Checklist
11.Modularity Defects(MO)¶
(50)Is there a low level of coupling between packages(classes)?
(51)Is therea high level of cohesion within each package?
(51)Is there duplicate code that could bereplaced byacall toa function that provides the behavior of the duplicate code?
(53)Are framework classes used where and when appropriate?
12.Performance Defects(PE)[Optional]¶
(54)Can better data structures or more efficient algorithms be used?
(55)Are logical tests arranged such that the often successful and inexpensive tests precede the more expensive and less frequently successful tests?
(56)Can the cost of recomputingavalue be reduced by computing it once and storing theresults?
(57)Isevery result that is computed and stored actuallyused?
(58)Cana computation bemoved outsidea loop?
(59)Are there tests withina loop that do not need to bedone?
(60)Can a short loop be unrolled?
(61)Are there two loops operating on the same data that can be combined into one?
Document generated by Anna’s Archive around 2023-2024 as part of the DuXiu collection (https://annas-blog.org/duxiu-exclusive.html).
Images have been losslessly embedded. Information about the original file can be found in PDF attachments. Some stats (more in the PDF attachments):
{
"filename": "MTM2MjE2ODkuemlw",
"filename_decoded": "13621689.zip",
"filesize": 75653454,
"md5": "684c094a516345da84ee9f25fec9fcb1",
"header_md5": "d2ceb816fdfd7c22c0b22f0ba82ed572",
"sha1": "d33f6402ecca6df20e8aba06b5874358a068356a",
"sha256": "da4e3081ef9d65863058a7fe927ec71ef5b0531e227dcfdefb0672816b9d16b8",
"crc32": 2221786798,
"zip_password": "",
"uncompressed_size": 92027266,
"pdg_dir_name": "\u255a\u03c6\u255d\u25a0\u2593\u0393\u2569\u2558\u2556\u255c\u2556\u00bf\u2551\u2550\u255d\u255d\u2569\u2321\u2561\u250c3\u2591\u00b5_13621689",
"pdg_main_pages_found": 361,
"pdg_main_pages_max": 361,
"total_pages": 381,
"total_pixels": 2322108894,
"pdf_generation_missing_pages": false
}