Submit a post
Post Preview
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
v0.5.11 of the aia was released this weekend
Announcing the release of aia (AI Assistant) gem, version 0.5.11. For those of you who are passionate about enhancing your command-line interface (CLI) with AI capabilities, you’ll find this update particularly exciting. [more inside]
Be more GARY: Upping your RSpec Game
The DRY principle (Don’t Repeat Yourself) is great for keeping your executable code clean, but it can get in the way of writing meaningful, readable, understandable tests. Introducing the GARY principle – Go Ahead, Repeat Yourself. [more inside]
How to Dual Boot Ruby on Rails In Docker
Starting with Rails 7.1, Docker files are added by default in new applications, but Docker has been popular for Rails development for many years before that. [more inside]
Presence, NULL, and Product Requirements in Rails
A short article why NOT NULL constraints are essential for long-term product health. Read it at https://www.gregnavis.com/articles/presence-null-and-product-requirements-in-rails.html
Ruby Dev Summit 2024 Interview w/ Andy Maleh
Recently, I was interviewed for the 2024 Ruby Dev Summit, and a video podcast of the interview was just posted online and is available to watch for free for the next 24 hours (Fri, Feb 16 3pm ET till Sat, Feb 17 3pm ET). Also, an audio podcast was published in the Ruby Rogues podcast. [more inside]
The joy of creating your own toolkit
Read about the Neovim plugin that makes running RSpec from within Neovim effortless, and the story of its latest update. https://dev.to/melopilosyan/the-joy-of-creating-your-own-toolkit-34fl
Rails 7.1 allows resetting singular associations
Rails 7.1 allows resetting the cache on singular associations by querying the database again to retrieve the associated record. [more inside]
Ruby-on-Rails ERB vs HAML
This is an opinionated article about ERB and HAML with Rails. Let’s compare each other and pick a winner. https://bootrails.com/blog/erb-vs-haml/
The Unpredictable Nature of Flaky Tests in Rails Applications (And How to Debug Them)
How many times have you or someone on your team brushed off a failing build with a casual, ‘It’s fine, it’s just a flaky spec—ignore it’? [more inside]
“Fair” multi-tenant prioritization of Sidekiq jobs—and our gem for it!
For multi-tenant backend apps, managing a background job queue in a “fair” way can be difficult. In this post, we’ll show and explain a potential solution for your Rails and Sidekiq apps, and present our new Ruby gem to implement it. [more inside]
Visualizing Ahoy analytics in Rails
In this article, Honeybadger co-founder Joshua Wood explains how to graph Ahoy page views in Rails with Chartkick, with a preview of our upcoming observability tool—Insights! Read the full article here.
Authentication vs Authorization with Rails 7
A small tutorial to understand the difference between authorization and authentication [more inside]
How to find an element inside a Ruby array
Nothing really new under the sun, but a simple recap or reference article in case you are lost :) https://bootrails.com/blog/how-to-find-element-inside-a-ruby-array/
wowmow 🐛🕳️
Here’s a little goodie for you to work with webhooks locally: wowmow – a self-containted little Rack app designed to be deployed on render.com. It acts as a dead simple reverse proxy to give your local development web server a public URL with SSL. Think of it as you own private ngrok. It has to run on a starter instance which costs EUR 7 per month, but if you suspend it whenever it’s not in use, you can cut the cost to mere cents. https://github.com/svoop/wowmow
MissionControl::Servers (Resource monitor)
Taking the idea from MissionControl::Job, I’ve made MissionControl::Servers which is a simple monitoring of server resources. The general idea is that we may not want a separate system or service to monitor the CPU, Memory, and Disk Space of our Rails applications. This is especially true for hobby projects. So, if you have a VM, this will give you an easy way to set up monitoring of your system resources. The source can be found at Github Project along with a demo running on an AWS EC2 instance.
Stream Phlex from Sinatra
I added streaming support to phlex-sinatra and learned a bunch in the process. Read more in Stream Phlex from Sinatra.