WRT '12最新文献

筛选
英文 中文
An approach and tool for synchronous refactoring of UML diagrams and models using model-to-model transformations 一种使用模型到模型转换对UML图和模型进行同步重构的方法和工具
WRT '12 Pub Date : 2012-06-01 DOI: 10.1145/2328876.2328879
H. Einarsson, Helmut Neukirchen
{"title":"An approach and tool for synchronous refactoring of UML diagrams and models using model-to-model transformations","authors":"H. Einarsson, Helmut Neukirchen","doi":"10.1145/2328876.2328879","DOIUrl":"https://doi.org/10.1145/2328876.2328879","url":null,"abstract":"When refactorings are applied to software models that are specified using the Unified Modeling Language (UML), the actual model and the graphical presentation of the model using a diagram need to be distinguished. While UML refactoring tools exist, they typically perform transformations only on the model level and are not able to transform the corresponding diagram as well. Thus, the UML model and the diagram representation of the model may get out of sync. This paper presents an approach that can be used in UML tools to refactor UML models together with their diagrams. To this aim model-to-model transformations are applied to the underlying model as well as to the related diagram. To prove the applicability of this approach, a prototype plug-in for the Eclipse-based Papyrus UML editor has been implemented. The model transformation language Query/View/-Transformation (QVT) is used to specify the transformation of the UML model and the diagrams.","PeriodicalId":317782,"journal":{"name":"WRT '12","volume":"66 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2012-06-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"132661119","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 13
Refactoring tools for dynamic languages 动态语言的重构工具
WRT '12 Pub Date : 2012-06-01 DOI: 10.1145/2328876.2328885
Max Schäfer
{"title":"Refactoring tools for dynamic languages","authors":"Max Schäfer","doi":"10.1145/2328876.2328885","DOIUrl":"https://doi.org/10.1145/2328876.2328885","url":null,"abstract":"Dynamic languages play an increasingly prominent role in modern software development. They are used in domains as diverse as web programming and scientific computing, for developing simple scripts as well as large applications.\u0000 Tool-supported refactoring for these languages can bring important benefits to programmers. First, manual refactoring tends to be error-prone in dynamic languages since they impose very little static structure; hence, erroneous refactorings often cannot be detected until runtime. A tool can use static program analysis to check the soundness of a proposed refactoring, thus mitigating this problem. Second, dynamic languages tend to lack constructs for modularisation and encapsulation, which can be an obstacle to writing maintainable software. In many cases, such constructs can be emulated using other language features, but refactoring a program to make use of such patterns is often non-trivial and could benefit from tool support. Third, refactoring tools can be useful for adapting programs to use high-level features, thus supporting script to program evolution.\u0000 However, specifying and implementing refactorings for dynamic languages is a challenging endeavour. We highlight some of the major issues in this area, and discuss recent progress towards solving them.","PeriodicalId":317782,"journal":{"name":"WRT '12","volume":"138 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2012-06-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"124631014","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 9
Identifying extract-method refactoring candidates automatically 自动识别提取方法重构候选者
WRT '12 Pub Date : 2012-06-01 DOI: 10.1145/2328876.2328883
Tushar Sharma
{"title":"Identifying extract-method refactoring candidates automatically","authors":"Tushar Sharma","doi":"10.1145/2328876.2328883","DOIUrl":"https://doi.org/10.1145/2328876.2328883","url":null,"abstract":"Refactoring becomes an essential activity in software development process especially for large and long life projects. Extract-method is one of the most frequently used refactorings to address code smells such as long and incohesive methods, and duplicated code. Automated means of identifying opportunities for refactoring can make the software development process faster and more efficient. In this paper, an abstraction for methods viz. Data and Structure Dependency (DSD) graph and an algorithm viz. longest edge removal algorithm to find extract-method refactoring candidates is proposed.","PeriodicalId":317782,"journal":{"name":"WRT '12","volume":"2 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2012-06-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"121755604","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 18
Custom declarative refactoring in NetBeans: tool demonstration NetBeans中的自定义声明式重构:工具演示
WRT '12 Pub Date : 2012-06-01 DOI: 10.1145/2328876.2328886
J. Lahoda, Jan Becicka, Ralph Benjamin Ruijs
{"title":"Custom declarative refactoring in NetBeans: tool demonstration","authors":"J. Lahoda, Jan Becicka, Ralph Benjamin Ruijs","doi":"10.1145/2328876.2328886","DOIUrl":"https://doi.org/10.1145/2328876.2328886","url":null,"abstract":"In this paper, we briefly describe NetBeans' custom refactoring feature, its history and possible evolution. We will also mention some of the pain points that we ran into while this feature and its parts have been developed and moved into the production.","PeriodicalId":317782,"journal":{"name":"WRT '12","volume":"35 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2012-06-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"134113440","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 7
A language-independent parallel refactoring framework 一个独立于语言的并行重构框架
WRT '12 Pub Date : 2012-06-01 DOI: 10.1145/2328876.2328884
Christopher Brown, K. Hammond, M. Danelutto, P. Kilpatrick
{"title":"A language-independent parallel refactoring framework","authors":"Christopher Brown, K. Hammond, M. Danelutto, P. Kilpatrick","doi":"10.1145/2328876.2328884","DOIUrl":"https://doi.org/10.1145/2328876.2328884","url":null,"abstract":"Recent trends towards increasingly parallel computers mean that there needs to be a seismic shift in programming practice. The time is rapidly approaching when most programming will be for parallel systems. However, most programming techniques in use today are geared towards sequential, or occasionally small-scale parallel, programming. While refactoring has so far mainly been applied to sequential programs, it is our contention that refactoring can play a key role in significantly improving the programmability of parallel systems, by allowing the programmer to apply a set of well-defined transformations in order to parallelise their programs. In this paper, we describe a new language-independent refactoring approach that helps introduce and tune parallelism through high-level design patterns targeting a set of well-specified parallel skeletons. We believe this new refactoring process is the key to allowing programmers to truly start thinking in parallel.","PeriodicalId":317782,"journal":{"name":"WRT '12","volume":"11 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2012-06-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"127449772","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 17
Computation of refactoring plans from refactoring strategies using HTN planning 基于HTN规划的重构策略的重构计划计算
WRT '12 Pub Date : 2012-06-01 DOI: 10.1145/2328876.2328880
F. P. García, Yania Crespo
{"title":"Computation of refactoring plans from refactoring strategies using HTN planning","authors":"F. P. García, Yania Crespo","doi":"10.1145/2328876.2328880","DOIUrl":"https://doi.org/10.1145/2328876.2328880","url":null,"abstract":"Complex refactoring processes, such as applying big refactorings or removing design smells are difficult to perform in practice. The complexity of these processes is partly due to their heuristic nature and to the constraints imposed by preconditions on the applicability of the individual refactorings. We introduce refactoring strategies as heuristic-based, automation-suitable specifications of a complex refactoring process. They allow us to specify correction strategies and big refactorings more formally than it is done in current catalogues. Refactoring strategies can be instantiated, for each particular case, into refactoring plans. We define refactoring plans as sequences of refactorings that are immediately applicable over the current system source code. We have developed an approach for instantiating refactoring strategies into refactoring plans that uses Hierarchical Task Network (HTN) planning. This paper describes this approach and presents a case study, in order to evaluate and characterise it.","PeriodicalId":317782,"journal":{"name":"WRT '12","volume":"296 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2012-06-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"115215286","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 4
Refactoring development simplified: demonstration 简化的重构开发:演示
WRT '12 Pub Date : 2012-06-01 DOI: 10.1145/2328876.2328887
Ralph Benjamin Ruijs, J. Lahoda, Jan Becicka
{"title":"Refactoring development simplified: demonstration","authors":"Ralph Benjamin Ruijs, J. Lahoda, Jan Becicka","doi":"10.1145/2328876.2328887","DOIUrl":"https://doi.org/10.1145/2328876.2328887","url":null,"abstract":"In this paper we briefly describe a new Java Refactoring API to simplify development.","PeriodicalId":317782,"journal":{"name":"WRT '12","volume":"55 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2012-06-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"122917152","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
Scripting a refactoring with Rascal and Eclipse 用Rascal和Eclipse编写重构脚本
WRT '12 Pub Date : 2012-06-01 DOI: 10.1145/2328876.2328882
M. Hills, P. Klint, J. Vinju
{"title":"Scripting a refactoring with Rascal and Eclipse","authors":"M. Hills, P. Klint, J. Vinju","doi":"10.1145/2328876.2328882","DOIUrl":"https://doi.org/10.1145/2328876.2328882","url":null,"abstract":"To facilitate experimentation with creating new, complex refactorings, we want to reuse existing transformation and analysis code as orchestrated parts of a larger refactoring: i.e., to script refactorings. The language we use to perform this scripting must be able to deal with the diversity of languages, tools, analyses, and transformations that arise in practice. To illustrate one solution to this problem, in this paper we describe, in detail, a specific refactoring script for switching from the Visitor design pattern to the Interpreter design pattern. This script, written in the meta-programming language Rascal, and targeting an interpreter written in Java, extracts facts from the interpreter code using the Eclipse JDT, performs the needed analysis in Rascal, and then transforms the interpreter code using a combination of Rascal code and existing JDT refactorings. Using this script we illustrate how a new, real and complex refactoring can be scripted in a few hundred lines of code and within a short timeframe. We believe the key to successfully building such refactorings is the ability to pair existing tools, focused on specific languages, with general-purpose meta-programming languages.","PeriodicalId":317782,"journal":{"name":"WRT '12","volume":"68 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2012-06-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"121510656","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 31
What kind of and how clones are refactored?: a case study of three OSS projects 什么样的克隆以及如何重构?:三个OSS项目的案例研究
WRT '12 Pub Date : 2012-06-01 DOI: 10.1145/2328876.2328877
Eunjong Choi, Norihiro Yoshida, Katsuro Inoue
{"title":"What kind of and how clones are refactored?: a case study of three OSS projects","authors":"Eunjong Choi, Norihiro Yoshida, Katsuro Inoue","doi":"10.1145/2328876.2328877","DOIUrl":"https://doi.org/10.1145/2328876.2328877","url":null,"abstract":"Although code clone (i.e. a code fragment that has similar or identical fragments) is regarded as one of the most typical bad smells, tools for identification of clone refactoring (i.e. merge code clones into a single method) are not commonly used. To promote the development of more widely-used tools for clone refactoring, we present an investigation of actual clone refactorings performed in the developments of three Open Source Software (OSS) projects. From the results, we confirmed that clone refactorings are mostly archived by two refactoring patterns, and token sequences of refactored code clones are suggested to have a difference of 50%.","PeriodicalId":317782,"journal":{"name":"WRT '12","volume":"21 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2012-06-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"129624273","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 9
Let's make refactoring tools user-extensible! 让我们让重构工具用户可扩展!
WRT '12 Pub Date : 2012-06-01 DOI: 10.1145/2328876.2328881
Huiqing Li, S. Thompson
{"title":"Let's make refactoring tools user-extensible!","authors":"Huiqing Li, S. Thompson","doi":"10.1145/2328876.2328881","DOIUrl":"https://doi.org/10.1145/2328876.2328881","url":null,"abstract":"We present a framework for making a refactoring tool extensible, allowing users to define refactorings from scratch using the concrete syntax of the language, as well as to describe complex refactorings in a domain-specific language for scripting. We demonstrate the approach in practice through a series of examples.\u0000 The extension framework is built into Wrangler, a tool for refactoring Erlang programs, but we argue that the approach is equally applicable to tools for other languages.","PeriodicalId":317782,"journal":{"name":"WRT '12","volume":"25 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2012-06-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"122093484","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 20
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
相关产品
×
本文献相关产品
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书