This was written by John Barnette on 2009-01-01 Be Confident Tests build confidence. Write ‘em. They’ll save your ass, and they’ll let you take a chainsaw to your code without being afraid of unintended consequences. Be Lazy Write tools. If it’s happened more than twice, don’t ever do...

@Chris Jones: I’m sorry to be the guy that has to do this, but you need to take a step back and realize that you sound like one of the “vim masters” from the article. I was once feeling the EXACT pains Yehuda described (probably the same ones drj once felt too), and you are pretty wro...

Related:

I have a personal hatred for weekend conferences*. To me, a weekend conference ensures that I'll be "working" for 12 straight days. I understand that opinion isn't universal. Some people have problems getting time "off" to attend conferences. These situations feel like a fundamental m...

In order for inheritance to work for the callback queues, you must specify the callbacks before specifying the associations. Otherwise, you might trigger the loading of a child before the parent has registered the callbacks and they won't be inherited.

Bit-struct is now a gem on rubyforge! Use ‘gem install bit-struct’ to install. BitStruct Class for packed binary data stored in ruby Strings. BitStruct accessors, generated from user declared fields, use pack/unpack to treat substrings as fields with a specified portable format. Field...

Related:

This is translated into an SQL query for us and the products matching the query are returned. Note that there are no spaces around the braces in the query as the convention for the Squeel DSL seems to be not to use them and we’ll stick to that here. The object that’s returned from thi...

Related:

#87 Generating RSS Feeds (revised) May 26, 2012 | 8 minutes | Views If you have a page containing a dynamic list of records, consider providing an RSS or Atom feed for it. It is quite easy to do with XML Builder and the atom_feed helper method as shown in this episode. Subscribe to Wa...

scripting framework to build Tokaido, to make it easy to share code between rvm2, Tokaido, and the Unix Rails Installer. The majority of the work I have done so far has been in researching how to properly build a portable Ruby, and working with Michal to build the solution in terms of...

Works professionally with Rails Popularity Not ranked yet. Forum Posting Rating 0% When you post on our forums other registered users can rate your postings positively or negatively. These votes are accumulated and used to calculated your Posting Rating. Experience Using Ruby for 1 ye...