2017 · 53 citations · 62 references
ComputingComputer ScienceConflict ResolutionSoftware EngineeringSyntaxAbstract Syntax TreesSoftware DesignSoftware EvolutionSoftware MaintenanceSoftware MetricsStatic Code AnalysisAbstract Syntax Tree MergingCode Smell DetectionCode Smell MetricsCode SmellsMergeMerge Conflict DetectionSoftware Development MethodologySource Code Change Analysis
Background: Merge conflicts are a common occurrence in software development. Researchers have shown the negative impact of conflicts on the resulting code quality and the development workflow. Thus far, no one has investigated the effect of bad design (code smells) on merge conflicts. Aims: We posit that entities that exhibit certain types of code smells are more likely to be involved in a merge conflict. We also postulate that code elements that are both "smelly" and involved in a merge conflict are associated with other undesirable effects (more likely to be buggy). Method: We mined 143 repositories from GitHub and recreated 6,979 merge conflicts to obtain metrics about code changes and conflicts. We categorized conflicts into semantic or non-semantic, based on whether changes affected the Abstract Syntax Tree. For each conflicting change, we calculate the number of code smells and the number of future bug-fixes associated with the affected lines of code. Results: We found that entities that are smelly are three times more likely to be involved in merge conflicts. Method-level code smells (Blob Operation and Internal Duplication) are highly correlated with semantic conflicts. We also found that code that is smelly and experiences merge conflicts is more likely to be buggy. Conclusion: Bad code design not only impacts maintainability, it also impacts the day to day operations of a project, such as merging contributions, and negatively impacts the quality of the resulting code. Our findings indicate that research is needed to identify better ways to support merge conflict resolution to minimize its effect on code quality.
62
Scikit-learn: Machine Learning in Python
Fabián Pedregosa, Gaël Varoquaux, Alexandre Gramfort et al. · arXiv (Cornell University) · 2012 · 63.7K citations · Full text
Awareness and coordination in shared workspaces
Paul Dourish, Victoria Bellotti · 1992 · 2.5K citations · Full text
A Survey on Software Clone Detection Research
Chanchal K. Roy, James R. Cordy · 2007 · 711 citations
The WyCash portfolio management system
Ward Cunningham · 1992 · 693 citations · Full text
Technical Debt: From Metaphor to Theory and Practice
Philippe Kruchten, Robert L. Nord, İpek Özkaya · IEEE Software · 2012 · 691 citations