miniblog.
← Back to all posts
Sep 4, 2017 at 19:25
Fascinating paper on refactoring: extract method is most common, most refactoring is manual, and tool trust is low!
https://arxiv.org/abs/1607.02459
Why We Refactor? Confessions of GitHub Contributors
Refactoring is a widespread practice that helps developers to improve the maintainability and readability of their code. However, there is a limited number of studies empirically investigating the actual motivations behind specific refactoring operations applied by developers. To fill this gap, we monitored Java projects hosted on GitHub to detect recently applied refactorings, and asked the developers to ex- plain the reasons behind their decision to refactor the code. By applying thematic analysis on the collected responses, we compiled a catalogue of 44 distinct motivations for 12 well-known refactoring types. We found that refactoring activity is mainly driven by changes in the requirements and much less by code smells. Extract Method is the most versatile refactoring operation serving 11 different purposes. Finally, we found evidence that the IDE used by the developers affects the adoption of automated refactoring tools.
Wilfred Hughes
Related Posts
Apr 27, 2021 at 05:12
1
Pharo 9 refactoring demonstrates some clever analysis: if you extract a method from an expression, it can find other occurrences of that expression in the class hierarchy!
Pharo 90 refactoring support improves steadily…
Check extract method for a productivity boost. Well done Evelyn from Semantics S.R.L.
Wilfred Hughes
Shared words: refactoring, extract, method Score: 64.9
Jul 11, 2016 at 18:29
A remarkable paper just uploaded to arXiv: *proving* that refactoring tools don't break C code!
Renaming Global Variables in C Mechanically Proved Correct
Most integrated development environments are shipped with refactoring tools. However, their refactoring operations are often known to be unreliable. As a consequence, developers have to test their code after applying an automatic refactoring. In this article, we consider a refactoring operation (renaming of global variables in C), and we prove that its core implementation preserves the set of possible behaviors of transformed programs. That proof of correctness relies on the operational semantics of C provided by CompCert C in Coq.
Wilfred Hughes
Shared words: refactoring, paper, tool Score: 54.5
Aug 10, 2019 at 15:26
Badges to Acknowledge Open Practices: A Simple, Low-Cost, Effective Method for Increasing Transparency
https://journals.plos.org/plosbiology/article?id=10.1371/journal.pbio.1002456
'Open Data' badges on scientific papers hugely increased the amount of open data. Reminds me of READMEs with testing badges!
Badges to Acknowledge Open Practices: A Simple, Low-Cost, Effective Method for Increasing Transparency
Badges that acknowledge open practices significantly increase sharing of reported data and materials, as well as subsequent accessibility, correctness, usability, and completeness.
Wilfred Hughes
Shared words: paper, method, low Score: 44.9