How Programmers Read Regular Code: A Controlled Experiment Using Eye Tracking

Ahmad Jbara, Dror G. Feitelson

פרסום מחקרי: פרק בספר / בדוח / בכנספרסום בספר כנסביקורת עמיתים

תקציר

Regular code, which includes repetitions of the same basic pattern, has been shown to have an effect on code comprehension: a regular function can be just as easy to comprehend as an irregular one with the same functionality, despite being longer and including more control constructs. It has been speculated that this effect is due to leveraging the understanding of the first instances to ease the understanding of repeated instances of the pattern. To verify and quantify this effect, we use eye tracking to measure the time and effort spent reading and understanding regular code. The results are that time and effort invested in the initial code segments are indeed much larger than those spent on the later ones, and the decay in effort can be modeled by an exponential or cubic model. This shows that syntactic code complexity metrics (such as LOC and MCC) need to be made context-sensitive, e.g. By giving reduced weight to repeated segments according to their place in the sequence.

שפה מקוריתאנגלית
כותר פרסום המארחProceedings - 2015 IEEE 23rd International Conference on Program Comprehension, ICPC 2015
עמודים244-254
מספר עמודים11
מסת"ב (אלקטרוני)9781467381598
מזהי עצם דיגיטלי (DOIs)
סטטוס פרסוםפורסם - 5 אוג׳ 2015
אירוע23rd IEEE International Conference on Program Comprehension, ICPC 2015 - Florence, איטליה
משך הזמן: 18 מאי 201519 מאי 2015

סדרות פרסומים

שםIEEE International Conference on Program Comprehension
כרך2015-August

כנס

כנס23rd IEEE International Conference on Program Comprehension, ICPC 2015
מדינה/אזוראיטליה
עירFlorence
תקופה18/05/1519/05/15

ASJC Scopus subject areas

  • ???subjectarea.asjc.1700.1708???
  • ???subjectarea.asjc.1700.1712???

טביעת אצבע

להלן מוצגים תחומי המחקר של הפרסום 'How Programmers Read Regular Code: A Controlled Experiment Using Eye Tracking'. יחד הם יוצרים טביעת אצבע ייחודית.

פורמט ציטוט ביבליוגרפי