- Short Ruby Newsletter
- Posts
- Short Ruby News - Edition #28
Short Ruby News - Edition #28
Briefly about everything happening in Ruby world - week 5 of 2023 (email version)
You can jump directly to a section:
π Our Community
More content: π₯ π§ π (articles, podcasts, videos, and newsletters)
π€ Founding Members supporting this newsletter
You can support keeping this newsletter free and sustainable for ~1.5$ per week (actually 6.5$/month) if you can afford it:
Read Why to subscribe to a paid plan for a longer explanation.
If you are looking to hire a Ruby or Rails Developer, I recommend checking RailsDevs.com (referral link). I invite you to use the referral link for RailsDevs.com so you can support this newsletter (it does not cost you anything extra).
π Our Community
π Robby Russell shared why Ruby on Rails is great for small teams:
π Gabriel Arcangel Zayas shared how they find Ruby:
π Rails Conf announced that RailsConf 2023: Call for Proposals is open:
π Adrian Marin shared they want to organize a European Ruby conference:
π Hanami Mastery shared they plan to host a Q&A with the Hanami Team for their 50th episode. If you want to ask questions, send it via this form
π Justin Jackson shared in a thread that he is still on the team full stack web dev and talked about new companies using Rails:
He also shared possible advice (from a marketing/PR perspective):
You might want to listen to this 2022 conversation about What's the future of the full-stack web developer? Taylor Otwell interview (creator of Laravel) where they also talk about How to attract more young developers to Laravel and Rails? (at 3:34)
π Andrew Culver announced The Rails SaaS Conference happening in Athens/Greece on 1-2 June 2023:
π Victor Shepelev announced he added the Ruby 3.2 changes to RubyReferences - a fantastic resource for discovering whatβs new in the Ruby language:
π All about Code and Ruby
πDavid Stosik shared a riddle about why adding a month might change the timezone:
You should read the threads about this on ruby.social and Twitter. More ideas and strange behavior are happening when working with dates.
In case you want the solution, here are two good answers:
This is explicitly stated in Ruby documentation, and you can see how Rails is using Date#Β» here:
π Justin Searls asked about a tool to use git bisect over a Rails app and see where some behavior was introduced:
He then shared the solution he found by using the following two scripts (links to their Gists)
π De Silva shared a piece of code that makes use of checking if a class is part of the descendants of another one:
πJustin Collins shared a benchmark about using explicit block params:
πAlexandre Ruban shared how to define methods in Ruby using meta-programming:
He showed the second way of creating new methods using the class_eval with heredoc and explained why add __FILE__ and __LINE__ there:
π Greg Molnar shared a better explanation of what regroup does in Rails 7.1:
πJean Boussier shared the result of running a load test on a small app with GVL instrumentation enabled:
πMatt Swanson shared a code showing how to build a feature flag at the account level:
π Eric Berry shared a piece of code about setting initialising an array before adding an element:
There are a couple of replies in the thread. Here are two interesting solutions:
π Chris Oliver shared a code sample about how JumpStartRails uses the new built-in API client generator:
πGreg Navis shared how to use the hstore column type from PostgreSQL in Active Record:
πEric Berry asked about what to use for complex queries:
There is a good thread discussing Arel and what happened to Arel after being part of Rails and becoming private API.
Here is a comparison between Arel and Sequel:
And later on the thread, there is a good discussion about how to use Sequel. Here is a short reply:
π HeartCombo announced they are looking for volunteers to Integrate with Hotwire/Turbo by configuring error and response statuses
/u/collinmarco asked about what extensions people use for Ruby on VS Code:
Among the recommendations are:
π§° Gems, Libraries, and Updates
π§° Avo released version 2.25, bringing data attributes to table headers and more bug fixes. Read the change log
π§° Hanami announced the release of Hanami 2.0.3
π§° Nate Berkopec recommended a gem called Bumbler for finding slow-loading gems in projects that are using Bundler:
π§° Mike Perham :Sidekiq: shared that the new Bundler 2.4 has very nice improvements. Read the changelog β Bundler: Bundler v2.4: new resolver, gems with Rust extensions, and more
π§° Nate Berkopec shared a new gem released by John Nichols rubyatscale/singed:
π§° Ben Sheldon announced a release of bensheldon/good_job that now supports batches. To read more about this, read the following two PRs: Support for Batches? #417 and Implement batch functionality #691
π§° Pawel Osiczko published an updated fork of real-world rails, a project that brings together 100+ active, open-source Rails apps.
π§° JRuby announced the release of version 9.3.10.0 with compatibility and performance fixes. Read the change log
π€ Related (but not Ruby-specific)
π€Jason Swett shared a simple way to decide whether to tolerate a piece of duplication or not:
π€Drew Bragg asked about how to organize tech debt:
Here are some of the responses received, but there are a lot of good ideas in the thread:
π€Kelsey Hightower shared an answer about giant monoliths effectiveness:
A more nuanced reply worth considering from Luca Guidi:
π€ Thiago Ghisi shared a thread about pair programming good practices:
More content: π₯ π§ π
π Books
π Noah Gibbs announced their book Rebuilding Rails - Understand Rails by Building a Ruby Web Framework now supports Purchasing Power Parity:
π Josef Strzibny announced that Deployment from Scratch now supports Purchasing Power Parity:
π Newsletters
π Greg Molnar shared a new edition of This Week in Rails Week 05: Spring is here? written by zzak
ποΈ Ruby Weekly published a new edition: Rusty gem skeletons with Bundler 2.4
π Ruby Radar published a new edition Ruby Radar #88 - Conferences Galore!
ποΈ Ruby LibHunt published a new edition of the Awesome Ruby Newsletter
Podcasts
π§ Andy Croll shared the final episode from the current season of Chats in the Cupboard with Vaidehi Joshi β Listen to Talk about Talks
π§ Avdi Grimm shared a podcast where he talked about building and running this training and consulting business Running a training business for Ruby developers
π§ Jason Swett published a new episode 173 - Phlex with Joel Drapper - The Code with Jason Podcast
π§ The Ruby on Rails Podcast published a new episode about The Ruby on Rails Podcast Episode 455: Adventures in TruffleRuby (Brittany + Nick)
π§ Ruby for All published a new episode: Favorite Ruby Methods: Part 1
π§ Remote Ruby published a new episode How Derek Sivers Uses Ruby And His Programming Philosophy
π§ Ruby Rogues published a new episode about The Significance Of Salary Transparency With Hilary Stohs-Krause
Videos
Talks
π½οΈ Adrian Marin shared a video where he shows how to use Avo to build amazing Admins for Rails
π½οΈ Noah Gibbs shared an old video where he talks about RubyConf 2019 - Conscious Coding Practice: The Three Concrete Steps by Noah Gibbs
π½οΈ Dave Kimura published the video version of This Week in Rails - Feb 3rd, 2023
π½οΈ Content For :Devs published a new screencast about Screencasting tips! | content_for :devs - Episode #003
π½οΈ Jason Swett published two new episodes of Code With Jason Meetup about:
π½οΈ Rubber Duck Dev Show published a new episode with Amir Rajan about Game Development in DragonRuby With Amir Rajan
Screencasts
π₯ Yaroslav Shmarov published two new videos:
π₯ /u/mehdifarsi shared a video showing Ruby Tricks #6: Customize your Rails console prompt (display Project Name & RAILS_ENV)
π₯ The Ruby Learning Center published two more videos streamed by Brandon Weaver for the two classes that are running now:
Whatβs new
Ruby Lib Hunt shared an update from Ruby Central about Ruby Shield Update - Winter 2023
Lucian Ghinda published an article about We should adopt and use new Ruby features
How-Tos
Hash Patel published two articles about multi-tenant architecture in Rails:
Alvaro Padilla published an article explaining Monkey-patching: Messing with your Ruby methods
Brandon C published an article about Intro to Enumerables in Ruby, and an example with Active Record
Caleb Hearth published an article explaining how to use The Decree Design Pattern
1klap published an article showing how to configure Rails 7: production deploy from scratch (Ubuntu 22.04 edition)
Sulman Baig published an article about how to run Rubocop for Rails in GitHub Actions
Daniel Fintinariu published an article about Unlock the Potential of VS Code for Ruby Programming
Brandon Christman published an article showing how to Build a Table Editor with Trix and Turbo Frames in Rails
Deep Dives
JΔdrzej (NJ) UrbaΕski published an article about. What you (probably) don't know yet about pattern matching in Ruby?
Joel Moss shared an article written by Nested Modules in Ruby
Dmitry Tsepelev published an article explaining Fantastic global methods in Ruby and where to find them
More general
Mike Perham shared an article describing a vulnerability in Ransack library: Ransacking your password reset tokens | Positive Security
Dave Copeland published an article about My Toolchain for Building Programming Book
Andrew Atkinson published an article describing his experience at Ruby for All | The Database Wizard with Andrew Atkinson
Eric Berry shared an article written by Jeremy Frisen about The Why and How of Yardoc
Hiroshi Shibata shared slides from a talk by John Cline about Demystifying RBS and Rails
π€ Founding Members supporting ShortRuby
Drew Bragg, host of Code and the Coding Coders who Code it
Avi Flombaum, the founder of Flatiron School, is a product engineer interested in full-time/contract work
Adrian Marin, creator of Avo - a Ruby on Rails application building framework
Read more about what is a Founding Member or about Why pay for ShortRuby newsletter
Reply