17 May 2023
Advanced techniques for calling HTTP APIs in Ruby
How to use Faraday and other gems to implement circuit breakers, gracefully handle API rate limits, pool connections for better performance, and more. This post covers several advanced topics related to making HTTP API calls in Ruby.
17 May 2023
From Ruby to Crystal? Writing and distributing a CLI tool
In this post, the author will share his experience writing a CLI tool in Crystal that parses coverage files and sends the parsed data to Coveralls, and distributing it as a static binary and Homebrew tap.
16 May 2023
Ruby Method Lookup Demystified: Inheritance, Mixins, and Super
Discover how method lookup works in Ruby, including inheritance, mixins using include, prepend, and extend, and the super method.
11 May 2023
Deploying a Ruby on Rails App on Render.com with a Database, Redis, Sidekiq, and Cron Jobs
In this blog post, the authir will walk you through his journey of deploying a Rails app on Render with a database, Redis for caching and background jobs, Sidekiq for background job processing, and Cron jobs for running scheduled tasks.
11 May 2023
4 Essential Security Tools to Level Up Your Rails Security
In this blog post, we will cover a few Ruby gems and best practices that you can use to stay on top of your security, reliability, and stability needs.
11 May 2023
Simple Rails Design Patterns with Significant Impact
In this post, the author shows Small Rails design patterns with Significant Impact.
11 May 2023
Did You Know that You Can Catch and Throw Stuff in Ruby?
This post shows how `throw-catch` works in Ruby with practical, real-world examples, including their usage by the Warden gem.
10 May 2023
Enumerating Combinations with Ruby Arrays
Ruby arrays offer a rich set of behaviours to help you solve a wide variety of problems. In this post we look two different ways of evaluating available combinations from any array-of-arrays.
6 May 2023
Refactor Ruby On Rails Application in 5 Steps
This article will guide you through the process of refactoring a Ruby on Rails application, although these steps can be applied to any language/framework.
5 May 2023
Integrate and Troubleshoot Inbound Emails with Action Mailbox in Rails
In this post, we'll dive into how you can use Action Mailbox to integrate and troubleshoot inbound emails.
4 May 2023
Polymorphic Associations in Rails: Why, What, and How
Polymorphic associations in Rails allow a single model to belong to multiple models. This article covers them in-depth. We'll start with understanding the concept of polymorphism, learn what a polymorphic association is, why we need them, how they work, and how to use them in your Rails application.
3 May 2023
Ruby News April 2023 Digest
Ruby News April 2023 Digest
27 April 2023
Reduce load times of Rails applications using CloudFront CDN
Delivering static assets and JavaScript files with CDN can significantly improve the performance of our Rails application, resulting in faster load times and a better user experience.
27 April 2023
Update millions of records in Rails
How to update half a billion entries on a PostgreSQL table with Ruby on Rails & Sidekiq.
26 April 2023
Hacking Rails Implicit Rendering for View Components & Fun
Understanding how Rails handles requests from routes.rb to calling the action method on a controller makes it possible to build Rails plugins ranging from Hanami-like action classes to component-driven Rails development.
26 April 2023
Ruby's Switch Statement is More Flexible Than You Thought
Ruby's switch statement is very versatile and flexible, especially due to the dynamic nature of Ruby. In this post, we'll see how you can use it in various ways. We'll also learn why it works the way it works.
26 April 2023
Write a Ruby C Extension to Use CLIPS from Ruby: Part 1
In this article, we're going to look at how to write a Ruby C extension that lets the user interact with CLIPS, a programming language used to create Rules Engines and Expert Systems.
25 April 2023
Working with PDFs in Ruby
Working with invoices, contracts, or just reading your favorite mystery thriller—whatever the case, PDF files are everywhere. Learn how to work with PDFs in Ruby.
23 April 2023
Create a Ruby gem from scratch
In this article, we'll show you how to create a gem that provides comments for any model in a Rails project.
23 April 2023
How to use Sidekiq in Rails 7: Background Jobs
In this blog, we'll explore how to use background jobs with Sidekiq in Rails 7 to handle long-running tasks.
21 April 2023
SOLID: Open-closed principle in Ruby
In this article, we will explore the Open/Closed Principle and demonstrate its application in Ruby.
19 April 2023
Adding table names to error for duplicate column names
Table name is shown in the error when duplicate columns for the same table is entered while creating it.
19 April 2023
How to Load Code in Ruby
In this post, we will explore three different options for loading code: using load, require, and autoload. We will also look into the Ruby gem Zeitwerk.
18 April 2023
Elegant Memoization with Ruby’s .tap Method
There are a few different ways to memoize complicated chunks of code in Ruby. Here's why .tap is my personal favorite.