Lazy Loading of Images in Rails

Recently I joined a company thats Thrillophilia a tours and activities company in India, and where I need to solve a problem of lazy loading of images, cause the site is image heavy. I came across lot of lazy loading javascript plugins, but finally came to know about...

Private Class Methods In Ruby

A quick tip to how to difine a class method as private method, I have seen lot of people doing it wrong way. Lets take a quick look on how to define a private instance method in ruby class Dog def poop "Going outside, and will poop :)" end private def bark puts 'woof...

Your Golden Ticket to the Chocolate Factory 🍫

Today we’ll be touring the wondrous Ruby on Rails chocolate factory to see how its marvelous candy, consumed by web apps and developers everywhere, is made and tested. Golden tickets in hand? Let’s go! Welcome! 🎩 This Week’s Rails Contributors This week, 26 fabulous...

Ruby 2.1: Profiling Ruby

Ruby 2.1 is shipping with rb_profile_frames(), a new C-api for fetching ruby backtraces. The api performs no allocations and adds minimal cpu overhead making it ideal for profiling, even in production environments. I’ve implemented a sampling callstack profiler...