πŸ’» Short Ruby News - The Code Edition #40

Briefly about everything happening in Ruby world - week 17 of 2023

You can jump directly to a section:

πŸ‘ Our Community

For just a small amount of $1.5 per week (only $6.5 a month), you can become a valued paid subscriber and actively support the thriving Ruby community we all love!

πŸ‘ Our Community

πŸ‘ Friendly.Rb announced an update about the conference and proposed a new sponsorship package Read the full announcement

πŸ‘ Ruby Unconf announced their agenda visit 2023.rubyunconf.eu to find out:

πŸ‘ Naofumi Kagami shared that rubycentral.org launched membership:

πŸ‘ Brandon Weaver announced they would restart the SF Ruby meetups:

πŸ‘ Jason Swett announced they would start a couple of online presentations on ChatGPT-assisted-TDD. Register at codewithjason.com/meetup

πŸ‘ Koichi Ito announced that rubocop-rails now passed over 100M downloads:

πŸ‘ DragonRuby community is organizing a Game Jam:

πŸ‘‰ All about Code and Ruby

πŸ‘‰ Akshay Khot asked a quiz about what is wrong with the following Ruby code:

If you are curious about the answer, Akshay explored this in his article Can you spot the error?

πŸ‘‰ Akshay Khot shared a code sample showing various ways to use case statements in Ruby. He extended this into an article Ruby's Switch Statement is More Flexible Than You Thought

πŸ‘‰ /u/BringTacos asked about how to build a web app in Ruby without any framework:

Here are some of the answers:

And two comments showing in a few lines how to do this:

πŸ‘‰ u/RecycleAt10k asked a question about using the subject in RSpec:

First, I invite you to read the entire post (here, I only screenshot a part). Here are some of the replies:

There is a good discussion, and people are adding very good arguments in both directions.

πŸ‘‰ u/RailsPro asked about what a day looks like as a Rails developer:

There are a lot of replies from solo founders, work-from-home employers, and team leaders.

πŸ‘‰Dave Copeland shared a comment about the first time running a new Rails app test with fixtures when using foreign key constraints:

Brian Kephart replied with some possible solutions:

πŸ‘‰Stephen shared a security risk of setting the domain for cookies to :all in Rails:

Here is the paper Stephen linked in their post: Oversharing Is Not Caring: How CNAME Cloaking Can Expose Your Session Cookies he also wrote an article explaining in detail the security risk and various mitigation strategies for Rails: Rails session cookie domain: :all - beware of CNAMEs!

πŸ‘‰Joel Drapper shared a new feature for green_dots test framework:

Joel shared in the thread how he builds the code to achieve:

πŸ‘‰Greg Navis shared a thread about ActionDispatch::Executor

Greg is doing a great job of following what codes do and navigating the Rails code base.

πŸ‘‰Joel Drapper shared a code sample showing how to define conditional classes in Phlex:

πŸ‘‰Mike Dalessio shared their decision process about upgrading Nokogiri:

πŸ‘‰Xavier Noria shared a one-liner to run Rubocop only on the files created or modified:

πŸ‘‰ Vladimir Dementyev shared a diagram for choosing between MRSK and alternatives generated based on the article MRSK: hot deployment tool to watchβ€”or a total game changer?

πŸ‘‰Alexandre Ruban shared a new thread about how to work with Markdown in Rails. You can follow their project on Github at alexandreruban/ruban-on-rails

πŸ‘‰ Greg Navis shared a thread about Rails 7 error handling infrastructure. There are a lot of examples about how it works. Here is one about how to report and error and continue with normal program execution:

πŸ‘‰ Matt Swanson shared a code sample showing how to use ViewComponent with mailers:

πŸ‘‰Ruby Cademy shared a thread about scopes in Ruby:

πŸ‘‰Stan Lo shared a reminder about installing IRB as a gem

πŸ‘‰Amir Rajan announced that DragonRuby is free until 6th April 05:00 UTC. Get the toolkit at KIFASS Game Jam

🀞 I imagine that if you have read this so far, you find value in this newsletter.

🧰 Gems, Libraries, and Updates

🧰 View Component announced the release of v.3.0.0 of view_component gem Read the changelog

🧰 Obie Fernandez published a Rails 7 app magma-chat

🧰 Avo announced a new release v 2.31.0. Release notes

🧰 Okura Masafumi announced a new release of alba (JSON serializer) Release notes, and you can check out the changes

🧰 Ryan Bigg announced the release of v.1.13.0 of i18n gem Read the release notes

🧰 Mark Perkins announced that Lookbook v2 is now out of beta:

🧰 Justin Searls announced the release of standard-rails:

🧰 Xavier Noria announced a new release of Zeitwerk version 2.6.8, read the changelog

Please consider becoming a paid subscriber to support this newsletter for just $1.5/week ($6.5/month). Your contribution aids growth and maintains the quality of ShortRuby for everybody:

If you consider upgrading and want more information, please read Why to subscribe to paid

🀝 Related (but not Ruby-specific)

🀝 Donn Felker shared about the importance of writing good tests:

🀝 Jason Swett shared about how to use ChatGPT more effectively:

You can read The Content Edition if you want to discover the content created in Ruby World in week 17 of 2023:

Please consider becoming a paid subscriber to support this newsletter for just $1.5/week ($6.5/month). Your contribution aids growth and maintains the quality of ShortRuby for everybody:

If you consider upgrading and want more information, please read Why to subscribe to paid

Reply

or to participate.