Notes from the work 13 articles

Writing

Practical field notes on Ruby on Rails, PostgreSQL, performance, and building useful software.

Written from hands-on work: what changed, why it mattered, and how to apply it.

All writing

Newest first
02

How to Benchmark a Rails Performance Fix

When I optimize a slow Rails endpoint, I create a small profile_compare script for that specific workload. The script does six things: runs the slow request against a known …

Ruby on Rails Performance Benchmarking
Read
03

Using speedscope.app to Profile Ruby and Rails

A request that takes 900 ms tells us that something is slow, but not where the time went. A call-stack profiler supplies the missing data, and speedscope turns that data into an …

11

Building Custom Generators in Rails

In Ruby on Rails, A generator is a tool that helps create scaffolding (basic code structure). By default, Rails provides several built-in generators like rails generate scaffold, …

12

Let's Start Using Rails Attributes Api

When building applications in Ruby on Rails, We store data in Plain Old Ruby Object (called PORO) value objects. This is a common pattern, We store data directly in service objects …

Ruby on Rails Active Model Attributes API
Read