Skip to main content
Mining Design Rules
College of Engineering and Computing: Department of Computer Science

Mining Design Rules

Abstract

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.

How to Cite:

, N., , M., , S. & , T., (2022) “Mining Design Rules”, Journal of Student-Scientists' Research 3. doi: https://doi.org/10.13021/jssr2021.3226

Files

Downloads are not available for this article.

Share

Author details

Files

Downloads are not available for this article.

Issue

Information

Metrics

  • Views: 919

Citation

RIS (download.) BibTeX (download.)

File Checksums

(MD5)

File Checksums are not available for this article.