#566 — August 19, 2021 |
Ruby Weekly |
On Modern Rails + Web Apps Without JavaScript Bundling or Transpiling — DHH has explained what approaches the next iteration of JavaScript in Rails will take and import maps have a huge role to play. The goal is to, eventually, not need a bundler like Webpacker and just pull in the ES6 modules you need. David Heinemeier Hansson (DHH) |
“Unless new evidence comes to bear that refutes the basic tenets of this analysis, Rails 7.0 will aim to give you a default setup based on import maps, and leave the Webpacker approach as an optional alternative.” ___ |
▶ An 'Alpha Preview' of Modern JavaScript in Rails 7 Without Webpack — As tends to be David’s way (from way back when the build a blog system in 15 minutes video boosted Rails’ initial popularity) he’s recorded a practical screencast showing off his latest thoughts. David Heinemeier Hansson (DHH) |
Uptime Monitoring Is Now Available in AppSignal — Uptime monitoring is the first line of defense against downtime. Ping your apps every minute from 4 locations around the world and receive alerts when something is down. Now you'll know about downtime before your users do. AppSignal sponsor |
TTY::Option: A Declarative Command-Line Arguments Parser — An extensive parser that covers just about every CLI scenario one could imagine. Piotr Murach |
▶ How to Debug a Rails App — A nice 30-minute screencast gently introducing you to the practicalities of debugging Rails apps from the basics through to using external tools and gems to help. Phil Smy |
QUICK BITS:
|
|
📕 Articles & Tutorials |
One Row, Many Threads: How to Avoid Database Duplicates in Rails Apps — A primer on avoiding duplicates in database tables that back multi-threaded Rails applications, with practical code examples. Dmitry Tsepelev |
Demystifying Rails Autoloading — Kyle starts with plain, old Ruby Kyle Fazzari |
Crunchy Bridge: Fully Managed Cloud Postgres — Crunchy Bridge users experience performance improvements, better developer workflow and seamless migration. Crunchy Bridge sponsor |
Paweł Urbanek |
Refactoring: In Defense of Magic — Metaprogramming has a bit of a stigma to it in Ruby, but maybe we’ve overcorrected as a community? Noel thinks so as he sings the praises of metaprogramming and its benefits. Noel Rappin |
Using Hotwire with Rails for a SPA Like Experience — It’s pretty amazing what you can do with the Hotwire gems while writing little to no JavaScript. It’s like a Turbo (ha!) boost to a SPA. Mike Wilson |
A Beginner's Guide to RuboCop in Rails
|
🛠 Code & Tools |
Reek: A High Level 'Code Smell' Detector for Ruby Code — It’ll detect things like odd variable names, unused parameters, overuse of constants and methods, and cohesion problems. Timo Rößner |
Hightop: A Shortcut for Group Count Queries — Adds a Andrew Kane |
ActiveMedian: Median and percentiles for Active Record and More — Not just for Active Record but can work with Mongoid, arrays, and hashes too. With AR it uses SQL with the main database systems for extra efficiency. Andrew Kane |
Build Online Video for Ruby That Just Works Mux sponsor |
Stitches: Create Microservices in Rails with 'Minimal Ceremony' — You get things like API key authentication, API versioning at the router level, and some other niceties added to a Rails app. Stitch Fix Technology |
punks.starter: Algorithmically Generate Your Own Curated Pixel Art — This is fun and the example in the README is worth the price of admission all by itself. CryptoPunks Not Dead |
Store Attribute: ActiveRecord Extension Which Adds Typecasting to Store Accessors
|
rails_respond_to_pb: Rails Middleware to Interface Controllers with Twirp
|
|
🕰 ICYMI (Some older stuff that may catch your eye...)
|