کد مقاله کد نشریه سال انتشار مقاله انگلیسی نسخه تمام متن
421062 684027 2016 22 صفحه PDF دانلود رایگان
عنوان انگلیسی مقاله ISI
Recording concerns in source code using annotations
ترجمه فارسی عنوان
ثبت نگرانی ها در کد منبع با استفاده از حاشیه نویسی
کلمات کلیدی
درک برنامه؛ نگرانی ها؛ حاشیه نویسی کد منبع؛ مطالعات تجربی
موضوعات مرتبط
مهندسی و علوم پایه مهندسی کامپیوتر نظریه محاسباتی و ریاضیات
چکیده انگلیسی


• We present a technique to record developers׳ concerns using source code annotations.
• To evaluate it, we performed two studies and two controlled experiments.
• Developers׳ mental models, recorded using annotations, overlap to a certain degree.
• Developers use the annotations, e.g., to confirm hypotheses or for feature location.
• Shared concern annotations improve program maintenance time and correctness.

A concern can be characterized as a developer׳s intent behind a piece of code, often not explicitly captured in it. We discuss a technique of recording concerns using source code annotations (concern annotations). Using two studies and two controlled experiments, we seek to answer the following 3 research questions: (1) Do programmers׳ mental models overlap? (2) How do developers use shared concern annotations when they are available? (3) Does using annotations created by others improve program comprehension and maintenance correctness, time and confidence? The first study shows that developers׳ mental models, recorded using concern annotations, overlap and thus can be shared. The second study shows that shared concern annotations can be used during program comprehension for the following purposes: hypotheses confirmation, feature location, obtaining new knowledge, finding relationships and maintenance notes. The first controlled experiment with students showed that the presence of annotations significantly reduced program comprehension and maintenance time by 34%. The second controlled experiment was a differentiated replication of the first one, focused on industrial developers. It showed a 33% significant improvement in correctness. We conclude that concern annotations are a viable way to share developers׳ thoughts.

ناشر
Database: Elsevier - ScienceDirect (ساینس دایرکت)
Journal: Computer Languages, Systems & Structures - Volume 46, November 2016, Pages 44–65
نویسندگان
, , ,