RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

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!

read more @ rubylove.io

Comments

exercise :)

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in