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

遗留软件重构:一个具体案例分析

Legacy Software Restructuring: Analyzing a Concrete Case

Nicolas Anquetil, Jannik Laval

摘要:

软件再模块化是逆向工程研究的一个老问题。结构良好或模块化系统的优点是众所周知的。然而,经过这么多的时间和努力,该领域似乎无法提出在实践中产生明显差异的解决方案。最近,一些研究人员开始质疑该领域的一些基本假设是否被高估了。主要的一个是评估高内聚/低耦合的教条与未知的相关性指标。在本文中,我们研究了一个真实的结构化案例(在Eclipse平台上),试图更好地理解(一些)现有的指标是否可以帮助软件工程师完成任务。结果表明,实验中使用的内聚性和耦合性指标没有达到预期的效果,可能无法帮助维护人员达到目标。我们还测量了另一种可能的重组,即减少模块之间循环依赖的数量。结果也没有达到预期。

英文摘要:

Software re-modularization is an old preoccupation of reverse engineering research. The advantages of a well structured or modularized system are well known. Yet after so much time and efforts, the field seems unable to come up with solutions that make a clear difference in practice. Recently, some researchers started to question whether some basic assumptions of the field were not overrated. The main one consists in evaluating the high-cohesion/low-coupling dogma with metrics of unknown relevance. In this paper, we study a real structuring case (on the Eclipse platform) to try to better understand if (some) existing metrics would have helped the software engineers in the task. Results show that the cohesion and coupling metrics used in the experiment did not behave as expected and would probably not have helped the maintainers reach there goal. We also measured another possible restructuring which is to decrease the number of cyclic dependencies between modules. Again, the results did not meet expectations.

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

↑