Modularizing design patterns with aspects

Alessandro Garcia, Cláudio Sant’Anna, Eduardo Figueiredo, Uirá Kulesza, Carlos Lucena, Arndt von Staa

2005 · 265 citations · 18 references

Concepts

TL;DR

Design patterns provide flexible solutions, but many involve crosscutting concerns that object‑oriented abstractions cannot modularize, reducing system reusability and maintainability. This study investigates whether aspect‑oriented approaches improve modularization of crosscutting concerns compared to traditional object‑oriented design patterns. The authors performed a quantitative comparison of 23 Gang‑of‑Four patterns implemented in both OO and aspect‑oriented styles, evaluating them with stringent software‑engineering metrics such as coupling and cohesion. Most aspect‑oriented implementations better separate pattern‑related concerns, but only four showed significant reuse.

Abstract

Design patterns offer flexible solutions to common problems in software development. Recent studies have shown that several design patterns involve crosscutting concerns. Unfortunately, object-oriented (OO) abstractions are often not able to modularize those crosscutting concerns, which in turn decrease the system reusability and maintainability. Hence, it is important verifying whether aspect-oriented approaches support improved modularization of crosscutting concerns relative to design patterns. Ideally, quantitative studies should be performed to compare OO and aspect-oriented implementations of classical patterns with respect to important software engineering attributes, such as coupling and cohesion. This paper presents a quantitative study that compares aspect-based and OO solutions for the 23 Gang-of-Four patterns. We have used stringent software engineering attributes as the assessment criteria. We have found that most aspect-oriented solutions improve separation of pattern-related concerns, although only 4 aspect-oriented implementations have exhibited significant reuse.

References

18