Integrating Web Push with Rails— The mechanism and protocols behind implementing push-based Web notifications are complicated, so it’s fantastic that Sam has put together a complete post showing the main steps and code involved to add push notifications to a modern Rails app. Sam Ruby |
Steep 1.5: A Static Type Checker for Ruby— Ruby 3.0’s introduction of the RBS type signature language teased a world of statically type-checked Ruby for those who wanted it, but another piece is required: a tool to *do* the type checking. Enter Steep. Soutaro Matsumoto |
📗 And a book: Ruby on Rails Background Jobs with Sidekiq— A short book, currently in beta, published by Pragmatic Bookshelf. The author notes: “This book is based around the truth that putting code into Sidekiq jobs is almost trivial, but operating such a system is not. It requires careful design, monitoring, and understanding of how the jobs actually run.” Dave Copeland |
📕 Tutorials, Articles, and Videos |
Turbo, Stimulus, Hotwire.. What's the Difference?— Rails has gained a bunch of snappily named extra pieces over the past few years, and if it’s not been clear what some of them are, or if you need to explain it to someone else, this will help. Sid Krishnan |
Performant Database Tree Traversal with Rails— The folks at PlanetScale (a serverless MySQL platform) needed to figure out 3 way merges for database schemas and had to work through a tree of objects in their database to find the common ancestor between two branches. Mike Coutermarsh |
How to Use enum Attributes in Rails— Enums provide a list of values to model attributes to drive consistency and make code more understandable. Not mentioned in this article is Rails 7’s improved support for using Postgres's native enum support. Jeffrey Morhous (Honeybadger) |
Adornable: Decorators for Ruby Methods— If you’ve ever looked at Python’s decorators or Lisp’s ‘advice’ and thought you’d like a similar way to extend Ruby methods, this is for you. I like the idea, but can’t see it catching on unless it became an official feature. Keegan Leitz |
Extralite 2: Another Way to Work with SQLite— An alternative (and faster) SQLite wrapper for Ruby that comes in two flavors: one that uses the system installed SQLite and one that bundles 3.42.0. v2.0 (quickly followed by v2.1) is a big update and includes enhanced querying possibilities and improves the Sequel adapter. Sharon Rosner |
Find Ruby Jobs with Hired— Hired makes job hunting easy-instead of chasing recruiters, companies approach you with salary details up front. Create a free profile now.
Hired |
|
|