- Short Ruby Newsletter
- Posts
- Short Ruby News - Edition #96
Short Ruby News - Edition #96
Explore Ruby's latest: InsertBot for Rails, RubyConf updates, XSS testing, HTTP/2 servers in 6 lines, and Unicode handling. New gems and fresh Ruby content: newsletters, podcasts, videos, and articles
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 and π Keep an eye on
π€ Related (but not Ruby-specific)
More content: π π π§ π₯ βπΎ (articles, podcasts, videos, newsletters)
[Partner β¬] capsule.graphics
Capsule is a small design and engineering studio focused on user interfaces. We help you make your stuff look really cool so that people will love you and buy your products.Book us monthly for just a website, for a whole year, or for a phone call. With Unlimited Revisions'β’, you'll always be happy. Say goodbye when we're done.With the we-love-the-ruby-community discount, we're offering 20% off our one-off branding + website product thing, Rocket, for anybody that clicks this link: (https://capsule.graphics/rubyrocket)
π Launches and discounts
π Alex Rudall shared the problem heβs trying to solve with insertrobot.com
π Karl Weber launched a 20% off discount for Short Ruby News subscribers for their Capsule Rocket
(discount is automatically applied at capsule.graphics/rubyrocket)
π Events
π This week's meetups and conferences (source):
25 June | USA β ChicagoRuby - Madison+ Ruby + Chicago @ Chime
25 June | Online β WNB.rb
26 June | Ireland β Ruby On Skis? Let's Go Alpine & Get Better Service!
26 June | USA β AustinRB/Austin on Rails - Ruby Social (Evening)
27 June | Philippine β Philippine Ruby Users Group - Heading Hybrid
28 June | UK β Brighton Ruby 2024
π Wnb.Rb shared they are raising money top support 7 women to attend RubyConf Africa. You can donate at Stripe Checkout
π Friendly.Rb shared Friendly.rb - Your friendy European Ruby conference, announced the CFP will close early on 1st July and announced a new speaker Julian Cheal:
π Ruby Central shared KentBeck as a keynote speaker at RubyConf and tickets will go on sale on June 26:
π Madison+ Ruby announced Saron Yitbarek as a speaker Speakers | Madison Ruby
π Kj Tsanaktsidis shared Ruby Hack Night, July 4:
π Josias Schneider | The Outsider Dev shared that Ruby Floripa is back on July 27th. Do send in your talks.
π All about Code and Ruby
π» Code Samples
π» Sam Saffron shared how the latest ruby memory profiler works for trivial profiling.
π» Greg Molnar shared that Rails is getting a new notification event, which is triggered when a transaction starts.
π» Samuel Williams shared a thread on how to get a Hello World endpoint up and running in 6 lines with HTTP/2 support and deploying it.
π» Prabin Poudel shared a gist demonstrating how to convert any DateTime object to any timezone while still keeping the same date and time.
π» Ronin Rb shared what it looks like to write a XSS test using ronin-rb/ronin-exploits: A Ruby micro-framework for writing and running exploits
π» Lucian Ghinda shared a detailed thread on Twitter on how to use endless blocks to name a transaction. Here is one of the posts:
π» Joel Drapper shared a code sample showing how to implement a rounded link with Phlex:
π» Josh Pigford shared two code samples of how their code was refactored by ChatGPT:
π» Max Vel Dink shared a code sample about Sorbet T::Enum:
π» Joel Drapper shared a friendly reminder about using frozen string literal:
π» David Alejandro shared a tip about disabling Ahoy on Turbo prefetch-on-hover:
He added about missing clicks:
π» Matt Swanson shared a code sample about removing failed custom domains:
π» Avdi Grimm asked about Ruby oddities:
Here are some replies:
π» Allancoder shared a code sample about callback hell in Rails:
π» Michael Chaney shared a long post about Unicode and UTF-8. Here is just a part of it, but you should read it all:
π» Study Every Day shared a code sample about using a comparison validator:
π» θΌζεΌ¦δΉ shared a code sample about Event Storming:
π» Ruby Cademy shared about how to make Rails credentials diffs be displayed in git diff:
They also shared a tip about:
π Thinking about Code Design
π Rafael Γ‘quila asked about handling RecordNotUnique exception:
Greg Navis replied with an article they wrote about this Build the Framework You Need and a code sample:
π Samuel Williams shared Rails Integration
π Josh Pigford asked about finding a cheaper way to categorize tools:
This seems to have been solved the following way:
π Stephen Margheim shared a thread explaining how they implemented AcidicJobs β acidic_job: Idempotent operations for Rails apps, built for ActiveJob or Sidekiq. Here are some parts of the thread:
π Jason Swett asked about improving performance-sensitive areas of an app:
Here are some replies:
π Gabriel Mazetto shared what the most prominent code smell in a Ruby project.
π Michael Chaney shared a detailed post on how βnormalizesβ works in Rails 7
π Ruby Cademy shared how the behaviour of transaction blocks has changed in Rails 7
π‘ Around code (news, findings, books, and more - all about Ruby)
π‘Marc asked about who uses Ruby on Rails for their side-projects:
Here are some projects shared:
π‘ BenjamΓn Silva H. shared a list of resources for understanding good practices or design patterns in Rails:
β€οΈ Why Choose Ruby
β€οΈ Josh Pigford shared how he wrote his web scraper in Ruby
β€οΈ Paul Earnden shared how they are building with Rails:
β€οΈ Gaurav shared about why Rails is great at building something fast:
β€οΈ Andrew Brown shared about why they like Rails:
β€οΈ Mateusz Palak published a new article about Choosing Ruby: What made me choose Ruby as my primary programming language.
π§° Gems, Libraries, Tools and Updates
π New Gems and Repos
π Stanislav (Stas) Katkov announced a new gem munster - webhooks processing engine for rails applications (read a good introduction to it here):
π Bozhidar Batsov announced the open-sourcing of their distributed RSpec runner - rspec-distrib
π Justin Searls announed a new gem feed2thread: Reads your site's feed and publishes each entry to Threads (as feed2toot is to Mastodon, so feed2thread is to threads)
π Pointless One announced a new gem gort: robots.txt parser and evaluator
π Postmodern announced a new gem ruby-masscan - A Ruby interface to masscan, an Internet-scale port scanner
π Tim Standen shared a new repo where they build A simple Go game made in ruby It looks like this (image shared by AndyObtiva):
π Dmitry Golovin published a new gem called passive_columns - ActiveRecord module that allows you to skip selecting specific columns by default and retrieve only on-demand
π§° Updates
π§° Avo announced a new version of Release Release v3.9.2 Β· avo-hq/avo
π§° Janko MarohniΔ announced a new version of Release v4.13.0 Β· minimagick/minimagick
π§° Jeremy Evans announced a new version of Forme 2.6.0 Released Β· jeremyevans forme Β· Discussion #124
π§° Stephen announced a new version of stevegeek/ai_refactor: AI Refactor is an experimental tool to see how AI can be applied to bulk refactor code.
π§° Nick Schwaderer announced a new version of schwad_performance_logger - Benchmarking your code, made simple.
π Keep an eye on
π Eileen Uchitelle submitted a PR to Ruby about:
π€ Related (but not Ruby-specific)
π€ Adrian Marin asked about icons:
Here are some answers:
π Deepak Mahakale shared a code sample about running long-running tasks on Heroku:
π€ Michael Buckbee shared why Mac users should ensure .DS_Store files are listed in your .gitignore.
π€ Pascal LalibertΓ© shared an advice for freelancers:
More content: π π π§ π₯ βπΎ
π Newsletters
π This Week in Rails published a new edition about New database sharding methods, improved Active Record Migration Docs, caching improvements for ActiveStorage and more!
π Awesome Ruby published a new edition about Awesome Ruby Newsletter - Issue 422, Jun 20, 2024
π Ruby Weekly published a new edition about Ruby's method methodology
π Ruby Central published a new edition June 2024 Newsletter
π Hotwire Weekly published a new edition about Week 25 - Inertia.js in Rails, Stimulus in the Shadow DOM?, and more!
π Allison Pike published a new edition of Once a Maintainer: Mike McQuaid
π§ Podcasts
π§ The Rails Changelog published a new episode about 023: Solid Queue Internals with Rosa Gutierrez | The Rails Changelog | Episode 23
π§ Ruby Rogues published a new podcast about Leveraging OpenAPI: Creating Effective RESTful API Specifications and Documentation
π§ The Bike Shed published a new podcast about The Bike Shed: 429: Transforming Experience Into Growth
π§ Joshua Wood published a new podcast about Dogfooding, Developers, and Discord! | FounderQuest | Episode 14
π§ Pabs published a new podcast about On Solo-preneurship
π§ Remote Ruby published a new episode about Auditing in Rails & Andrew's Cursed Idea
π½οΈ π₯ Videos
Screencasts
π₯ Yaroslav Shmarov published a new video about Rails #174 i18n. Test translations, refactor, and launch into
π₯ Julian Rubisch published a new video about Power Pack for Bullet Train - Table Filtering
π₯ Jason Swett published a new video about Coming up with Test Scenarios - Mentorship Session with Yain Porter and Fixing Image Caching - Live Coding on SaturnCI
π₯ Ruby Rogues published a new video about Ruby and Rails and AI with Obie Fernandez
π₯ Cody Norman published a new video about Generating Custom QR Code with Ruby on Rails
π₯ Joel Drapper published a new video which gives a quick introduction to Zed for Ruby Developers
π₯ Drifting Ruby published a new video about Episode 462 - From Heroku to Kamal | Drifting Ruby
βπΎ Articles
Whatβs new π
π Mateusz Palak published a new article about Choosing Ruby: What made me choose Ruby as my primary programming language.
π Siddharth Shringi published a new article about Ruby 3.4 Makes βitβ As Default Block Parameter
π Max Chernyak published an article about Dynamic Module Snippet for Ruby
π Svyatoslav Kryukov published an article about Inertia.js in Rails: a new era of effortless integration
π Hexdevs published a new article about 4 Strategies To Remove Dead Code from your Ruby App
π Samuel Williams published a new article about How WebSocket Extensions are negotiated
π Josef Strzibny published a new article about Server provisioning options for Kamal
π Augusts Bautra published a new article about TIL: an_array_starting_with matcher
π΅οΈ Deep-Dive
π΅οΈ RoRvsWild published a new article about Measuring Ruby Garbage Collector - RorVsWild
π΅οΈ Mathieu Eustachy published an article about In depth Ruby memory optimisation: `true`, `false` and `nil`
π΅οΈ Noel Rappin published a new article about Better Know A Ruby Thing: On The Use of Private Methods
π΅οΈ Jared Norman published a new article about System tests havenβt failed
π΅οΈ Reza Shadman published a new article about Iβm switching from Laravel to Rails
How-TOs π
π Andres Chacon published an article about Creating a REST API with Ruby on Rails. Chapter 2: Endpoints and Serialization
π Cody Norman published a new article about Create a QR Code with a Logo
π Lorry Driveloper published a new article about Solving the Challenge of Connecting Stimulus Controllers Inside Shadow DOM
π Dmitry Daw published a new article about How to use rbtrace from outside of docker container
π Rich Steinmetz published a new article about Open-sourcing Sloth Finder to search Ruby Weekly and side projects warnings
π Mohit Sindhwani published a new article about Rails: Load multiple records by ID (find v where)
π Lucian Ghinda published an article about Transactions blocks with endless methods
π Rails Designer published an article about How to Create an Undo Action with Rails
π Kecia karoline published an article about CodeTips#9: Readable .html.erb files on VSCode
Related
βοΈ Mohit Sindhwani published a new article about Hosting HTML, JS and CSS pages simply with GitHub Pages
βοΈ Jet Thoughts published a new article about nicanorflavier/spf-dkim-dmarc-simplified: Email security. SPF, DKIM, and DMARC, and how do they work?
Reply