The Sequential Initializer Pattern.

EuroPLoP(2022)

引用 0|浏览1
暂无评分
摘要
This paper describes the Sequential Initializer Pattern, a creational design pattern for programming. Creational design patterns deal with the creation and initialization of objects. The Sequential Initializer Pattern provides a way to initialize an object by enforcing a series of function calls which are responsible for the initialization of the semantically different parts of the complex object. This improves readability and writeability and reduces the cognitive load of the programmer. The benefits of this pattern are numerous. It enforces correct usage by the developer, as there is only one way to initialize an object which is additionally enforced by the compiler. It is readable in a way that the intent of each passed parameter for initialization becomes clear. Dependencies and semantic connections between the parameters can be modeled as desired. We show that applying this pattern overcomes many of the hurdles of initialization of complex objects for a programmer.
更多
查看译文
AI 理解论文
溯源树
样例
生成溯源树,研究论文发展脉络
Chat Paper
正在生成论文摘要