Ruby

We do pretty much everything in Ruby. We love it. We have a lot say about it.

Displaying posts 1 - 12 of 24 in total

Lessons learned with Hotwire

Posted in January 2022 on the Katapult blog

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

Posted in April 2017 on the Codebase blog

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

Posted in March 2017 on the aTech Media blog

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

Posted in March 2017 on the aTech Media blog

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....

Running Ruby apps in production

Posted in October 2016 on the aTech Media blog

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...

Wiring up Deploy for Websockets (part 1)

Posted in June 2016 on the DeployHQ blog

In the last few weeks we've introduced websockets into Deploy to improve our deployments. In the next couple of posts we'll delve into the how and why of this development.

Updating things live in the browser

Posted in August 2015 on the aTech Media blog

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

Posted in July 2015 on the aTech Media blog

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

Posted in July 2015 on the aTech Media blog

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...