Tuesday, August 26, 2008

working days

So, my work is pretty amazing recently. I'm slowly whipping this mess of data and code into a desirable data product. As a side effect I'm producing some useful ruby methods like
class Hash
def intersection_is_equal?(other)
keys=self.keys.to_set.intersection(other.keys.to_set).to_a
self.select{|k,v|keys.include? k}.to_h== other.select{|k,v|keys.include? k}.to_h
end
end
Maybe I'll see about submitting them to ruby core.
Long story short, it's actually doing what it's supposed to do. AND I'm about to have a whole month of super overtime working on it with no one to randomly change the direction of the project.

Been writing alot of project specific code generators that are a part of my build process.
SVN is amazing, why I wasn't required to take 2 semesters on the pragprog starter kit is quite beyond me. Why I didn't have a class called "writing code generators" I'll never know.