{"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}
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.