有人使用 ABC Metric 来测量应用程序的大小吗?

发布于 2024-07-05 12:24:05 字数 256 浏览 8 评论 0原文

它有一些好处(比如它封装了圈复杂度的概念),我想知道是否有人在“现实生活”中使用过它。 如果是这样,您的经历是什么? 它是衡量规模的有用指标吗(相对于 KLOC 或功能点)?

对于那些想知道我抽什么烟的人: 以下是一些信息的链接: http://c2.com/cgi/wiki/Wiki ?AbcMetric

There are some nice things about it (like it encapsulates the concept of Cyclomatic complexity), and I was wondering if anyone has used it in "real life". If so, what are your experiences? Is it a useful measure of size (as opposed to KLOC or Function Points)?

For those wondering what I'm smoking:
Here's a link to some info on it: http://c2.com/cgi/wiki/Wiki?AbcMetric

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

猫卆 2024-07-12 12:24:05

只要您在所有应用程序中使用相同的方法,就可以通过 LOC 或您能想到的任何其他指标来安全地测量应用程序的绝对“大小”。

然而,只有当您谈论代码库的重构和维护时,大小本身才真正重要。 几乎必须将大小指标与覆盖率统计数据结合使用。

但大多数时候,功能点或类似的概念可以让您更好地了解您的应用程序到底有多大。

例如,如果它有 10 FP,那么它很小,如果它有 200,它可能很大。

但如果它有 100 个 KLOC,除了我可能会花一些时间阅读这些行之外,它本身还能告诉我什么? 几乎什么都没有,我必须考虑大量其他因素才能理解这个指标。

显然,FP 有一个显着的缺点,即正确计算成本高昂。

The application's sheer 'size' could be safely measured in LOCs or any other metrics you could think of as long as you use the same approach across all of your application.

However the size on its own really matters only when you're talking about re-factoring and maintainance of the code base. It's almost mandatory to use the size metrics are useful in conjuction with the coverage statistics.

But most of the time Function Points or similar concepts give you much better view of how big your application really is.

I.e. as an example if it has 10 FP it's tiny, if it has 200 it's probably big.

But if it has 100 KLOCs what does it tell me on its own, aside from the fact that I'll probably spend some time reading those lines? Almost nothing, I have to take an enourmous amount of other factors into an account to be able to understand this metric.

Obviously the FPs have a significant downside of being expensive to properly calculate.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文