- Short Ruby Newsletter
- Posts
- π» Short Ruby News - The Code Edition #37
π» 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 Central shared a review about The Ruby Central board: where weβve been and where weβre headed
π 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.
π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:
Ruby Programming by The Pragmatic Studio
Lean to Program by Chris Pine
Ruby on Rails by Michael Hartl
The Rails 7 Way by Obie Fernandez
Eloquent Ruby by Russ Olsen
The Well-Grounded Rubyist by David A. Black
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
π§° Vladimir Dementyev announced a new gem rbytes: Ruby Bytes helps you build, deploy and install Ruby and Rails application templates. See also the article Vladimir published Ruby Bytes, or generating standalone generators
π§° Jeremy Evans announced a new release v.2.4.0 of Forme 2.4.0. Read the changelog
π§° Koichi Ito announced a new release of RuboCop Minitest 0.30.0 Β· rubocop/rubocop-minitest
π§° Nate Hopkins announced a new gem called universalid: GlobalID for for Arrays, Hashes, and objects like ActiveRecord::Relation, etc.
π§° 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:
π€ Tobias Petry shared a tip about Cycle Detection for Recursive Search in Hierarchical Trees - Database Tip
π€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