As Rails developers, we often focus on writing clean, efficient Ruby code. However, as the application grows optimizing database performance is equally crucial for creating responsive applications. One of the most powerful tools in our arsenal for database optimization is indexing. Here I will talk about PostgreSQL indexing from a Rails developer’s perspective. The query plan generated by EXPLAIN will help us to make informed decisions about index creation, ensuring our database queries run as efficiently as possible.

#Backend#database#Ruby on Rails
Added: 28 Aug 2024
Easy to Overlook PostgreSQL Performance Issues in Rails Apps

Performance issues in the PostgreSQL layer usually start to manifest only when your app reaches a certain scale. In this blog post, I'll discuss easy-to-miss database config tweaks and common problems that I've encountered in multiple Rails projects.

#database#Ruby on Rails
Added: 28 Aug 2024
Squash Your Ruby and Rails Bugs Faster | AppSignal Blog

Let's look at a few readily available techniques and tools to gather and investigate issues in your Ruby or Rails app.

#Consulting#Ruby on Rails
Added: 22 Aug 2024
Sidekiq To SolidQueue Migration

Migrating the Miru app from Sidekiq to SolidQueue eliminated the dependency on Redis, reducing costs by utilizing database for job storage.

#Backend#DevOps#Ruby on Rails
Added: 21 Aug 2024
Building a better bin/dev script

Rails 7.2 uses the foreman gem for process management, which has serious limitations when it comes to interactive debugging. The run-pty Node package is an excellent alternative.

#Consulting#Ruby on Rails#Staff Engineer#Tools
Added: 21 Aug 2024
An Introduction to HTTP Caching in Ruby On Rails | AppSignal Blog

We'll explore the basics of HTTP caching, cache layers, configuration, and how to cache in Rails.

#Backend#Ruby on Rails
Added: 20 Aug 2024
TestProf: a good doctor for slow Ruby tests—Martian Chronicles, Evil Martians’ team blog

This article introduces the Ruby test profiling toolbox called TestProf.

#Ruby#Ruby on Rails#testing
Added: 20 Aug 2024
Nested Forms With Turbo (without dependencies)

Nested forms with Rails can now be done without using any third-party gem! Turbo Stream’s is all you need to add nested fields to any form you want.

#Frontend#HOTWire#Ruby on Rails
Added: 19 Aug 2024
How to get the most out of staff+ engineers

Staff+ engineers have years of technical knowledge stored away, but often have their skills overlooked or undermined.

#Consulting#Soft Skills#Staff Engineer
Added: 15 Aug 2024
Build a modal form with Rails, Turbo, and the dialog element

I’ll explain the differences and benefits of Turbo Streams vs Turbo Frames in this HTML-first, test-driven tutorial. Only one line of JavaScript needed!

#Frontend#HOTWire#Ruby on Rails
Added: 15 Aug 2024
I made a Snake clone with RxJS | Devin Jameson

Snake was one of my favorite games to play on my Nokia cell phone circa 2007, so I decided to rebuild it with modern frontend web tooling.

#Frontend#Javascript
Added: 15 Aug 2024
Upgrade Rails From 7.1 to 7.2 - FastRuby.io | Rails Upgrade Service

How to upgrade Ruby on Rails from 7.1 to 7.2, including the deprecations, required configurations, application code changes, and webpacker API changes.

#Backend#Ruby on Rails
Added: 15 Aug 2024
From Code to Compliance: Accessibility Testing in Rails Applications - FastRuby.io | Rails Upgrade Service

Find out how to test accessibility in your Rails app to make it usable for everyone. Learn simple tools and methods to improve your app’s inclusivity and user experience.

#Frontend#Gem#Ruby on Rails#testing
Added: 15 Aug 2024
Serializers in Ruby on Rails

A place to learn Ruby on Rails

#Backend#Ruby on Rails
Added: 14 Aug 2024
Railing against time: tools and techniques that got us 5X faster tests—Martian Chronicles, Evil Martians’ team blog

Read about the tools, techniques, mindset that got our client 5X faster tests.

#Ruby on Rails#testing
Added: 14 Aug 2024
Conditionally render a Turbo Frame shared between multiple views

We explore several solutions to a common Hotwire problem.

#Backend#Frontend#HOTWire#Ruby on Rails
Added: 14 Aug 2024
Fixing a footgun in ActiveRecord::Core#inspect

The inspect method on Active Record models returns a string including the model’s class and a list of all its attributes and their values. In Rails 7.2, you can configure which attributes are included in the output of inspect. In this post, I’ll discuss the performance issue that led me to implement this feature. I’ll also talk about how this feature can be used to improve developer experience.

#Backend#Ruby on Rails
Added: 14 Aug 2024
A useful pattern for handling remote data in React apps | Devin Jameson

Handling remote data state is one of the most common things we do in React apps, so it makes sense to carefully consider how we model it.

#Frontend#Javascript#Typescript
Added: 12 Aug 2024
Preview an Image Before Upload with Hotwire/Stimulus

Learn about JavaScript’s FileReader interface to preview user images before they are upload with Hotwire/Stimulus.

#Frontend#HOTWire#Javascript#Ruby on Rails
Added: 11 Aug 2024
Generating Documentation for Your Rails API: I Build My Own Tool.

After searching for a simple, interactive, and easy-to-use tool to document the APIs I build with Rails, and not finding the right one, I decided to create my own: OasRails.

#Packages#Ruby on Rails
Added: 10 Aug 2024
Should the daily stand-up die?

The daily stand-up was intended to help teammates remove any blockers to commitments. But at many companies, stand-ups have devolved into tedious one-sided status reports.

#Consulting
Added: 10 Aug 2024
Rails Added Filter Option On in_order_of Method

Rails added the filter option to in_order_of to prioritize the specified values without filtering the results

#Backend#database#Ruby on Rails
Added: 10 Aug 2024
Rails 8 introduces a basic authentication generator

Rails 8.0 adds a generator that streamlines the process of adding basic authentication to Rails applications

#Backend#Ruby on Rails
Added: 10 Aug 2024
Introduction to Minitest Mocks

Test doubles likes mocks and stubs can help us with isolating code under test with the rest of the system. Here’s how to mock in Minitest.

#Ruby on Rails#testing
Added: 10 Aug 2024
Why CTOs are choosing Hotwire and Ruby on Rails

A conversation with the CTO and Co-founder of Clara, a recent thoughtbot client, about the strategy behind their decision to build their startup product with Rails and Hotwire.

#Consulting#Frontend#HOTWire#Ruby on Rails
Added: 10 Aug 2024
First Previous Next Last