Tutorials

A comparison of multiple generative AI tools when asking for Ruby on Rails code
In the context of Ruby programming, AI code generator tools offer varying results and sometimes require follow-ups to achieve the desired output. While some tools, like Phind and Github Copilot Chat, provide satisfactory solutions quicker, others ...



Improve your GitHub workflow with better repository defaults
Creating a GitHub repository is one of those “set it and forget it” moments at the start of a project that maybe doesn’t get so much attention. But there are some interesting things buried in the repository settings pages that can improve your tea...


Let's Build a Web Application in Ruby without Rails
Rails is great for building web apps. But it can be quite overwhelming if you don't know how web applications work. In this series of articles, we'll build a simple but complete app in plain Ruby without Rails, to get a deeper understanding and ap...

How to Split a List into N Equal Parts in Ruby (and Rails)
Earlier this week, I wanted to render a list of items on a website in a grid of 3 columns per row. Typically, I'd resort to Tailwind's Grid to accomplish this, but I wanted to do it programmatically in Ruby. While trying to hack a solution with lo...

Making SQLite extension gem install'able for Ruby Developers
Back in February we made SQLite extensions pip install'able for Python developers. Soon after, we made SQLite extensions npm install'able for Node.js developers, and on deno.land/x for Deno developers.And in a similar vein, we now have SQLite exte...

Stimulus JS - Accessing an action in another controller - DEV Community
If you've used Stimulus before, you should know that controllers are scoped. This can be useful, but you might come across a case where we want to trigger an action in a controller that is out of scope.We can do this with a custom event.I'll start...

Everything You Need to know about Serialization in Rails: Part I
That's when I realized the computing world is not very different from the real world. They dismantled the bed for transportation and then reassembled at the destination. Similarly, in the computing world, we deconstruct objects or data structures ...