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
المعرِّفات الرقمية للأشياء
حالة النشرنُشِر - 5 أغسطس 2015
الحدث23rd IEEE International Conference on Program Comprehension, ICPC 2015 - Florence, إيطاليا
المدة: ١٨ مايو ٢٠١٥١٩ مايو ٢٠١٥

سلسلة المنشورات

الاسمIEEE International Conference on Program Comprehension
مستوى الصوت2015-August

!!Conference

!!Conference23rd IEEE International Conference on Program Comprehension, ICPC 2015
الدولة/الإقليمإيطاليا
المدينةFlorence
المدة١٨/٠٥/١٥١٩/٠٥/١٥

All Science Journal Classification (ASJC) codes

  • !!Hardware and Architecture
  • !!Software

بصمة

أدرس بدقة موضوعات البحث “How Programmers Read Regular Code: A Controlled Experiment Using Eye Tracking'. فهما يشكلان معًا بصمة فريدة.

قم بذكر هذا