- Short Ruby Newsletter
- Posts
- π» Short Ruby News - The Code Edition #40
π» 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:
π Emmanuel Hayford shared a summary of Rails World conference:
π 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:
Rebuilding Rails book where you learn how to build Rails from scratch
A series of articles from Akshay: Build a Web Application in Ruby Without Rails, Rendering Views Dynamically using ERB, The Definitive Guide to Rack for Rails Developers, Middleware in Rails: What It Is, How It Works, and Examples
RailsConf 2014 - Web Applications with Ruby (not Rails) by David Padilla
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:
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:
π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
π§°Andrew Kane announced a new gem Mapkick Static - Create beautiful static maps with one line of Ruby
π§° 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:
π§° Nejdet Kadir announced their new gem sidekiq-aws-sqs: Sidekiq extension that provides an easy way to poll and process messages from AWS SQS (Simple Queue Service) queues within a Sidekiq worker
π§° Dima Fatko announced a new gem fast_count: Quickly get a count estimation for large tables (>99% of accuracy for PostgreSQL)
π§° Xavier Noria announced a new release of Zeitwerk version 2.6.8, read the changelog
π§° Truffle Ruby announced a new release of truffleruby Read the changelog for 23.0.0-preview1
π§° Obie Fernandez published a Rails app instant18n: Uses the power of OpenAI's GPT large language AI models to generate translations for your application
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