The Mind Is a Powerful Place: How Showing Code Comprehensibility Metrics Influences Code Understanding
Marvin Wyrich, Andreas Preikschat, Daniel Graziotin, Stefan Wagner

TL;DR
This study demonstrates that showing code comprehensibility metrics significantly biases developers' subjective ratings without affecting their performance, highlighting the need for scientifically validated metrics in software development tools.
Contribution
It provides the first experimental evidence of the anchoring effect of code comprehensibility metrics on developers' subjective assessments.
Findings
Displayed metrics strongly influence subjective ratings.
Performance on comprehension tasks remains unaffected.
Highlights importance of validated metrics in development tools.
Abstract
Static code analysis tools and integrated development environments present developers with quality-related software metrics, some of which describe the understandability of source code. Software metrics influence overarching strategic decisions that impact the future of companies and the prioritization of everyday software development tasks. Several software metrics, however, lack in validation: we just choose to trust that they reflect what they are supposed to measure. Some of them were even shown to not measure the quality aspects they intend to measure. Yet, they influence us through biases in our cognitive-driven actions. In particular, they might anchor us in our decisions. Whether the anchoring effect exists with software metrics has not been studied yet. We conducted a randomized and double-blind experiment to investigate the extent to which a displayed metric value for source…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
