DBIx::Class::Helper::ResultSet::Errors

This is just a quick post to update you all on a nice new helper.

Recently at my work we hired a new programmer and I’ve been showing him the ropes. I noticed him running into the age old confusion of treating a ResultSet like a Result, so I took note and decided to make a helper to give specific error messages when the user makes that mistake.

If you plan on hiring new people ever, or you are a mere human yourself, why not add DBIx::Class::Helper::ResultSet::Errors to your base ResultSet? You’ll get a fairly obvious error when you forget that you are using a ResultSet and accidentally thing it is a Result.

That is all.

Posted Fri, Feb 20, 2015

If you're interested in being notified when new posts are published, you can subscribe here; you'll get an email once a week at the most.