Short Ruby News - Edition #33

Briefly about everything happening in Ruby world - week 10 of 2023 (email version)

You can jump directly to a section:

👐 Our Community

👉 All about Code and Ruby

🧰 Gems, Libraries, and Updates

🤝 Related (but not Ruby-specific)

More content: 🎥 🎧 🗞 (articles, podcasts, videos, and newsletters)

🤗 Founding Members supporting this newsletter

✋ I am helping organize the Friendly.rb conference:

There are still a few (but not so many) early-bird tickets available and of course, the call for speakers is still open in case you are considering submitting a talk proposal.

👐 Our Community

📢 Proud to announce that ShortRuby is growing bigger: 

rubyandrails.info is now becoming part of ShortRuby. Read more in the announcement I published 👇

👐 James Adam asked for recommendations of accounts to be suggested on Ruby.social instance:

👐 Matt Valentine House shared they are the newest Ruby core committer:

👐 Wnb.Rb shared they are organizing a CfP working group session for Brighton Ruby. Subscribe at WNB.rb

👐 Brad Gessler shared that we should use Little Gestures of Confidence and from time to time focus on first-time experience with our projects and tools:

👉Euruko announced the dates for Euruko 2023 --> 21-23 Sept in Vilnius, Lithuania

👉 All about Code and Ruby

🤞 If you like this newsletter and can afford to pay ~1.50$/week to support it

👉 Nate Berkopec shared a code sample showing Ruby code that causes memory growth over time:

👉Mudge shared a code sample showing how to duplicate active storage blobs from one record to another:

👉Prabin Poudel shared a benchmark about Rails object instantiation being 70 faster than OpenStruct

Among the replies, Benoit Daloze shared a pull request about improving performance of OpenStruct.

There are also good resources shared in that thread:

Lucian Ghinda (that’s me) added the following:

👉 Andrea Rocca continues the series about Hotwire. Here is a screenshot from only one of the many tips shared this week:

👉Jeremy Smith asked about what Rails blog post has been the most influential:

There were 3 resources shared:

👉Lewis Youl shared a code sample showing what does ActiveModel::Name does

👉Jeremy Smith shared two tips about refactoring Rails views:

👉The Rubber Duck Dev Show announced they are doing a Stream Tech Chat on their Rubber Duck Dev Show Discord:

👉Josias Schneider shared how the rake db:migrate works:

👉Josh Cheek shared a gist showing A program that is both a palindrome and a quine, made with hearts for Joe

👉Kevin Newton shared a code sample showing how pattern matching is used at ruby/assembler.rb at master

👉Dev shared a thread with Ruby books recommendations:

Here are the recommendations but you should read the thread as he also describes why he recommends each book:

👉Nate Berkopec shared that safe_constantize can sometimes appear as a bottleneck when used a lot:

Jean Boussier replied with a benchmark of const-get-bench.rb

The results look like this:

👉Carla Urrea Stabile asked a question about what improvements people look forward in the next Ruby versions:

Here are some of the replies:

  • Easy initialize ivars

  • Built-in memoization

  • PHP-like construction promotion feature

  • Types

  • Better support for parallelism and distributed computing for fiber scheduler

  • default frozen literals

  • Better types tooling

  • Performance

👉Nate Berkopec shared about how queueing Puma works (read the comment in the PR)

👉Vladimir Dementyev shared a code sample showing how they integrated Hanami with Phlex:

👉Moncef Belyamani shared commands to run when webpacker takes too much time to compile:

David Teren transformed that into a task:

👉Shiva shared a thread about string manipulation in Rails. Here is one of the code samples they shared:

👉 Stanislav (Stas) Katkov shared a preview of this new tool PoshTUI (API documentation browser in console for ruby developers)

👉Lucian Ghinda shared in the context of the discussion about Ruby safe navigation operator vs Rails try:

👉Jess Brown shared a thread about how to work with db schema changes:

👉Moncef Belyamani shared a code sample showing how expressive is Ruby:

👉Kevin Newton shared an update on the YARD:

👉Kirill Shevchenko shared a code sample about the iterator pattern:

👉 Samuel Williams shared a code sample about a deadlock bug in Async:

👉Thomas Riboulet shared a thread about Ruby and Docker:

👉Greg Navis shared about how to use as_json to control the keys:

👉 If you like this content and can afford it consider upgrade to paid

For ~1.5$/week (6.5$ per month), you can support its growth and ensure that high-quality information about the latest developments in Ruby continues to be available to everyone, both paying and non-paying subscribers alike. Check out why subscribe to paid.

If you want to expense this on your company budget or convince your company to sponsor this newsletter, I can help you write an email to your manager (write to me at help@shortruby.com)

🧰 Gems, Libraries, and Updates

🧰 Joel Drapper announced they released Phlex versions 1.5.0, 1.6.0 and 1.6.1. Read the release notes

🧰 Jared White announced they ported Preact Signals to Ruby. Checkout the signalize gem

🧰Joel Drapper shared a PR where someone describes how they plan to use Phlex to render PHP: A possible use-case for unsafe_raw and unescaped attributes · joeldrapper/phlex · Discussion #519

🧰 Ben Sheldon shared a gem called derailed_benchmarks that helps benchmark Rails or Ruby apps.

🧰 Justin Searls announced that the standardrb is now supported by lsp-zero plugin for Neovim. Read the pull request

🧰Kasper Timm Hansen announced a new gem called showcase-rails that lets you build previews for your partials, components, view helpers, Stimulus controllers, and more:

🧰 Rubocop released a new version 1.48 adding two new cops: Style/DirEmpty and Style/FileEmpty. Read the full changelog for 1.48 here

🧰 Xavier Noria announced that Rails 7.1 will add Improve support for custom namespaces

🧰 Takashi Kokubun released a new JIT for Ruby RJIT by k0kubun · Pull Request #7448 · ruby/ruby

You can also read the ticket on Ruby tracker: feature 19420 and maybe you want to read the article Takashi published RJIT: A Pure-Ruby JIT for Ruby

🧰 Joel Drapper announced that turbo-rails has now support for rendering Phlex and ViewComponents Read the pull request here

🧰 Stan Lo announced that irb can now be independently updated as the following PR was merged Make irb a railties dependency

🧰 Vladimir Dementyev shared a PR about rspec-mocks not working well with Rails 7.1 breaks receive().with. There is already a fix merged to rspec-mocks

🧰 Konstantin Gredeskoul announced they created a PR for making puma-daemon to work with Puma v5+ Read the PR here

🧰 Mari Imaizumi announced the release of IRB v1.6.3 Read the changelog

🧰 Vinicius Stock announced the release of vscode-ruby-lsp v0.2.0 Read the changelog

🧰Joe Masilotti announced the release of TurboNavigator: A drop-in class for Turbo Native apps to handle common navigation flows.

🧰DHH announced the release of mrsk v0.9.0 Read the release notes

🧰 Andrew Culver shared a PR that shows how to integrate Nice Partials into bullet train Update callers to Nice Partials method accessors

🧰 Nate Hopkins announced a new gem composite_cache_store a composite cache store comprised of 2 ActiveSupport: :Store instances

🤝 Related (but not Ruby-specific)

🤝Eric Berry shared a configuration to change the Discord window

🤝Emma Bostian asked an excellent question about the mood we are in now.

🤝Drew Bragg shared a funny take about hard things in computer science:

🤝 Shiva shared a thread about working with Redis. Here is one of the posts:

You should also read the second thread about Redis.

🤝 Wes Bos shared a tip about configuring ngrok-like behavior via Cloudflare:

If you like this content and want to receive it every week by email:

More content: 🎥 🎧 🗞

🗞 Newsletters

🗞 Greg Molnar published a new edition of This Week in Rails: Improve custom namespace autoloading, Object#with and more!

🗞️ Ruby Weekly published a new edition: RubyGems' answer to npx

🗞 Ruby Radar published a new edition Ruby Radar #93 - IRB Making Waves

🗞️ Ruby LibHunt published a new edition of the Awesome Ruby Newsletter

Podcasts

🎧 Joel Drapper published a new episode of Rooftop Ruby 4: Green Dots and Boogie

🎧 Code And The Coding Coders Who Code It published a new episode with Andrew Mason

🎧 Jeremy Smith published a new episode IndieRails | Colin Keeley - How/Why to buy or sell a business

🎧 The Ruby On Rails Podcast published a new episode about Episode 460: The State of Rails Hiring in 2023 (Brittany + Brian)

🎧Content For :Devs published a new episode #007 - Behind the scenes of GoRails screencasts with Collin Jilbert - content_for :devs

🎧Maintainable Software Podcast published a new episode about Henrik Warne - There is No Software Maintenance

🎧Jason Swett published a new episode about 175 - Preventing Software Defects with Vitor Oliveira - The Code with Jason Podcast

🎧 Ruby For All published a new episode about Development Gems | Ruby for All | Episode 33

🎧 Remote Ruby published a new episode about Ruby Language Server with Vinicius Stock | Remote Ruby | Episode 221

Videos

Talks

📽️ Jason Swett published a new episode about Organizing Rails code with Jorge Manrubia of 37signals

📽️ Creston Jamison published a new episode about Failing In Public | Rubber Duck Dev Show 76

📽️ Joe Masilotti published a live video about Launching TurboNavigationController

📽️ Prabin Poudel shared their video about Maintaining Code Standards

📽️ The Rubber Duck Dev Show published a new episode about Monetizing Dev Content

📽️ Jason Swett published a new episode about What causes flaky tests (2023-03-09 Code with Jason Meetup session)

Screencasts

🎥 Justin Searls published the third episode of their series called Searls after Dark where he build an AI chat app with Ruby on Rails #3 - Going end-to-end

🎥 Ruby Weekly shared a new video from WebCrunch showing how to implement Ruby on Rails Drag and Drop Uploads with Active Storage, Stimulus.js

🎥 Dave Kimura published a new episode about MRSK in Depth | Drifting Ruby

🎥 Hanami Mastery published a new episode about Best way to work with Front Matter in Ruby!

🎥 Phil Smy published a new episode about Rails 7: Tabulator & Stimulus - Ruby on Rails Tutorial

🎥 Pete Hawkins published a new episode about Simplify your VIEW COMPONENTS with dry-initializer

🎥 The Rubber Duck Dev Show published a new episode doing Crash of Code The Big 5-0 Birthday Bash / Clash of Code - Coding with Chris

🎥 Deanin published a series of videos:

🎥 Pete Hawkins shared a short video on Twitter about Free custom error page templates for your Rails app (he also shared the code here)

🎥 Yaroslav Shmarov published new episodes:

Articles

What’s new

How-Tos

Deep Dives

Related

🤗 Founding Members supporting ShortRuby

Read more about what is a Founding Member or about Why pay for ShortRuby newsletter

All issues