An Excersize in Refactoring in Ruby
Today I want to examine one of my favorite refactoring patterns, Extract Method.
When a method does too much or is too long? Extract method. When you see a conditional with an if and an else. Extract method. When you see a comment… EXTRACT METHOD!
Comments
exercise :)
Post a comment