Clojure 程序的特定软件指标
我们正在考虑编写一个静态分析器来收集 Clojure 代码的软件指标。当然,它会处理明显的东西,例如文件数、函数、每个函数的参数等。我想知道是否有任何特定于 Clojure 代码的指标。有什么想法吗?
We are considering writing a static analyzer to collect software metrics for Clojure code. Of course it will handle the obvious stuff like number of files, functions, parameters per function, etc. I wonder if there are any metrics that are specific for Clojure code. Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
平均而言,我认为软件指标是一个可疑的想法,它们通常会分散您对真正重要问题的注意力,即“我们为客户提供了多少价值??”。
话虽如此,我认识到它们在某些情况下可能是一种必要的邪恶,并且偶尔可以为您提供一些有关代码库的有用见解。
这里有一些可能是 Clojure 特定的。
ps 如果你能做到这一点,那么看到一些不同的开源 clojure 项目的结果差异将会非常有趣!
On average - I think that software metrics are a dubious idea - they usually distract you from the really important question which is "how much value are we delivering to the customer??".
Having said that, I recognise they can be a necessary evil in some contexts and can occasionally give you some useful insights about your code base.
So here's a few that might be Clojure-specific.
p.s. if you get this working it would be really interesting to see the variation in results across some of the different open source clojure projects!