Clojure中的代码坏味:来自灰色文献综述的初步发现
Code Smells in Clojure: Initial Findings from a Grey Literature Review
AI总结:
通过灰色文献综述和44位从业者评估,识别出26种Clojure代码坏味,包括12种Clojure特有、9种函数式风格和5种传统Fowler坏味,并发现现有工具仅覆盖其中2种。
摘要:
代码坏味是广泛使用的代码质量指标,揭示结构问题和可改进之处。尽管在面向对象语言中已被广泛研究,但函数式编程语言在文献中仍相对未被充分探索。本文报告了对Clojure(一种运行在Java虚拟机(JVM)上、在开源和工业系统中广泛采用的现代函数式编程语言)中代码坏味的灰色文献调查的初步结果。受先前关于Elixir工作的启发,我们手动检查了通过Google搜索检索到的开发者讨论,提取了开发者讨论的质量问题,并让44位从业者评估了非传统坏味候选的相关性。初步结果中,我们编录了26种代码坏味,包括12种Clojure特有、9种函数式风格和5种传统Fowler坏味。我们还分析了工具支持,并观察到显著差距,因为现有的Clojure linter仅覆盖这26种坏味中的2种。这些初步发现提供了Clojure开发者如何讨论代码坏味的初步特征描述、该生态系统特有的一组初步坏味样问题,以及对其检测工具支持的早期评估。
英文摘要:
Code smells are widely used indicators of poor code quality, revealing structural problems and areas where improvement can be made. Although extensively studied in object-oriented languages, functional programming languages remain comparatively underexplored in literature. This paper presents early results from a grey literature investigation of code smells in Clojure, a modern functional programming language that runs on the Java Virtual Machine (JVM) and is widely adopted in open source and industrial systems. Inspired by prior work on Elixir, we manually inspected developer discussions retrieved through Google search, extracted quality concerns discussed by developers, and had 44 practitioners evaluate the relevance of non-traditional smell candidates. As preliminary results, we cataloged 26 code smells, including 12 Clojure-specific, 9 functional-style, and 5 traditional Fowler smells. We also analyzed tool support and observed a significant gap, as existing Clojure linters cover only 2 of these 26 smells. These early findings provide an initial characterization of how Clojure developers discuss code smells, a preliminary set of smell-like problems specific to this ecosystem, and an early assessment of tool support for their detection.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。