<3 Ruby

22 Mar 2006

Today in #rubyonrails someone asked if there was a convenient way to append something (like a /) to a string if it wasn’t already there. I couldn’t think of one, so I wrote one:

class String
  def append_unless_ends_with!(string)
    self[-string.length..-1] == string ? self : self < < string
  end
end

I love ruby. :)



Tesly relaunched!

21 Mar 2006

Finally, after a number of delays (for other projects and plain ol’ randomness), the Tesly rewrite has been launched! Rewrites always take longer than you expect. :) In this case, Tesly was my first ‘learn Rails’ project, and, as such, actually was almost done twice, as I learned enough Rails to get it done the first time, then I learned enough to do it well. Since starting on the Tesly rewrite, I’ve done a number of Rails projects, so at times I’d come back to Tesly and say “oh no, that has to be redone” — and then, of course, I’d redo it. :) In other words, it has been fun, and I’m looking forward to continuing to improve it. Oh, and Capistrano plus a recipe from Jim Morris that pushes code out via tarballs simply rocks.

Now to find a good designer to help me with a logo and a web design…



RailsConf

17 Mar 2006

I found out yesterday my proposal to present at RailsConf was accepted! I’m looking forward to meeting a bunch of Rails folk, and I’m totally excited to be on the program. My presentation will be all about what I’ve been doing for the last few months — building a storefront and warehouse for music sales.