is there any free cheatsheet on ruby refactoring that i can print and put on the wall?
+1
A:
What kind of Ruby refactoring do you want to do? I think this question needs to be cleared up a little bit.
Otherwise, for a Ruby refactoring tool, you can check out: Rfactor
mwilliams
2009-06-14 03:27:28
+1 nice. never used Rfactor, maybe you can share your experiences with it. Do you use it within the editor or separately on the command line?
Ryan Oberoi
2009-06-14 04:11:36
+1
A:
I'm assuming your talking about taking common code smells and refactoring them. I haven't seen anything ruby specific, but most of what I've seen can be applied to any object oriented language if you know the basic concepts of OOP.
Try Smells to Refactorings which is a two page quick reference which describes code smells and then lists refactoring methods that can be used to fix them. To get a description (along with code samples in Java) of each of these refactoring methods, check out the Refactorings Catalog on Martin Fowler's page.
gar
2009-06-14 15:50:19