论文标题
长生不老药中的代码气味:灰色文献评论的早期结果
Code Smells in Elixir: Early Results from a Grey Literature Review
论文作者
论文摘要
Elixir是一种新的功能编程语言,其流行度在该行业中的增长。但是,文献中很少有工作重点是研究该语言实施的系统的内部质量。尤其是,据我们所知,目前尚无Elixir的代码气味目录。因此,在本文中,通过灰色文献综述,我们研究了长生不老药开发人员是否讨论代码气味。我们的初步结果表明,Elixir开发人员讨论了Fowler和Beck分类的22种传统代码中的11种。我们还提出了一种针对长生不老药系统的18种新气味的清单,并研究了这些气味目前是由著名的静态代码分析工具Credo确定的。我们得出的结论是,该工具自动检测到只有两种传统的代码气味和一个特定于精灵的代码气味。因此,这些早期结果代表了扩展诸如Credo之类的工具以检测代码气味的机会,然后有助于提高长辈系统的内部质量。
Elixir is a new functional programming language whose popularity is rising in the industry. However, there are few works in the literature focused on studying the internal quality of systems implemented in this language. Particularly, to the best of our knowledge, there is currently no catalog of code smells for Elixir. Therefore, in this paper, through a grey literature review, we investigate whether Elixir developers discuss code smells. Our preliminary results indicate that 11 of the 22 traditional code smells cataloged by Fowler and Beck are discussed by Elixir developers. We also propose a list of 18 new smells specific for Elixir systems and investigate whether these smells are currently identified by Credo, a well-known static code analysis tool for Elixir. We conclude that only two traditional code smells and one Elixir-specific code smell are automatically detected by this tool. Thus, these early results represent an opportunity for extending tools such as Credo to detect code smells and then contribute to improving the internal quality of Elixir systems.