Common Code Quality Issues of Novice Java Programmers: A Comprehensive Analysis of Student Assignments

Activity: Talk or presentationContributed talkscience-to-science

Description

Starting to learn programming is often perceived as being quite tedious by students at the bachelor level. Many programming courses thus face high drop-out rates and moderate results for those who pass. This problem is exacerbated when teaching programming to students enrolled in non-computer science curricula. To overcome these issues, we have developed a novel didactic concept based on peer learning and tutoring and dedicated teaching and learning material that supports individuality and competence-based learning. Our current focus lies on teaching basic programming principles, but to further support our students and foster a positive learning experience, we want to learn more about difficulties they are facing, particularly with respect to best practices, coding conventions, and code quality. We, therefore, performed a static code analysis of homework assignments of students participating in our introductory programming course for two consecutive years. We analyzed over 13,000 Java files and more than 400,000 lines of Java code to identify common code quality issues faced by our students. Our analysis shows that the majority of rule violations are related to coding style. The violations do not differ much with respect to the topics covered in the homework assignments, and hardly change over time. The more lines of code the students write, the more rules are violated. Based on our findings we present concrete recommendations on how to support novice programmers in improving their code quality.
Period22 Apr 2023
Event titleProceedings of the 15th International Conference on Computer Supported Education, CSEDU, Prag, Czech Republic, April 21-23, 2023.
Event typeConference
LocationCzech RepublicShow on map

Fields of science

  • 102006 Computer supported cooperative work (CSCW)
  • 102016 IT security
  • 102027 Web engineering
  • 502050 Business informatics
  • 102020 Medical informatics
  • 502032 Quality management
  • 503015 Subject didactics of technical sciences
  • 102022 Software development
  • 102034 Cyber-physical systems
  • 102015 Information systems
  • 509026 Digitalisation research
  • 102040 Quantum computing 
  • 211928 Systems engineering

JKU Focus areas

  • Digital Transformation