#​615 — August 4, 2022

Read on the Web 🇺🇦

Ruby Weekly

Scaling Sidekiq at Gusto — The popular background job processing system is almost everywhere these days, so you might find it useful to learn how one team at a large payroll service went about cutting costs and reducing latency.

Kelly Sutton

The Four Stages of Testing That Help Your Focus — The esteemed author of numerous Ruby and Rails books reflects on a way to simplify your thinking around tests – they’re either in one of three failure stages, or they work (but even then you need to think about how that became the case!)

David Bryant Copeland

RedisGreen: Secure, Scalable, Full-Featured Redis 7 Hosting — The latest Redis features, instrumented and scaled with the tools teams need as they grow.

RedisGreen sponsor

Faraday 2.4: A Flexible HTTP Client Library — I’m still on team http.rb for my HTTP client work, but Faraday is a very compelling alternative (example usage) as it takes a higher level approach in offering a common interface over many adapters and embraces the concept of middleware for processing the request/response cycle.

Olson, Hobson, et al.

Connecting a Rails App with React in a Monolith — To me it often feels like worlds are colliding when working with Ruby apps that use JavaScript frontend frameworks. Two languages, two ecosystems, but ultimately one app. Paweł breaks down a Rails⇿React integration approach here and touches on some alternatives too.

Paweł Dąbrowski

Quick Bits:

  • Gitea is a popular, lightweight, Go-powered, GitHub-a-like git forge and its newly release version has added a package registry feature that supports serving up RubyGems.

  • Is the future just sticking your entire app on one big server with 64+ cores and terabytes of RAM?

📖 Articles, Stories & Videos

The Difference Between Procs and Lambdas in Ruby — A short and sweet reminder of the, often subtle, differences.

Jason Swett

How to Take Screenshots from Rails Apps — Covers four options: Puppeteer with Goover, Cloudinary with URL2png, html2canvas, and Urlbox (the source of the article).

Corinn Pope

Sidekiq and Request-Specific Context — Sidekiq 6.3 added support for ActiveSupport::CurrentAttributes to allow you to access global per-request attributes during your jobs.

Mike Perham

The Professional Network Designed and Built for Developers

Polywork sponsor

Using Sorbet and Tapioca with Rails — Two desserts I wouldn’t want together in real life, but which can make life sweeter if you’re on the Sorbet type-checking train. Tapioca is now the recommended way to generate RBIs for Sorbet (replacing srb rbi).

Zach Ahn

▶  Five Secrets to Getting Your First Rails Job — If you’re at the start of your Ruby and Rails-oriented career, this is a handy and encouraging resource from someone with plenty of experience.

Joe Masilotti

How to Bulk Insert Nested Attributes in Rails
Keygen

🛠 Code & Tools

Tomlib: Fast, Standards-Compliant TOML Parser and GeneratorTOML (named after inventor Tom Preston-Werner) is a simple config file format that’s reminiscent of INI, but better. This library boasts big performance wins against existing Ruby options.

Kamil Giszczak

NaturalDSL: An Experimental DSL for Building DSLs — How meta! To be fair, the creator says this is currently “highly likely useless” but the example was interesting enough to catch my eye. A step too far? Perhaps.

Dmitry Tsepelev

Fixed Price Monthly Code Maintenance for Rails Apps — No time to do those small, but critical updates to improve your app? CodeCare will take care of necessary tweaks, bug fixes, upgrades and ongoing improvements.

reinteractive Pty Ltd sponsor

HexaPDF 0.24.0: PDF Creation and Manipulation Library — The focus in this release is on document layout. There’s also new support for creating column and list boxes – see the screenshots here for examples. Note: AGPL licensed, with commercial options available.

Thomas Leitner

Comma 4.7: CSV Generation Extension for Ruby Objects — Define an output format in a basic DSL then easily create CSV from arrays, Active Record objects, etc. Example code here.

Marcus Crafter

Grover: Transform HTML into PDFs, PNGs or JPEGs — Worth a look for the fantastic ‘logo’ alone 😆

Studiosity

validates_email_format_of: Validate Email Addresses Against RFC 2822 and RFC 3696
Alex Dunae

⚡️ QUICK RELEASES:

Liquid 5.4 – Popular templating approach.
Octokit.rb 5.2 – Ruby toolkit for the GitHub API.
Stripe Ruby 7.0 – Stripe API library. (Migration guide.)
Rouge 3.30 – Pure Ruby code/syntax highlighter.

Jobs

TravelJoy | Engineer #9 | Full-Stack | Remote in USA | Full-Time — TravelJoy is the market network for leisure travel. Thousands of travel agents love and depend on our product every day.
TravelJoy - Bring the joy back into travel planning

Senior Ruby on Rails Backend Engineer - Integrations — Are you a self-starter looking to learn and grow? We are hiring around the world to strengthen our rapid growth. Join our journey.
Leadfeeder

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