リファクタリングがしやすいのは、静的型付け言語
■ このスレッドは過去ログ倉庫に格納されています
0437デフォルトの名無しさん
2013/02/20(水) 22:57:21.39http://c2.com/cgi/wiki?RefactoringBrowser
The RefactoringBrowser is a tool that automates some ReFactorings for Smalltalk.
・ExtractMethod -- make a submethod out of the selected text. If there is already an equivalent method, optionally invoke that instead.
・Inline method -- put the invoked code in place of the invocation. This even works for methods in other classes.
・Move to component -- move the code for a method to another class and invoke it
・These three together are extremely powerful. For example, if I notice.
・Add parameter -- add a parameter to every implementor of a message, and to every invocation of the message (with a Default value)
・Remove parameter -- if no implementor of the message uses the parameter, remove it from the methods and the invocations
・Cross referencing from inside the source code -- select any program element in the text and you get a choice of several specialized browsers - senders/implementors of a message, readers/writers of a variable
・Rename -- you can rename classes, variables (all types), and messages
・Abstract/concrete instance variables -- make all references to an instance variable go through a message, or make all references direct
■ このスレッドは過去ログ倉庫に格納されています