arrow
返回

Syntax, predicates, idioms - what really affects code complexity?

delete2018-06-11
delete31
PRE
AI
S
Shulamyt Ajami
Y
Yonatan Woodbridge
Dror G. Feitelson 封面图
Dror G. Feitelson (Dror G. Feitelson) *
DOI:10.1007/s10664-018-9628-3delete
delete原文链接
delete分享
delete收藏
摘要

摘要

En 中文
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 220 professional programmers can interpret code snippets with similar functionality but different structures; snippets that take longer to understand or produce more errors are considered harder. The results indicate, inter alia, that for loops are significantly harder than ifs, 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. We also found that the metrics of time to understanding and errors made are not necessarily equivalent. Thus loops counting down took slightly longer, but loops with unusual bounds caused many more errors. By amassing many more empirical results like these it may be possible to derive better code complexity metrics than we have today, and also to better appreciate their limitations.
Keyword:
Code complexity
Program understanding
Gamification
AI总结

AI总结

对已上传原文的论文进行重点信息的提取,主要内容包括:简要概述、研究摘要、背景介绍、关键亮点、图文解析、展望与总结。

err分享
err收藏
An empirical evaluation of the ?Cognitive Complexity?measure as a predictor of code understandability
err2023-03-01
err6
errOAAI
errLavazza, Luigi; Abualkishik, Abedallah Zaid; Liu, Geng; Morasca, Sandro
err分享
err收藏
A systematic literature review on the impact of formatting elements on code legibility
err2023-09-01
err5
errOAAI
errOliveira, Delano; Santos, Reydne; Madeiral, Fernanda; Masuhara, Hidehiko; Castor, Fernando
err分享
err收藏
An Investigation of confusing code patterns in JavaScriptJavaScript中混淆代码模式的调查
err2023-09-01
err2
errOAAI
errTorres, Adriano; Oliveira, Caio; Okimoto, Marcio; Marcilio, Diego; Queiroga, Pedro; Castor, Fernando; Bonifacio, Rodrigo; Canedo, Edna Dias; Ribeiro, Marcio; Monteiro, Eduardo
err分享
err收藏
err分享
err收藏
err分享
err收藏

期刊

Empirical Software Engineering 封面图
Empirical Software Engineering
IF:
3.6
论文数:
2.0K
被引数:
6.4K

机构

H
hebrew university of jerusalem
学者数:
1.3K
论文数: 507
被引数: 1.5W
引用论文

引用论文

The Daidzein Metabolite, 6,7,4'-Trihydroxyisoflavone, Is a Novel Inhibitor of PKCα in Suppressing Solar UV-Induced Matrix Metalloproteinase 1
err2014-11-19
err0
errOAAI
errTae-Gyu Lim; Jong-Eun Kim; Sung-Young Lee; Jun Park; Myung Yeom; Hanyong Chen; Ann Bode; Zigang Dong; Ki Lee
err分享
err收藏
48.1: LTPS TFTs with Metal Electrodes Formed by Inkjet Printing Technology
err2006-01-01
err0
PREAI
errEtsuko Shioya; Tomoyuki Kamakura; Keisuke Yamada; Yoshiyuki Yagami; Wakao Miyazawa; Satoshi Inoue; Tatsuya Shimoda; Toshimitsu Hirai; Katsuyuki Moriya; Hiroshi Kiguchi
err分享
err收藏
err分享
err收藏
MODALITIES OF SEIZURE ONSET IN TEMPORAL LOBE EPILEPSY
err1996-09-01
err0
PREAI
errF. Arruda; L. F. Quesney; R. Wennberg; A. Olivier
err分享
err收藏
学者 查看更多内容