Mining Design Rules
DOI:
https://doi.org/10.13021/jssr2021.3226Abstract
Design rules capture guidelines that help ensure that code is organized and written correctly. Active Documentation is a tool that allows developers to document their own design decisions that can be checked against code. Recent work has explored ways to mine these rules from code by looking for frequent co-occurring features within code. However, it is unclear what types of code features are most important to include and how effective this may be in identifying design rules. To answer these questions, we searched for design rules and best practices related to the Fragment and Activity APIs in Android. To test the performance of the technique, we also ran the tool on codebases that included known design rules to see if it could discover these rules. We found a variety of types of design rules that were not yet able to be detected, including specific types of method parameters, function calls, and method call chains. These results suggest ways in which the existing data mining technique may be improved to better identify the design rules developers work with every day. We also found that many design rules are highly similar, and potentially redundant, and explored ways in which rules might be clustered to reduce this redundancy. By refining the layout of the tool and fine-tuning the features and parameters used for mining, developers can more easily identify the most important design patterns present in their code.
Published
Issue
Section
Categories
License
Copyright (c) 2022 NEHA KONDURU, MUSTAFA LONANDWALA, Sahar Mehrpour, Thomas LaToza
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.