Short Ruby Newsletter

Share this post

๐Ÿ’ป Short Ruby News - The Code Edition #42

newsletter.shortruby.com

๐Ÿ’ป Short Ruby News - The Code Edition #42

Briefly about everything happening in Ruby world - week 19 of 2023

Lucian Ghinda (from ShortRuby)
May 15, 2023
1
Share

You can jump directly to a section:

๐Ÿ‘ Our Community

๐Ÿ‘‰ย All about Code and Ruby

๐Ÿงฐย Gems, Libraries, and Updates

๐Ÿคย Related (but not Ruby-specific)


๐Ÿ’ธ For only $1.5 per week (just $6.5 a month), you can become a paid subscriber and contribute to the success of the flourishing Ruby community we all adore!

Support the newsletter for ~1.5$/week


๐Ÿ‘‹ dear readers

I want to know your feedback about the two newsletter formats.

Do you like them and find it valuable to receive two emails? Please let me know by choosing the option below:

Loading...

๐Ÿ‘ Our Community

๐Ÿ‘ Friendly.rb has recently announced their first speaker for the upcoming September conference. There is an affordable Community Sponsorship

Source: @friendlyrb@ruby.social

๐Ÿ‘ Blue Ridge Ruby announced their schedule for the June conference: blueridgeruby.com/schedule

Source: @blueridgeruby@ruby.social

๐Ÿ‘ Nate Berkopec shared about compensation:

Source: @nateberkopec@ruby.social

๐Ÿ‘ Helvetic Ruby shared the speakers line up for the November conference:

Source: @helvetic_ruby@ruby.social

๐Ÿ‘ Ruby Conf Th announced the tickets are on Sale at rubyconfth.com/tickets

Source: @rubyconfth@ruby.social

๐Ÿ‘ Dave Kimura launched a new website gowithruby.com

Source: @kobaltz

๐Ÿ‘ It's always interesting to learn why others appreciate the tools we utilize on a daily basis. Go ahead and click to read the replies

Source: /u/sujalkokh/

๐Ÿ‘‰ All about Code and Ruby

๐Ÿ‘‰ Noel Rappin asked about the most elegant code:

Here are some replies:

Source: @mullaney@ruby.social
Source: @davetron5000@ruby.social
Source: @joeldrapper@ruby.social
Source: @henrik@ruby.social

There are many more replies to Noel question. You should check them all.

Noel compiled all responses in a gist file, including some ChatGPT-generated versions. If you want to know which ones are generated by ChatGPT read this

๐Ÿ‘‰ Postmodern shared that Ruby 3.3.0-preview1 is available to be installed with ruby-install:

Source: @postmodern@ruby.social

๐Ÿ‘‰ Ahmed shared a code sample from the VCard builder-parser gem they are working on:

Source: @rockweII_

๐Ÿ‘‰ Greg Navis shared a thread about Rails middleware deep dive. Here is just one of the explanations shared in the thread

Source: @gregnavis

๐Ÿ‘‰ Igor Kapkov shared a code sample about private vs protected methods:

Source: @igasgeek

๐Ÿ‘‰ Brad Gessler asked about the most annoying thing when working with Rails forms:

Source: @bradgessler

Here is a summary of the replies, but please do read them in the thread as for each one there is more context:

  • confusing naming for form_for, form_with and the likes and inconsistent naming of form helpers

  • hard to work with input masks

  • the need to list all field names twice (once again for strong parameters)

  • dynamic nested forms, adding form fields for collections

  • many-to-many checkboxes and nested attributes

  • styling for labels, hints and error messages

  • order of options for form builder methods

  • radio buttons that revel more options

๐Ÿ‘‰ Mitsuhiro Shibuya shared live tweets during Matz presentation at RubyKaigi. Here is one of the tweets, translated via Google:

Source: @m4buya

๐Ÿ‘‰ ใ‚Šใ•ใใ‚ƒใ‚“ shared a visual representation of Matz presentation. Here is just one of the amazing drawings they created:

Source: @_risacan_

๐Ÿ‘‰ Janko Marohniฤ‡ shared a performance improvement of running systems tests with Cuprite:

Source: @jankomarohnic

๐Ÿ‘‰ David Heinemeier Hansson announced a new caching approach implemented for Hey.com that will probably announce at RailsWorld:

Source: @dhh

๐Ÿ‘‰ Nate Berkopecย shared a quick tip about how to improve app performance:

Source:ย @nateberkopec

๐Ÿ‘‰ Maxim Gurinย shared a tip about how to check in a non-Rails codebase that activesupport is not loaded:

Source:ย @maximgurin_com

๐Ÿ‘‰ Matt Swansonย shared a code sample about processing webhooks:

Source:ย @_swanson

๐Ÿ‘‰ Takashi Kokubunย sharedย a tutorial to write a Ruby JIT Check the Github repo at ruby-jit-challenge: Tutorial to write a Ruby JIT

Source: https://github.com/k0kubun/ruby-jit-challenge

๐Ÿ‘‰ Nate Hopkinsย shared a thread about data modeling:

Source:ย @hopsoft

๐Ÿคž I imagine that if you have read this so far, you find value in this newsletter.

This is a free publication that relies on the support of its readers. If you'd like to stay updated on new posts and help me continue my work, please consider subscribing for free or choosing a paid subscription.


๐Ÿงฐ Gems, Libraries, and Updates

๐Ÿงฐ Thomas Cannon announced the first release of devise-passkeys Read the changelog

Source: @tcannonfodder@ruby.social

๐Ÿงฐ Sharon Rosner announced the release of version 1.0 for polyphony: Fine-grained concurrency for Ruby

Source: https://github.com/digital-fabric/polyphony

๐Ÿงฐ Mike Perham announced the release of Faktory version 1.7.0 Read the changelog

Source: https://github.com/contribsys/faktory

๐Ÿงฐ Noel Rappin announced their new gem warning_signs: A gem for managing Ruby and Rails dependencies

Source: https://github.com/noelrappin/warning_signs

๐Ÿงฐ Mike Dalessio announced a new release v.2.21.0 of loofah Read the release notes

Source: https://github.com/flavorjones/loofah/releases/tag/v2.21.0

๐Ÿงฐ Trevor Turk praised a the gem_updater: Update gems in your Gemfile and fetch their changelogs

Source: https://github.com/MaximeD/gem_updater

๐Ÿงฐ Nate Hopkins announced they published a new update for model_probe: ActiveRecord schema visualization and model organization made easy

Source: https://github.com/hopsoft/model_probe

๐Ÿงฐ Oldmoe announced a new release for litestack (gem for Ruby and Ruby on Rails that provides an all-in-one solution for web application development. It exploits the power and embeddedness of SQLite to include a full-fledged SQL database, a fast cache and a robust job queue all in a single package)

Source: @oldmoe

๐Ÿงฐ Avoย announced a new release for Avo version 2.32. Read the release notes

Source:ย @avo_hq

๐Ÿงฐ Stanislav (Stas) Katkov shared a docker image optimized for rails ledermann/docker-rails-base: Optimized Docker base images for Rails applications

Source: https://github.com/ledermann/docker-rails-base

๐Ÿงฐ Jeremy Evans announced the release of version 3.68.0 of Roda Read the changelog

Source: https://github.com/jeremyevans/roda/discussions/322

๐Ÿงฐ Nate Berkopec shared a PR implemented by Jean Boussier about Make Active Record's query cache an LRU by casperisfine

Source: https://github.com/rails/rails/blob/main/activerecord/CHANGELOG.md

Jean Boussierย added:

Source:ย @_byroot

๐Ÿงฐ Juan Pablo Balariniย sharedย that their PR that adds picture_tag helper was merged to Rails main:

Source: https://github.com/rails/rails/pull/48100

๐Ÿงฐ Bozhidar Batsovย announced the release of version 1.51 of RuboCopย Read the release notes

Source: https://github.com/rubocop/rubocop/releases/tag/v1.51.0

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:

Support the newsletter for ~1.5$/week

If you consider upgrading and want more information, please read Why to subscribe to paid


๐Ÿค Related (but not Ruby-specific)

๐Ÿค Nate Berkopec shared about the need to implement Web Application Firewall:

Source: @nateberkopec@ruby.social

๐Ÿค Thiago Massa shared a thread proposing to reconsider naming tech debt:

Source: @th1agofm

๐Ÿค Marvin Von Hagenย shared the prompt used by Github Copilot Chat:

Source:ย @marvinvonhagen

You can read The Content Edition if you want to discover the content created in Ruby World in week 19 of 2023:

Read the content edition


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:

Support the newsletter for ~1.5$/week

If you consider upgrading and want more information, please read Why to subscribe to paid

1
Share
Previous
Next
Comments
Top
New
Community

No posts

Ready for more?

ยฉ 2023 Lucian Ghinda
Privacy โˆ™ Terms โˆ™ Collection notice
Start WritingGet the app
Substackย is the home for great writing