#526 — November 5, 2020

Read on the Web

Ruby Weekly

Rails 6.1 RC1 Now Available — The list of features and fixes coming to 6.1 is impressive, to say the least: horizontal DB sharding, per-database connection switching, strict loading associations, delegated types (an alternative to STI), error objects. and more… whew. It’s time to play.

Eileen M. Uchitelle

RubyConf 2020: This Time It's Virtual — If you’ve never made it to RubyConf for logistical reasons, this may be the year for you. It still costs money, but will be entirely online with Q&As, ‘virtual hangs’ and even a hallway track. Here’s the full schedule.


ButterCMS Melts into Your Ruby App. #1 Rated Headless CMS — ButterCMS is the #1 rated Headless CMS for Ruby. Let your marketing team blog, create landing pages and more w/ our easy to use dashboard. Fast content API for modern apps. Secure. Scalable. Less Code. Try free today for 30 days.

ButterCMS sponsor

Pattern Matching No Longer Experimental — It’s only a commit on the core repo so you’ll probably be waiting for Ruby 3 for this but pattern matching, as introduced in Ruby 2.7, is no longer considered an experimental feature.

Core Ruby Repository

📘 Articles & Tutorials

▶  Taking VS Code From Editor to IDE — Visual Studio Code is a powerful editor by itself, but with the addition of a few extensions, you can turn it into a much more intelligent IDE. (13 minutes.)

Drifting Ruby

How to Migrate Your JavaScript From Sprockets to Webpacker — Rails 3.1 introduced the ‘asset pipeline’ nine years ago(!) built around Sprockets. Webpack solved some of the same issues in the JavaScript world and since Rails 6 it’s been the default solution via Webpacker. But what about if you need to migrate?

Ariel Juodziukynas

How to Create a Ruby CLI App and Distribute It Via Homebrew — Covers all the essentials quickly and clearly. (Homebrew is a popular package manager on macOS (and less so on Linux).)

Paweł Dąbrowski

Ready for Rails 6.1? Our Stay Up to Date Service Can Help — FastRuby.io's new Stay Up To Date service continually pushes PRs to your repository to ease your future upgrade to Rails 6.1.

FastRuby.io | Rails Upgrade Services sponsor

The Performance Impact of Using Rails View Partials — Using partials may DRY things up, but it can lose performance. This post presents (HA!) an alternative before noting: “It’s better to repeat yourself than to ship an app with mediocre performance.”

Pawel Urbanek

A List of Rails Shims — When upgrading a Rails app, you’ll sometimes find that functionality is extracted from Rails and moved into a new gem. These gems are called shims.

Luciano Becerra

▶  SQL, Arel and the 'Dark Side' of ActiveRecord — Eric Hayes spoke at this year’s online RailsConf about wrangling your SQL with Arel and here he joins the Ruby Rogues to discuss his journey into the dark, undocumented depths of Arel and why writing custom SQL queries in your apps can make good sense.

Ruby Rogues Podcast podcast

▶  How I'd Build It: How Noah Gibbs Would Build a Scheduling Feature
Rails with Jason Podcast

Which Test Framework Should I Learn, RSpec or Minitest?
Jason Swett

What Level of Test Coverage Should You Shoot For?
Jason Swett

Inserting from Datasets with Sequel
Janko Marohnić

Structuring Monitoring Data in Monolithic Applications with Namespaces
Tomas Fernandez (AppSignal)

💻 Jobs

Senior Ruby on Rails Developer (Remote/EU) — Join our growing team of passionate engineers and help us develop the leading motorhome sharing platform in Europe.


Find a Job Through Vettery — Create a profile on Vettery to connect with hiring managers at startups and Fortune 500 companies. It's free for job-seekers.


ℹ️ Interested in running a job listing in Ruby Weekly? There's more info here.

🛠 Code and Tools

Terminal Table 2.0: An ASCII Table Generator — One of those projects where the examples show you everything you need to know, so check them out.

TJ Holowaychuk

Termplot: A Simple Terminal Plotting Tool for Streaming Data — Let’s say you have a stream of numbers.. feed them into this and get a live graph in the terminal.

Martin Nyaga

Seamlessly Integrate Video into Your Ruby App

Mux sponsor

CrawlerDetect: Gem to Detect Bots and Crawlers via the User Agent — Of course, this won’t catch the more nefarious bots hiding under ‘legit’ seeming user agent strings but claims to detect “1000s” of bots, spiders, and crawlers.

Pavel Kozlov

graphql-ruby: A Ruby Implementation of GraphQL
Robert Mosolgo

RubyMine 2020.3 EAP6: Improvements for Code Assistance, Editor, and Navigation