Sapienza
  • About

ActiveRecord - Quick Tips

ActiveRecord - Quick Tips

I will use the data from an dump with 100.000 registers pluck vs. map Map is useful for arrays, and that is it. Rails select all columns to instantiate an object for each row Pluck...

01 Sep 2019

Parsimony with ActiveRecord callbacks

Parsimony with ActiveRecord callbacks

It’s not rare to see someone associating activerecord callbacks with something bad or wrong, avoiding at all cost using them and thinking in other ways to achieve the desired goal, although i believe that nothing...

21 Aug 2019

Optimizing email CSS on rails with gem premailer

Optimizing email CSS on rails with gem premailer

There are a few concerns when you develop an email marketing: use tables, take care with the size of the images, send forms, pay attention at the compatibility with older browsers or devices and avoid...

25 Jun 2019