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

Briefly about everything happening in Ruby world - week 14 of 2023 - email version

You can jump directly to a section:

πŸ‘ Our Community

The content section that includes videos, talks, screencasts, podcasts, newsletters, and articles can now be found in The Content Edition (and sent in a separate email).

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!

By contributing, you'll be playing a pivotal role in fostering growth and maintaining the high standards of ShortRuby for everyone to enjoy.

πŸ‘ Our Community

πŸ‘ PaweΕ‚ StrzaΕ‚kowski announced the second part of the free webinar about Software Development Dedicated Engineering Teams

πŸ‘ Visuality announced a new meetup of PLRUG Register here

πŸ‘ Amsterdam Ruby Meetup announced a new edition of Rails Girls NL happening on May 20th in Rotterdam:

πŸ‘ Ruby Conf Th announced that call for papers is now open Go to RubyConf Thailand 2023 CFP

πŸ‘ Ruby On Rails announced a new conference in Europe Rails World is coming

πŸ‘ Samuel Path shared a thought about how zeitwerk project:

πŸ€— For explicit, concise content on Ruby and Rails, I recommend subscribing to OneRubyThing by Andy Croll. You will discover well-thought methods for writing Ruby or Rails effectively. Each technique explains why to use it and how to apply it.

Andy Croll also developed FirstRubyFriend, a free initiative that pairs early/junior Ruby developers with mentors in a friendly knowledge exchange.

He is one of the contributors to the Short Ruby Newsletter's sustainability through a paid membership option called "Founding Member."

πŸ‘‰ All about Code and Ruby

πŸ‘‰ Brandon Weaver asked for recommendations for frontend design frameworks:

Here are some of the recommendations:

Here is an example of the code that you can find there:

πŸ‘‰Salma Elbadawi shared a thread about concepts that are transferrable between programming languages:

πŸ‘‰Will Cosgrove shared a code sample showing how to minimally render only the requested turbo-frame from Phlex

πŸ‘‰Aaron Patterson shared a thread showing how their TenderJIT is evolving:

πŸ‘‰Martin Spickermann shared a tip about using - modified in strftime

πŸ‘‰Matt Swanson shared a code sample showing how to implement toggles for 15 email notification types:

Here are some more solutions proposed in replies to Matt:

There are multiple other ideas proposed in the replies to Matt's tweet.

πŸ‘‰Nate Berkopec shared about the advantage of knowing bin/rails runner

πŸ‘‰Josef Strzibny shared a Rail tip about how to use rails runner

πŸ‘‰Joe Masilotti asked about implementing complex querying with Ransack:

Here are some of the replies:

But it would help if you read the entire conversation as more ideas and code are shared about how to implement a search ranking algorithm.

πŸ‘‰ Pragmatic Programmers asked about favorite features of Ruby language:

Here are some of the replies, but you should read all responses as there are many more:

  • β€œThe focus on human aspects: The community, usability and overall friendliness” (@S_2K)

  • β€œIt's focus on human usage. No programming language feels as natural to me as Ruby” (@alex_takitani)

  • β€œIts readability” (@monfresh)

  • β€œI know it’s actually Rails, but the almost completely absent boilerplate” (@j_c_fitz)

  • β€œHard to pick one. Terse but readable. Duck typing, monkey patching is there if you need it. Modules/mixins and everything is an object. Also the community is still awesome!” (@JDBet45)

  • β€œI do all my PoCs in Ruby when I need to understand the product we plan to use. It's ease of usage, developer happiness” (@ohmyroots)

πŸ‘‰ Shiva Kumar shared a thread about Data.define:

πŸ‘‰Marian D Dev asked about how to keep models and controllers skinny and readable:

Here are some of the recommendations:

And here are some of the replies:

And here is a good summary that Marian did after reading all replies to his own question:

πŸ‘‰Josef Strzibny shared a Rails tip about how to use puma_worker_killer gem

πŸ‘‰Matt Swanson shared a tip about how to create collapsible sections without Javascript:

πŸ‘‰Roman shared a code sample showing how to implement styled-components with Phlex and Tailwind. See the gist at POC Tailwind + Phlex component.

πŸ‘‰David reminded us about the spacer_template option in Rails render collection:

πŸ‘‰Lewis Youl share a code sample about using allow_value should matcher

πŸ‘‰Naofumi Kagami shared a code sample about how to use Current

πŸ‘‰ The Rails Changelog shared a code sample showing that Action Mailer will add callbacks in Rails 7.1:

πŸ‘‰ Matt Swanson shared a code sample showing how to trigger a tracker:

πŸ‘‰Matt Swanson shared a code sample showing how to use components with a form builder:

πŸ‘‰ Ken Collins shared a code sample showing how to use globalid gem:

Vladimir Dementyev replied with a code sample showing a concern using globalid:

πŸ‘‰ Noob_understore_ asked how easy it is to learn Ruby from zero experience. If you did that it would be great if you can contribute to this discussion with your own experience:

πŸ‘‰ Rose_arias asked about recommendations to learn Ruby:

Here are some of the recommendations:

And here is a recommended path by Akshay Khot:

🀞 I imagine that if you have read so far, you find value in this newsletter. 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

🧰 Gems, Libraries, and Updates

🧰 Mike Dalessio announced the release of version v2.21.0.rc1 for loofah (β€œLoofah is a general library for manipulating and transforming HTML/XML documents and fragments, built on top of Nokogiri”) . Read the release notes

🧰 Jean Boussier announced a PR that will be part of Ruby 3.3 about Implement `Process.warmup`. Check out the PR or the feature 18885 on Ruby tracker

🧰 Mike Perham announced a new release of sidekiq v.7.0.8 with a security fix Read the changelog

🧰 Konnor Rogers announced a new version of their Rhino Editor

🧰 Jeremy Evans announced a new release v.2.4.0 of Forme 2.4.0. Read the changelog

🧰 LΓ‘zaro Nixon announced a new feature for authentication-zero that is add masqueradable(Sign-in as button functionality)

🧰 Koichi Ito announced the release of verion 2.19.0 of RuboCop Rails 2.19.0

🧰 Rob Zolkos shared a commit that will be part of Rails 7.1 Improve typography of user facing validation messages. You can read the PR here

🧰 Rubocop released version 1.49 Read the release notes

🧰 Regina_begam announced on /r/ruby a new gem called nokolexbor

🀝 Related (but not Ruby-specific)

🀝 Paul Denya shared a tip about setting the title to the current directory for iTerm:

🀝 Jason Swett shared a thought about the discussion about perfect code and shipping fast:

This reminded me of what Sandi Metz wrote about code design:

🀝Jason Swett shared a testing tip:

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

Reply

or to participate.