#615 — August 4, 2022 |
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:
|
📖 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 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 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 |
🛠 Code & Tools |
Tomlib: Fast, Standards-Compliant TOML Parser and Generator — TOML (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
|
⚡️ QUICK RELEASES: Liquid 5.4 – Popular templating approach. |
|