Analysis of Bug Types of Textbook Code with Open-Source Software

2021 
This study aims to analyze the code examples of two widely adopted collegiate level programming textbooks using static analysis tools and compared them with the bugs found in real-world Open-Source Projects. Overall, 42.6% of the bugs found in the Texts relate to Internationalization, while the Open-Source Software (OSS) has 39.8% of their source code associated with Dodgy Code. Bad Practice issues consistently present in both Texts (18.0%) and OSS (26.4%) groups. DM_DEFAULT_ENCODING violation type ranked first in Texts. SE_NO_SERIALVERSIONID ranked first in OSS. DLS_DEAD_LOCAL_STORE in a Dodge Code category ranked fourth in both Texts and OSS. Textbooks are missing certain code examples that are related to the high-ranked bug types in OSS.
    • Correction
    • Source
    • Cite
    • Save
    • Machine Reading By IdeaReader
    15
    References
    0
    Citations
    NaN
    KQI
    []