---
title: "Posts"
description: "Engineering blog posts from companies, open source projects, research labs and engineers, each with a summary, topics and a difficulty level."
url: "https://swe.quest/?per=48&tag=ruby"
---

# Posts

Filtered by topics: Ruby.

Posts 1–48 of 85, page 1 of 2, newest first.

## 2026-11-24

- [Type errors cost our coding agents under 1% of their time](https://swe.quest/articles/type-errors-cost-our-coding-agents-under-1-of-their-time-fa7c6019d6e8a188.md): Evil Martians · 2026-11-24 · Medium · 27 min read · AI for coding, Evaluation, Type systems, TypeScript, Ruby
  Static typing does not measurably help coding agents finish more tasks.

## 2026-11-20

- [How Cloudflare WAF protects against ruby2shell (CVE-2026-132825)](https://swe.quest/articles/how-cloudflare-waf-protects-against-ruby2shell-cve-2026-132825-7727483822350470.md): Cloudflare · 2026-11-20 · Medium · 6 min read · Vulnerability research, Ruby, Application security, Memory safety
  ruby2shell (CVE-2026-132825) is a heap buffer overflow in Ruby's string case conversion: in 14 legacy single-byte encodings, uppercasing the German ß writes two bytes (SS) but reserves room for one, so 21 sharp s characters overflow by a byte, with proofs of concept reaching remote code execution.
- [How I shipped 39 PRs to prod as a non-developer](https://swe.quest/articles/how-i-shipped-39-prs-to-prod-as-a-non-developer-c158dc7f5a4bb51e.md): 8th Light · 2026-11-20 · Medium · 11 min read · AI for coding, Code review, Ruby, Engineering management, Product engineering
  A non-developer product manager shipped 39 production pull requests to a Rails/Hotwire client codebase using Claude Code and the team's Research-Plan-Implement agentic process.
- [Ruby2Shell (CVE-2026-132825): find vulnerable Ruby across your repos](https://swe.quest/articles/ruby2shell-cve-2026-132825-find-vulnerable-ruby-across-your-repos-943808a4d97a4f48.md): Sourcegraph · 2026-11-20 · Medium · 5 min read · Ruby, Vulnerability research, Supply chain security, Developer tools
  Ruby2Shell (CVE-2026-132825) is a critical heap overflow in Ruby's string case conversion that researchers say default Rails and classic Sinatra apps expose without authentication, with remote code execution proofs of concept known.

## 2026-11-19

- [Building PlanetScale with Insights Agent](https://swe.quest/articles/building-planetscale-with-insights-agent-b70b35e12242702e.md): PlanetScale · 2026-11-19 · Medium · 5 min read · MySQL, Performance engineering, AI agents, Ruby, Databases
  PlanetScale ran its Insights Agent, which finds costly queries via Query Insights and opens fix PRs, against its own Rails API on MySQL.

## 2026-11-11

- [Building Uscreen’s remote, multi-tenant MCP server inside a Rails app](https://swe.quest/articles/building-uscreen-s-remote-multi-tenant-mcp-server-inside-a-rails-app-1185c6f769ffbf8b.md): Evil Martians · 2026-11-11 · Medium · 14 min read · AI agents, Ruby, Multi-tenancy, Identity & auth, API design
  Evil Martians moved Uscreen's local, NPM-installed MCP server into Uscreen's Rails monolith, so creators connect an AI client by pasting a URL, signing in via OAuth, and approving access.

## 2026-11-03

- [The Agents on Rails Files: enter lemans, a Ruby harness for fair agent races](https://swe.quest/articles/the-agents-on-rails-files-enter-lemans-a-ruby-harness-for-fair-agent-races-67f1e215509b634c.md): Evil Martians · 2026-11-03 · Medium · 16 min read · Evaluation, AI agents, Ruby, Sandboxing & isolation, LLMs
  lemans is an open source Ruby harness built for the Rails Foundation's coding-agent benchmark.

## 2026-10-21

- [The Agents on Rails Files: designing black-box evals for coding agents](https://swe.quest/articles/the-agents-on-rails-files-designing-black-box-evals-for-coding-agents-3e90939da666e071.md): Evil Martians · 2026-10-21 · Medium · 16 min read · Evaluation, Testing, AI for coding, Ruby
  Black-box, browser-driven verification lets coding-agent evals grade apps whose code organization and UI the agent chooses freely, as in Stage 3 of the Rails Foundation's Agents on Rails benchmark.

## 2026-07-29

- [Building an agentic harness that outlasts the model](https://swe.quest/articles/building-an-agentic-harness-that-outlasts-the-model-75504578038e6cc5.md): Shopify Engineering · 2026-07-29 · Medium · 8 min read · AI agents, Application security, Vulnerability research, LLMs, Ruby
  Shopify's AppSec team built Dispatch, a Ruby-orchestrated multi-agent harness that partitions codebases, runs parallel category-specific Hunter agents, verifies candidates with tests written by a different model inside each app's existing test suite, and opens draft fix PRs.

## 2026-07-10

- [One Driver, One Format, Every Language: ADBC](https://swe.quest/articles/one-driver-one-format-every-language-adbc-cd7930c89ffe6678.md): ClickHouse · 2026-07-10 · Medium · 12 min read · Analytics & OLAP, Databases, Ruby, Rust, Data pipelines
  ClickHouse released an official ADBC (Arrow Database Connectivity) driver, written in Rust, that returns query results as Apache Arrow end to end with no row-oriented conversion or staging step.

## 2026-07-07

- [Spec-tacular: ways to think about writing expressive RSpec](https://swe.quest/articles/spec-tacular-ways-to-think-about-writing-expressive-rspec-678c66c3f853b737.md): FreeAgent Engineering · 2026-07-07 · Medium · 6 min read · Testing, Ruby
  Structuring RSpec like a scientific experiment, with shared setup as control variables, \`subject\` as the dependent variable and \`let\` inside contexts as the independent variable, makes specs read as documentation of a class's interface.

## 2026-06-18

- [Profiling Performance Bottlenecks in Production](https://swe.quest/articles/profiling-performance-bottlenecks-in-production-057c5006f3673d4b.md): Doximity Technology · 2026-06-18 · Medium · 8 min read · Ruby, Performance engineering, Debugging, Observability
  A slow Sidekiq background job at Doximity was traced with the Vernier sampling profiler to a Redis fetch memoized on a per-record builder instance.

## 2026-03-12

- [Shopify’s journey to faster breadth-first GraphQL execution](https://swe.quest/articles/shopify-s-journey-to-faster-breadth-first-graphql-execution-83f0f58b8c4dabd1.md): Shopify Engineering · 2026-03-12 · Hard · 14 min read · GraphQL, Performance engineering, Ruby, Query engines
  Shopify built GraphQL Cardinal, a breadth-first GraphQL execution engine that calls each field resolver once with the full set of objects at that level instead of once per object.

## 2026-01-22

- [Your Dependencies Don’t Care About Your FIPS Configuration](https://swe.quest/articles/your-dependencies-don-t-care-about-your-fips-configuration-c719fbf5e05d7dd0.md): Docker · 2026-01-22 · Medium · 5 min read · Supply chain security, Cryptography, Containers, Ruby
  FIPS-enabled container images can still run non-FIPS crypto because prebuilt native dependencies bring their own crypto linkage.

## 2026-01-08

- [Persisting nested form attribute indexes through Turbo updates](https://swe.quest/articles/persisting-nested-form-attribute-indexes-through-turbo-updates-0b3175a90493222c.md): FreeAgent Engineering · 2026-01-08 · Medium · 5 min read · Ruby, Frontend
  When a Turbo Stream replaces part of a Rails nested form, the replacement fields must keep the same attribute index as their siblings, which can be passed via the form builder's \`index\` property as a URL parameter and hidden field.

## 2025-11-05

- [Upgrade to Puma 7 and Unlock the Power of Fair Scheduled Keep-alive](https://swe.quest/articles/upgrade-to-puma-7-and-unlock-the-power-of-fair-scheduled-keep-alive-798a2f5419631b82.md): Heroku Engineering · 2025-11-05 · Medium · 11 min read · Ruby, Concurrency, Performance engineering, Networking
  Puma 6 and earlier let a single keep-alive connection monopolize a thread for up to 10 requests via the "fast inline" loop originally built for HTTP pipelining, so under overload about one in ten requests waited roughly 10x longer while later keep-alive requests cut the line.

## 2025-11-04

- [Learn How to Lower Heroku Dyno Latency through Persistent Connections (Keep-alive)](https://swe.quest/articles/learn-how-to-lower-heroku-dyno-latency-through-persistent-connections-keep-alive-3816d278b532e549.md): Heroku Engineering · 2025-11-04 · Medium · 6 min read · Networking, Performance engineering, Ruby, Cloud platforms
  HTTP keep-alive connections cut latency by reusing TCP connections, so repeat requests skip the handshake and TCP slow start and run at full bandwidth.

## 2025-10-23

- [Visibility at scale: How Figma detects sensitive data exposure](https://swe.quest/articles/visibility-at-scale-how-figma-detects-sensitive-data-exposure-a9fbf43af9718cbb.md): Figma · 2025-10-23 · Medium · 11 min read · Application security, Identity & auth, Ruby, Privacy, Observability
  Figma built Response Sampling, a detection layer that randomly samples outbound API responses and checks them for sensitive data the requesting user shouldn't see.

## 2025-10-17

- [A refreshing take: using serverside rendering to reduce fragile DOM state](https://swe.quest/articles/a-refreshing-take-using-serverside-rendering-to-reduce-fragile-dom-state-949880494b413aac.md): FreeAgent Engineering · 2025-10-17 · Medium · 8 min read · Frontend, Ruby, Real-time systems
  Turbo's \`refresh\` stream action, unlike the original DOM-manipulating actions, exists to let servers broadcast "re-fetch this page" over Action Cable, with idiomorph morphing applying only the changed elements.

## 2025-06-18

- [Introducing Roast: Structured AI workflows made easy](https://swe.quest/articles/introducing-roast-structured-ai-workflows-made-easy-0fdb158278ceca92.md): Shopify Engineering · 2025-06-18 · Easy · 9 min read · AI agents, AI for coding, Developer tools, Ruby, Testing
  Roast is Shopify's open-source, Ruby-based CLI framework for orchestrating structured AI workflows.

## 2025-05-13

- [GitHub Issues search now supports nested queries and boolean operators: Here’s how we (re)built it](https://swe.quest/articles/github-issues-search-now-supports-nested-queries-and-boolean-operators-here-s-2684ca9cc7ff5489.md): GitHub Engineering · 2025-05-13 · Medium · 9 min read · Search, Ruby, Deployment, Refactoring & migrations, Testing
  GitHub rebuilt Issues search to support AND/OR operators and nested parentheses by replacing the flat-list parser with a PEG grammar (via the Ruby parslet library) that produces an abstract syntax tree.

## 2025-04-15

- [Announcing Ruby Gem analytics powered by ClickHouse and Ruby Central](https://swe.quest/articles/announcing-ruby-gem-analytics-powered-by-clickhouse-and-ruby-central-7ec050b11d121632.md): ClickHouse · 2025-04-15 · Medium · 18 min read · Analytics & OLAP, Data pipelines, Ruby, Open source
  ClickHouse and Ruby Central now offer free RubyGems download analytics via sql.clickhouse.com, covering over 180 billion download rows since 2017 plus daily aggregates and weekly metadata dumps (dependencies, versions, attestations).

## 2025-02-12

- [How GitHub uses CodeQL to secure GitHub](https://swe.quest/articles/how-github-uses-codeql-to-secure-github-3ead357c38ddce28.md): GitHub Engineering · 2025-02-12 · Medium · 14 min read · Static analysis, Application security, Ruby, CI/CD
  GitHub's Product Security Engineering team runs CodeQL across more than 10,000 repositories, mostly with default setup and the security-extended suites.

## 2025-02-05

- [How To Maintain Seed Files (And Why You May Not Want To Do It)](https://swe.quest/articles/how-to-maintain-seed-files-and-why-you-may-not-want-to-do-it-8f196f8d27fea45b.md): Neon · 2025-02-05 · Medium · 7 min read · Databases, Testing, PostgreSQL, Ruby, Developer productivity
  Seed files should be versioned alongside schema changes, executed automatically in pipelines, split by environment, made incremental like migrations, and written to be idempotent, with Ruby/Rails and Docker Compose examples showing each practice.

## 2024-12-18

- [Turso Adds Ruby on Rails Support](https://swe.quest/articles/turso-adds-ruby-on-rails-support-80c171904d4e2326.md): Turso · 2024-12-18 · Medium · 3 min read · Ruby, SQLite, Databases
  Turso has released a technical preview of libsql\_activerecord, an ActiveRecord adapter that connects Rails applications to Turso/libSQL databases.

## 2024-11-21

- [Pumas, Routers & Keepalives—Oh my!](https://swe.quest/articles/pumas-routers-keepalives-oh-my-4b676798ea4106ef.md): Heroku Engineering · 2024-11-21 · Medium · 17 min read · Debugging, Performance engineering, Ruby, Load balancing, Networking
  Elevated tail latency seen by some Puma apps after enabling Heroku Router 2.0 turned out to be a Puma bug, not a router problem.

## 2024-11-01

- [How we built a Ruby library that saves 50% in testing time](https://swe.quest/articles/how-we-built-a-ruby-library-that-saves-50-in-testing-time-128208a842ec0eb3.md): Datadog Engineering · 2024-11-01 · Hard · 12 min read · Ruby, Testing, Performance engineering, Runtimes & VMs, CI/CD
  Datadog built a Ruby test impact analysis library for its Intelligent Test Runner that maps each test to the source files it executes, so tests unrelated to a commit's changed files can be skipped, cutting testing time roughly in half.

## 2024-07-23

- [How we improved availability through iterative simplification](https://swe.quest/articles/how-we-improved-availability-through-iterative-simplification-1aa63e0def5687e6.md): GitHub Engineering · 2024-07-23 · Medium · 6 min read · Performance engineering, MySQL, Ruby, Observability, Deployment
  GitHub cut timeouts in its Rails monolith with small, measured changes found through Datadog metrics, Splunk logs and custom MySQL slow-query monitors.

## 2024-07-02

- [Database testing with fixtures and seeding](https://swe.quest/articles/database-testing-with-fixtures-and-seeding-c9148078cf139feb.md): Neon · 2024-07-02 · Medium · 9 min read · Testing, Databases, Python, Ruby
  Seeding and fixtures solve different problems when populating databases for testing.

## 2024-06-11

- [How we improved push processing on GitHub](https://swe.quest/articles/how-we-improved-push-processing-on-github-ee01af72cf149679.md): GitHub Engineering · 2024-06-11 · Medium · 7 min read · Event-driven architecture, Queues & messaging, Resilience, Ruby, Scaling
  GitHub replaced RepositoryPushJob, a single sequential background job that ran over 60 push-handling tasks from 20 services, with a Kafka push event fanned out to roughly 16 independently owned, parallel jobs.

## 2024-03-13

- [How we built a custom permissions DSL at Figma](https://swe.quest/articles/how-we-built-a-custom-permissions-dsl-at-figma-b86982742becc83a.md): Figma · 2024-03-13 · Medium · 24 min read · Identity & auth, Language design, System design, Ruby, TypeScript
  Figma replaced a sprawling Ruby \`has\_access?\` permissions function with a custom, JSON-serializable permissions DSL and a cross-platform policy engine, inspired by AWS IAM policies.

## 2024-02-07

- [A Packwerk Retrospective](https://swe.quest/articles/a-packwerk-retrospective-b9d1167fd6021459.md): Shopify Engineering · 2024-02-07 · Medium · 14 min read · Ruby, Static analysis, Refactoring & migrations, System design
  Packwerk, Shopify's static analysis gem for enforcing package boundaries in Rails monoliths via constant references, works best as a dependency-graph tool rather than an API-privacy tool, which is why privacy checks were removed in 3.0.

## 2024-01-29

- [Getting started with Ruby on Rails and Postgres on Supabase](https://swe.quest/articles/getting-started-with-ruby-on-rails-and-postgres-on-supabase-03d6ca4747754aea.md): Supabase · 2024-01-29 · Medium · 3 min read · Ruby, PostgreSQL, Deployment
  A Rails app can be wired to a Supabase-hosted Postgres database by scaffolding with \`rails new -d=postgresql\` and supplying the Supabase pooler connection URI through the \`DATABASE\_URL\` environment variable.

## 2024-01-17

- [Horizontally scaling the Rails backend of Shop app with Vitess](https://swe.quest/articles/horizontally-scaling-the-rails-backend-of-shop-app-with-vitess-03c7b2da20f98ec3.md): Shopify Engineering · 2024-01-17 · Medium · 27 min read · MySQL, Distributed databases, Ruby, Scaling, Schema migrations
  Shop app outgrew a single MySQL database despite federating tables across databases, so the team moved its Rails backend to Vitess, sharding user-owned tables by user\_id into a "users" keyspace and keeping the rest in an unsharded "global" keyspace.

## 2023-12-19

- [How we organize and get things done with SERVICEOWNERS](https://swe.quest/articles/how-we-organize-and-get-things-done-with-serviceowners-2afb066a8015a9a4.md): GitHub Engineering · 2023-12-19 · Medium · 4 min read · Developer productivity, Engineering management, Ruby, SRE
  GitHub added a service layer between code and teams in its 4.2M-line Rails monolith: a SERVICEOWNERS file maps glob patterns, directories and files to named services, and a service-mappings.yaml ties each service to teams, managers, chat channels and tier ratings.

## 2023-10-18

- [Introducing Ruvy](https://swe.quest/articles/introducing-ruvy-a780cb3b4891bef0.md): Shopify Engineering · 2023-10-18 · Medium · 5 min read · WebAssembly, Ruby, Performance engineering, Open source
  Ruvy is an open-source toolchain built on ruby.wasm that compiles Ruby scripts into WebAssembly modules, pre-initializing the Ruby VM and preloaded Ruby files at build time instead of at startup.

## 2023-04-06

- [Building GitHub with Ruby and Rails](https://swe.quest/articles/building-github-with-ruby-and-rails-99851966c067c871.md): GitHub Engineering · 2023-04-06 · Medium · 5 min read · Ruby, Refactoring & migrations, CI/CD, Deployment, Open source
  GitHub's ~2M-line Rails monolith upgrades to the latest Rails main-branch commit every week via a scheduled GitHub Actions workflow that opens an automated PR, runs all builds, and ships the next day.
- [Adventures in Garbage Collection: Improving GC Performance in our Massive Monolith](https://swe.quest/articles/adventures-in-garbage-collection-improving-gc-performance-in-our-massive-7c8cc3e83e915743.md): Shopify Engineering · 2023-04-06 · Hard · 13 min read · Memory management, Ruby, Performance engineering, Runtimes & VMs
  Shopify cut Ruby garbage-collection tail latency in its monolith by finding why major GCs were triggered, via GC.latest\_gc\_info(:major\_by), and removing each cause in turn.

## 2023-03-24

- [Supporting Passkeys in Shop's Authentication Flows](https://swe.quest/articles/supporting-passkeys-in-shop-s-authentication-flows-83c5b8b12531ab5a.md): Shopify Engineering · 2023-03-24 · Medium · 6 min read · Identity & auth, Ruby, E-commerce
  Shop added passkeys (WebAuthn public-key credentials) to Shop Pay and the Shop app as a phishing-resistant alternative to email/SMS verification codes, using the webauthn-ruby gem in their Rails backend and serving the flow from an iframe so it works on merchant storefronts.

## 2023-02-24

- [Improving the Developer Experience with the Ruby LSP](https://swe.quest/articles/improving-the-developer-experience-with-the-ruby-lsp-7b63921832eb2226.md): Shopify Engineering · 2023-02-24 · Medium · 16 min read · Ruby, Developer tools, Developer productivity
  Ruby LSP is a pure-Ruby language server from Shopify that provides editor features for Ruby without type checking or type annotations, aiming for performance and stability on large codebases like Shopify's Core monolith and leaning toward Rails-specific features.

## 2023-02-21

- [The Case Against Monkey Patching, From a Rails Core Team Member](https://swe.quest/articles/the-case-against-monkey-patching-from-a-rails-core-team-member-b0bd43ce3a761b2b.md): Shopify Engineering · 2023-02-21 · Medium · 14 min read · Ruby, Refactoring & migrations, Open source
  Monkey patching Rails and other gems is brittle and should be avoided.

## 2023-01-26

- [How to self-host Mastodon](https://swe.quest/articles/how-to-self-host-mastodon-a9419721506c8665.md): Neon · 2023-01-26 · Medium · 8 min read · Deployment, PostgreSQL, Ruby, Cloud platforms
  Self-hosting a Mastodon instance on Fly.io comes down to a starter repo, a Dockerfile and two Fly config files: one runs the database setup, the other deploys the app.

## 2023-01-17

- [Ruby 3.2’s YJIT is Production-Ready](https://swe.quest/articles/ruby-3-2-s-yjit-is-production-ready-05f17a68a56ea05c.md): Shopify Engineering · 2023-01-17 · Easy · 10 min read · Ruby, Compilers, Runtimes & VMs, Performance engineering, Rust
  YJIT, Shopify's JIT compiler for CRuby, became production-ready in Ruby 3.2 after a port from C99 to Rust and a cut in memory overhead to about a third of Ruby 3.1 levels.

## 2023-01-05

- [Reliving Your Happiest HTTP Interactions with Ruby’s VCR Gem](https://swe.quest/articles/reliving-your-happiest-http-interactions-with-ruby-s-vcr-gem-875b5fd62be42b02.md): Shopify Engineering · 2023-01-05 · Medium · 8 min read · Ruby, Testing
  VCR records live HTTP interactions into YAML "cassettes" and replays them in Ruby tests, giving accurate fixtures for complex, slow, or poorly understood APIs where hand-built Webmock stubs drift from real behavior.

## 2022-12-25

- [Optimizing Ruby’s Memory Layout: Variable Width Allocation](https://swe.quest/articles/optimizing-ruby-s-memory-layout-variable-width-allocation-7db49cee151f4d44.md): Shopify Engineering · 2022-12-25 · Hard · 13 min read · Memory management, Ruby, Runtimes & VMs, Performance engineering
  Ruby 3.2's Variable Width Allocation replaces CRuby's single 40-byte RVALUE slot with five size pools (40, 80, 160, 320 and 640 bytes) so classes, strings, arrays and objects can store their data adjacent to the object instead of in separate malloc'd memory.

## 2022-12-22

- [Year in Review 2022: Tenderlove's Ruby and Rails Reflections and Predictions](https://swe.quest/articles/year-in-review-2022-tenderlove-s-ruby-and-rails-reflections-and-predictions-d873d71ac3e91545.md): Shopify Engineering · 2022-12-22 · Easy · 8 min read · Ruby, Runtimes & VMs, Memory management, Developer tools, Compilers
  Ruby's 2022 highlights include YJIT's rewrite in Rust and its new ARM support, so \`ruby --yjit\` now runs on Apple Silicon development machines as well as production.

## 2022-11-15

- [Caching Without Marshal Part 2: The Path to MessagePack](https://swe.quest/articles/caching-without-marshal-part-2-the-path-to-messagepack-dde2d14188f0b673.md): Shopify Engineering · 2022-11-15 · Medium · 17 min read · Ruby, Caching, Refactoring & migrations
  Shopify replaced Ruby's Marshal with MessagePack as the Rails cache format for its core monolith so that code changes would stop breaking cached payloads on deploy.

## 2022-11-11

- [Caching Without Marshal Part 1: Marshal from the Inside Out](https://swe.quest/articles/caching-without-marshal-part-1-marshal-from-the-inside-out-57f413ca18174072.md): Shopify Engineering · 2022-11-11 · Medium · 11 min read · Ruby, Caching, Runtimes & VMs
  Ruby's Marshal serializes an object's full class graph into cache entries, so a refactor that renamed classes caused old and new code to choke on each other's cached beta-flag objects mid-deploy and triggered an incident at Shopify.

[Next page](https://swe.quest/index.md?per=48&tag=ruby&page=2)

Same list as RSS: [https://swe.quest/feed.xml?tag=ruby](https://swe.quest/feed.xml?tag=ruby). Lists take `?page=`, `?per=12|24|48|96` and, on the home page, `?tag=` (up to 3), `?source=`, `?difficulty=easy|medium|hard` and `?search=`.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
