Ruby
We do pretty much everything in Ruby. We love it. We have a lot say about it.
Displaying posts 1 - 12 of 23 in total
How to increase database performance with a Recursive Common Table Expression
Avoid N+1 queries when retrieving tree-like hierarchical data.
How to Deploy a Ruby on Rails Application to Katapult Using Kamal 2
Follow our step-by-step guide for a seamless setup and deployment process.
Lessons learned with Hotwire
We've been using Hotwire for the past couple of months and we've largely tried to stick to the Rails way of doing things, but there have been a few times when we've been unsure on the correct approach. This article explains how we've handled flash messages, modals, and async actions.
Building Commit Graphs
Git and Mercurial both come packaged with handy utilities to visualise the commits in your repository as a graph. We include this functionality in the Codebase interface as well. A...
Seamless socket server restarts in Ruby
We utilise a variety of custom socket servers to support our applications. Most of our apps have at least one. We write RPC servers to interact with repository storage in...
Resizing your uploaded images
A couple of days ago I wrote about uploading attachments and in this tutorial I'm going to look at doing some processing on those attachments once they have been uploaded....
Uploading files in your Rails application
Uploading files into your Rails application has never been easier, and with the a wealth of useful gems around to help there's no better time to be working with files.
Running Ruby apps in production
Over the last few months, I’ve been working on a number of Ruby applications which have a requirement to run a few different types of process — web servers, workers, crons — in order...
Updating things live in the browser
One of the things I am most proud and happy with in Coact so-far is the way that data updates made on the server are reflected in real time in the browser. For example, if someone renames a client
Memoization in Ruby
Memoization is a technique employed in many languages which allows you to cache the results of slow or expensive operations and return the cached result whenever the method is subsequently...
Local gems for local apps
If you’re a keen gem developer like myself and you regularly use them in your other applications, you may find it useful to know of this quick tip. It allows...