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!

Is it always a good idea to split long methods into smaller ones? An experiment.

Have you heard an opinion that it’s always a good idea to split a long method into smaller ones? Some people disagree. In my new post I conduct a refactoring experiment, with the goal of breaking up a hard-to-split method and STILL getting better readability. If this example can be improved by splitting, does that mean it’s always better?

https://rubyclarity.com/2017/07/is-it-always-a-good-idea-to-split-long-methods-into-smaller-ones-an-experiment/

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