检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:Dong Liu Zhi-Lei Ren Zhong-Tian Long Guo-Jun Gao He Jiang
机构地区:[1]School of Software,Dalian University of Technology,Dalian 116024,China [2]Key Laboratory for Ubiquitous Network and Service Software of Liaoning Province,Dalian 116000,China [3]DUT-RU International School of Information Science&Engineering at DUT,Dalian University of Technology Dalian 116620,China
出 处:《Journal of Computer Science & Technology》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.
摘 要: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.
关 键 词:design pattern software documentation Stack Overflow topic model
分 类 号:TP311[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.117