πŸ’» Short Ruby News - The Code Edition #42

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

You can jump directly to a section:

πŸ‘ Our Community

πŸ’Έ 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!

πŸ‘‹ 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:

πŸ‘ Our Community

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

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

πŸ‘ Nate Berkopec shared about compensation:

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

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

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

πŸ‘ 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

πŸ‘‰ All about Code and Ruby

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

Here are some replies:

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:

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

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

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

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

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:

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

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

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

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

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

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

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

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

🀞 I imagine that if you have read this so far, you find value in this newsletter.

🧰 Gems, Libraries, and Updates

🧰 Sharon Rosner announced the release of version 1.0 for polyphony: Fine-grained concurrency for Ruby

🧰 Mike Perham announced the release of Faktory version 1.7.0 Read the changelog

🧰 Mike Dalessio announced a new release v.2.21.0 of loofah Read the release notes

🧰 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)

🧰 Avo announced a new release for Avo version 2.32. Read the release notes

🧰 Jeremy Evans announced the release of version 3.68.0 of Roda Read the changelog

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

🧰 Juan Pablo Balarini shared that their PR that adds picture_tag helper was merged to Rails main:

🧰 Bozhidar Batsov announced the release of version 1.51 of RuboCop Read the release notes

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)

🀝 Nate Berkopec shared about the need to implement Web Application Firewall:

🀝 Thiago Massa shared a thread proposing to reconsider naming tech debt:

🀝 Marvin Von Hagen shared the prompt used by Github Copilot Chat:

You can read The Content Edition if you want to discover the content created in Ruby World in week 19 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

Reply

or to participate.