The Ruby and Rails community linklog
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
Submit a post
Post Preview
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
Let's Rock - Let's generate 1000 rocks in a (28x28) pixel art edition
Hello, i prepared a thousand “Let’s Rock” rocks pixel art image (28px) collection. Yes, in ruby. The /letsrock repo includes everything incl. the sprites / tiles / attributes, the random meta data generation, the image generation one-by-one in 1x and 8x and an all-in-one composite fam and more. happy pixel pushing and rocking with ruby.
Graphs and Charts 0.1.1 (Custom Controls for Glimmer DSL for LibUI)
Graphs and Charts is a new library for Glimmer DSL for LibUI (Prerequisite-Free Ruby Desktop Development Cross-Platform Native GUI Library) that aims at providing Custom Controls for rendering graphs and charts. In version 0.1.1, it supports Line Graph in a new line_graph Custom Control for rendering lines (1 or more) connecting points with different y-axis values along a time-based x-axis. [more inside]
How we designed Flipper Cloud to never take your app down
When I considered starting Flipper Cloud, my overriding concern was how can I ensure that I never take someone else’s app down. This post dives into why and how. [more inside]
Why we switched from Heroku Scheduler
After seven years, we’re finally moving away from Heroku’s free add-on for scheduled jobs. This article dives into why we’re making the switch, and how we chose our new setup.
Exploring `it` default block param warning in Ruby 3.3
I took a short look with some simple examples at Ruby 3.3 RC1 warning about using it in a block that might conflict with the new accepted it as default block params.
Exploring the Meaning of Ruby's Global Constants and Variables
By default, Ruby defines many constants and global variables that can be used in the code to get information about the current state of the application and the runtime. In this article we’ll go over most of them to understand what they are and what information we can set and get to simplify our scripts or to debug problems. [more inside]
Stream Updates to Your Users with LiteCable for Ruby on Rails
In the fourth part of this series, we’ll use LiteCable for WebSockets and stream updates to users via Turbo Streams:
Understanding and Utilizing Delegates in Ruby on Rails
.Understanding and Utilizing Delegates in Ruby on Rails
How and Why to Measure Dependency Freshness in Your Ruby Application
Whether you are working in a legacy Ruby application, or a brand new application, measuring your dependency freshness score can be a positive indicator to understand whether you are staying current or gradually falling out of date. [more inside]
How to Dual Boot your Application with Rails' Main Branch
You just finished upgrading your app to the latest Rails version and you made the decision to never stay behind and always be ready to upgrade as soon as possible… But how can you do that? [more inside]
Monke See, Monke Do - Let's generate 21000 monkes in a (28x28) pixel art edition
Hello, i prepared a 21 000 “Monke See, Monke Do” monke pixel art image (28px) collection. Yes, in ruby. The /monkesee-monkedo repo includes everything incl. the sprites / tiles / attributes, the random meta data generation, the image generation one-by-one in 1x and 8x and an all-in-one composite fam and more. happy pixel pushing with ruby.
Speeding up our Rails CI with Github actions and parallel_tests
This article outlines how we used parallel_tests and Github Actions to bring our CI times down from 25 to 10 minutes. It starts with an overview of our previous setup and its challenges, we them move on to setting requirements, the research we conducted, and the proof of concepts we tried out. We then discuss the implementation phase, highlighting some decisions we took along the way. The experiences and strategies shared in this article may hopefully offer useful ideas for you to enhance your own CI.
Turbo 8 morphing deep dive - how does it work?
With Turbo 8 coming and morpinhg being set to be a big change to how we build Rails applications, I wanted to understand in detail how it all works and I’m writting it up a in mini series of articles with the first one here: Turbo 8 morphing deep dive - how does it work?
Pros and Cons of Deploying Rails Applications Natively vs Containerized in 2024
Explore deployment strategies—native vs containerized—by @julian_rubisch. Dive into the complexities, advantages, and practical aspects of each approach. Learn how they impact dev & production environments! [more inside]
Ruby 3.3 Introduces Range#overlap? method
Compare two ranges and see if they overlap each other with the Ruby overlap? method. It returns true if two ranges overlap each other. [more inside]
[Podcast] Fireside chat with Rails Core team member Rafael França
Rafael França, an esteemed member of the Rails Core team, is our featured guest in this episode. Join us as he delves into his journey with Rails, sharing insights on his initiation into the framework and the eventual path that led him to become an integral part of the core team. Our conversation explores the intricacies of decision-making within the core team, shedding light on the prioritization of pull requests (PRs), offering a sneak peek into the upcoming Rails 8, and providing valuable tips on getting your PRs successfully merged. Tune in for an in-depth discussion covering these topics and much more! [more inside]
ORM vs. SQL | Rubber Duck Dev Show 111
In this episode, we discuss our thoughts on the use of Object Relational Mappers (ORMs) in our development compared with just using Structured Query Language (SQL):
Ruby naming conventions
Remember, code is read more often than it’s written. [more inside]
Did you know that Ruby supports Pattern Matching?
Pattern Matching in Ruby allows for concise data destructuring, making it easy to assign variables with clear syntax.
Flipper 1.1 (expressions alpha!)
We released 1.1 of the popular feature flagging gem Flipper. The tldr: