- Short Ruby Newsletter
- Posts
- Short Ruby Newsletter - edition 108
Short Ruby Newsletter - edition 108
The one where there is a new Ruby core committer, Dragon Ruby v6.0 release, Ruby Central looking for a new board member, and so many interesting code samples.
Table of Contents
Please note:
Over the weekend, I moved the newsletter from Substack to Beehiiv. Although I'm still using the same domain name, the platform is now different. This change might cause some issues, so I apologize for any glitches that occurred over the weekend or may arise in the next few editions.
Three important things for you to know:
The newsletter on Substack is still there but marked as private. I will keep it until I can review all the content and ensure it was imported correctly. You can access the old Substack project here.
As this is a different platform, the unsubscribe process is different. So, I made a short video about how to unsubscribe to make it easier. Of course, you can always use the link at the end of the email.
The email currently is
[email protected]
and once the sending is warmed up, it will be changed to[email protected]
You can read more about migration, its reasons, intentions, and goals here
Want SOC 2 compliance without the Security Theater?
Get the all-in-one platform for SOC 2
Build real-world security πͺ
Penetration testing, compliance software, 3rd party audit, & vCISO
π Launches and discounts
π Landon Gray launched (in preview) a new framework Dashi - A Streamlit like Framework for Rubyists [Preview]
π Justin Bowen launched https://activeagents.ai - The AI framework for Rails with less code & more fun
π Josef Strzibny announced the release of the Kamal Handbook, 2nd edition for Kamal 2
π Events
π Avo announced a new office hours for October 18th β register here β Avo Office Hours [3] Β· Luma
π Pragmatic Programmers announced a new event on Monday about An Afternoon with Pragmatic Bookshelf - Author Edition
There will also be a discount:
π All about Code and Ruby
π Ruby Central is looking for new board members Apply here
π Aaron Patterson shared that that Eileen Uchitelle was accepted as core committer for Ruby Misc #20728: Propose Eileen Uchitelle as a core committer
π Amir Rajan announced a new version of DragonRuby Hits v6.0 - DragonRuby Game Toolkit by DragonRuby
Source: DragonRuby
π» Code Samples
οΈπ» Xavier Noria shared how to do an estimation about migrating to Zeitwerk:
οΈπ» Jean Boussier shared about a bug they found in Ruby:
This was already fixed by Kevin Newton in Fix intermediate array off-by-one error by kddnewton Β· Pull Request #11800 Β· ruby/ruby Β· GitHub
We found out (again as this was previously shared) in the same thread that Shopify is running Ruby master in Production:
π» Joel Drapper shared some learnings about Ruby:
There are also interesting replies and conversations around these points:
References issues in the last post are: Bug #20505: Reassigning the block argument in method body keeps old block when calling super with implicit arguments and Bug #20392: Delegate super calls with a block.
If you want to learn more about super, Avdi from Graceful Dev also published a video about Calling Superclass Methods in Ruby
Source: @gracefuldev
οΈπ» Ufuk Kayserilioglu shared a code sample that can make the private methods public:
π Robert shared about how Range is working with frozen strings:
π» Bijan Rahnema shared in a comment a code sample about testing controllers with signed-in users in Rails 8 beta:
Source: comment in Rails issue 27145
οΈπ» Chris Oliver shared a code sample about synching payments after being redirected from Stripe using the Pay gem:
οΈπ» Devin Starks shared a code sample about using ActiveRecord::Store:
οΈπ» Josef Strzibny shared a configuration sample for Kamal 2:
οΈπ» Hans Schnedlitz shared a code sample that will read the same stats as the top
command in Linux:
π» Joel Drapper shared about Phlex 2 providing hints tns to Ruby language servers about HTML elements. Read the thread as Joel explain how he has achieved this.
π» Greg Navis shared a thread summarising news from Ruby and tech world:
οΈπ» Joel Drapper shared a code sample showing how to build a server-side async fetched Gravatar (see full code in this Gist)
οΈπ» LΓ‘zaro Nixon shared how they built an interactive checkbox wiuth Stimulus and Hotwire:
οΈπ» RoR Vs Wild shared about small partials and performance:
Jean Boussier replied about this:
οΈπ» Michael Chaney shared about parsing CSV files in Ruby:
οΈπ» Ruby Cademy shared a code sample showing how to use Rails accessed_fields:
π» Max Chernyak shared a code sample in their article about Enums in Ruby
Source Enums in Ruby
π» Vitaly Gambala shared they load-tested a Rails 8 app with kamal-proxy:
π» Vitaly Gambala shared
π Thinking about Code Design
οΈπ LΓ‘zaro Nixon shared about Hey.com using nobuild:
π Adam Fortuna shared about using oj_serializers while in the rewrite from Next.js to Rails:
οΈπ Matt Swanson shared about the differences between Rails and Laravel regarding a DSL for forms:
οΈπ Jonathan Markwell shared they are running over one million jobs with Solid Queue using SQLite:
They shared more about their current setup:
On the same topic, William Kennedy shared the following post:
οΈπ Nate Berkopec shared about not using methods that causes SQL queries in any instance of any class:
οΈπ Jason Swett shared a page from their new book Professional Rails Testing:
οΈπ Ross Kaffenberger shared an older article about Many Small Queries Are Efficient In SQLite
Here is a quote from the article:
οΈπ Nate Berkopec shared about a perfrect transaction:
οΈπ Javi Ramirez shared moving off cloud. They shared a huge post that I cannot screenshot here, but you can read it full here.
π‘Around code (news, findings, books, and more - all about Ruby)
π‘ Last week, there was a discussion, mostly in Japan, about Ruby and how Matz approaches Ruby. Here are some bits and pieces that I put together using Google Translate:
Another discussion last week was about UI components in Rails. I am adding here some bits and pieces from this conversations:
π‘ Hasumi Hitoshi shared that PicoRuby is looking for people to help with their documentation:
π‘ Lucian Ghinda shared a thread about directories for Ruby projects:
β€οΈ Why Choose Ruby and Rails
β€οΈ Aaron Patterson shared about Ruby and Rails:
β€οΈ John Nunemaker shared about showing Rails to a 20 yeard old:
Chris Chattin added:
β€οΈ John Nunemaker shared also shared:
Here is an excerpt from an article in 2005:
Source: rubyonrails.org
β€οΈ Vaidehi Joshi shared about using Ruby and Ruby on Rails 10 years:
β€οΈ Sharkey shared about using Ruby on Rails:
β€οΈ Calicoday shared why they love Ruby:
β€οΈ Axel Kee shared about trying to learn something else and going back to Rails:
π§° Gems, Libraries, Tools and Updates
π New Gems and Repos
π Stephann V. announced a new gem phlex-variants: Compose your Phlex component with style variants
π Haseeb Annadamban announced a new Rails template about Basic user registration for Rails 8 authentication generator
π Igor Alexandrov announced a new repo igor-alexandrov/kamal-github-actions: Sample GitHub Actions workflow files to deploy with Kamal 2 to Digital Ocean
π Miguel Michelson announced they are working o na new Rails component library and they are looking for partners to build it. It will be open-source MIT licensed
π§° Updates
π§° Avo announced a new release Avo 3.13:
π§° Vinicius Stock announced a new version of Ruby LSP v0.19 (read the announcements for 0.19.1 and 0.19.0)
π§° Stephen Margheim shared about a new feature for SQLite in the up-coming relaese Database Remote-Copy Tool For SQLite
π§°AristΓ³teles Coutinho announced a new version of lennarb: Lennarb is a lightweight, fast and easy for building modular web applications and APIS with Ruby
π§° Abhishek Sarkar announced a new version for apicraft-rails - Accelerates your development by 2-3x with an API Design First approach. Seamlessly integrates with the Rails serverβno fancy tooling or expenses required
π§° Jeremy Evans announced a new version of Sequel 5.85.0 Released Β· jeremyevans/sequel Β· Discussion #2225
π§° Jorge Manrubia announced a new version of Release v2.1.6 Β· basecamp/trix
π§° David Rodrigues announced a new version of RubyGems - v3.5.21
Source blog.rubygems.org
π€ Typecraft shared their journey. I am including here just one post, but you should read the entire thread:
π€ Ryan Bates shared about macOS defaults list
π€ Jason Fried shared a thread about how they work with pitches and estimates. Here I am including one of the posts in that thread:
π€ Kevin Grajeda announced a new project TailwindMotion:
More content: π π π§ π₯ βπΎ
Vladimir Dementyev shared their slides from the Rails World presentation about Ruby on Rails on WebAssembly
π Any Cable published a new edition about Any Cables Monthly #23: it's a Rails, Rails World!
π Greg Molnar published a new edition of This Week in Rails about Make Float distinguish between float4 and float8 in PostgreSQL and more
π Ruby Weekly published a new edition about A smorgasbord of Rails 8 related updates
π Hotwire Weekly published a new edition about Week 40 - Why Your Turbo Form Submission Fails, Hotwire Native content, and more!
π Ruby Libhunt published a new edition of Awesome Ruby Newsletter - edition 437
π§ Podcasts
π§ Adrian Marin published a new podcast about Caleb Porzio: Crafting Open Source Dreams and Financial Freedom with Flux
π§ Indie Rails published a new episode about Justin Duke - Building the Product You Want and another episode about Hanging with Remote Ruby
π§ Ode To Rails Conf published a new podcast about Cody Norman
π§ Maintainable Software Podcast published a new podcast about April Wensel: Navigating Legacy Code with Compassion
π§ Software Huddle published a new podcast about Blocking Bots & Moving from Redis to SQLite with Mike Buckbee
π§ Obie Fernandez published an audio recording describing their book βPatterns of Application Development Using AIβ
π§ The Bike Shed published a new podcast about 442: Paradigms - What is a Program?
π½οΈ π₯ Videos
π₯ The Primegean published a reaction video about the DHH Keynote at Rails World β Rails World Is So Good
π₯ David Heinemeier Hansson published a new video about Kamal 2
π₯ Adrian Marin published a new video showing Avo 3.13 - Custom actions list, nice-to-have's, performance improvements, and Hacktoberfest
π₯ Emmanuel Hayford published a new video about Intro to PWAs with Rails: Installable Web Apps
π₯ Yaroslav Shmarov published a new video about SupeRails | Hotwire Native: Getting Started. Build mobile apps with and about SupeRails | Hotwire Native on existing Rails app and about Turbo Native 2. Create new Turbo Native app. Basic navigation and authentication
π₯ Graceful.Dev published a new video about Calling Superclass Methods in Ruby
π₯ Jason Swett published a new episode about Job Hunting, Project Architecture , about Refactoring Token to ExpressionTree - Ruby OOP, about Test-Driven Development - Mentorship Session with Srinath and about Testing Talk
π₯ Ruby Cademy published a new video about Symbol-to-Proc vs Method-to-Proc
π₯ Chris Oliver published a new video about GoRails: Customizing Rubocop Rails Omakase Rules
π₯ Drifting Ruby published a new video about Solid Queue v1.0.0 | Drifting Ruby
βπΎ Articles
Whatβs new π
Aaron Patterson published a new article about Eliminating Intermediate Array Allocations
David Heinemeier Hansson published a new article about Wonderful Rails World Vibes
Robert Pankowecki published an article about Stop adding constants in the wrong place
Miha Rekar Radan Skoric published an article about Migrating from Devise to Rails Auth before you can say "Rails World keynote"
FastRuby published an article about RailsBump.org Is Now Supported & Maintained by FastRuby.io
Kaja Witek published a new article about Insights and Inspiration from Friendly.rb: A Ruby Conference Recap - Blog - Visuality
Josef Strzibny published a new article about Upgrading from Kamal 1 to Kamal 2
Lucian Ghinda published an article about Directories for Ruby and Ruby on Rails Companies
Olly Chadwick published an article about Hunting for Gems
Stanislav Katkov published a new article about Marrying Tailwind with Jekyll
Robert Pankowecki published a new article about Stop adding constants in the wrong place
Miles published a new article about Rails World 2024! | Miles Woodroffe
Rob Race published an article about Leveraging Turbo 8: Best Additions to Implement in Rails 8 Projects
Greg Molnar published a new article about Rails World 2024
Brandon Weaver published an article about Letβs Read - Eloquent Ruby - Ch 21 and about Letβs Read - Eloquent Ruby - Ch 22
Julian Rubisch published an article about Measuring the Impact of Feature Flags in Ruby on Rails with AppSignal
How-TOs π
Rails Designer published an article about ActiveStorage Direct Upload with Stimulus
Andy Waite published a new article about An Introduction to the Ruby LSP Add-on System
Jeffery Morhous published an article about A practical guide to web scraping with Ruby
Victor Cobos published a new article about How to Create Custom Error Pages in Rails
Haseeb Annadamban published a new article about Rails 8 Authentication Generator With User Registration
PaweΕ ΕwiΔ tkowski published an article about Mruby: Beyond hello world
Jeff Morhous published an article about How to Fix Tricky Sidekiq Memory Issues
Victor Shepelev published a new article about On programming and poetry (not Pythonβs tool)
Reply