Abstract
Program comprehension concerns the ability to understand code written by others. But not all code is the same. We use an experimental platform fashioned as an online game-like environment to measure how quickly and accurately 222 professional programmers can interpret code snippets with similar functionality but different structures. The results indicate, inter alia, that 'for' loops are significantly harder than 'if's, that some but not all negations make a predicate harder, and that loops counting down are slightly harder than loops counting up. This demonstrates how the effect of syntactic structures, different ways to express predicates, and the use of known idioms can be measured empirically, and that syntactic structures are not necessarily the most important factor. By amassing many more empirical results like these it may be possible to derive better code complexity metrics than we have today.
Original language | English |
---|---|
Title of host publication | Proceedings - 2017 IEEE 25th International Conference on Program Comprehension, ICPC 2017 |
Publisher | IEEE Computer Society |
Pages | 66-76 |
Number of pages | 11 |
ISBN (Electronic) | 9781538605356 |
DOIs | |
State | Published - 28 Jun 2017 |
Event | 25th IEEE International Conference on Program Comprehension, ICPC 2017 - Buenos Aires, Argentina Duration: 22 May 2017 → 23 May 2017 |
Publication series
Name | IEEE International Conference on Program Comprehension |
---|
Conference
Conference | 25th IEEE International Conference on Program Comprehension, ICPC 2017 |
---|---|
Country/Territory | Argentina |
City | Buenos Aires |
Period | 22/05/17 → 23/05/17 |
Bibliographical note
Publisher Copyright:© 2017 IEEE.
Keywords
- Code complexity
- gamification
- program understanding