期刊文献+

Mining Design Pattern Use Scenarios and Related Design Pattern Pairs:A Case Study on Online Posts 被引量:1

原文传递
导出
摘要 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.
出处 《Journal of Computer Science & Technology》 SCIE EI CSCD 2020年第5期963-978,共16页 计算机科学技术学报(英文版)
基金 supported by the National Key Research and Development Program of China under Grant No.2018YFB1003903 the National Natural Science Foundation of China under Grant Nos.61722202 and 61772107.
  • 相关文献

参考文献3

二级参考文献87

  • 1Xia X, Lo D, Wang X, Zhou B. Tag recommendation in software information sites. In Proc. the l Oth Working Con- ference on Mining Software Repositories ( MSR), May 2013, pp.287-296.
  • 2Begel A, DeLine R, Zimmermann T. Social media for soft- ware engineering. In Proe. the FSE//SDP Workshop on Fu- ture of Software Engineering Research, November 2010, pp.33-38.
  • 3Storey M A, Treude C, Deursen A, Cheng L T. The impact of social media on software engineering pruetices and tools. In Proc. the FSE/SDP Workshop on Future of Software Engineering Research, November 2010, pp.359-364.
  • 4Blei D M, Ng A Y, Jordan M I. Latent Dirichlet allocation. Journal Machine Learning Research, 2003, 3: 993-1022.
  • 5Bacchelli A. Mining challenge 2013: Stack Overflow. In Proe. the lOth MSR, May 2013.
  • 6Runeson P, Alexandersson M, Nyholm O. Detection of du- plicate defect reports using natural language processing. In Proc. the 29th International Conference on Software Engi- neering (ICSE), May 2007, pp.499-510.
  • 7Porter M. An algorithm for suffix stripping. Program, 1980, 14(3): 130-137.
  • 8Kochhar P S, Thung F, Lo D. Automatic fine-grained is- sue report reclassification. In Proc. the 19th International Conference on Engineering of Complex Computer Systems (ICECCS), August 2014, pp.126-135.
  • 9Thung F, Lo D, Jiang L. Automatic defect categorization. In Proc. the 19th Working Conference on Reverse Engi- neering (WCRE), October 2012, pp.205-214.
  • 10Baeza-Yates R, Ribeiro-Neto B. Modern Information Re- trieval: The Concepts and Technology Behind Search (2nd edition). Addision Wesley, 2011.

共引文献10

同被引文献11

引证文献1

二级引证文献19

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部