π 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