No Accounting for Taste: Supporting Developers' Individual Choices of Coding Styles

Isaac Moreira Medeiros Gomes, Daniel Coutinho, Marcelo Schots
{"title":"No Accounting for Taste: Supporting Developers' Individual Choices of Coding Styles","authors":"Isaac Moreira Medeiros Gomes, Daniel Coutinho, Marcelo Schots","doi":"10.1109/SCAM.2019.00018","DOIUrl":null,"url":null,"abstract":"When creating their programs, developers usually have a preferred or standardized style of their own to write code, known as coding style. Such code is usually stored in a version control repository, through which collaborative work usually takes place. However, in such a setting, isolated attempts of standardization can lead to several coding styles coexisting in the same project, causing the opposite effect to that intended. Besides increasing the effort required to understand code, coding style conflicts may also clutter repository history as developers change existing styles to their usual preferences. To overcome this problem, we propose an approach to support the definition of a repository coding style while allowing developers to use their preferred coding style. To illustrate our approach, we built the RECoSt tool and applied it using real excerpts of a popular open source project. Our proposed approach intends to help developers keep their projects' coding style standardized without having to abandon the style they are familiar with.","PeriodicalId":431316,"journal":{"name":"2019 19th International Working Conference on Source Code Analysis and Manipulation (SCAM)","volume":"63 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2019-09-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"3","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2019 19th International Working Conference on Source Code Analysis and Manipulation (SCAM)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/SCAM.2019.00018","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 3

Abstract

When creating their programs, developers usually have a preferred or standardized style of their own to write code, known as coding style. Such code is usually stored in a version control repository, through which collaborative work usually takes place. However, in such a setting, isolated attempts of standardization can lead to several coding styles coexisting in the same project, causing the opposite effect to that intended. Besides increasing the effort required to understand code, coding style conflicts may also clutter repository history as developers change existing styles to their usual preferences. To overcome this problem, we propose an approach to support the definition of a repository coding style while allowing developers to use their preferred coding style. To illustrate our approach, we built the RECoSt tool and applied it using real excerpts of a popular open source project. Our proposed approach intends to help developers keep their projects' coding style standardized without having to abandon the style they are familiar with.
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
不考虑品味:支持开发人员对编码风格的个人选择
在创建程序时,开发人员通常有自己的首选或标准化的代码编写风格,称为编码风格。这样的代码通常存储在版本控制存储库中,协作工作通常通过该存储库进行。然而,在这种情况下,孤立的标准化尝试可能导致在同一项目中共存几种编码风格,从而导致与预期相反的效果。除了增加理解代码所需的工作量之外,由于开发人员将现有风格更改为他们通常的偏好,编码风格冲突还可能使存储库历史变得混乱。为了克服这个问题,我们提出了一种方法来支持存储库编码风格的定义,同时允许开发人员使用他们喜欢的编码风格。为了说明我们的方法,我们构建了RECoSt工具,并使用一个流行的开放源代码项目的真实片段来应用它。我们建议的方法旨在帮助开发人员保持他们项目的编码风格标准化,而不必放弃他们熟悉的风格。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
On the Efficacy of Dynamic Behavior Comparison for Judging Functional Equivalence Permission Issues in Open-Source Android Apps: An Exploratory Study Interactive Refactoring Documentation Bot Software Engineering by Source Transformation – Experience with TXL (Most Influential Paper, SCAM 2001) On the Quality of Identifiers in Test Code
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1