当前位置: X-MOL 学术J. Comput. Sci. Tech. › 论文详情
Our official English website, www.x-mol.net, welcomes your feedback! (Note: you will need to create a separate account there.)
Mining Design Pattern Use Scenarios and Related Design Pattern Pairs: A Case Study on Online Posts
Journal of Computer Science and Technology ( IF 1.9 ) Pub Date : 2020-09-30 , DOI: 10.1007/s11390-020-0407-4
Dong Liu , Zhi-Lei Ren , Zhong-Tian Long , Guo-Jun Gao , He Jiang

In common design pattern collections, e.g., design pattern books, design patterns are documented with templates that consist of multiple attributes, such as intent, structure, and sample code. To adapt to modern developers, the depictions of design patterns, especially some specific attributes, should advance with the current programming technologies, for example, “known uses”, which exemplifies the use scenarios of design patterns in practice, and “related patterns”, which describes the relatedness between a design pattern and the others within a context. However, it is not easy to update the contents of these attributes manually due to the diversity of the programming technologies. To address this problem, in this work, we conducted a case study to mine design pattern use scenarios and related design pattern pairs from Stack Overflow posts to enrich the two attributes. We first extracted the question posts relevant to each design pattern by identifying the design pattern tags. Then, the topics of the posts were discovered by applying topic modeling techniques. Finally, by analyzing the topics specified for each design pattern, we detected 195 design pattern use scenarios and 70 related design pattern pairs, involving 61 design patterns totally. These findings are associated with a variety of popular software frameworks and programming techniques. They could complement the existing design pattern collections and help developers better acknowledge the usage and relatedness of design patterns in today’s programming practice.

中文翻译:

挖掘设计模式使用场景和相关设计模式对:在线帖子案例研究

在常见的设计模式集合中,例如设计模式书籍,设计模式用模板记录,模板包含多个属性,例如意图、结构和示例代码。为适应现代开发者,对设计模式的描述,尤其是一些特定的属性,应该随着当前的编程技术而进步,例如“已知用途”,举例说明设计模式在实践中的使用场景,“相关模式”,它描述了设计模式与上下文中的其他模式之间的相关性。但是,由于编程技术的多样性,手动更新这些属性的内容并不容易。为了解决这个问题,在这项工作中,我们进行了一个案例研究,从 Stack Overflow 帖子中挖掘设计模式使用场景和相关设计模式对,以丰富这两个属性。我们首先通过识别设计模式标签来提取与每个设计模式相关的问题帖子。然后,通过应用主题建模技术发现帖子的主题。最后,通过分析每个设计模式指定的主题,我们检测到195个设计模式使用场景和70个相关设计模式对,共涉及61个设计模式。这些发现与各种流行的软件框架和编程技术有关。它们可以补充现有的设计模式集合,并帮助开发人员更好地了解设计模式在当今编程实践中的用法和相关性。我们首先通过识别设计模式标签来提取与每个设计模式相关的问题帖子。然后,通过应用主题建模技术发现帖子的主题。最后,通过分析每个设计模式指定的主题,我们检测到195个设计模式使用场景和70个相关设计模式对,共涉及61个设计模式。这些发现与各种流行的软件框架和编程技术有关。它们可以补充现有的设计模式集合,并帮助开发人员更好地了解设计模式在当今编程实践中的用法和相关性。我们首先通过识别设计模式标签来提取与每个设计模式相关的问题帖子。然后,通过应用主题建模技术发现帖子的主题。最后,通过分析每个设计模式指定的主题,我们检测到195个设计模式使用场景和70个相关设计模式对,共涉及61个设计模式。这些发现与各种流行的软件框架和编程技术有关。它们可以补充现有的设计模式集合,并帮助开发人员更好地了解设计模式在当今编程实践中的用法和相关性。通过分析每个设计模式指定的主题,我们检测到195个设计模式使用场景和70个相关设计模式对,共涉及61个设计模式。这些发现与各种流行的软件框架和编程技术有关。它们可以补充现有的设计模式集合,并帮助开发人员更好地了解设计模式在当今编程实践中的用法和相关性。通过分析每个设计模式指定的主题,我们检测到195个设计模式使用场景和70个相关设计模式对,共涉及61个设计模式。这些发现与各种流行的软件框架和编程技术有关。它们可以补充现有的设计模式集合,并帮助开发人员更好地了解设计模式在当今编程实践中的用法和相关性。
更新日期:2020-09-30
down
wechat
bug