๐ป Short Ruby News - The Code Edition #40
Briefly about everything happening in Ruby world - week 17 of 2023
You can jump directly to a section:
๐ Our Community
๐ย All about Code and Ruby
๐งฐย Gems, Libraries, and Updates
๐คย Related (but not Ruby-specific)
For just a small amount of $1.5 per week (only $6.5 a month), you can become a valued paid subscriber and actively support the thriving Ruby community we all love!
๐ Our Community
๐ Friendly.Rb announced an update about the conference and proposed a new sponsorship package Read the full announcement

๐ Ruby Unconf announced their agenda visit 2023.rubyunconf.eu to find out:

๐ Emmanuel Hayford shared a summary of Rails World conference:

๐ Naofumi Kagami shared that rubycentral.org launched membership:

๐ Brandon Weaver announced they would restart the SF Ruby meetups:

๐ Jason Swett announced they would start a couple of online presentations on ChatGPT-assisted-TDD. Register at codewithjason.com/meetup

๐ Koichi Ito announced that rubocop-rails now passed over 100M downloads:

๐ DragonRuby community is organizing a Game Jam:

๐ All about Code and Ruby
๐ Akshay Khot asked a quiz about what is wrong with the following Ruby code:

If you are curious about the answer, Akshay explored this in his article Can you spot the error?
๐ Akshay Khot shared a code sample showing various ways to use case
statements in Ruby. He extended this into an article Ruby's Switch Statement is More Flexible Than You Thought
๐ /u/BringTacos asked about how to build a web app in Ruby without any framework:

Here are some of the answers:
Rebuilding Rails book where you learn how to build Rails from scratch
A series of articles from Akshay: Build a Web Application in Ruby Without Rails, Rendering Views Dynamically using ERB, The Definitive Guide to Rack for Rails Developers, Middleware in Rails: What It Is, How It Works, and Examples
RailsConf 2014 - Web Applications with Ruby (not Rails) by David Padilla
And two comments showing in a few lines how to do this:


๐ u/RecycleAt10k asked a question about using the subject
in RSpec:

First, I invite you to read the entire post (here, I only screenshot a part). Here are some of the replies:


There is a good discussion, and people are adding very good arguments in both directions.
๐ u/RailsPro asked about what a day looks like as a Rails developer:

There are a lot of replies from solo founders, work-from-home employers, and team leaders.
๐Dave Copeland shared a comment about the first time running a new Rails app test with fixtures when using foreign key constraints:

Brian Kephart replied with some possible solutions:


๐Stephen shared a security risk of setting the domain for cookies to :all
in Rails:

Here is the paper Stephen linked in their post: Oversharing Is Not Caring: How CNAME Cloaking Can Expose Your Session Cookies he also wrote an article explaining in detail the security risk and various mitigation strategies for Rails: Rails session cookie domain: :all - beware of CNAMEs!
๐Joel Drapper shared a new feature for green_dots test framework:

Joel shared in the thread how he builds the code to achieve:

๐Greg Navis shared a thread about ActionDispatch::Executor

Greg is doing a great job of following what codes do and navigating the Rails code base.
๐Joel Drapper shared a code sample showing how to define conditional classes in Phlex:

๐Mike Dalessio shared their decision process about upgrading Nokogiri:

๐Xavier Noria shared a one-liner to run Rubocop only on the files created or modified:

๐ Vladimir Dementyev shared a diagram for choosing between MRSK and alternatives generated based on the article MRSK: hot deployment tool to watchโor a total game changer?

๐Alexandre Ruban shared a new thread about how to work with Markdown in Rails. You can follow their project on Github at alexandreruban/ruban-on-rails

๐ Greg Navis shared a thread about Rails 7 error handling infrastructure. There are a lot of examples about how it works. Here is one about how to report and error and continue with normal program execution:

๐ Matt Swanson shared a code sample showing how to use ViewComponent with mailers:

๐Ruby Cademy shared a thread about scopes in Ruby:

๐Stan Lo shared a reminder about installing IRB as a gem

๐Amir Rajan announced that DragonRuby is free until 6th April 05:00 UTC. Get the toolkit at KIFASS Game Jam

๐ค I imagine that if you have read this so far, you find value in this newsletter.
๐งฐ Gems, Libraries, and Updates
๐งฐ View Component announced the release of v.3.0.0 of view_component gem Read the changelog

๐งฐ Obie Fernandez published a Rails 7 app magma-chat
๐งฐAndrew Kane announced a new gem Mapkick Static - Create beautiful static maps with one line of Ruby

๐งฐ Avo announced a new release v 2.31.0. Release notes

๐งฐ Okura Masafumi announced a new release of alba (JSON serializer) Release notes, and you can check out the changes
๐งฐ Ryan Bigg announced the release of v.1.13.0 of i18n gem Read the release notes
๐งฐ Mark Perkins announced that Lookbook v2 is now out of beta:

๐งฐ Justin Searls announced the release of standard-rails:

๐งฐ Nejdet Kadir announced their new gem sidekiq-aws-sqs: Sidekiq extension that provides an easy way to poll and process messages from AWS SQS (Simple Queue Service) queues within a Sidekiq worker
๐งฐ Dima Fatko announced a new gem fast_count: Quickly get a count estimation for large tables (>99% of accuracy for PostgreSQL)

๐งฐ Xavier Noria announced a new release of Zeitwerk version 2.6.8, read the changelog

๐งฐ Truffle Ruby announced a new release of truffleruby Read the changelog for 23.0.0-preview1
๐งฐ Obie Fernandez published a Rails app instant18n: Uses the power of OpenAI's GPT large language AI models to generate translations for your application
Please consider becoming a paid subscriber to support this newsletter for just $1.5/week ($6.5/month). Your contribution aids growth and maintains the quality of ShortRuby for everybody:
If you consider upgrading and want more information, please read Why to subscribe to paid
๐ค Related (but not Ruby-specific)
๐ค Donn Felker shared about the importance of writing good tests:

๐ค Jason Swettย shared about how to use ChatGPT more effectively:

You can read The Content Edition if you want to discover the content created in Ruby World in week 17 of 2023:
Please consider becoming a paid subscriber to support this newsletter for just $1.5/week ($6.5/month). Your contribution aids growth and maintains the quality of ShortRuby for everybody:
If you consider upgrading and want more information, please read Why to subscribe to paid