The Refactoring Now that everything has been refactored out of Kanban#find, there really is no use for it. All that it does is to wrap the constructor so it’s now useless code. Before 1 2 3 4 5 6 # app/models/kanban.rb class Kanban def self.find Kanban.new end end# app/models/kanban.rb class Kanban def self.find Kanban.new end …
Tag: remove-middle-man
Daily Refactor #50: Remove Middle Man methods in Kanban
In yesterday’s post I used Replace Data Value with Object to start converting much of the Kanban plugin’s code to be more object oriented. I finished up that refactoring in some other commits if you’re interested in how it went. The Refactoring As a result of this refactoring, I was left with a bunch of …