动态语言可以自动重构吗? [英] Is Automatic Refactoring Possible in Dynamic Languages?

查看:131
本文介绍了动态语言可以自动重构吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

也许我对动态语言的经验有所限制(在Netbeans上使用Ruby,在Eclipse上使用Groovy),但是在我看来,动态语言的本质使其无法重构(重命名方法,类,上推,拉动) -等)

Perhaps I am limited by my experience with dynamic languages (Ruby on Netbeans and Groovy on Eclipse), but it seems to me that the nature of dynamic languages makes it impossible to refactor (renaming methods, classes, pushing-up, pulling-down, etc.) automatically.

是否可以使用任何动态语言(使用任何IDE/工具)自动重构?我对Ruby,Python和Groovy尤其感兴趣,以及重构与100%自动重构相比如何在所有Java IDE中都可用.

Is it possible to refactor AUTOMATICALLY in any dynamic language (with any IDE/tool)? I am especially interested in Ruby, Python and Groovy, and how the refactoring compares to the 100% automatic refactoring available in all Java IDEs.

推荐答案

鉴于自动重构是动态语言(Smalltalk)发明的(em> ),我不得不说是".

Given that automatic refactoring was invented in a dynamic language (Smalltalk), I would have to say "Yes".

特别是,约翰·布兰特(John Brant),唐·罗伯茨(Don Roberts)和拉尔夫·约翰逊(Ralph Johnson)开发了重构浏览器,是Squeak等工具中的核心工具之一.

In particular, John Brant, Don Roberts and Ralph Johnson developed the Refactoring Browser which is one of the core tools in, for instance, Squeak.

我的Google-fu今天很虚弱,但是您可以尝试找到这篇论文:Don Roberts,John Brant和Ralph Johnson,Smalltalk的重构工具,对象系统的理论与实践",(3)4, 1997.

My Google-fu is weak today, but you could try find this paper: Don Roberts, John Brant, and Ralph Johnson, A Refactoring Tool for Smalltalk, "The Theory and Practice of Object Systems", (3) 4, 1997.

这篇关于动态语言可以自动重构吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆