在Java中改进的流畅生成器

Mikhail Chalabine
{"title":"在Java中改进的流畅生成器","authors":"Mikhail Chalabine","doi":"10.1109/ICIS.2018.8466532","DOIUrl":null,"url":null,"abstract":"While the classical builder pattern in Java is proven to simplify object instantiation it is known to have some inherent imperfections that leave room for improper use and open for run-time failures. In this paper we improve the classical pattern. As the main contribution we formalize the two main problems we see in the approach today and refine the pattern such that we overcome these limitations at a cost of some auxiliary plain Java code. We validate our result empirically. We run the refined pattern through two major contemporary Java development environments – Eclipse and IntelliJ – and report how the improved source code comprehension opens for better developer guiding, higher developer productivity and higher code quality.","PeriodicalId":447019,"journal":{"name":"2018 IEEE/ACIS 17th International Conference on Computer and Information Science (ICIS)","volume":"1988 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2018-06-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Refined Fluent Builder in Java\",\"authors\":\"Mikhail Chalabine\",\"doi\":\"10.1109/ICIS.2018.8466532\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"While the classical builder pattern in Java is proven to simplify object instantiation it is known to have some inherent imperfections that leave room for improper use and open for run-time failures. In this paper we improve the classical pattern. As the main contribution we formalize the two main problems we see in the approach today and refine the pattern such that we overcome these limitations at a cost of some auxiliary plain Java code. We validate our result empirically. We run the refined pattern through two major contemporary Java development environments – Eclipse and IntelliJ – and report how the improved source code comprehension opens for better developer guiding, higher developer productivity and higher code quality.\",\"PeriodicalId\":447019,\"journal\":{\"name\":\"2018 IEEE/ACIS 17th International Conference on Computer and Information Science (ICIS)\",\"volume\":\"1988 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2018-06-01\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"2018 IEEE/ACIS 17th International Conference on Computer and Information Science (ICIS)\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1109/ICIS.2018.8466532\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"2018 IEEE/ACIS 17th International Conference on Computer and Information Science (ICIS)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ICIS.2018.8466532","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

摘要

虽然Java中的经典构建器模式已被证明可以简化对象实例化,但众所周知,它有一些固有的缺陷,会给不正确的使用留下余地,并可能导致运行时失败。本文对经典模式进行了改进。作为主要贡献,我们将目前在该方法中看到的两个主要问题形式化,并改进了模式,以便以一些辅助的普通Java代码为代价克服这些限制。我们用经验来验证我们的结果。我们在两个主要的当代Java开发环境(Eclipse和IntelliJ)中运行了改进的模式,并报告了改进的源代码理解如何为更好的开发人员指导、更高的开发人员生产力和更高的代码质量打开了门。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
Refined Fluent Builder in Java
While the classical builder pattern in Java is proven to simplify object instantiation it is known to have some inherent imperfections that leave room for improper use and open for run-time failures. In this paper we improve the classical pattern. As the main contribution we formalize the two main problems we see in the approach today and refine the pattern such that we overcome these limitations at a cost of some auxiliary plain Java code. We validate our result empirically. We run the refined pattern through two major contemporary Java development environments – Eclipse and IntelliJ – and report how the improved source code comprehension opens for better developer guiding, higher developer productivity and higher code quality.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
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学术官方微信