๐ Short Ruby News - Edition #44
Discover the world of Ruby in this comprehensive newsletter covering week 21 of 2023. Find code samples, community updates, gems, resources, and thought-provoking discussions.
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, newsletters, books and slides)
I am launching sponsorship packages if you or your company want to promote your product, job ad, or content in this newsletter. There are 3 places to put a promo and two more comprehensive sponsorship packages.
If you are curious about why I am launching this, I wrote a detailed article about it.
If you are a paying subscriber, you will continue receiving an ad-free version of the newsletter and a special discount if you want to promote your project, product, or company. Please read about it in the section about Paying subscribers.
๐ธ 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 while receiving an ad-free version of the newsletter!!
๐ Our Community
๐ Friendly rbย announced a new speaker - Jason Sweet โถ friendlyrb.com
๐ Ruby Conf Thailandย announced their new keynote speakerย โถ rubyconfth.com
๐ Ruby On Railsย announced their website is ready at rubyonrails.org/world
๐ Rocky Mountain Ruby announced that their conference would happen on 6-7 October 2023 โถ rockymtnruby.dev
๐ Jason Swettย announced that Sin City Ruby - Las Vegas Ruby Conference is back and will happen in 21-22 March 2024. Checkout sincityruby.com
๐ Adrian Marinย together with Yaroslav Shmarov launchedย a new podcast called friendly.show:
๐ Pasha Kalashnikovย shared a thread about why they think the popularity of Ruby and Rails will increase:
Here are three more tweets from Pashaโs thread:
On the same topic, Andrei Maximย shared why he is still working with Ruby and Rails after 15 years:
Andrei Maximย sharedย the The RedMonk Programming Language Rankings: January 2023
๐ Code And The Coding Coders Who Code Itย announced they are seeking sponsors. Reach out to Drew if you are interested in sponsoring the podcast.
๐ All about Code and Ruby
๐ Salma Elbadawi shared a thread to help people that are learning Ruby:
๐ Stanislav Katkovย shared a thread about how to check spelling mistakes in Ruby using two gems: misspell and codespell
๐ Caleb Hearthย asked about alternatives on how to get min/max from an array of hashes:
๐ Louis Brauerย shared their amazement of IRB, providing examples in the terminal:
๐Brian Kungย shared a code sample showing how to combine if and unless in the same statement in Ruby:
๐Ruby For Allย asked about how to stay up to date with Ruby:
Here are some of the answers:
๐Matt Swansonย asked about a dilemma of using find_or_create_by in a constant:
There are excellent replies to this question, and I invite you to read them all. I will put here what Matt shared as the solution:
๐ Joรซl Quennevilleย shared a code sample about how to think about FeatureEnvy when using Array#map:
๐ Paul Dobbin Schmaltzย sharedย a zsh function to search and open Rubocop docs See gist
๐Ruby Cademyย shared a thread about module function and extend self:
They summarised the differences as:
๐ Saron Yitbarekย asked for recommendations for learning Ruby on Rails:
Here are some of the recommendations she received:
GoRails and their Ruby Scripts and IRB and Build a Blog with Ruby on Rails Youtube series
Rails Tutorial by Michael Hartl
Hotrails Dev tutorial
๐ Ruby Cademyย shared two ways to replace a hash key:
๐ Craigย shared a series of shortcuts to run Rspec tests in Vim:
๐ Greg Navisย shared a thread about running assertions in production:
๐Ruby Cademyย shared a code sample showing how to use attribute_method_affix and column_defaults
๐ Joรซl Quennevilleย shared a thread about how to think about reduce:
๐ u/HurricaneCecil asked a question about why to choose Hash instead of HashWithIndifferentAccess:
That generated an interesting conversation with some good examples. I picked here only a couple of answers:
If you want to read more about why Ruby has not yet adopted this, you can read the comments in Ruby issue tracker
๐ค I imagine that if you have read this so far, you find value in this newsletter.
๐งฐ Gems, Libraries, and Updates
๐งฐ Ruby On Railsย announced the release of version 7.0.5 for Rails โถ๏ธ Read the announcement or Read the changelog
๐งฐ Stephenย shared their new tool called ai_refactor
๐งฐ Jeremy Evansย announced the release version 2.30.0 of Rodauth โถ๏ธย Read the release notes
๐งฐ Kirill Platonovย announced two new plugins for standard: standard-minitest and standard-thread_safety:
๐งฐ Nick Schwadererย announced the release of version 0.2.0 for chat_gpt_error_handler โถย Release notes
๐งฐ John Nunemakerย shared that HTTParty reached half the number of downloads of Rails:
๐งฐ Thoughtbotย announced they launched a new documentation for factory_botย โถ New Docs for factory_bot.
Direct link to documentation is thoughtbot.github.io/factory_bot
๐งฐ Dima Fatkoย sharedย their gem data_checks: Regression testing for data
๐งฐ Konnor Rogersย announced the release of version 1.0.0 of mrujs
๐งฐ Dima Fatkoย shared their gem called online_migrations aboutย online_migrations: Catch unsafe PostgreSQL migrations in development:
๐งฐ Rubyist For iOSย announced a new version of their iOS app. You can download it from here
๐งฐ Gene M. Angelo, Jr. published a new gem called dsu:
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 while receiving an ad-free version:
If you consider upgrading and want more information, please read Why to subscribe to paid
๐ค Related (but not Ruby-specific)
๐ค Jason Gormanย shared their view about what is a 10x developer:
๐ Benoitย shared a link from PostgreSQL documentation aboutย 11.4.ย Indexes and ORDER BY explaining how order by and limit can affect performance:
๐คJason Swettย shared their opinion about what is a 10x programmer:
๐ค Stanislav Katkovย shared their perspective about combining employment with solopreneurship:
๐ค Paul Dobbin Schmaltzย shared a tip about organising aliases by using the bang concept from Ruby:
๐คDonn Felkerย shared an advice about how to improve the PR reviews:
On the same topic of explaining the why Drew Braggย shared
๐คSebastian Wilgoszย shared a thread about ways to monetize content creation:
You should read the entire thread, where he is talking about guest articles, donations, sponsorships, consulting, premium content, membership program, webinars, sponsored content, affiliate marketing, ebooks, selling digital products and much much more. It is a thread worth saving.
More content: ๐ ๐ ๐ง ๐ฅ โ๐พ
๐ Books & Slides
๐๏ธ sonota88ย sharedย the slides of Masataka Pocke Kuwabaraโs talk about Let's write RBS!
๐๏ธ Yuichiro Kaneko published their slides about The Future Vision of Ruby Parser
๐Pragmatic Programmersย announced their latest promotion - valid until 1st June - checkoutย Promotions
They have titles like Programming Ruby 3.2 (5th Edition), Agile Web Development with Rails 7, Modern Front-End Development for Rails, Second Edition and Effective Testing with RSpec 3.
๐ Newsletters
๐๏ธย Allison Pike published a new edition of Once a Maintainer: Marco Roth
๐ Zzakย published a new edition of This Week in Rails - May 26, 2023
๐ Joe Masilottiย published a new edition of Hotwire Newsletter - May Edition
๐ Greg Molnarย published a new edition ofย Infer name with link_to - Rails Tricks Issue 8
๐๏ธย Ruby Libhunt published a new edition of Awesome Ruby Newsletter - Issue 366
๐๏ธ Ruby Radar published a new edition about Here's to a Long Weekend!
๐๏ธย Ruby Weeklyย published a new edition:ย So quiet that I'm Photoshopping broccoli
๐ง Podcasts
๐ง Jason Swettย published a new episode aboutย 182 - ChatGPT with Lee McAlilly - The Code with Jason Podcast
๐ง The Ruby On Rails Podcastย published a new episode Episode 471: RubyKaigi 2023 Recap (Brittany + Jemma)
๐ง The Rails Changelogย published a new episode aboutย 007: Rails 7.0.5 released! Rails World CFP open, ticket landing page available
๐ฝ๏ธ ๐ฅ Videos
Talks
๐ฝ๏ธ Dave Kimuraย published the video version of This Week in Rails - 2023-05-26
๐ฝ๏ธ Jason Swettย published a new video aboutย ChatGPT-assisted TDD (2023-05-11 Code with Jason Meetup session)
๐ฝ๏ธ The Rubber Duck Dev Showย published a new episode aboutย Monetizing Your Content Pt. 2 with Seb Wilgosz
Screencasts
๐ฅ RailsDrill published a new video about Creating Secure Tunnels in Ruby on Rails with Ngrok
๐ฅ Deaninย published new videos about:
โ๐พ Articles
Whatโs new
Kevin Luo published an article about Setup a basic authentication in Rails with HTTP Authentication
Gowsik Vivekanandan published an article about Integrate OpenAI API in Ruby applications
Adam Riceย published an article aboutย Common Table Expressions in Active Record
How-Tos
Konnor Rogersย published a new article about Rails Frontend Bundling - Which one should I choose?
Mika Henrikssonย published an article about High performant ruby installations
Joรซl Quennevilleย published an article aboutย Avoid Putting Logic in Map Blocks
Shemin Anto published an article about Improving the application performance by harnessing the full potential of ancestry gem
Akshay Khot published an article about How to Render Markdown Views in Rails
Guidemotion published an article about How to Install Rails on Windows 11 Step by Step
Akshay Khot published an article about A Beginner's Guide to Rails Parameters
Deep Dives
Evgeniy Demin published an article about The Mysterious Time-to-DateTime Conversion: Unraveling Rubyโs Unexpected Behavior
Paweล Dฤ browskiย published an article about A comprehensive guide to the anonymous functions
Harrison Broadbent published an article about Learn Hotwire by building the simplest possible Hotwire and Ruby on Rails app โ a beginners guide
Related
Ayushย published a new article aboutย How I manage my git history
Lucas Barretย published a new article aboutย Postgres Concurrency : What could go wrong (part 2)
William Kennedyย published a new article aboutย Turbo Android - Part 3 How to Access Native Android Features with the JavaScript Bridge
Andrey Sitnikย published an article aboutย 11 HTML best practices for login & sign-up forms
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.
two suggestions:
- move โour communityโ into seperate newsletter
- use mobile-friendly screenshots