代码气味
重构代码
计算机科学
编码(集合论)
可视化
软件工程
源代码
软件
启发式
代码评审
静态程序分析
程序设计语言
人机交互
软件开发
软件质量
人工智能
操作系统
集合(抽象数据类型)
作者
Emerson Murphy-Hill,Andrew P. Black
标识
DOI:10.1145/1879211.1879216
摘要
Code smells are characteristics of software that indicate that code may have a design problem. Code smells have been proposed as a way for programmers to recognize the need for restructuring their software. Because code smells can go unnoticed while programmers are working, tools called smell detectors have been developed to alert programmers to the presence of smells in their code, and to help them understand the cause of those smells. In this paper, we propose a novel smell detector called Stench Blossom that provides an interactive ambient visualization designed to first give programmers a quick, high-level overview of the smells in their code, and then, if they wish, to help in understanding the sources of those code smells. We also describe a laboratory experiment with 12 programmers that tests several hypotheses about our tool. Our findings suggest that programmers can use our tool effectively to identify smells and to make refactoring judgements. This is partly because the tool serves as a memory aid, and partly because it is more reliable and easier to use than heuristics for analyzing smells.
科研通智能强力驱动
Strongly Powered by AbleSci AI