TL;DR
This paper investigates whether visualizing architectural design decisions (ADDs) and their rationale helps software architects understand designs better and produce higher-quality outcomes. Through a controlled experiment, they found that while visualization doesn't significantly impact the time spent on tasks, it does lead to a measurable improvement in the correctness of architectural understanding and subsequent design work.
What Problem Does This Paper Address?
In software architecture, understanding why certain design choices were made (the rationale) is crucial for effective maintenance, evolution, and new development. Architectural Design Decisions (ADDs) capture these choices, but their rationale is often buried in documentation or lost entirely. While tools exist to visualize ADDs, they often lack robust support for visualizing the rationale behind these decisions. This gap hinders practitioners from fully leveraging ADD visualization, as there's a lack of empirical evidence demonstrating its benefits. This paper aims to bridge this gap by empirically evaluating whether visualizing ADDs and their rationale, using a tool called Compendium, improves architects' understanding and design quality.
Methods
The authors conducted a controlled experiment involving 10 participants (a mix of academics and industry professionals with an average of 5.6 years of experience). Participants were randomly assigned to one of two groups:
- Group A (Test Group): Received an architecture design document enhanced with ADD visualization using Compendium.
- Group B (Control Group): Received the same architecture design document but without the ADD visualization.
Both groups were tasked with understanding an existing subsystem design and then creating a new design to satisfy a new requirement. The experiment measured two key dependent variables:
- Time: The total time spent on reading the architecture document and completing the design task.
- Correctness: The quality of the new design, evaluated based on three criteria:
- Whether the new design satisfied the new requirement.
- Whether the new design conflicted with the existing design.
- Whether the new design effectively reused existing components.
Statistical analysis, specifically a t-test, was used to compare the results between the two groups.
Datasets
Not discussed in the paper. The experiment used a specific architecture document for a system called "Cyber Video System (CVC)" as the experiment material.
Key Insights and Ideas
- Visualization Aids Understanding, Not Speed: The most striking finding is that while ADD visualization didn't make architects faster at understanding or designing, it significantly improved the quality of their understanding. This suggests that the value lies in deeper comprehension rather than mere efficiency.
- Rationale is Key: The paper emphasizes that it's not just visualizing the decisions themselves, but the rationale behind them (the "why") that seems to drive the improvement in design quality.
- Compendium as a Viable Tool: The study demonstrates that Compendium, an open-source tool, can be effectively used for ADD and rationale visualization, supporting the idea that practical tools can facilitate these benefits.
- Bridging the Empirical Gap: The paper directly addresses the lack of empirical evidence for ADD visualization, providing a controlled experiment to back up its claims.
Key Results
- Time: The experiment found no statistically significant difference in the total time spent by Group A (with visualization) and Group B (without visualization) on reading the document and completing the design task. Group A actually spent slightly less total time (13.94% less on average), but this difference was not statistically significant.
- Correctness: Group A, which used ADD visualization, achieved significantly better design results. Their average correctness score was 1.95, a 44% improvement over Group B's score of 1.35. This difference was statistically significant (p-value < 0.05), leading the authors to reject the null hypothesis and accept the alternative hypothesis that visualization improves understanding.
Limitations and Future Work
The authors acknowledge several limitations:
- Small Sample Size: The experiment involved only 10 participants, which limits the generalizability of the findings. They plan to repeat the experiment with more subjects.
- Limited Task Scope: The architecture design task was relatively small due to time constraints. Future work will involve extending the experiment to a real-world, integrated architecting process (analysis, synthesis, evaluation) and larger projects.
- Evaluator Bias: The authors themselves graded the design results, introducing a potential bias. They suggest a double-blind experiment for future studies.
- Effort of Creation: Creating and recovering ADDs and their traceability links can be labor-intensive. Future work will investigate the effort involved in using visualization tools like Compendium for this purpose to conduct a cost-benefit analysis.
The authors propose future work focusing on conducting the experiment with more participants, in more realistic architecting scenarios, and exploring the effort required to create and maintain visualized ADDs.
Summary updated