Tuesday, March 14, 2023
HomeRuby On RailsQuick Ruby Information - Version #30

Quick Ruby Information – Version #30


You may leap on to a bit:

πŸ‘Β Our Group

πŸ‘‰Β All about Code and Ruby

🧰 Gems, Libraries, and Updates

🀝 Associated (however not Ruby-specific)

Extra content material: πŸŽ₯ 🎧 πŸ—žΒ (articles, podcasts, movies, and newsletters)

πŸ€— Founding Members supporting this article

You may subscribe without spending a dime

Or you possibly can think about upgrading to paid

Investing within the Ruby Weekly Publication as a paid subscriber is a priceless strategy to help the neighborhood round you. For ~1.5$/week (6.5$ monthly), you possibly can help its progress and be sure that high-quality details about the newest developments in Ruby continues to be accessible to everybody, each paying and non-paying subscribers alike.

Help the publication for ~1.5$/week

For those who think about upgrading and need extra info, please learn Why to subscribe to paid

πŸ‘ Tiago Casanova requested an vital query in our neighborhood:

πŸ‘Helvetic Ruby introduced the Name for audio system is open:

πŸ‘ Aaron Patterson shared that Mastodon is now operating on Ruby 3.2 (examine the PR):

πŸ‘ Dave Paola shared a doable threat about how one can make it in order that we hear not solely to excellent news but additionally we take heed to critique and focus on it brazenly:

The thread has some nuances, and it’s endorsed that you simply learn it in full and with good intentions πŸ™‚

Here’s a brief dialogue from the replies:

πŸ‘ ruby30th introduced the record of lightning talks had been launched.

Examine the record right here (or in English translated by Google right here)

πŸ‘ Drew Bragg shared that the following Philly.rb that can occur on 21 February shall be on-line and could have as visitor Joel Drapper, the creator of Phlex

You may register right here

πŸ‘Emmanuel Hayford have funs the hassle made by Petrik de Heus and zzak to enhance ils Guides:

πŸ‘ Ruby Unconf introduced the dates for Ruby Unconf 2023:

πŸ‘‰Nate Berkopec shared a fast heuristic to determine between doing a name to DB or utilizing Ruby:

He added an instance:

βœ‹ πŸ‘€ For those who’re an organization or supervisor trying to rent prime Ruby on Rails expertise, I might wish to introduce you to RailsDevs (referral hyperlink). This distinctive platform places the ability again within the palms of builders by permitting them to publish their profiles and empowering corporations to achieve out to them. I consider within the worth RailsDevs can carry to the hiring course of, and I am assured you’ll.

Go to RailsDevs.com

πŸ‘‰Postmodern shared a benchmarking of dynamic dispatch (ship) vs literal strategies calls (examine the code right here):

πŸ‘‰Sb shared a code pattern exhibiting how they’re utilizing Phlex.enjoyable at their very own undertaking Chestnut

πŸ‘‰ Nicolas Buduroi shared a code pattern exhibiting how one can repair colours in IRB:

πŸ‘‰ Noah Gibbs began a dialogue concerning the motive behind blindly adopting undertake Rubocop/Commonplace guidelines:

Listed below are among the most attention-grabbing replies/followups, however I invite you to learn the whole thread:

πŸ‘‰Dave Copeland shared their ideas about abstractions:

πŸ‘‰ Joel Drapper shared a code pattern exhibiting how phlex-rails can work with the native Rails structure system:

πŸ‘‰Robby Russell shared a take that writing helpful automated exams shouldn’t be very straightforward:

πŸ‘‰Research Each Day shared requested about how one can cease the Rails console autocomplete:

caption…

There have been a few solutions within the replies:

This shall be disabled within the subsequent Rails launch. See this PR

πŸ‘‰Eric Berry requested about how one can method upgrading a big Rails app:

Within the replies, there are suggestions for utilizing certainly one of these gems: deprecation_toolkit, next_rails or bootboot.

And likewise some extra basic recommendation:

πŸ‘‰Janko MarohniΔ‡ shared a code pattern exhibiting how one can configure take a look at atmosphere in Rails app to hurry up boot time:

πŸ‘‰Eric Berry shared a code pattern exhibiting a bash command to run rails instructions utilizing separate Ruby variations:

πŸ‘‰David Teren requested concerning the really helpful method for Rails API pagination:

Among the many suggestions:

πŸ‘‰Emmanuel Hayford shared a ballot about upgrading to Rails 7.1. Primarily based on the solutions (194 votes) appears that greater than 50% will improve in a short time to Rails 7.1:

πŸ‘‰Kevin Newton shared the best way Ruby lexer disambiguate the do key phrase

πŸ‘‰Greg Navis shared a thread about how object allocation and initialization are two completely different steps in Ruby:

πŸ‘‰Josef Strzibny shared a code pattern exhibiting how one can run a Rake process from contained in the Rails software:

πŸ‘‰Prabin Poudel shared a Rails technique named up_only that can run code solely when creating a brand new desk:

πŸ‘‰Eric Berry shared a code pattern exhibiting how one can use Phlex with Hanami:

πŸ‘‰Tom Hockett shared a bit of code asking concerning the utilization of nonzero?:

Konnor Rogers answered with:

πŸ‘‰Josef Strzibny shared a code pattern about how one can use use Rack duties to go atmosphere variables:

πŸ‘‰Mohit Sindhwani (Onghu@Ruby.Social) shared the second a part of their collection about Ruby Studying by Reversing: Native Gems, Half 2

πŸ‘‰Andrea Rocca shared a thread about how one can create with Hotwire a a number of choose enter (just like StackOverflow query tags):

πŸ‘‰Josef Strzibny shared the distinction between flash.delete and flash.discard

u/empty_glass_mug requested on /r/rails a query about how one can onboard an enormous Rails app:

Among the many finest solutions is the next from /u/GreenCalligrapher571. From their solutions, right here is the half concerning the technical undertaking, however please learn the total reply:

  • Are the setup steps correct and performable? Is software setup documented in any respect?

  • Is authentication dealt with inside the applying, or are we utilizing some supplier?

  • How are we dealing with authorization and permissions?

  • Are there characteristic flags, and in that case, how are these managed?

  • What are we utilizing for exams, and what does that take a look at protection share seem like? Are there developments in protection share (e.g. fashions are examined rather well however controllers are examined poorly)? What are we utilizing to arrange take a look at knowledge (presumably one thing like FactoryBot or fixtures, however who can know)?

  • What’s my exception depend seem like in manufacturing? What are my baseline efficiency traits (ninety fifth percentile request time, for instance)?

  • How is the code organized? Are we utilizing considerations? Service objects? Asynchronous jobs?

  • On the entrance finish, are we rendered EBR? HAML? A bunch of pages that render react views? Are we utilizing a CSS framework of some type or is all of it hand-coded? If there’s significant quantities of JS on the entrance finish, is all of it in JQuery or UJS or no matter, or is it vanilla javascript, or is it Alpine or Vue or React or one thing else?

  • How does the code get deployed? Are you having to sort git push heroku grasp from the command line, or is there CI/CD, or one thing else?

  • What different providers does it combine with (e.g. exception monitoring, CI/CD, analytics, authentication, and many others.), and do I’ve accounts for these?

  • What does the database schema seem like? I will normally set up the annotate_rb gem once I be a part of a contemporary undertaking, as that makes it considerably simpler to motive about fashions (on the expense of some dozen strains of feedback on the prime of every mannequin file).

  • If I run bundle audit (chances are you’ll want to put in it), do I get any safety warnings? Ditto for no matter you are utilizing to handle the front-end dependencies, in addition to language variations.

  • Do now we have a separate set of “API” endpoints? If that’s the case, are these used simply by this software (e.g. for AJAX) or are they consumed by the general public? Equally, do now we have an uncovered set of GraphQL queries/mutations? If that’s the case, what methods are utilizing them and the way?

  • Are there different methods that depend upon this one? For instance, clients who’ve built-in together with your API, or a cellular app that hits your software, or one thing else?

  • Extra broadly, who depends upon this technique and the way? Are your clients largely inside customers? Exterior customers? Are the customers the people who find themselves paying, or is it a B2B factor the place your customers are employed by your precise buyer?

  • If we take digital funds, are we utilizing a “tokenization” circulation with a recognized fee gateway, or are we storing card numbers within the database? In case you have card numbers saved within the database and it isn’t a PCI Degree 1 fee gateway or processor or the like, getting that info out of your database must be the highest precedence. I’ve taken over not less than 1 undertaking the place they had been storing card numbers within the database (“But it surely’s encrypted!” they mentioned — nonetheless did not matter) and it introduced a HUGE, company-threatening legal responsibility. They had been even storing the safety codes within the database and I about misplaced my dang thoughts.

  • Are there any basic complaints or feedback about efficiency, performance, and many others.?

🧰Avo launched model 2.26, which incorporates fixes and enhancements: Learn the discharge notes

🧰 Brad Gessler introduced they’re engaged on a brand new undertaking referred to as rowdy that can route net requests to courses:

🧰Heartcombo introduced the discharge of Devise v.4.9.0 Learn the change log:

In addition they adopted up with the next:

Yaroslav Shmarov already revealed a video exhibiting how the brand new machine works. Watch it right here

🧰 Chris Oliver introduced that Jumpstart Professional is now prepared for Turbo StreamActions:

🧰 The Bundler Workforce introduced a brand new launch of bundler v.2.4.7. Learn the discharge notes

🧰 Samuel Williams shared they launched a VSCode extension for Sus Take a look at Supplier is now on the VScode Market:

🧰 Josef Strzibny introduced they launched a brand new model of InvoicePrinter. Learn the discharge notes

🧰 Joel Drapper revealed a brand new model of Phlex v.1.4.0. Learn the changelog right here

🧰Maciej Mensfeld introduced the brand new Karafka Net UI – Your Ruby and Rails out-of-the-box Kafka UI: Learn the discharge notes

🧰 Ernesto introduced a brand new model of database_cleaner. Learn the changelog

🧰 LÑzaro Nixon introduced they applied a passwordless characteristic for the authentication-zero gem

🧰 A brand new model of tanakai was launched that provides help for Ruby 3.

🧰 Nick Nick Schwaderer submitted a bug a couple of efficiency regression occurring between Ruby 2.7 to Ruby 3.2. Learn the bug right here

🀝Sebastian Wilgosz shared some glorious recommendation for content material creators about how one can keep motivated:

Listed below are two of the factors he shared, however it is best to learn the whole thread:

🀝 Robby Russell shared recommendation about how one can make the onboarding of recent devs work:

πŸ—žGreg Molnar revealed a brand new version of This Week in Rails: preloading associations with composite keys and extra!

πŸ—žοΈΒ Ruby WeeklyΒ revealed a brand new version:Β Getting Rustier with Ruby

πŸ—ž Ruby Radar revealed a brand new version Ruby Radar #90 – This Week in Ruby Radar

πŸ—žοΈΒ Ruby LibHuntΒ revealed a brand new version of theΒ Superior Ruby Publication

🎧Andy Croll shared a brand new episode of Maintenable with Robby Russell: Andy Croll – Maintain the Bizarre Stuff Bizarre | Maintainable

🎧The Ruby on Rails Podcast revealed a brand new episode The Ruby on Rails Podcast Episode 457: This Week In Rails with Emmanuel Hayford

🎧Distant Ruby revealed a brand new episode Spicy Takes with Matt Swanson

🎧 Ruby Rogues revealed a brand new episode Holding Up With The Currents

🎧 Ruby for All revealed a brand new episode about Favourite Ruby Strategies: Half 3 – Strings

πŸ“½οΈ The Rubber Duck Dev Present revealed a brand new episode Getting Stuff Performed With Drew Bragg

πŸ“½οΈ Nate Berkopec revealed a video exhibiting Puma 6.1: New Function Overview

πŸŽ₯ Deanin revealed 4 new movies:

πŸŽ₯ Peter Hawkins revealed two new movies:

πŸŽ₯ Yaroslav Shmarov revealed two new movies:

πŸŽ₯ The Ruby Studying Heart revealed a brand new video streamed by Brandon Weaver overlaying Efficient Testing in RSpec 3 – Ch 6

Learn extra about what’s a Founding Member or about Why pay for ShortRuby publication



RELATED ARTICLES

Most Popular

Recent Comments