Tenderlovemaking - tenderlovemaking.com - Tender Lovemaking
General Information:
Latest News:
One Danger of Freedom Patches 22 May 2013 | 03:04 am
I posted a benchmark on twitter about comparing a DateTime with a string. This is a short blurrrggghhh post about the benchmark and why there is such a performance discrepancy. Here is the benchmark:...
Dynamic Method Definitions 4 Mar 2013 | 05:52 am
TL;DR: depending on your app, using define_method is faster on boot, consumes less memory, and probably doesn’t signigicantly impact performance. Throughout the Rails code base, I typically see dynam...
YAML f7u12 7 Feb 2013 | 12:22 am
YAML seems to be getting a bad rap lately, and I’m not surprised. YAML was used as the attack vector to execute arbitrary code in a Rails process and was even used to steal secrets from rubygems.org. ...
Rails 4 and your Gemfile 19 Dec 2012 | 03:03 am
TL;DR This is your periodic reminder to specify dependency versions in your Gemfile I started updating one of our larger projects at work to use edge Rails. This project uses devise, and the Gemfile ...
Protected Methods and Ruby 2.0 7 Sep 2012 | 10:24 pm
TL;DR: respond_to? will return false for protected methods in Ruby 2.0 Let’s check out how protected and private methods behave in Ruby. After that, we’ll look at how Ruby 2.0 changes could possibly ...
Is it live? 31 Jul 2012 | 02:00 am
TL;DR Rails 4.0 will allow you to stream arbitrary data at arbitrary intervals with Live Streaming. Besides enabling multi-threading by default, one of the things I really wanted for Rails 4.0 is the...
Crouching Tiger, Hidden Salami 10 Jul 2012 | 07:51 am
I’ve been learning how to cure meat, and I thought I should share my setup. I’m currently on my third batch of meat (second time curing salami). Curing meat requires control of the environment, extern...
Removing config.threadsafe! 19 Jun 2012 | 02:04 am
TL;DR: config.threadsafe! can be removed, but for Rails 4.0 we should just enable it by default. A while back a ticket was filed on the Rails tracker to turn on config.threadsafe! mode by default in ...
Ten Years of Nerd Club 17 Feb 2012 | 07:10 am
The Seattle Ruby Brigade, (the first Ruby Bridage), is having a party to celebrating it’s 10th anniversary, and you should attend! The party will be held February 28th from 7 to 10pm at the offices of...
Ten Years of Nerd Club 16 Feb 2012 | 06:10 pm
The Seattle Ruby Brigade, (the first Ruby Bridage), is having a party to celebrating it’s 10th anniversary, and you should attend! The party will be held February 28th from 7 to 10pm at the offices of...