Flay is Coming

| | Comments (2)

Imagine having a tool that points out these two methods as potential duplicates and therefore candidates for refactoring:

def save(path)
  File.open path, 'wb' do |f|
    f.write to_blob
  end
end

versus:

def write(file); File.open(file, 'wb') { |f| f.write to_s }; end

Are they different? Sure! One calls #to_s and the other calls #to_blob. Is that enough difference to not consider them for refactoring? No, not in the slightest...

Flay... it is coming...

2 Comments

Sounds like pure gold. Looking forward to this!

Leave a comment

About this Entry

This page contains a single entry by zenspider published on September 16, 2008 11:56 PM.

Letting Go was the previous entry in this blog.

OmniFocus: Schedule Followup (applescript) is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Pages

Powered by Movable Type 4.32-en