26 October 2023
Performance Guide to create 100k records in less than 3s using Ruby on Rails
In this article, we will explore different methods to efficiently create 100,000 records in Ruby on Rails.
25 October 2023
Mastering Rails Web Navigation with link_to and button_to Helpers - Part 1
In this post, we'll explore the Rails web navigation system, understand how Rails handles requests, and delve deep into the world of middleware.
25 October 2023
Performance impact of the memoization idiom on modern Ruby
One major internal change in Ruby 3.2 was the introduction of object shapes. In this post, we’ll try to cover why they were introduced, how they work, and what their limitations are.
25 October 2023
Rails 7.1 adds Object#with method
Rails 7.1 adds Object#with method. The with method is a short and alternate option for the begin..ensure clause. It can be used on any object as long as both the reader and writer methods are public.
25 October 2023
Limiting Maximum Index Name Length in Ruby on Rails 7.1
Rails 7.1 defined maximum limit of 62 bytes for auto-generated index names.
23 October 2023
Rails adds the ability to pass the expires_at option to ActiveStorage::Blog#signed_id
The signed_id attribute of an ActiveStorage Blob is a unique identifier for the blob that is signed with a secret key. It makes it safe to share the signed ID with the client without worrying about unauthorized access to the blob.
19 October 2023
About Ruby: a tale of searching for the main
Explore the question: Where is a method defined in Ruby when not defined inside an object?
19 October 2023
Better Rails Forms with Superform
Rails form helpers have been around for so long that they seem unquestionable, but did you know there’s a way to build forms in Rails that are easier to customize and permit their own strong parameters?
19 October 2023
From Slow to Lightning Fast: Optimizing String Concatenation in Ruby on Rails
In this article, we will explore six different ways to concatenate fields using Ruby on Rails.
19 October 2023
Understanding the Instrumentation API in Rails
In this post, we'll learn almost everything you need to know about the Rails Instrumentation API.
18 October 2023
Advanced Usages of Action Policy for Ruby on Rails
In this article, we'll leverage Action Policy for more advanced authorization use cases.
17 October 2023
Rails 7.1 Introduces Autoload Lib and Ignore Sub-Directories with config.autoload_lib(ignore:) Method
Autoloading lib directory isn't always straightforward. In this blog post, we'll delve into the autoloading of the lib directory using config.autoload_lib(ignore:).
16 October 2023
Length, Size, and Count in Ruby and Rails: When to Use Which?
You can use the length, size, and count methods to find the number of elements in a collection. This post explores the difference between these methods and explains how you should choose which method to use according to the needs of your application.
13 October 2023
Expressive Ruby and Rails: Communicate Effectively with Your Code
In this post, we'll look at why expressive code is important and its impact on your productivity as a developer. Then, we'll explore how to best use some of Ruby's methods.
13 October 2023
HTTP Status Codes: an In-Depth Explanation with Ruby Examples
In this article, the author will explain the most common HTTP status codes in a comprehensible manner and provide examples using Ruby programming language.
13 October 2023
Top 10 Ruby on Rails Design Patterns for Speed and Performance
In this article, we will discuss the top 10 Ruby on Rails design patterns and provide example code for each item.
10 October 2023
7 Lesser-Known Features and Changes in Rails 7.1
Rails 7.1 lacks big show-stopping additions, but there are still many improvements to the developer experience that are worth checking out.
10 October 2023
Service objects in Rails: how to find a mess
In this post we will discuss two things that are often missing: contracts and composability.
9 October 2023
Benchmarking Trilogy : is it really the future of Rails?
In this article, we will dive deep into this adapter and explore the results of a benchmark I conducted to better understand its performance.
9 October 2023
Optimistic Locking Rails internals again
In this article, we will try to understand better what they are and how to use them in Rails.
9 October 2023
Understanding Ruby - Memoization
This post gives a short introduction to things that you probably want to watch out for when memoizing, or rather remembering, values that methods compute.
9 October 2023
Using Action Policy for a Ruby on Rails App: the Basics
In this article, we'll cover the basics of Action Policy.
9 October 2023
Writing Object Shape friendly code in Ruby
This is a brief blog post about how to write your own Ruby application code that is optimized for Object Shapes.
28 September 2023
RESTful Routing in Rails for CRUD Operations
In this article, we’ll dive into RESTful routing in Rails with practical code examples to help you understand and implement it effectively in your projects.