arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1907.06157cs.SE
收藏

使用功能切换的软件开发:从业者使用的实践

Software Development with Feature Toggles: Practices used by Practitioners

Rezvan Mahdavi-Hezaveh, Jacob Dremann, Laurie Williams

摘要:

背景资料:使用功能切换是一种技术,允许开发人员使用条件语句中的变量打开或关闭功能。软件公司越来越多地使用功能切换来促进持续集成和持续交付。但是,不恰当地使用功能切换可能会导致一些问题,这些问题可能会产生严重的影响,例如代码复杂性、死代码和系统故障。例如,一个旧功能切换的错误再利用导致美国全球金融服务公司Knight Capital Group破产,原因是由此产生的不正确系统行为的影响。目的:这个研究项目的目标是帮助软件从业者在使用的做法,以支持软件支持软件开发的功能切换,通过一个实证研究的功能切换实践使用的从业者。方法:我们进行了定性分析的99个伪影从灰色文献和10个同行评议的论文功能切换。我们对38家公司的从业人员进行了调查。结果:我们确定了4类17种实践:管理实践、可持续实践、实施实践和清理实践。我们观察到,所有的调查对象都使用专用工具来创建和管理代码中的功能切换。记录功能切换的元数据、设置功能切换的默认值以及记录功能切换的更改也是经常观察到的实践。结论:在这项工作中发现和列举的功能切换开发实践可以帮助从业者更有效地使用功能切换。这项工作可以使未来的挖掘代码库,以自动识别功能切换的做法。

英文摘要:

Background: Using feature toggles is a technique that allows developers to either turn a feature on or off with a variable in a conditional statement. Feature toggles are increasingly used by software companies to facilitate continuous integration and continuous delivery. However, using feature toggles inappropriately may cause problems which can have a severe impact, such as code complexity, dead code, and system failure. For example, the erroneous repurposing of an old feature toggle caused Knight Capital Group, an American global financial services firm, to go bankrupt due to the implications of the resultant incorrect system behavior. Aim: The goal of this research project is to aid software practitioners in the use of practices to support software development with feature toggles through an empirical study of feature toggle practice usage by practitioners. Method: We conducted a qualitative analysis of 99 artifacts from the grey literature and 10 peer-reviewed papers about feature toggles. We conducted a survey of practitioners from 38 companies. Results: We identified 17 practices in 4 categories: Management practices, Initialization practices, Implementation practices, and Clean-up practices. We observed that all of the survey respondents use a dedicated tool to create and manage feature toggles in their code. Documenting feature toggle's metadata, setting up the default value for feature toggles, and logging the changes made on feature toggles are also frequently-observed practices. Conclusions: The feature toggle development practices discovered and enumerated in this work can help practitioners more effectively use feature toggles. This work can enable future mining of code repositories to automatically identify feature toggle practices.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑