Closures in Ruby
Symbol GC in Ruby 2.2
What is symbol GC and why should you care? Ruby 2.2 was just released and, in addition to incremental GC, one of the other big features is Symbol GC. If you've been around the Ruby landscape, you've heard the term "symbol DoS". A symbol denial of service attack occurs when a system creates so many symbols that it runs out of memory. This is because, prior to Ruby 2.2, symbols lived forever. For example in Ruby 2.1:
Rails Model Caching with Redis
Model level caching is something that's often ignored, even by seasoned developers. Much of it's due to the misconception that, when you cache the views, you don't need to cache at the lower levels. While it's true that much of a bottleneck in the Rails world lies in the View layer, that's not always the case.
Lower level caches are very flexible and can work anywhere in the application. In this tutorial, I'll demonstrate how to cache your models with Redis.
Tokaido: Quick Start with Rails
Ruby on Medicine: Converting DICOM to JPG
Messaging with Rails and Mailboxer
A Peek at Ruby in 2015
What Editor Do Rubyists Use?
Chruby and Rbenv Tips and Tricks
Rbenv and chruby are the cool kids on the block now. Obviously, we want the most we can get out of our favorite tools. So this article isn't about which one to like more, nor is it an introduction to either version manager. Instead, we're going to cover some advanced rbenv and chruby usage to maximize your productivity.
Advanced Search with Ransack
In this tutorial we will explore how to add complex search functionality into your Rails application. This task will be made easier by the awesome Ransack Ruby gem. Ransack provides excellent helpers and builders for handling advanced searches on your models. It has some really powerful features available out of the box without writing a lot of code, such as sorting or conditional search.