arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1109.2075cs.SE
收藏

Java与对象团队模块化支持的实证比较

Evidence-Based Comparison of Modularity Support Between Java and Object Teams

Arlindo Lima, Miguel Goulão, Miguel Pessoa Monteiro

摘要:

背景资料:面向对象编程(AOP)是一种新兴的编程范式,其重点是提高模块化,强调横切关注点的模块化。目的:本文的目标是评估在何种程度上的AOP语言-ObjectTeams/Java(OT/J)-提高了软件系统的模块化。这种改进已经声称,但据我们所知,本文是第一次尝试提出定量证据it. Method:我们比较功能等效的实现的四个设计模式,在Java和OT/J开发,使用软件度量。结果:我们的比较结果支持文献中提出的模块化改进要求。对于使用的七个度量中的六个,模式的OT/J版本获得了明显更好的结果。局限性:这项工作使用了一组最初为面向对象(OO)系统定义的指标。这可能是度量有偏见的情况,因为它们是在面向对象编程(OO programming,OOP)的上下文中创建的,在AOP出现之前。我们认为这种比较是一个垫脚石,最终,我们计划用范式独立的指标来评估模块化的改进,这将消除偏见。本文中使用的样本中的每个单独的例子都很小。在将来,我们计划使用更大的系统来复制这个实验,在这些系统中AOP的好处可能更加明显。结论:这项工作的贡献与证据,以填补空白的定量结果,支持所谓的好处,软件模块化带来的AOP语言,即OT/J。

英文摘要:

Background: Aspect-oriented programming (AOP) is an emerging programming paradigm whose focus is about improving modularity, with an emphasis on the modularization of crosscutting concerns. Objective: The goal of this paper is to assess the extent to which an AOP language -ObjectTeams/Java (OT/J) -improves the modularity of a software system. This improvement has been claimed but, to the best of our knowledge, this paper is the first attempting to present quantitative evidence of it. Method: We compare functionally-equivalent implementations of the Gang-of-Four design patterns, developed in Java and OT/J, using software metrics. Results: The results of our comparison support the modularity improvement claims made in the literature. For six of the seven metrics used, the OT/J versions of the patterns obtained significantly better results. Limitations: This work uses a set of metrics originally defined for object-oriented (OO) systems. It may be the case that the metrics are biased, in that they were created in the context of OO programming (OOP), before the advent of AOP. We consider this comparison a stepping stone as, ultimately, we plan to assess the modularity improvements with paradigm independent metrics, which will conceivably eliminate the bias. Each individual example from the sample used in this paper is small. In future, we plan to replicate this experiment using larger systems, where the benefits of AOP may be more noticeable. Conclusion: This work contributes with evidence to fill gaps in the body of quantitative results supporting alleged benefits to software modularity brought by AOP languages, namely OT/J.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑