Code annotations is a widely used feature in Java systems to configure custom metadata on programming elements. Their increasing presence creates the need for approaches to assess and comprehend their usage and distribution. In this context, software visualization has been studied and researched to improve program comprehension in different aspects. This study aimed at designing a software visualization approach that graphically displays how code annotations are distributed and organized in a software system and developing a tool, as a reference implementation of the approach, to generate views and interact with users. We conducted an empirical evaluation through questionnaires and interviews to evaluate our visualization approach considering four aspects: effectiveness for program comprehension, perceived usefulness, perceived ease of use, and suitability for the intended audience. The resulting data was used to perform a qualitative and quantitative analysis. The tool identifies package responsibilities providing visual information about their annotations at different levels. Using the developed tool, the participants achieved a high correctness rate in the program comprehension tasks and performed very well in questions about the overview of the system under analysis. Finally, participants perceived that the tool outperforms existing approaches for code inspection when searching for information related to code annotations. The results show that the visualization approach using the developed tool is effective in program comprehension tasks related to code annotations, which can also be used to identify responsibilities in the application packages. Moreover, it was evaluated as suitable for newcomers to overview the usage of annotations in the system and for architects to perform a deep analysis that can potentially detect misplaced annotations and abnormal growths on their usage.
翻译:代码说明是爪哇系统在配置自定义元数据以配置编程要素方面的定制元数据时广泛使用的一种特征;由于代码说明的存在日益增加,因此需要采用评估和理解其使用和分布的方法;在这方面,对软件可视化进行了研究和研究,以改进不同方面的程序理解;本研究旨在设计软件可视化方法,以图形显示代码说明如何在软件系统中分发和组织,并开发一种工具,作为方法的参考实施,以生成观点和与用户互动;我们通过问卷和访谈进行了实证评价,以评价我们的可视化方法,考虑到四个方面:方案理解的有效性、感觉的有用性、可感知的易用性和对预定受众的适合性;由此产生的数据被用于进行定性和定量分析;该工具确定了提供不同级别说明的视觉信息的一揽子责任;利用开发的工具,参与者在程序理解任务中实现了高准确度的正确度,并在分析系统概览中很好地表现了与代码说明有关的现有代码检查方法;结果显示,在查找与代码说明有关的信息时,使用可视化方法的方法与现有方法不相符;在使用前期分析中,在方案说明中还评估了对新方案说明的正确性说明中,可有效地评估了用于。