Taryn
Performance tips > indexing matters
~4 years ago by Taryn on Ruby-coloured glasses.
As I've mentioned in a previous post, I've been doing a lot of performance tweaking recently. By far and away the biggest gains I've garnered have been...
assert_event_logged > Getting stuff back out of the Ruby Logger
~4 years ago by Taryn on Ruby-coloured glasses.
So we wanted to test whether our code actually puts things into the log when it should - eg to log important events such as "User X just got archived by...
Rails gotchas: 1.months.ago isn't
over 4 years ago by Taryn on Ruby-coloured glasses.
A colleague caught this bug when we were running rake test today (Jan 31st). Suddenly the quota-calculation tests were acting weird. All our tests ran...
Rails gotchas: All the fixtures in the world
over 4 years ago by Taryn on Ruby-coloured glasses.
After having spent three hours debugging an error that "couldn't be happening" I have decided to just start loading every fixture for every functional test...
The Economics of IT salaries
over 4 years ago by Taryn on Ruby-coloured glasses.
I have been reading a book called "The undercover economist"[1], which mentioned the problems with "asymmetric information" in negotiations. It's discussed...
acts_as_good_style
almost 5 years ago by Taryn on Ruby-coloured glasses.
RailsIdiom There are a number of small pieces of rails idiom that contribute to better rails code. I've been collecting them at work as they come to me...
Rails 2.0
over 4 years ago by Taryn on Ruby-coloured glasses.
Ok, so Rails 2.0 is out - in case you somehow missed the wild whooping sounds from the Rails community. At the following site is a comprehensive list of...
Rails gotchas: Update attribute... doesn't
over 4 years ago by Taryn on Ruby-coloured glasses.
Ok, it does... but it doesn't *just* update the attribute - it resaves the whole record. This is a problem if you aren't sure whether or not your record...
Rails Gotchas: fixtures created_at when?
over 4 years ago by Taryn on Ruby-coloured glasses.
So - I updated some date-sensitive fixtures and re-ran all my rake tests... and suddenly everything went funny. First off the rack: empty created_at date...
Pick your layer
over 4 years ago by Taryn on Ruby-coloured glasses.
I've been noticing that some of our newer Rails developers are having trouble picking which layer (Model, View or Controller) a method belongs in. Here...
