一句话:对 361 款 JavaScript 网页游戏进行实证分析,发现现有代码异味检测工具不足以识别游戏特有异味。
代码异味通常被视为开发过程中引入的不良编程实践,其在游戏中的存在可能对游戏开发产生负面影响。本文初步研究旨在调查网页游戏中代码异味的实际存在情况。作者使用 JavaScript 代码异味检测工具 JSNose,对 361 款 JavaScript 网页游戏进行检测,以发现常见 JavaScript 异味的出现;随后又对 8 款网页游戏开展人工分析,检查其是否违反已知的游戏编程模式,以验证构建游戏专用代码异味检测工具的必要性。结果表明,现有 JavaScript 代码异味检测工具不足以发现网页游戏中的游戏特有代码异味,因此需要面向游戏领域的专门检测方法。
In software applications, code smells are considered as bad coding practices acquired at the time of development. The presence of such code smells in games may affect the process of game development adversely. Our preliminary study aims at investigating the existence of code smells in the games. To achieve this, we used JavaScript code smells detection tool JSNose against 361 JavaScript web games to find occurrences of JavaScript smells in games. Further, we conducted a manual study to find violations of known game programming patterns in 8 web games to verify the necessity of game-specific code smells detection tool. Our results shows that existing JavaScript code smells detection tool is not sufficient to find game-specific code smells in web games.
DOI 原文 ·
@inproceedings{paperbot5110,
title = {Are existing code smells relevant in web games? an empirical study},
author = {Vaishali Khanve},
booktitle = {FSE},
year = {2019},
doi = {10.1145/3338906.3342504}
}