Tutorials



Enhancing your Rails app with SQLite | Fractaled Mind
One of the reasons people hesitate to use SQLite in their Ruby on Rails applications, in my opinion, is a fear that they will miss certain features they are accustomed to from PostgeSQL or MySQL. As discussed in an earlier post, we can load SQLite...

Exploring Ruby Warnings - FastRuby.io | Rails Upgrade Service
We are used to checking the deprecation warnings displayed by Rails or warnings from different gems, but Ruby itself can also display warnings to help us find code that can be problematic.In this article we will explore how to use them, how to ana...


We used to store files as base64 strings in Postgres, but not anymore | The Official MailPace Blog
Email attachments are always encoded into base64 for sending, so our API specifically asks for that as the input format. Yes, there are a million better formats for encoding binary data/images, but hey, SMTP is older than the internet, and attachm...

Express yourself clearly with positive? and negative? for numbers - Andy Croll
Ruby, in contrast to other languages, often provides multiple ways to accomplish simple programming tasks. In pursuit of developer happiness, the Standard Library offers the opportunity to make your code appear more like English.In this case we’ll...

How to Improve Rails Caching with Brotli Compression
Caching is an effective way to speed up the performance of Rails applications. However, the costs of an in-memory cache database could become significant for larger-scale projects. In this blog post, I’ll describe optimizing the Rails caching mech...

When counting lines in Ruby randomly failed SerpApi deployments
Recently, we observed the occasional failing deployments only on two of our servers. The failed servers even were closing my regular SSH connection. In this story, you'll learn how we reduced memory usage and made one piece of SerpApi code 1.5x fa...

Build Drag and Drop with Rails Hotwire - DEV Community
Hey there, fellow web adventurers! 😄 Building web applications can be a wild ride, right? Well, today, we're diving into something super cool: adding drag-and-drop functionality to your Rails app, all powered by the magic of Hotwire! No worries, w...