AI Chat Paper
Note: Please note that the following content is generated by AMiner AI. SciOpen does not take any responsibility related to this content.
{{lang === 'zh_CN' ? '文章概述' : 'Summary'}}
{{lang === 'en_US' ? '中' : 'Eng'}}
Chat more with AI
Article Link
Collect
Submit Manuscript
Show Outline
Outline
Show full outline
Hide outline
Outline
Show full outline
Hide outline
Regular Paper

Mining Design Pattern Use Scenarios and Related Design Pattern Pairs: A Case Study on Online Posts

School of Software, Dalian University of Technology, Dalian 116024, China
Key Laboratory for Ubiquitous Network and Service Software of Liaoning Province, Dalian 116000, China
DUT-RU International School of Information Science & Engineering at DUT, Dalian University of Technology Dalian 116620, China
Show Author Information

Abstract

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.

Electronic Supplementary Material

Download File(s)
jcst-35-5-963-Highlights.pdf (158.7 KB)

References

【1】
【1】
 
 
Journal of Computer Science and Technology
Pages 963-978

{{item.num}}

Comments on this article

Go to comment

< Back to all reports

Review Status: {{reviewData.commendedNum}} Commended , {{reviewData.revisionRequiredNum}} Revision Required , {{reviewData.notCommendedNum}} Not Commended Under Peer Review

Review Comment

Close
Close
Cite this article:
Liu D, Ren Z-L, Long Z-T, et al. Mining Design Pattern Use Scenarios and Related Design Pattern Pairs: A Case Study on Online Posts. Journal of Computer Science and Technology, 2020, 35(5): 963-978. https://doi.org/10.1007/s11390-020-0407-4

876

Views

2

Crossref

N/A

Web of Science

2

Scopus

0

CSCD

Received: 27 February 2020
Revised: 31 July 2020
Published: 30 September 2020
©Institute of Computing Technology, Chinese Academy of Sciences 2020