-
Asynchronous Programming in Ruby – Medium
In traditional programming practice, I/O operations happen synchronously. The main thread will be blocked until I/O operation gets completed and CPU re -
How the F does Sprockets Load an Asset?
How does an asset get compiled? It’s less of a pipeline and more of a recursive ball of, well assets. To understand the process we will, start off with -
Common Rails Idioms that Kill Database Performance
Many of the most common ActiveRecord idioms produce SQL which doesn't scale well as your dataset gets larger. In this article I discuss three of the wo -
Periodic Tasks with sidekiq-cron Drifting Ruby
Using a third-party add-on, sidekiq-cron, we can create periodic tasks to extend the functionality of sidekiq....
-
Ruby Coercion Protocols Part 1 - DNSimple Blog
Ruby has powerful protocols to coerce a type into another one. We'll learn how to take advantage of this mechanism to make our code open for...
-
Systematize your database— The Ruby way to be the croupier of migrations.
Ever wondered how the croupiers do that shuffle when they separate the card deck in two and just mix both piles into one? I’ve tried that multiple time
-
Your first Progressive Web App on Rails - rossta.net
This tutorial shows how to make a Progressive Web App on Rails using the serviceworker-rails gem...
-
On upcoming immutable string literals in Ruby - Arkency Blog
Today I checked one of the solutions made by our Junior Rails Developer class student. As part of the course they make Rails apps but also learn from s
-
Creating Advanced Active Record DB Queries with Arel - via @codeship | via @codeship
Under the hood, Active Record has its own private API to build database SQL queries: Arel. For now, let's focus on passing in custom-built Arel...
-
Concurrency in Rails 5.0 | Bibliographic Wilderness
My previous posts on concurrency in ActiveRecord have been some of the most popular on this blog (which I'd like to think means concurrency is getting