[email protected] wrote:
should consider. My starting point is to bring Pharo up to the level of
Eclipse
(seehttp://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.jdt.doc.user/concepts/concept-refactoring.htm
) but I would love to hear from experienced Smalltalkers about
refactorings that are important to them.
A reasonable equivalence with eclipse would be awesome (Ideally, if you
can find some time to observe java developers using Intelli-J - you
really say how they play the IDE like a piano). We are often too mouse-y
in Smalltalk, but we don't have to be (its been great seeing some of the
keyboard shortcuts introduced in Pharo).
Some really useful refactorings are:
- extract setUp method (this one is missing in all IDE's). Write a test
with no setup, and then you want to take the initialisation of a
variable at the top of a method and move it to a test setup method
(possibly extracting an instance variable as well).
- extract sub-component (or delegate or policy) - eg. extract out a
method into another class and call it via an instance variable (eg.
delegate behavior)
- extract to local variable, and inline local variable are also very
common eclipsy things that we seem to miss at a local method level in
smalltalk as well
Tim