The Refactoring Today’s refactoring cleans up some of the stubs left from last Friday. Before 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 class InvoiceController < ApplicationController def autofill @autofill = Autofill.new_from_params(params[:autofill]) # TODO: should just access @autofill directly @p = @autofill.p …
Tag: replace-data-value-with-object
Daily Refactor #49: Replace Incoming Pane’s Data Value with Object
I’ve made a mistake. The last few refactorings I’ve been doing to the Kanban plugin have been useful but they haven’t really been improving the design of the plugin. I thought about it yesterday and discovered that I was just swapping out bits of procedural code for more procedural code. Once I saw this, I …