Short Ruby News - Edition #102
Rails 7.2 released a lot of updates about fall conferences, some exciting launches and discounts, inspiring code samples, and good code design discussions.
You can jump directly to a section:
๐ย All about Code and Ruby: ๐ป Code, ๐Code Design,๐กAround, โค๏ธ Why Choose Ruby
๐งฐย Gems, Libraries, and Updates: ๐ New, ๐งฐ Updates
๐ค Related (but not Ruby-specific)
More content: ๐ ๐ ๐ง ๐ฅ โ๐พ (articles, podcasts, videos, newsletters)
[Partnerย โฌ]ย friendlyrb.com
I am one of the co-organizers of Friendly.rb Ruby Conference, and I am very enthusiastic about this conference.
Read my reasons why you should attend this conference at Why you should Join Friendly.rb in September 2024
TLDR: We have a friendly atmosphere and amazing speakers. Enjoy a relaxed schedule, deep dives into Ruby, Rails, and Hanami, and a unique group activity on 20 Sept. Connect with 130 passionate Ruby developers.
Register now at friendlyrb.com
๐ Launches and discounts
๐ Chris Oliver is working on SellRepo that lets us sell access to Github repos
๐ Akshay Khotย published a book about Rails Router:
๐ย Josh Pigfordย launchedย SchemaKit - Automated schema markup
๐ย Nate Berkopecย announced the release of the transaction in Japanese of the bookย Ruby on Rails ใใใฉใผใใณใน ใขใใฏใชใใก
๐ย Andrea Fomeraย announced a 10% discount for their course aboutย Learn Hotwire by Building a Calendar
๐
Events
๐ Events happening this week if you want to attend (source: RubyConferences)
12 August, in UK โ London Ruby User Group: August 2024 Meeting
13 August, in USA โ YC Ruby Meetup: Ruby & Rails powering YC startups in 2024
13 August, in USA โ Boston Ruby Group - August 2024 meeting
13 August, in Canada โ Toronto Ruby - Summer of Rails World Edition
13 August, in USA โ AustinRB/Austin on Rails - Ruby on AI "The magic Lego"
13 August, in Uruguay โ Ruby Montevideo - Meetup August 2024
14 August, in USA โ Boulder Ruby Group - Monthly Presentation Night
14 August, in USA/online โ Philly.rb - Pubnite - Global/Virtual
14 August, in Germany โ Hamburg on Ruby
14 August, in India/online โ Ruby Meetup - Week 11
๐ ย Rocky Mountain Ruby Conferenceย announced their full agendaย Sessions | Rocky Mountain Ruby 2024
๐ ย Ruby On Railsย sharedย Special Rails World session: Matz & DHH Fireside Chat
๐ ย Ruby World Conf Enย sharedย that RubyWorld Conference 2024 registration is Now OPEN | RubyWorld Conference 2024
๐ ย Iย sharedย a thread about why participate inย Friendly.rbย (and, in general, smaller conferences). Here is just the first part of it, and you canย read it full on my blog:ย
๐ All about Code and Ruby
๐ป Code Samples
๐ป Emmanuel Hayford shares the new update on Rails 8 that updates routing mapper implementation to use keywords instead of hashes
[Sponsor โฌ]ย ย snappify.comย
Snappify is a powerful design tool that enables developers to create stunning presentations and videos. Say goodbye to PowerPoint or Keynote and leverage snappifyโs abilityโs to create technical presentations with various ways to animate your code snippets.
Get started with a generous free plan at snappify.com
๏ธ๐ปย Matt Swansonย sharedย that rendering turbostream.html.erb template might be a code smell and provided a solution:
๐ป ๏ธ๏ธJeremy Smith presents a way to call Turbo Stream replace with the new morph method
๏ธ๐ปย Cayterย sharedย a tip about using Active Record Encryption:
๏ธ๐ปย Alazycoderย sharedย a code sample about removing noise with LogStasher:
๏ธ๐ป Axel Kee shared an a tip on TimeZone.new
๏ธ๏ธ๐ปย Ruby Cademyย sharedย a code sample using the highlight method:
๏ธ๐ป Cayter shared a tip on ActiveStorage and Inertia.js
๏ธ๐ป Ahmed Nadar shared a tip on broadcasting asynchronous:
๏ธ๐ป Alemaรฑo shares how Active Storage lets you specify a folder path when uploading files to a service.
๏ธ๐ป Kevin Vanzandberghe shared a rails active record tip:
Peter Cai adds a warning to the above issue:
๏ธ๐ปย Ruby Cademyย sharedย about using the block_format:
๐ Thinking about Code Design
๏ธ๐ ๏ธKyrylo Silin shared how to use service objects in rails projects
Here are some of the replies (without going into full mode pro or against service objects):
๏ธ๐ย Nate Berkopecย asked about a good use case of using array types in DB:
Here are some of the replies (but there are a lot more there):
๏ธ๐ย Mike Dalessioย sharedย about running application test suite with all warnings enabled (see Add `-Werror` flag to turn Ruby warnings into errors)
๏ธ ๏ธ๐ ๏ธStudy Every Day shared their thoughts about mixing data and code:
Here is Lucianโs take on the same:
๏ธ๐ Kay Rhodesย sharedย about `public` as being a method that should not be overridden:
๏ธ๐ย Michael Chaneyย sharedย about finding the balance between actions specified by data attributes and actions that are implemented in javascript controllers when using Hotwire:
๐ก Around code (news, findings, books, and more - all about Ruby)
๐กย Jorge Manrubiaย sharedย about the next 37Signal libray that will be announced at Rails World, but it remains a secret so far:
๐กย Ruby On Railsย announced that ย Rails v7 guides are now using the new design:
๐กย Ruby On Railsย sharedย two documentation PRs that are waiting community feedback:
๐กย Igor Alexandrovย shared aboutย Deprecate defining enums with keywords args by skipkayhil ยท Pull Request #50987:
Rafael Franรงaย replied that if the code will show deprecation loudly it will not be included in the release notes:
๐กย Kyle Foxย asked about the best resources for Ruby on Rails:
Here are some suggestions:
Kasper Timm Hansen and Jeremy Smith - Riffing on Rails videos
Layered Design for Ruby on Rails Applications by Vladimir Dementyev
Upcase courses by Thoughbot
The Rails 7 Way by Obie Fernandez
SupeRails Youtube Channel and SupeRails content by Yaroslav Shmarov
The Rails and Hotwire Codex by Ayush Newatia
Build a Multitenant SaaS Project Management System Using Ruby on Rails and Hotwire by Allan Kamau
GoRails by Chris Oliver
Learn to build Full-Stack Rails apps like an expert by Hrishi Mittal
Ken Greeff YouTube channel
CJ Avilla Youtube channel
And there are a lot more resources shared in reply to that question.
๐กLucian Ghinda encourages to invest in junior ruby devs
๐กย Robby Russellย sharedย about upgrading Rails:
๐กย Stephen Margheimย asked about the best Rails app templates:
Here is a list of the links shared in replies (not all of them are Rails templates in the sense that they cannot be used for rails -m):
โค๏ธ Why Choose Ruby and Rails
โค๏ธย Mohammad Bagherย sharedย what the discover about Ruby:
โค๏ธ Nate Berkopec never misses a chance to compliment the simplicity of rails
โค๏ธ Paweล Dฤ browski quotes one quirky disadvantage of Ruby and Rails
โค๏ธย Ajey Goreย sharedย that Rails is still the best framework for CRUD apps:
they later added:
โค๏ธย Rafael Peรฑa Azarย sharedย why they like Rails:
๐งฐ Gems, Libraries, Tools and Updates
๐ New Gems and Repos
๐ Joelย published a new open-source Rails app - gifrap - Gifrapย is a self-hosted repository of animated gifs, and jpgs, etc.
๐ย Elvinas Predkelisย announced a new gem phlex-tabler_icons: Tabler Icons tailored for Phlex
๐ย Valentino Stollย announced a new gem podcast-buddy: An AI podcast companion
๐ sebyx07 published a new gem called ruby2htmlย - Transform your view logic into elegant, semantic HTML with the power of pure Ruby (see also this article on dev.to)
๐ Matthew Clarkson published a new gem called Bridgetown Related Posts - A Bridgetown plugin that automatically generates and adds related posts to your Bridgetown site using TF-IDF and cosine similarity
๐งฐ Updates
๐งฐย Ruby On Railsย announced a new version ofย Rails 7.2 release candidate 1: Better production defaults, Dev containers, new guides design, and more!
The highlights are:
Samuel Williamsย added about this version:
๐งฐย Avoย announced a new version ofย v3.11.0 - 142 Pull Requests merged this month ๐คฏ ยท Avo
๐งฐย Samuel Williamsย announced a new Re: Ruby 3.2.4 - Arch-dev-public - lists.archlinux.org
๐งฐย Keygenย announced thatย Keygen is now Fair Source
๐งฐ Karl Oscar Weberย announced a new version of Camping - version 3.2.6
๐งฐย Vitaly Slobodinย announced a new version ofย Release v0.0.4 ยท vitallium/intellij-plugin-ruby-lsp
๐งฐย Andrea Roccaย announced a new version ofย their rails template Rails Daisy Solid Template
๐งฐย Peter Solnicaย shared a thread about an upcoming change to Rails 8 โ Add structured logging next to developer logging: ย
๐งฐย Josh Pigfordย announced a new version ofย Release v0.1.0-alpha.14 ยท maybe-finance/maybe
๐งฐย Lรกzaro Nixonย announced a new Rails PR aboutย Bulk insert fixtures on SQLite by lazaronixon ยท Pull Request #52562 ยท rails/rails
๐ค Related (but not Ruby-specific)
๐คย Jeremy Smithย sharedย a video about about building their new project: Liminal
๐คย Andrea Bosoniย sharedย about development and marketing:
๐คย Lucian Ghindaย sharedย a thread about writing good release notes:
๐คย Marcel Pociotย sharedย about a Google API to get favicon from any domain:
๐คย Privvย sharedย about the possibility to add notes to git commits:
๐คย Hussein Nasserย sharedย about avoiding SELECT *
More content: ๐ ๐ ๐ง ๐ฅ โ๐พ
๐ ย Charles Oliver Nutterย shared their slides aboutย 20 Years of JRuby
๐ Newsletters
๐ Any Cableย published a new edition aboutย Any Cables Monthly #22: UI kit preview
๐ย Hotwire Weeklyย published a new edition aboutย Week 32 - CTOs choose Hotwire, Image Upload Preview, and more! โข Buttondown
๐ง Podcasts
๐ง Code And The Coding Coders Who Code Itย published a new podcast aboutย Ruby on Rails + SQLite with Stephen Margheim
๐งย Ode To Rails Confย published three new episodes with Chris Oliverย Collin Jilbert, ย Jason Charnes
๐งย Indie Railsย sharedย IndieRails | A Fresh Take on Old-School Forums
๐ฝ๏ธ ๐ฅ Videos
๐ฅ Yaroslav Shmarov published a new video about SupeRails | #182 Build an OpenGraph image generator
๐ฅย Rob Whittakerย published a new episode abouย ย Resurrecting an Untouched Rails App
๐ฅ Drifting Ruby published a new video about Processing Large Jobs
๐ฅ Chris Oliver published a new video about How to Rate Limit Requests in Rails 7.2 (Example) and about How to use Dev Containers with Rails (Example)
๐ฅ Yaroslav Shmarov published a new video about SupeRails | #182 Build an OpenGraph image generator
๐ฅย Adam Mc Creaย published a new video aboutย How I Built It: Calendar UI with Turbo Frames, Tailwind, and Alpine.js
๐ฅย Josh Pigfordย published a new video aboutย Coding with Cursor: Session 1
๐ฅย Graceful.Devย published a new video aboutย Ruby:ย #fetchย for defaults
๐ฅย Lukasz Reszkeย published a new video aboutย Get rid of primitive obsession. Introduce value objects
โ๐พ Articles
Whatโs new ๐
๐ Chad Pytelย published an article aboutย Ruby on Rails is great for AI
๐ Kelly Gebo published an article aboutย Why CTOs are choosing Hotwire and Ruby on Rails
๐ Blazejย published an article aboutย From Real Estate to Ruby - Why I Chose Ruby on Rails
๐ย Miles published a new article aboutย Rails is 20
๐ย Kasper Timm Hansen published a new article aboutย My take on Refactoring Railsโs initializers
๐ John Vesterย published an article aboutย Buh-Bye Webpack and Node.js, Hello Rails and Import Maps - DEV Community
๐ย Justin Toniazzo published an article about Supercharge your Rails logs with tags
๐ Justin Searls published an article about What one must pass to includes() to include Active Storage attachments
๐ Jaimy Simon published an article about Rails 8 introduces a basic authentication generator - BigBinary Blog
๐ Josef Strzibny published a new article about Introduction to Minitest Mocks
๐ Michael Keeneย published an article aboutย The Strangest Ruby Syntax: PatternMatching
๐ย Julian Rubisch published a new article aboutย Betterstimulus | Dependency Inversion Principle
๐ Krzysztof Kamilย published an article aboutย The Business Value of Refactoring and Testing
๐ย Haseeb Annadamban published a new article aboutย Understanding The Output of EXPLAIN Command As a Rails Developer
How-TOs ๐
๐ Max Bragaย published an article aboutย Migrating ActiveJob to Sidekiq Job: Why and How
๐ Kyrylo Silin published a new article about How to add Mission Control to your Rails app and protect it with Basic Auth
๐ Guillaumeย published an article aboutย How I use OpenAI to translate my Rails application into multiple languages
๐ Martin Streicher published an article aboutย An Introduction to Nix for Ruby Developers
๐ย Owais published a new article aboutย Formatting and Linting ERB files with Zed on save