Dev-Links #18 - Ruby / Rails

26th December 2021 – 490 words

Merry Christmas! Rails 7 + Ruby 3.1 were recently released. Here are some of the resources that I collected in the last couple of weeks.

New Rails 7 features, Before and After

New Rails 7 features, Before and After. GitHub Gist: instantly share code, notes, and snippets.

Nice Overview in Code about new Rails7 features

How to build a search engine with Ruby on Rails

Implementing search in your Rails app can be vexing. Here's a great pattern to use that combines the best parts of ActiveRecord and Postgres.

Justin Searl walks us through constructing a Postgres search engine, which also searches multiple languages. I love those articles which tell from personal experience and go into some of the more advanced meat. Also learned about websearch_to_tsquery pg function!

Rails 7 and JavaScript – Noel Rappin Writes Here

Over the last few weeks, DHH and the Rails core team have announced a number of different JavaScript build tools for use with Rails 7. As I was writing this very post, DHH wrote his own post outlining the strategy for Rails 7 and JavaScript.

Noel Rappin gives a deep dive into the Javascript Integration Future of Rails 7

GitHub - DFE-Digital/govuk-components: Lightweight components for developing with the GOV.UK Design System

Lightweight components for developing with the GOV.UK Design System - GitHub - DFE-Digital/govuk-components: Lightweight components for developing with the GOV.UK Design System

gov.uk “Bootstrap”-like library, also shipping with a whole rails view_components Gem and styleguide

From Node to Ruby on Rails - D U N K

I learned to code in the Javascript stack [1] and am building a Javascript based product [2]. I never questioned this stack: many companies default to it, JS everywhere seems good, and the community is big. But for my new side project I decided to try Rails because despite some perception that Ruby on Rails is ‘over’, people in HN comments say it was somehow more enjoyable than the newer Node based stack.

Shopify-Made Patterns in Our Rails Apps

At Shopify, we’ve developed our own patterns in order to support our global platform. Before coming here, I've developed multiple Ruby (and Rails) applications at multiple growth stages. Because of that, I quickly came to appreciate some workarounds and automation that were created to support the large codebase of...