用3D蘑菇农场比喻代码和代码气味的可视化

Anandhini Medianty Nababan, B. Hendradjaya
{"title":"用3D蘑菇农场比喻代码和代码气味的可视化","authors":"Anandhini Medianty Nababan, B. Hendradjaya","doi":"10.1109/ICEEI47359.2019.8988796","DOIUrl":null,"url":null,"abstract":"Code visualization presents a visual representation of the state of the code to support code comprehension activities. In addition to representing code elements (for example, methods, classes and packages) and relationships between them, previous studies of code visualization also represent metrics to indicate code smell. However, the metric value only shows vague symptoms in describing the code smell behind it. This study tries to visualize the code smell directly using detection strategies, which are formulation of one or more than one metric and its threshold value for each type of code smell. ‘Smelly’ elements are immediately shown in code visualization according to the predetermined detection strategies. 3D mushroom farm metaphor is a new metaphor proposed in this study for code visualization. Through code visualization in a familiar natural 3D environment, code properties are displayed in an attractive manner. The presented code properties are chosen by considering object-oriented paradigm key ideas. During this time, there has never been a fundamental reason as to why a specific property was chosen to be included in a code visualization metaphor. Therefore, this study questioned code properties visualized to participants of the evaluation: is the early comprehension of the code sufficient enough or should it be added/reduced. The evaluation results showed that the code smell that was immediately shown in the visualization could be captured by the user correctly. All evaluated participants managed to identify all the smelly elements. Broadly speaking, participants understood the purpose of visualization and agreed that code visualization with the 3D mushroom farm metaphor is intuitive and easy to use. All participants stated that they needed all code properties displayed in code visualization with the 3D mushroom farm metaphor, although there were participants who proposed several properties to be added to the visualization.","PeriodicalId":236517,"journal":{"name":"2019 International Conference on Electrical Engineering and Informatics (ICEEI)","volume":"23 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2019-07-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":"{\"title\":\"Visualization of Codes and Code Smells with 3D Mushroom Farm Metaphor\",\"authors\":\"Anandhini Medianty Nababan, B. Hendradjaya\",\"doi\":\"10.1109/ICEEI47359.2019.8988796\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Code visualization presents a visual representation of the state of the code to support code comprehension activities. In addition to representing code elements (for example, methods, classes and packages) and relationships between them, previous studies of code visualization also represent metrics to indicate code smell. However, the metric value only shows vague symptoms in describing the code smell behind it. This study tries to visualize the code smell directly using detection strategies, which are formulation of one or more than one metric and its threshold value for each type of code smell. ‘Smelly’ elements are immediately shown in code visualization according to the predetermined detection strategies. 3D mushroom farm metaphor is a new metaphor proposed in this study for code visualization. Through code visualization in a familiar natural 3D environment, code properties are displayed in an attractive manner. The presented code properties are chosen by considering object-oriented paradigm key ideas. During this time, there has never been a fundamental reason as to why a specific property was chosen to be included in a code visualization metaphor. Therefore, this study questioned code properties visualized to participants of the evaluation: is the early comprehension of the code sufficient enough or should it be added/reduced. The evaluation results showed that the code smell that was immediately shown in the visualization could be captured by the user correctly. All evaluated participants managed to identify all the smelly elements. Broadly speaking, participants understood the purpose of visualization and agreed that code visualization with the 3D mushroom farm metaphor is intuitive and easy to use. All participants stated that they needed all code properties displayed in code visualization with the 3D mushroom farm metaphor, although there were participants who proposed several properties to be added to the visualization.\",\"PeriodicalId\":236517,\"journal\":{\"name\":\"2019 International Conference on Electrical Engineering and Informatics (ICEEI)\",\"volume\":\"23 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2019-07-01\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"1\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"2019 International Conference on Electrical Engineering and Informatics (ICEEI)\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1109/ICEEI47359.2019.8988796\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"2019 International Conference on Electrical Engineering and Informatics (ICEEI)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ICEEI47359.2019.8988796","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 1

摘要

代码可视化提供代码状态的可视化表示,以支持代码理解活动。除了表示代码元素(例如,方法、类和包)以及它们之间的关系之外,以前对代码可视化的研究还表示了指示代码气味的度量。但是,度量值在描述其背后的代码气味时仅显示模糊的症状。本研究试图使用检测策略直接可视化代码气味,这些策略是为每种类型的代码气味制定一个或多个度量及其阈值。根据预先确定的检测策略,“臭”元素立即显示在代码可视化中。三维蘑菇场隐喻是本研究提出的一种用于代码可视化的新隐喻。通过在熟悉的自然3D环境中的代码可视化,代码属性以一种吸引人的方式显示出来。通过考虑面向对象范式的关键思想来选择所提供的代码属性。在此期间,从来没有一个根本的原因,为什么一个特定的属性被选择包括在代码可视化比喻。因此,本研究质疑了对评估参与者可视化的代码属性:对代码的早期理解是否足够,或者是否应该添加/减少代码。评估结果表明,在可视化中立即显示的代码气味可以被用户正确捕获。所有被评估的参与者都能识别出所有难闻的元素。总的来说,参与者理解可视化的目的,并同意用3D蘑菇农场比喻的代码可视化直观且易于使用。所有的参与者都表示,他们需要用3D蘑菇农场的比喻在代码可视化中显示所有的代码属性,尽管也有参与者建议在可视化中添加几个属性。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
Visualization of Codes and Code Smells with 3D Mushroom Farm Metaphor
Code visualization presents a visual representation of the state of the code to support code comprehension activities. In addition to representing code elements (for example, methods, classes and packages) and relationships between them, previous studies of code visualization also represent metrics to indicate code smell. However, the metric value only shows vague symptoms in describing the code smell behind it. This study tries to visualize the code smell directly using detection strategies, which are formulation of one or more than one metric and its threshold value for each type of code smell. ‘Smelly’ elements are immediately shown in code visualization according to the predetermined detection strategies. 3D mushroom farm metaphor is a new metaphor proposed in this study for code visualization. Through code visualization in a familiar natural 3D environment, code properties are displayed in an attractive manner. The presented code properties are chosen by considering object-oriented paradigm key ideas. During this time, there has never been a fundamental reason as to why a specific property was chosen to be included in a code visualization metaphor. Therefore, this study questioned code properties visualized to participants of the evaluation: is the early comprehension of the code sufficient enough or should it be added/reduced. The evaluation results showed that the code smell that was immediately shown in the visualization could be captured by the user correctly. All evaluated participants managed to identify all the smelly elements. Broadly speaking, participants understood the purpose of visualization and agreed that code visualization with the 3D mushroom farm metaphor is intuitive and easy to use. All participants stated that they needed all code properties displayed in code visualization with the 3D mushroom farm metaphor, although there were participants who proposed several properties to be added to the visualization.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信