Understanding semantic style by analysing student code
Understanding semantic style by analysing student code
复制标题
通过分析学生代码了解语义风格
DOI:
--
复制
发表时间:
2018
期刊:
影响因子:
--
通讯作者:
Nasser Giacaman
中科院分区:
文献类型:
--
作者:
G. D. Ruvo;E. Tempero;Andrew Luxton;G. Rowe;Nasser Giacaman
Good coding style is recognised by the software engineering profession as being important, and this is reflected in the standard computing curricula. Feedback on some aspects of coding style is now commonly provided by IDEs and by tools such as Checkstyle, but this feedback focuses on coding standards that are largely based on syntax. However, some aspects of coding style relate to the semantics of code --- of the many ways to achieve some functionality, some are preferred because they are simpler, yet students struggle to create them. In this paper, we introduce the concept of semantic style, and in particular semantic style indicators that may be manifestations of poor knowledge of some programming concepts. We describe 16 semantic style indicators and demonstrate their prevalence in almost 19,000 code samples submitted by over 900 novice students. Half the students submitted code exhibiting two or more of these indicators, demonstrating the potential value to learn by providing feedback on semantic style. We also find many indicators are present in the code of students attending their fourth year of a highly competitive Software Engineering programme, demonstrating the need for more attention to teaching of semantic style issues.
影响因子:
4.4
作者:
Hall, Tracy;Zhang, Min;Sun, Yi
通讯作者:
Sun, Yi