đșđŠ #â599 â April 14, 2022 |
Ruby Weekly |
Performance at GitHub: Deferring Stats with Blake Williams (GitHub) |
Ruby 3.1.2 Released (and 3.0.4, 2.7.6, and 2.6.10) â A flurry of new releases to (mostly) fix two security vulnerabilities: a double free vulnerability in regex compilation (3.x only) and a buffer overrun vulnerability in String to Float conversion. Yui Naruse and Yusuke Endoh |
Free eBook: Efficient Search in Rails with Postgres â In this eBook, Leigh Halliday explains how to speed up a search query from seconds to milliseconds â walking through using exact matches, similarity matches with trigrams, partial matches with ILIKE, and natural language matches. pganalyze sponsor |
Recently in Ruby Core â A summary of some of the issues proposed to Ruby core which touch areas from garbage collection to pretty-printing enhancements. If you want to get involved (or just get more knowledgeable), dig in. Gernot Gradwohl |
Quick Bits:
|
|
đ Articles & Tutorials |
Different Ways to Set Attributes in Active Record â A Rails 7 oriented cheat sheet comparing the behaviors around various ways to set attributes. Scott Bartell |
Releasing a Redesign using Feature Flags and Rails Variants â Variants is a core Rails feature that makes it easy to trigger an alternative template under conditions of your choosing. Coupled with feature flags, it gives a safe and controllable way to roll out a new design. Ari Summer |
How Environment Variables Can Make Your Ruby Test Suite 'Flaky' â Environment variables can help manage config in any application. But Ali shows they can also make test suites more fragile. Ali Ibrahim |
Flaky Tests Slowing You Down? BuildPulse Can Help BuildPulse sponsor |
Introducing erb2builder: An HTML+ERB Parser â Built as part of a no/low-code Ruby platform using Nokogumbo, treetop, and the parser gem, itâs not perfect, but an interesting starting point. Included here, rather than in the âcodeâ section, as the author focuses mostly on how it works. Lucas Luitjes |
â¶Â  Rails Flash Messages in the Hotwire Era
|
A Slice of Life: Table Partitioning in PostgreSQL Databases
|
Postgres Transaction Pitfalls for Rails Developers
|
đ Â Code & Tools |
Opal 1.5: The Ruby to JavaScript Compiler â v1.5.0 is an evolutionary rather than revolutionary release, but increases performance and extends support further. Adam Beynon and Contributors |
RbSyn: Program Synthesis for Ruby â This is a curious idea but steeped in a long history of program synthesis in computer science over the years. Essentially, you provide RbSyn with a specification in the form of tests, type and âeffect annotationsâ and a Ruby function that will pass the tests is returned. Sankha Narayan Guria |
Complete Peace of Mind Rails Hosting â If you need hands-off, rock solid hosting for your Rails app, OpsCare is for you. We keep your app running, 24 hours a day, 7 days a week with a worldwide team. OpsCare by reinteractive sponsor |
Silencer: Easily Suppress the Rails Logger â On a per-action basis, too. Steve Agalloco |
Mobility: Pluggable Ruby Translation Framework â Supports both Active Record and Sequel.
|
CreditCardValidations 5.0: Gem for Validating Card Numbers
|
Biggs: A Library for Formatting Postal Addresses from 60+ Countries
|
Sidekiq-Cron 1.3.0: A Cron-Like Scheduler for Sidekiq Jobs
|