- Short Ruby Newsletter
- Posts
- Short Ruby News - Edition #105
Short Ruby News - Edition #105
Discover new Ruby launches, code samples, and gems. Highlights include Kamal 2 insights, Ruby coding tips, and AI tools for Rails.
In this edition, we tried to link some of the Twitter threads via Threadreaderapp, so you can read them without accessing Twitter.
You can jump directly to a section:
π All about Code and Ruby: π» Code, πCode Design,π‘Around, β€οΈ Why Choose Ruby
π§° Gems, Libraries, and Updates: π New, π§° Updates
π€ Related (but not Ruby-specific)
More content: π π π§ π₯ βπΎ (articles, podcasts, videos, newsletters)
[Partner β¬] friendlyrb.com
When: 18-19 Sep 2024 π Where: Bucharest, Romania π·π΄Join us for two days of inspiring talks, networking with 100+ peers, and fun outdoor activities! β¨As a co-organizer of the Friendly.rb Ruby Conference, I wrote about "Why You Should Join Friendly.rb in September 2024" Experience a friendly atmosphere and amazing speakers. Enjoy a relaxed schedule, deep dives into Ruby, Rails, and Hanami, and a unique group activity on September 20th. Connect with 130 passionate Ruby developers.Register now at friendlyrb.com
π Launches and discounts
π Web Crunch shared Hello Hotwire , a free course with premium build-along modules for developers looking to dive into Hotwire using Ruby on Rails. Read the launch thread here
π Brad Gessler launched Terminalwire - Hotwire, but for command-line apps (see here the launch thread)
π Alex Rudall launched a GitHub repo about companies using Ruby as their main backend language. If you work at a company that uses Ruby, submit a PR to add it.
π ιδΊΊεΊηδΌ announced the publishing of mruby handbook translated in English:
π Events
π Events happening this week if you want to attend (source: RubyConferences):
2 September, Orange County Ruby Users Group - Ruby Science September 2024
3 September, Bluegrass Ruby Users Group - September
3 September, Charlotte Ruby - Ruby Hack Night September 2024
3 September, Paris.rb - Meetup September 2024
3 September, Portland Ruby Brigade - Ruby Tuesday September 2024
3 September, RubyJax - Open Hax September 2024
3 September, SF Bay Area Ruby - Meetup in September GitHub
4 September, Montreal.rb - Ruby GUI Desktop Development Hands-On Tutorial
4 September, Prague.rb - First Wednesday Of The Month - Ruby September 2024
4 September, Rails Taiwan - ι«ι Rails Meetup September 2024
5 September, SD Ruby - Monthly Meetup September 2024
6 September, Ruby and Rails Adelaide - Ruby Burgers September 2024
7 September, African Ruby Community - Kampala Chapter Mini workshop September 2024
π Irina Nazarova shared the agenda for the SF Bay Area Ruby Meetup in September @ GitHub Β· Luma
π Ruby Conf shared the program for the conference rubyconf.org/schedule
π Euruko shared about the conversation between Matz and Jose Valim moderated by Dave Thomas:
π Ruby World Conf En announced the CFP open RubyWorld Conference 2024 Speaker Invite | RubyWorld Conference 2024
π Ruby Conf India also announced their CFP being open
π All about Code and Ruby
π David Heinemeier Hansson shared a benchmark of running Rails on a Hetzner bare metal server:
π David Heinemeier Hansson announced that Kamal 2.0 release is getting close:
π» Code Samples
οΈπ» Nate Hopkins shared a code sample about how they are using pattern matching:
οΈπ» οΈPeter Solnica shared a tip for gem creators to prevent state leaks between test runs
οΈπ» Nate Hopkins an example about using pattern-matching for data transformation:
οΈπ» Brad Gessler recommends async-websockets if you're working with WebSockets in Ruby
οΈπ» Cj Avilla shared on how to fix failing system tests for missing host for action mailer on rails 7.2 upgrade
He also shared a use-case for Ruby pattern matching in ActionText
οΈπ» Nate Hopkins shared a code sample about how they are using numbered block params:
οΈπ» Ruby Cademy shared how Rails overrides Range#=== to support range comparisons.
They also shared different approaches to performing multi-line assignments in Ruby
Here is how to conditionally install your gems using install_if
οΈπ» Haseeb Annadamban shared an easy way to load DB dump in development environment
π» Bradley Schaefer shared a code sample about how they are approaching configuration:
οΈπ» Ebi You... shared a code sample about how they are using phlex:
π» Ashok Gautham Jadatharan shared a code sample in their article about running bash and ruby:
οΈπ» Victor Shepelev explained why the assignment still proceeds when the method/label does not exists:
π» John Mc Dowall shared a code sample showing how they are using Dry::Validation gem:
οΈπ» Jon Kinney shared their VIM config for transforming hashrockets to 1.9 syntax:
π» Gelsey Torres published a code sample showing How to Create a Custom Gemfile for Development
π» Josef Strzibny published an article about Introduction to Minitest Mocks where they shared some code samples about how to use mocks in Minitest:
π Thinking about Code Design
οΈπ RoRvsWild shared a benchmark on the performance of Array#sort! vs SortedArray (read the entire thread here):
οΈπ Michael Chaney shared a way to enhance the usage of Common Table Expressions (CTEs) with ActiveRecord in Rails, particularly around the use of the WITH clause in SQL queries.
οΈπ Nate Hopkins shared his thoughts about pattern-matching:
He later added:
οΈπ Lucian Ghinda asked about using case vs if/else when implementing a simple status logic. Read the entire thread with various proposals.
οΈπ Prabin Poudel asked about how to approach waiting for elements to appear in system tests:
Here are some replies:
οΈπ Steven Aguilar asked about the best way to handle front-end in Rails:
Here are some recommendations:
π‘ Around code (news, findings, books, and more - all about Ruby)
π‘ Garrett Dimon shared his approaches to Structure Your ERb and Partials for more Maintainable Front-end Code in Rails
οΈπ‘ Matt Swanson shared his experience with Rails front-end while integrating third-party libraries
π‘ Konstantin Vinogradov shared a visible correlation between new stars and active contributors of GitHub repos created in recent years, grouped by their languages
π‘ Vladimir Dementyev shared about the update of their book:
π‘ Scott Carleton shared on Reddit about how they are using Jupyter notebook with Ruby. Check this short GIF where they share an example
β€οΈ Why Choose Ruby and Rails
β€οΈ Jason Leow shared his experience how it is different and uncomplicated with mature tech like Rails.
β€οΈ Madis NΓ΅mme speaks about the elegance of Ruby
β€οΈ Marc KΓΆhlbrugge shared about how they got started with Ruby on Rails:
οΈβ€οΈ LΓ‘zaro Nixon shared a tab bar with just 25 lines of JS and CSS. Read the full thread here
β€οΈ Marc KΓΆhlbrugge shared about why LLMs will work great with Ruby on Rails:
β€οΈ Ebi You... shared about Ruby on Rails not being represented in developer surveys and products:
π§° Gems, Libraries, Tools and Updates
π New Gems and Repos
π Javi Ramirez announced a new gem of profitable: Calculate the MRR, ARR, churn, LTV, ARPU, total revenue & valuation of your pay-powered Rails SaaS app.
π Adrian Goh announced a new gem - autogitc - Automates generation of Git commit messages using AI
π Nolan Tait published a new gem protos - A UI component library built with Phlex, Tailwindcss, and daisyUI
π§° Updates
π§° Bozhidar Batsov announced a new Release RuboCop 1.66 Β· rubocop/rubocop
π§° Matheus Richard announced a new PR is merged to Rails about Dispatch direct-upload events on attachment uploads by MatheusRich Β· Pull Request #52680
π§° Greg Navis announced a new version of active_record_doctor/CHANGELOG.md at a4f5d7fa42312208fdee674f9013bd058225dd7b
π§° RoR vs Wild announced a new version of active_hashcash - Protect Rails applications against bots and brute force attacks without annoying humans
π§° Vitaly Slobodin announced a new version of the Ruby extension for zeddotdev (check this documentation for how to configure running tests for various Ruby test frameworks)
π§° Jeremy Evans announced a new version of Sequel 5.84.0 Released Β· jeremyevans/sequel Β· Discussion #2212 Β· GitHub
π Keep an eye on
π Kevin Newton announced a new PR to merge Prism to Ruby of Switch the default parser from parse.y to Prism by kddnewton Β· Pull Request #11497
π€ Related (but not Ruby-specific)
π€ Tyler Hillery shared about βallballsβ in postgres
π€ Nate Berkopec tells us to stop abusing the app cache!
π€ Lucian Ghinda shared a thread about detailed Git commit messages. Dive in and you will find something useful.
π€ Study Every Day shared a thread about how they are working with spikes:
More content: π π π§ π₯ βπΎ
π Newsletters
π Ruby On Rails published a new edition about Last call for Luminary nominations, SQLite3 full-text search and more!
π Ruby Weekly published a new edition about RubyKaigi direct to your living room
π Hotwire Weekly published a new edition about Week 35 - New Hotwire Course, Hotwire for the Terminal, and more!
π Awesome Ruby Newsletter published a new edition about Issue 432 - Ruby's official documentation just got a new look
π§ Podcasts
π§ Remote Ruby published a new episode about Mike Dalessio on HTML parsing & sanitization and SQLite - Remote Ruby
π§ The Bike Shed published a new podcast The Bike Shed: 437: Contributing to Open Source in the Midst of Daily Work with Steve Polito
π§ Jared Norman published a new podcast about All Those Letters That You Do (with Jim Remsik) - Dead Code | Acast
π§ The Ruby on Rails Podcast published a new episode about Episode 522: Mentoring Junior Devs with Adam Cuppy
π½οΈ π₯ Videos
π₯ Dave Kimura published a new video about Episode 471 - Dark Mode about Dependent Fields with Hotwire
π₯ Yaroslav Shmarov published a new video about SupeRails | Mention users with TributeJS | SupeRails #186
π₯ Chris Oliver published a new video about Contribution I made to Rails this week
π₯ Jason Swett published a new video about Live TDD Lesson + How to Design for Change - Mentorship Session with Srinath and about Nested Mathematical Expressions - Ruby Testing and OOP (Part 3)
βπΎ Articles
Whatβs new π
π Jp shared a new article in his concurrency series - The Thread API : Concurrent, colorless Ruby
π Harry Tormey published an article about Scaling Rails & Postgres to Millions of Users at Microsoft: Lessons & Takeaways β StepChange
π Brooke Kuhlmann published an article about Ruby Modules
π Matheus Richard published an article about Wrap your dependencies
π Dmitry Tsepelev published a new article about How to test graphql-ruby responses
π Hrishi Mittal published an article about The 80/20 Rule of Rails performance - DEV Community
π Julian Rubisch published a new article Betterstimulus | Form Submits
π Augusto Lopes published an article about Learn Ruby and TDD at the same time
π G Hewitt published an article Water Intake Program in Ruby
π Igor Alexandrov published a new article about Odd Ruby return values | Ruby & Beyond
π Rails Designer published an article about Launch a Turbo Modal with URL Params Using Stimulus
How-TOs π
π Gelsey Torres published an article about How to Create a Custom Gemfile for Development - FastRuby.io
π Simon Chiu published a tutorial about How to save a recently viewed list of pages with Stimulus and localStorage
π PaweΕ Urbanek published an article about Easy to Overlook PostgreSQL Performance Issues in Rails Apps
π Shiivam Agnihotri published an article about Puppet - From Beginner to Advanced : Day 33 of 50 days DevOps Tools Series
π Michael Chaney published a new article about Moving From auto_strip_attributes to normalizes
π Andy Maleh published an article about Todo MVC Ruby Edition w/ Style Blocks, Inline-Style Data-Binding, and Class-Inclusion Data-Binding
Reply