🇺🇦 #​601 — April 28, 2022

Read on the Web

Ruby Weekly

Sorbet + 100% Coverage Makes (Safe) Ruby Refactoring Possible — A quick explanation of how Crunchy Data seamlessly deployed a large (178 file) change to their Ruby codebase which the author (who is far from Ruby’s biggest fan) suggests would not have been possible without their strict dedication to Sorbet and typing.

Brandur Leach

🤔  Are Ruby and Rails Still Relevant? — If you’ve been a Rubyist for a while, you’ll have seen this discussion come up over and over. The answer is, of course, yes, but I’m always interested to pick up on the gamut of opinions and the replies here are mostly positive.

Hacker News

Modern Treasury Is Hiring to Build a Universal Banking API — Modern Treasury is a platform used by high growth fintech companies and marketplaces like Gusto, Pipe, Marqeta, BlockFi, and ClassPass to help them move and manage money at scale. Our team is remote-first, with offices in SF and NY.

Modern Treasury sponsor

More Fun with WASM and WASI: ruby-syntax-tree.github.io — Using the new(ish) WASI ABI (Application Binary Interface) to automatically create an S-tree of the Ruby in the browser! Will Ruby in the browser become a thing?

Kevin Newton

▶  Let’s Recreate Notion in Rails — It’s great to see a very well known name from the early days of Rails make an appearance. In this screencast he sets out to create a note taking system in Rails 7.

Dr. Nic Williams

Quick Bits:

Jobs

4 Senior ROR Engineers — Mastered ROR (6-8 years of XP)? Join Anka: The all-in-one solution to export products made of Africa globally. Great technical challenges, fast development opportunities, and a badass team.
Anka

Senior Rails Engineer @ Nebulab (Remote) — Join our distributed team and build high-volume eCommerce applications in a workplace made by developers for developers.
Nebulab

Senior Rails Developer (100% Remote) — Like to know how things are made? We make the software that the best product makers use and we're growing quickly. Come join us.
Wherefour

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

📕 Articles & Tutorials

How I Enabled Sequel to Reuse Active Record’s Database Connection — Can Sequel and Active Record peacefully coexist? Janko wanted to find out. It’s a little tricky, but the end result is sequel-activerecord_connection, a Sequel extension that lets it reuse an existing AR database connection.

Janko Marohnić

▶  Discussing Propshaft with DHH — The creator of Rails, David Heinemeier Hansson, went on the Ruby Rogues podcast to talk about Rails’ newest asset pipeline system, Propshaft. Or if you’d rather read about it.. (Interesting trivia: Basecamp only just dropped using CoffeeScript this month.)

Ruby Rogues podcast

eBook: Right Indexes Can Improve Your Query Performance by Up to 100x — Learn how to create the best Postgres index for your queries. Get a deep dive into index types, operators, data types and more.

pganalyze sponsor

How to Avoid Sleeping in Capybara / System Tests — Ad-hoc sleeping can cure many ills in tests, but it’s not particularly elegant or reliable.. Luckily Capybara offers some alternatives.

Josef Strzibny

How to Preload Counts in a List with Active Record — Shows off several approaches.

Benito Serna

Tips for Using FactoryBot Without an ORM — FactoryBot is a long standing (14 years!) object factory library often used to replace fixtures in test suites and it’s totally viable to use it away from a database context.

Oli Peate

The Four Phases of a Test — Another version of Arrange, Act, Assert, Teardown.

Jason Swett

🛠 Code & Tools

Ransack 3.1: Object-Based Searching for Rails Apps — Want to add a search feature to a Rails app but without introducing dependencies like ElasticSearch or Algolia? The project has a new docs site now too.

Ransack Team

pg_party 1.4: PostgreSQL Partitioning for Active Record — AR migrations and helpers for creating and managing table partitions. Now has full Postgres 11+ feature support and supports sub-partioning.

Ryan Krage

🤩 Connect Your Domains to Heroku or Netlify Without Thinking About DNS

DNSimple sponsor

Mess with DNS: A Playground to Learn About DNS Concepts — Not Ruby specific, but DNS management is one of those skills I think it’s great for everyone to pick up.

Julia Evans

sequel-activerecord_connection: Let Sequel Reuse An ActiveRecord Connection — Related to a longer article linked above.
Janko Marohnić

Spyke 7.0: Interact with REST Services in ActiveRecord Style
Jens Balvig

minitest-rails 7.0: Minitest Integration for Rails

👾 A Ruby-Powered Game

Spheres: A Tetris-Like Game Written in Ruby — Spheres, a Match-3 type game, has three playing modes and is a port of a game written by the same author in 2009. Source.

Victor David Santos