- Short Ruby Newsletter
- Posts
- Short Ruby News - Edition #83
Short Ruby News - Edition #83
The one where we talk about new Ruby syntax, split the Gems and Updates into 3 categories: New, Updates, and Keep an Eye on, and a lot of code samples and good code design discussions.
You can jump directly to a section:
π New Products & π Events
π All about Code and Ruby:
π» Code Samples
πCode Design
π‘Around code
β€οΈWhy Choose Ruby
π New
π§° Updates
π Keep an eye on
π€ Related (but not Ruby-specific)
More content: π π π§ π₯ βπΎ (articles, podcasts, videos, newsletters)
[Sponsor β¬] RailsDesigner - get a 50% discount
Ever wished to ship your Rails apps faster and still turn heads? Meet Rails Designer βthΓ© UI component library for Rails apps. Built with ViewComponent. Designed with Tailwind CSS. Enhanced with Hotwire.From Avatars to Dropdowns, Navbars to Modals, Hotkeys to Notificationsβand weβre always adding more. Each component is Rails-optimized and fully customizable, melding with your project as seamlessly as pineapple dares to dance on pizza (hey, we don't judge!).Unlock a 50% launch discount: grab one of the final seats for just $49 and make your Rails projects the talk of the town. Dive in at railsdesigner.com
π New Products
π Jeremy Smith and Kasper Timm Hansen launched Domain Modeling in Rails
π Gregory Brown launched their Beginnerβs Guide to Ruby project
π JosΓ© Anchieta launched Sportical
π Events
π Rails Conf announced the official program. You can check it out at Speakers
You can read more about the speakerβs lineup in the RubyCentral article.
π Rails Camp USA shared about the available ticket for West.RailsCamp.us/2024
π Euruko shared that the registration will open on 22nd March:
π Tim Riley shared that Ruby in Common is almost sold out:
π Balkan Ruby announced the change of venue and extension of Early Bird tickets:
π Vladimir Dementyev shared about OSS Expo at BalticRuby
π Madison+ Ruby announced registration open for Madison Ruby: Your Ruby Community
π All about Code and Ruby
π» Code Samples
π Stephen Crosby shared a code samples about limiting N+1s via Proposal: Prevent activerecord access
π Garrett Dimon shared a quick reference sheet about Rails generators a companion for their new book: Frictionless Generators
π Sam Kennedy shared a code sample about using the exception_notification: Exception Notifier Plugin for Rails to post messages in Campfire:
π Nate Hopkins shared a tip about how to use plain Ruby inside factory bot:
π Matt Swanson shared that `find_each` will remove any order on a query in Rails:
π Hans Schnedlitz shared a code sample showing how to merge a list of hashes into a bigger flat one:
An alternative to this is using Ruby merge:
π Ruby Cademy shared a tip about using delegate_missing_to:
π Erwin Kroon shared a code sample and asked what will return:
π Dima Fatko shared a code sample showing how to use zip to transform an array:
π Nate Hopkins shared a code sample (see the gist at Get the SQL for an insert statement from ActiveRecord) about generating an insert statement for an Active Record model:
π Joel Drapper shared a code sample showing how they propose to work with Phlex without calling `render`: (see the feature proposal here)
π Thomas Galibert shared a code sample showing how they used SQL COALESCE in Rails:
π Gregory Brown shared a code sample implementing a small Sinatra like DSL:
π Ruby Cademy shared a code sample showing how to use minmax_by:
π Julian Rubisch shared how they are modeling Announcements power pack for Bullet Train:
π Ruby Cademy shared about Time#utc and Time#getutc:
π Mika Henriksson shared a Kamal configuration for building and deploying from local machine:
π Thinking about Code Design
π Greg Molnar asked about refactoring a Rails code:
Here are some of the replies:
π Thiago Araujo shared about when to use let in RSpec:
π Jeremy Smith asked about list of gotchas when rendering HTML for Turbo Streams:
π Jess Brown asked about a flickering problem with Turbo Drive and shared a video describing the problem:
Among the solutions suggested:
π I shared a code sample with a multi-line end-less method and asked how we feel about it:
Taking into consideration that I asked this question, it is hard for me to pick some replies. You should read the replies on Twitter and Mastodon:
π‘ Around code (news, findings, books and more - all about Ruby)
π Amanda Brooke Perino announced that there will be a new Rails tutorial created this year:
π Jim Jones shared about how the Rails Turbo 8 might remove the need to use turbo frames in some places:
π Matheus Richard shared a warning found in a Readme:
π Steven R. Baker shared they are building a product with the same license as ONCE for organizing cards on a wall:
π Marc KΓΆhlbrugge announced they are selling their project Story AI build with Ruby on Rails:
π I shared a thread about the history of the endless method: what proposals were submitted along the years to deal with removing some `end` keywords. Here is the first part of my thread. You can read it on Twitter or Mastodon:
β€οΈ Why Choose Ruby
β€οΈ John Gorriceta shared about how supportive Rails community is:
β€οΈ Jess Brown shared about how they are impressed by Ruby community generosity:
β€οΈ Daveyon Mayne shared about how easy it is to set up a single-page app landing with Rails:
β€οΈ Iheanyi Ekechukwu shared why they like Rails:
π§° Gems, Libraries, Tools and Updates
π New Gems and Repos
π Masataka Pocke Kuwabara published a new gem called activerecord-originator - Add SQL comments to indicate the origin of the SQL
You can read a more detailed article about it.
π Hans Schnedlitz announced a new gem tints-n-shades: The tints & shades generator for CLI lovers
π John Gorriceta announced a project crimson: A component library for Ruby on Rails that styles all the boring stuff
π Michael Lang announced a new version of Announcing Quantitative - Quantitative and Statistical analysis toolset for Ruby 3.x
π§° Updates
π§° Avo announced a new version of Avo - Content Management System for Ruby on Rails
π§° Denis Defreyne announced a new release for Nanoc Β» Release notes
π§° Chris Oliver announced a new version of tailwindcss-stimulus-components: A set of StimulusJS components for TailwindCSS apps similar to Bootstrap JS components
π§° Bozhidar Batsov announced a new version of Release RuboCop 1.62.1 Β· rubocop/rubocop
π§° Jeremy Evans announced a new version of Roda 3.78.0 Released Β· jeremyevans roda Β· Discussion #354
π§° Andrew Kane announced a new version of strong-migrations - Catch unsafe migrations in developmentCatch unsafe migrations in development gem:
π§° Alexis Bernard announced a new version of active_hashcash: Protect Rails applications against bots and brute force attacks without annoying humans
π§° Nate Hopkins announced a new version of turbo_boost-commands gem that fixes a Potential for arbitrary method invocation
π§° Sunao Hogelog Komuro announced a merged PR to IRB about Add disable_irb command to disable debug of binding.irb by hogelog Β· Pull Request #898 Β· ruby/irb
π§° Julian Rubisch announced a new version of Release 1.4.0 Β· stimulusreflex/futurism
π§° Mike Dalessio announced a new version of Release 1.7.3 / 2024-03-15 Β· sparklemotion/sqlite3-ruby
π Keep an eye on
π Fable Tales submitted a bug on Ruby issue tracker about calling new has regressed allocations over past few ruby releases
π Nobuyoshi Nakada submitted a bug on Ruby tracker about Top level `public`, `private` and `ruby2_keywords` do not work in wrapped load
π Steve Polito shared a PR proposed for RSpec-Rails about Use headless driver for next Rails release by stevepolitodesign Β· Pull Request #2746 Β· rspec/rspec-rails
π€ Related (but not Ruby-specific)
π€ Prem Sichanugrist asked about adding βno AI generated code will be acceptedβ to an open-source contribution guide:
π Josh Pigford asked about what choice of IDs
Here is one of the replies:
Nate also suggested the use of prefixed_ids - Friendly Prefixed IDs for your Ruby on Rails models
π€ Xavier Noria shared about functional programming:
π€ Nate Hopkins shared about naming:
π€ Konnor Rogers shared
π€ Adam Wathan shared
π€ Jason Swett shared
π€ Dave Thomas shared
π€ Ben Orenstein shared a video with an advice about how to approach projects:
An good quote from the video is shared here by Justin:
π€ Christian Findlay shared
π€ Dave Paola shared
π€ I shared:
More content: π π π§ π₯ βπΎ
π Newsletters
π Ruby Weekly published a new edition about Turbocharging Puma with Thruster
πRuby Libhunt published a new edition about Awesome Ruby Newsletter - Issue 408, Mar 14, 2024
π Ruby On Rails published a new edition of This Week in Rails about Active Record Basics Guide Refresh, Encrypted Attributes Re-Optimization, and more...
π Hotwire Weekly published a new edition about Week 11 - Turbo Morphing Deep Dive, Turbo Streaming Modals, and more!
π Sajjad Umar published a new edition about Ruby on Rails - March 2024
π§ Podcasts
π§ Jason Swett published a new episode about 213 - Adrian Marin, Founder of Avo - The Code with Jason Podcast
π§ Ruby For All published a new podcast about Ski Slopes, Sorbet, and Copilot β Effective Learning with Ryan Caldwell | Ruby for All | Episode 62
π§ Founder Quest published a new podcast about Insights Into Our Marketing Playbook | FounderQuest | Episode 10
π§ The Bike Shed published a new episode about The Bike Shed: 418: Mental Models For Reduce Functions
π§ Maintainable Software Podcast published a new episode about Irina Nazarova - Investing in Innovation: The Consultancyβs Guide to Growth
π§ The Ruby on Rails Podcast published a new episode about Episode 511: WebAssembly with Benjamin Eckel
π§ RemoteRuby published a new episode about Struggles and Strategies-Dev Dilemmas
π½οΈ π₯ Videos
Screencasts
π₯ Tomas Valent published a new video about Ruby on Rails Delegated types + Turbo frames (Hotwire) examples
π₯ Yaroslav Shmarov published a new video about SupeRails #162 Gem Ferrum - Generate PDF and PNG with Headless Chrome
π₯ Sam Johnson published a new video about Make your app faster: Understanding HTTP caching
π₯ Joe Masilotti published a new video about Turbo Native live coding
π₯ Jason Swett published a new video about:
π₯ Ruby Rogues published a new video about SQLite on Rails
π₯ Kasper Timm Hansen published a new video about Riffing on Rails: Recurring Reports modeling
π₯ John Hawhorn published a new video about Pairin' with Aaron: Hacking on Vernier
π₯ Thoughtbot published a new video about Improving Rails Test Suite Performance (continued)
π₯ Guillaume published a new video about Why You Really Don't Need SPA with Hotwire - Guillaume Briday - Lyon.rb Meetup 03/2024 (FR)
π₯ Ken Greeff published a new video about Creating Posts with Rich Text - Construction Project Manager - Part 14
π₯ Jeffrey Chupp and Jeff Dwyer published a new video about Live pair programming: Building Rate Limits In Ruby
π₯ Dean De Hart published a new video about Rails Kamal Deployer for Game Hosting
βπΎ Articles
Whatβs new π
App Signal published a new article about AppSignal's 2024 Ruby Event Sponsorships
JoΓ«l Quenneville published an article about How to approach a reduce problem
BalΓ‘zs Kutil published an article about Handling forks in threaded code in Ruby
Ahmed Nadar published an article about Meta or not to Meta programming in Ruby
Artur Roszczyk published an article about about Today, I would avoid metaprogramming at all costs
Aaron Sumner published an article about Notes from migrating from Minitest to RSpec, with help from GitHub Copilot
Cristian Molina published an article about Experimenting with Modern UI Alternatives in Rails
Martin Emde published a new article about Password Reset Vulnerabilities, Hacker One and Humility
Deep Dives π
Sammy Steele published an article about How Figmaβs Databases Team Lived to Tell the Scale
RΓ©my Hannequin published an article about Numeric data types in Ruby and when to use them
Ahmed Nadar published an article about Dynamic Rails View Helpers: A Fairy Tale of Refactoring for Component
Daniela Baron published an article about Efficient Database Queries in Rails: A Practical Approach
Akshay Khot published an article about Understanding Ruby defined? Keyword
How-TOs π
Rails Designer published an article about Flash Messages (notifications) in Rails Apps
Julian Rubisch published an article about Execute Third Party Code in a Rails App
Ayush Newatia published an article about Turbo Streaming Modals in Ruby on Rails
Harrison Broadbent published a new article about Using Rails debugger/rdbg with VS Code
Aestimo Kirina published an article about Let's build a Hanami app
Goulven Champenois published an article about Rspec tips and tricks
Dmitry Gutov published an article about Using dry-validation with Grape
Radan Skoric published an article about How to customize Rails console setup without modifying the project
Matt Polito published an article about Using a hash of data for string replacement in Ruby
Sergey Tsvetkov published an article about Payload and parameters validation in Rails
Jack Flannery published an article about Test Driving a Rails API - Part One
Maciek Korsan published an article about How to add a loading animation to your turbo frame with TailwindCSS
PaweΕ Pacana published an article about How to get burned by 16 years old hack in 2024
Ivan Ivashchenko published an article about Ruby on Rails containerization example
Bill Tihen published an article about Rails 7.1.x API Exploration
David Boureau published an article about How to benchmark Ruby code
Alkesh Ghorpade published an article about Boost Your Ruby on Rails Application Performance with Bullet Gem
Related
Karl Oscar Weber published a new article about From layoff to $5k MRR in one month
Reply