A Tale of Two Sisters

"Are you ready for it?" Ava asked Emma for the last time. Emma shut her eyes, nodding to Ava. Emma was always the audacious sister between the twins. Ava took her cigarette lighter out of her pocket. They were in the basement of the house. It was their place, a…

A review of mobile development frameworks

I don't usually do these kinds of posts because each framework has its pros and its cons. What works great for one team might not work for the other and what works for one project might not work for another. I put this first for people who find this post…

Custom WebSocket implementation with ActionCable on Electron/Node

Are you using an ActionCable client on Electron app? You want some extra compression with messagepack? Read on! NOTE: If you are looking for adding support for compression to your Rails backend, see the previous post. Chromium already handles compressed websocket frames with the permessage-deflate protocol. But if you have…

Custom WebSocket extension for Rails ActionCable

In the previous post, we saw how to support compression with permessage-deflate extension for Rails ActionCable connections. Now that we are there, let's go one step further and see how we can create a custom extension for WS frame compression. As an example, I'll demonstrate a way to compress JSON…

Compressing WebSocket/ActionCable frames on Rails with permessage-deflate

WebSockets are great for a long-running connection with the client. Can we make them better, faster maybe? The answer is yes and it's very simple. This post describes how to make those WebSocket connections feel even snappier. HTTP You have probably already heard about compression and are using it for…

Stimulus: A modest JS framework

Introduction When I first came across Stimulus, I was excited. The premise is great, especially when coupling with a rails app. Convention over configuration, right? No more jQuery code sprinkled around throughout the page and watching for load/change events to perform changes. Not to mention the quirks that come…