Wednesday, April 24, 2024
HomeRuby On RailsπŸ‘‹ Challenge #11 - 19-25 September 2022

πŸ‘‹ Challenge #11 – 19-25 September 2022


If you’d like a brief excerpt of this text containing solely a number of the photographs with code, I created one right here. However I invite you to learn your complete e-newsletter because it has glorious content material 😊.

This version was created with assist from @adrianthedev from Avo for Ruby on Rails (a pleasant full-featured Rails admin panel) and from @jcsrb, who despatched me suggestions to incorporate within the e-newsletter.

πŸ‘‰ SchwadΒ sharedΒ how fast it’s to prototype concepts with Rails 7:

πŸ‘‰ Brad GesslerΒ sharedΒ a snippet of code that can assist you to not leak occasion variables in partials in Rails:

You possibly can test a working instance on the general public undertaking Brad shared on Github.

πŸ‘‰ Emmanuel HayfordΒ definedΒ what’s the that means of the i within the shorthand syntax for creating an array of image %i[]:

πŸ‘‰ Thiago MassaΒ sharedΒ a code pattern about doing a direct grep in duties:

πŸ‘‰ Kevin NewtonΒ sharedΒ shared a proposal for implementing NilClass in RubyΒ and it appears to be quicker when executed this fashion:

Right here is the way it will appear like:

Learn extra about this together with the benchmark run within the Ruby grasp ticket.

πŸ‘‰ Kirill ShevchenkoΒ sharedΒ code pattern a few frequent helpful sample when utilizing Service Objects to encapsulate initializer in a name on the category:

In the identical thread two gems which might be serving to to do that had been shared: serviz and operators-service

πŸ‘‰ Vinicius InventoryΒ sharedΒ thread with VSCode ideas for Ruby:

  • β€œCMD + SHIFT + O: fuzzy search symbols on a file” – supply

  • β€œCMD + T: fuzzy search symbols in every single place” – supply

  • β€œF2 for renaming native variables, occasion variables, strategies or constants” – supply

πŸ‘‰ Martin SpickermannΒ sharedΒ about bang technique a quote from Matz:

I attempted to search out the unique supply for this and it seems to be this discussion board dialogue.

πŸ‘‰ Emmanuel HayfordΒ sharedΒ a code pattern displaying how super_methodΒ works:

πŸ‘‰ Kirill ShevchenkoΒ sharedΒ about utilizing retrying in Ruby through the use of retriable gem:

πŸ‘‰ Marco RothΒ sharedΒ a small and really pre alpha library to remodel ERB into Phlex. Supply code will be discovered right here and you’ll play on-line with it at phlexing.enjoyable:

πŸ‘‰ Shino KoudaΒ sharedΒ utilizing `app` and `helper` strategies in Rails console:

πŸ‘‰ Brad GesslerΒ sharedΒ a code pattern displaying the nested layouts methodΒ impressed from middemanapp:

Test the playground created by Brad on Github for a extra detailed rationalization of how this works.

πŸ‘‰ Greg NavisΒ sharedΒ a validator with a proc that returns allowed values:

πŸ‘‰ Eric BerryΒ sharedΒ a code pattern about the right way to chain operations in Ruby:

Joel Drapper shared an alternate for chaining utilizing conditional object yielders:

πŸ‘‰ Moses GathukuΒ sharedΒ a code pattern about utilizing conditionals to set courses:

Β πŸ‘‰ Kirill ShevchenkoΒ sharedΒ the right way to use JSON.parse and parse right into a customized array and hash courses:

When utilizing OpenStruct please bear in mind that it comes with a efficiency penalty.

Β πŸ‘‰ Nate BerkopecΒ sharedΒ recommendation concerning the variety of processes per include and preforking webservers:

And Andrey Novikov added an evidence:

Β πŸ‘‰ Brad GesslerΒ sharedΒ a thread about utilizing your element methods/libraries over for instance simple_form or any constructing gems:

He afterward shared some experiments he did with Phlex that can land later within the sitepress.cc.

Right here is an instance of a Phlex element that can rend a markdown:

You could find the code in his view-playground on Github. Joel steered within the thread that the results of Rouge to the syntax highlighting is cached, thus having a slight efficiency enchancment when rendering.

Β πŸ‘‰ Mike PerhamΒ requestedΒ if anybody is actively engaged on eradicating International VM Lock/GVL (additionally named International Interpreter Lock/GIL) in Ruby:

He described the first use case of this variation as relating to Rails app that may’t scale with out managing a number of processes.

Listed here are two replies from Yukihiro Matz and Jean Boussier (please learn your complete dialog for extra context)

Β πŸ‘‰ CJ AvillaΒ sharedΒ a Github repo the place he performed with Phlex and Sinatra:

You may need to test this Github Repo created by Ren Guoy the place the deploys some Phlex.enjoyable parts on AWS Lamdba utilizing Serverless.

πŸ‘‰ David Colby shared that among the many greatest modifications in Turbo 7.2.0 is the power to reply to a GET request with Turbo Stream:

In case you learn to date and also you just like the content material, perhaps you take into accounts sharing this and subscribe:

πŸ€” Brandon WeaverΒ sharedΒ about progress and studyingΒ 

And it received some fascinating replies:

πŸ€” Nate BerkopecΒ requestedΒ a query about DX and automating dev workflows:

A abstract of the solutions that had been written as reply to the query:

πŸ€” Shopify EngineeringΒ requestedΒ about:

Listed here are some solutions (together with them right here doesn’t imply I agree with all of them, however I feel they’re fascinating to consider).

Learn your complete dialog, it had some fascinating concepts; and I at all times prefer to problem my beliefs/rules and take into consideration what I miss or what I’ve to study.

πŸ€” Simon WillisonΒ sharedΒ requested about the right way to discover a CSV file with 100_000 rowsΒ 

He shared his resolution to this query, however there have been a variety of concepts within the dialog.

πŸ€” Brandon WeaverΒ wrote about the right way to promote as a senior:

πŸ€” Jerome HardawayΒ sharedΒ that engineering administrationΒ is so simple as going to all of the conferences so the workforce doesn’t must:

Engineering management is basically going to all the meetings so the rest of the team doesn’t have to.

Supply: @JeromeHardaway onΒ Twitter

πŸ€” CollinΒ sharedΒ an alias for resolving merge conflicts with Vim:

Here's a nifty little alias for resolving merge conflicts with Vim 😊:

Supply: @collin_jilbert onΒ Twitter

πŸ€” Thomas Steiner shared a draft PR about implementing importmaps in WebKit:

🎀 PaweΕ‚ DΔ…browskiΒ sharedΒ the deck he used when delivering the β€œSidekiq on the floor and underneath the hood” presentation at @wrocloverb this yr. See it right here

πŸ“’ Hanami MasteryΒ sharedΒ they’re opening entry for Hanami Mastery PRO – a option to assist their work and likewise get studying advantages in change (early entry to programs and books, neighborhood entry, precedence assist, and extra). Be a part of right here.

🎀 Ruby Conf MiniΒ sharedΒ in a collection of tweets on this foremost thread the audio system at RubyConf Mini. Learn the thread to study extra concerning the audio system and the subjects they’ll deal with.

πŸ“– Aurelie VerrotΒ shared they launched 35 version of Ladies on Rails. Learn the english model right here. This version has the content material localized in French, Italian and Β Spanish

πŸ“– Greg MolnarΒ sharedΒ they launched the most recent This week in Rails

πŸ“– Andrew Mason shared a brand new variety of The Ruby Radar: #69 Turbo Brisket

πŸ“– Sam RubyΒ sharedΒ a expertise preview of what he calls β€œTerraforming Rails”. It’s value studying the RFC for this the place Sam explains what he tries to realize and perhaps additionally see the video demo of the present state of this tech the place he deploys to fly.io a newly created Rails 7 app. I feel (only a private opinion) that that is very near an idea that we may title ActiveDeployment.

πŸ“– Colin LoretzΒ sharedΒ an interactive tutorial he discovered about training PostgreSQL abilities: Improve your Postgres abilities

πŸ“– Kevin MurphyΒ sharedΒ an article they wrote about organising RSpec check doubles. Learn Symmetric Spies: RSpec Take a look at Group

πŸ“– David Colby wrote an article displaying infinite scroll with Rails, Turbo Stream and Stimulus through the use of Turbo 7.2.0. He additionally shared one other article he wrote about Constructing a modal type with Turbo Stream GET requests.

πŸŽ₯ Aaron Patterson introduced he would do a dwell stream with Vinicius Inventory. Subscribe right here to be notified when it should begin.

πŸŽ₯ Hanami MasteryΒ sharedΒ their first episode of Hanamy Mastery PRO about working with ROM repositories. See Leverage ROM repositories

πŸŽ₯ Wroclove.RbΒ sharedΒ all movies from 2022 version. See wroc_love.rb 2022

πŸŽ₯ Adrian Marin shared his presentation at Wroclove.rb about engine automation. See How To Bundle A Rails Engine Era To Automation

πŸŽ₯ Yaroslav Shmarov (Supe Rails Yt)Β sharedΒ their video presentation from WrocLove.rb about utilizing hotwire and viewcomponent in manufacturing. See 18 months of utilizing hotwire and viewcomponent in manufacturing

πŸŽ₯ Drifting RubyΒ sharedΒ the video e-newsletter for This Week in Rails. See This Week in Rails Sept twenty third, 2022

πŸŽ₯ The Rubber Duck Dev Present launched a brand new episode with Andrew Atkinson. Pay attention Scaling All of the Issues! with Andrew Atkinson

🎧 Jason SwettΒ shared the most recent episode of Code with Jason the place he talks with Alex Evanczuk about sustaining massive Rails apps. Pay attention 162 – Giant Rails AppsΒ 

🎧 Ruby For AllΒ sharedΒ a brand new episode about Steady Integration. Pay attention Episode 9 – Getting Began with Continous Integration. If you wish to discover causes to hearken to this podcast, you ought to test this dialogue, the place many individuals gave pretty suggestions about this podcast.

🎧 Andrew Mason shared a brand new episode of Distant Ruby the place they focus on Storybook, Tailwind, parts, JIT and Purge CSS. Pay attention You Gotta Threat It For The Brisket

🎧 Joel Quenneville shared a brand new episode for The Bike Shed the place he talks with Geoff Harcourt about check infrastructure and quicker CI. Pay attention 355: Take a look at Efficiency

🧰 Koichi Ito shared the most recent launch of Haml 6, which is quicker 1.7x than Haml 5. Learn changelog

🧰 Tim Riley shared Hanami 2.0.0.beta3, which now helps reloading contained in the console. Learn changelog

🧰 DHH shared that Turbo 7.2.0 was launched and it has a variety of new options and bug fixes. Test the discharge changelog

🧰 Nate HopkinsΒ sharedΒ that he’s engaged on two librariesΒ  TurboReady including extra energy to Turbo Streams, and TurboReflex, including extra energy to Turbo Frames.

Listed here are some code samples from TurboReady:

And listed here are some examples from TurboReflex:

🧰 Adam shared a brand new library that enables writing net, cellular, and desktop apps powered by Flutter by writing Ruby code. To date, the core works however supporting the UI continues to be WIP. See the undertaking right here.

🧰 Joel Drapper shared they launched Phlex.enjoyable model 0.2.2. Learn the changelog.

🧰 Kasper Timm Hansen introduced a brand new model of active_record-associated_object gem. It now helps code to take away Lively Job boilerplate:

🧰 Sinatra launched model 3.0.0. Learn the changelog.

Please contemplate sharing this on social media or together with your colleagues:

Share



RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments