rails-refactoring.com - Fearless Rails Refactoring

Description: In Fearless Refactoring: Rails controllers I'll teach how to improve your Rails controllers in a quick and safe way. This is step-by-step guide so you won't feel lost. Every step is described in every detail, with code changes. All of that, so that you can safely refactor your codebase, even without a full test coverage.

service (31222) ruby (1280) rails (611) objects (325) controllers (194) fearless (53) refactoring (45) andrzej (36) krzywda (1) arkency (1)

Example domain paragraphs

class IssuesController < ApplicationController default_search_scope :issues before_filter :find_issue , :only => [ :show , :edit , :update ] before_filter :find_issues , :only => [ :bulk_edit , :bulk_update , :destroy ] before_filter :find_project , :only => [ :new , :create , :update_form ] before_filter :authorize , :except => [ :index ] before_filter :find_optional_project , :only => [ :index ] before_filter :check_for_default_issue_status , :only => [ :new , :create ] before_filter :build_new_issue_from

The build is taking so long at your machine, that you've almost automated it to immediately open Twitter, gmail, FB, HackerNews because nothing else can be done during the tests.

The speed of adding features slows down. It's no longer fun to demonstrate new features to the Customer.

Links to rails-refactoring.com (5)