Gnarly Learnings from July 2022

We love reading, watching, and listening in order to constantly update our skills and learn new perspectives. Here are some of the exciting pieces we learned from this month. The most underrated Rails helper: dom_id Despite being around for over a decade, a number of us at The Gnar have never interacted with the dom_id…

Read More

Hotwired Modals

Car in a claw machine

We can use Hotwire — specifically, Stimulus and Turbo — to create some modals that present a nice, dynamic user experience. And they can do this while staying in a mutli-page app structure that Rails is so good at. First off, we need to know that, with Turbo, you can load a page with a…

Read More

February Gnarly Learnings #1: An Introduction to Propshaft

What an exciting couple of months it has been for the Rails community! Rails 7 was released in December of 2021 and this month we are welcoming Propshaft. David Heinemeier Hansson (DHH), the creator of Rails, released a post on Feb. 11 introducing the community to the new and improved asset pipeline for Rails. While…

Read More

Understanding Observables in RxJS

Do you want a different way to handle state in your Javascript applications? Then I suggest giving Reactive Programming a try, and more specifically, RxJS. RxJS is a framework-agnostic library that provides tools for applying the Observer pattern. RxJS has extensive operators for handling state, and it is equipped with asynchronous event management functions. This…

Read More

STDIN Stream Processing Using Crystal Concurrency

Recently, I embarked on building out a simple proof of concept where I needed to render the latest JSON object from a stream originating from STDIN. The source data comes from a PR’d version of the system monitoring tool atop that adds an option for JSON output. I wanted the ability to render the most…

Read More