Tuesday, May 21, 2024
HomeRuby On Rails๐Ÿ”– Concern #10 - 12-18 September 2022

๐Ÿ”– Concern #10 – 12-18 September 2022


Hey,

Iโ€™m @lucianghinda, the curator of this text. If you would like a brief excerpt of this text containing solely among the photographs with code, I created one right here. However I invite you to learn the complete e-newsletter because it has wonderful content material ๐Ÿ˜Š.

Should you prefer it and need to assist me attain a wider viewers, I’d kindly ask you to depart some suggestions/brief written testimonial that I can show on the About web page.

Depart a brief testimonial

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.

You probably have any suggestions or concepts about this text, please attain out on Twitter or through e-mail at good day@shortruby.com

๐Ÿ‘‰ Thiago Massaย sharedย about the right way to do a correct Ruby memoization in Ruby

๐Ÿ‘‰ Shino Kouda shared an instance of the right way to use enum in Rails with integer kind and this generated dialogue about potential points generated by this strategy and the right way to overpass them:

๐Ÿ‘‰ Josh Cheek shared that when utilizing Postgres, one can outline a Postgres Enum kind. Right here is the gist he created that works by including the enum kind with uncooked SQL. If you wish to do that with Rails 7 it added assist for this enum kind:

Supply: @shortrubynews

If you wish to add a brand new enum, you will want to write down uncooked SQL with ALTER TYPE. See Rails 7 guides for enumerated varieties

About utilizing integers for enums, right here is an efficient dialogue explaining the professionals and cons:

Joel Drapper then proposed utilizing a gem he wrote:

๐Ÿ‘‰ Kirill Shevchenkoย sharedย  an instance of encoding and decoding JSON with gRPC:

๐Ÿ‘‰ Stefan Vermaasย sharedย the right way to show flash messages with Turbo in Rails:

๐Ÿ‘‰ Nate Berkopecย sharedย the right way to profile a whole Rails boot sequence:

There’s a good dialogue there about numerous methods to realize that. Whereas replying to the thread, Jean Boussier did a PR to stackprof gem to make this occur rapidly with the next command:

๐Ÿ‘‰ Shino Koudaย sharedย code pattern about parsing a JSON and instantiating objects utilizing a characteristic of JSON.parse:

Simply word that utilizing OpenStruct will have an effect on your efficiency. Here’s what the official Ruby documentation says about OpenStruct:

๐Ÿ‘‰ Tim Rileyย sharedย a thread about making Hanami quicker:

๐Ÿ‘‰ Kirill Shevchenkoย sharedย a code pattern to point out the right way to open IRB console inside the present scope:

๐Ÿ‘‰ Benito Sernaย sharedย a pattern code about polymorphic rendering with ActiveModel and ActionView:

๐Ÿ‘‰ Justin Searlsย sharedย his opinion about why he recommends individuals to keep away from RSpec.

This generated lots of responses. It’s best to learn the total thread and in addition click on the quoted tweets. Right here is only a abstract, however please learn these two hyperlinks to make up your individual conclusion:

๐Ÿ‘‰ Kirill Shevchenkoย sharedย a code pattern exhibiting curry for procs

๐Ÿ‘‰ Thiago Massaย sharedย a code pattern with .() shorthand syntax for .name:

Joel Drapper additionally added the double dot notation works, and it does the identical:

๐Ÿ‘‰ Nate Hopkinsย sharedย a script to work with libraries which can be incompatible with Turbo Drive as they assume that the doc head is loaded and parsed on each web page go to:

๐Ÿ‘‰ Dave Paola shared that they launched a brand new mission – a improvement company with the mission to be the place the place Junior Ruby on Rails builders begin their careers:

๐Ÿ‘‰ Meghan Gutshall requested a query about the right way to clarify a Ruby class:

Listed below are some replies, however yow will discover extra within the thread:

Should you learn to this point and also you just like the content material, possibly you consider sharing this and subscribe:

Celso de Sรกย requested about what it means to be a mid-level Ruby developer. Listed below are a few of the solutions to this query:

I feel you must also check out โ€œgeekery skillsetโ€ proposed by GeePaw Hill:

Joe Masilotti ๐Ÿ“—ย sharedย a pleasant trick to skip working Github Actions:

Learn the documentation for this right here.

Tobias Petry.Sqlย sharedย a database tip about making the index invisible:

Brandon Weaverย sharedย about seniority and self-marketing:

You may learn the full thread right here or the article Brandon wrote increasing this on this weblog: Past Senior โ€“ The Peacock, the Hermit, and the Counsel

Brandon Weaverย sharedย launched a brand new group targeted on studying Ruby. The discord invitation is this one, and the primary web site is rubylearning.dev. This week we already began working as a bunch on the ebook Rebuilding Rails by Noah Gibbs.

Kasper Timm Hansenย sharedย an replace about his course referred to as Product Targeted Ruby.

Soutaro Matsumotoย sharedย their presentation slidesย from RubyKaigi about the right way to use Ruby varieties. See the slides right here.

Greg Molnarย sharedย a brand new concern of This Week in Rails written by Petrik de Heus

Andrew Mason shared a brand new concern of The Ruby Radar. Learn 68: Hack the Planet!

David Colby shared a brand new concern of Hotwiring Rails. Learn Hotwiring Rails – September 2022

Superior Ruby Publication launched their 330 e-newsletter. Learn 330 Superior Ruby Publication

RubyWeekly revealed its 620 e-newsletter. Learn Ruby Weekly #620

Eric Berryย sharedย that they wrote about the right way to use fswatch to construct a Rails watcher/runner

Joe Masilotti ๐Ÿ“—ย sharedย a listing of 10 of his favourite on-line communities for Ruby and Rails communities.

Joรซl Quennevilleย sharedย about Working Iteratively

๐ŸŽฅ Drifting Rubyย sharedย a brand new episode of the video e-newsletter for This week in rails. Watch โ†’ This Week in Rails Sept seventeenth, 2022

๐ŸŽฅ Joel Drapper shared a session the place he began changing a big ERB to Phlex after which found and stuck a bug. Watch โ†’ Simply attempting out

๐ŸŽฅ The Rubber Duck Dev Present shared a brand new episode with Brittany Martin and Josh Gaastra about Engineering Managers and Product Managers. Watch โ†’ EM vs PM! with Brittany and Josh

๐ŸŽฅ Avo shared a video doing a walkthrough of the brand new options they launched. Watch โ†’ Avo Admin 2.15 for Ruby on Rails

๐ŸŽง Jason Candy launched a brand new episode of the Code with Jason podcast the place he invited Adrian Marin to speak about Avo and the way it’s to make instruments for builders. Hear โ†’ 161 – Adrian Marin, Founding father of Avo Admin

๐ŸŽง Joรซl Quennevilleย sharedย a brand new episode of The Bike Shed with Sara Jackson the place they discuss The Historical past of Computing. Hear โ†’ 354: The Historical past of Computing

๐ŸŽง Ruby For Allย sharedย a brand new episode about Bridgetown. Hear โ†’ Episode 8: What’s Bridgetown. Should you like this it is best to take into account becoming a member of the Jared White Discord group The Spicy Net

๐ŸŽง Distant Rubyย sharedย a brand new episode the place they invited Joel Drapper to speak about Phlex: Hear โ†’ Phlexing with Joel Drapper

๐Ÿงฐ Avo shared they launched a brand new model with lots of options. See the changelog

๐Ÿงฐ Postmodernย sharedย they added ruby 3.2.0 preview 2 to ruby set up. See the changelog right here. Thus now, the next command ought to work:

๐Ÿงฐ JRuby Dev Staffย sharedย they launched model 9.3.8.0 which incorporates โ€œa CVE repair for the Psych YAML library, assist for light-weight fibers utilizing Java 19 digital threads, and a bunch of compatibility and bug fixesโ€. See changelog

๐Ÿงฐ Marco Rothย sharedย that Turbo 7.2 rc1 was launched. See the changelog

๐Ÿงฐ Postmodernย sharedย a gem named sord that can remodel YARDoc into o Sorbet definitions.

๐Ÿงฐ Mike Perhamย sharedย they launched Sidekiq Professional 5.5.4 โ€œfixes a batch race situation which might trigger the batch pending depend to learn -1โ€. See changelog

๐Ÿงฐ Rubygems Informationย shared an replace for a library referred to as Spy which is a brand new approach of mocking:

๐Ÿงฐ Nate Berkopecย sharedย a brand new library fixture_factory that helps to work with fixtures like factories. Here’s a code pattern:

๐Ÿงฐ Andrew Mason shared a brand new library they found Capybara Take a look at Helpers. Here’s what it seems to be like:

Please take into account sharing this on social media or together with your colleagues:

Share

You probably have any suggestions or concepts about this text, please attain out on Twitter or through e-mail at good day@shortruby.com



RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments