- Short Ruby Newsletter
- Posts
- Issue #5 - 8-14 August 2022
Issue #5 - 8-14 August 2022
The one with some optimization ideas
Hello,
Thank you for subscribing to this newsletter. It might be too long for some email clients, in this case, please read it online here. No worries, even if it is long, it is easy to read 😀 as it contains tweets.
If you like it and have suggestions of people working with Ruby and sharing exciting stuff on social media, please find me on Twitter @lucianghinda and tell me about them.
This edition was created with support from @adrianthedev from Avo for Ruby on Rails (a friendly full-featured Rails admin panel) and from @jcsrb, who sent me recommendations to include.
Avdi Grimm shared why Ruby feels simple:
Bozhidar Batsov shared his vision about how Rubocop embraces regional dialects of Ruby:
Joel Drapper shared more about the progress to make Phlex.fun faster
If you want to learn more about performance improvements done so far, Joel invited us to browse the pull requests tagged with performance.
Here is the latest performance benchmark:
Steve Polito shared an example of using aggregate functions in PostgreSQL:
Benito Serna explained when chaining works or does not work with ActiveRecord:
Penelope Phippen asked a good question about the annoying part of Ruby devs:
Here are some examples of annoyances from that thread
Setting up a new machine
Choosing a debugger
Documentation UX
“unjustified” Rubocop rules breaking CI
Flaky Capybara/Selenium/Headless-chrome tests
Using Docker on Mac
Installing native extensions
Emmanuel Hayford shared a TIL about threads spawned by MRI/YARV
Greg Molnar shared an excellent thread about using the single-file Rails application. Read the all thread starting from here. The final file might look like this:
If you want to try this with Ruby 3, you need to add webrick gem to the list of gems (source).
Josef Strzibny shared a Docker snippet about how to configure Bundler:
Benito Serna shared two simple solutions to N+1 queries when the child model needs to be ordered in a specific way. Here is one example from the thread:
Other people suggested some other ways:
Benito posted other tweets about preloading associations: preloading belongs_to and has_many associations, preloading nested associations.
Gustavo Valenzuela shared they are creating a list of open-source #rails projects:
Andrea Fomera shared a tip about using ActiveRecord#signed_id:
EK shared a new board created on RubyOnRemote.com about Ruby developer’s salaries:
Akshay Khot shared a quick spec about how defined? keyword works in Ruby. The article goes a bit deeper into examples:
Nick Schwaderer shared an experiment with CGI in Ruby:
Martin Spickermann reshared an older tweet showing performance for a Rails API:
Piotr Murach shared some excellent Ruby CLI gems created by Andrew Kane:
Kirill Shevchenko shared a short Ruby code example about calling a deleted method:
Andrew Culver shared how easy it is to install Ruby on Rails on a new M2 Macbook Air:
Related (but not Ruby specific)
Aaron Patterson voiced a great idea to think about software:
Rose W wrote an excellent thread about how to start a new project. You should read it all but here are just two quotes:
Harry Llewelyn shared a small tip about using two submit buttons on a form:
Markus Tacker asked an interesting question about the time spent on job applications:
There are a lot of interesting replies to this poll worth reading.
Tobias Petry shared a new database tip about storing tags in JSON array:
Richard Bradshaw asked a question about changing naming the role of a tester and received a lot of thoughtful replies:
Joel Drapper asked for resources about writing excellent technical documentation:
Among the recommendations:
Write Useful Books
The Developer’s Guide to Content Creation
On Writing Well: The Classic Guide to Writing Nonfiction
Docs for Developers
Santosh Yadav shared a quick Git Tip that will push new branches to default remote and will set upstream tracking:
If you read so far and you like the content, maybe you take into consideration sharing this and subscribe:
Articles and Videos
Courses
Cezar Halmagean shared his Rails course that now includes a Hotwire section: Become a Ruby on Rails Developer
Andrea Fomera launched a new course: Learn Rails by Building Instagram
Something to read
Tim Riley wrote an OSS update for May-July where he shares the vision for Hanami 2.0 application structure and much more.
Matthew Gaudet shared an article he wrote about improving Ruby speed by using OMR: Faster Ruby: A Ruby+ OMR Retrospective. The replies to the tweet sharing this article are also worth reading.
RUBYLAND shared an article written by Benito Serna about a gem he created that allows creating a running active record example: Active Record Playground Runner Introduction
r7kamura wrote an article about BUNDLE_ONLY - an option that will allow installing gems only from a specific group(s): BUNDLE_ONLY is now available
Akshay Khot wrote an article about How to Check if a Variable is Defined in Ruby
timnan wrote an article about CRUD Actions with Turbo Streams and Turbo Frames
Katya Kalache shared an article by Guillaume Montard and Tanguy Joannot about How to secure a Ruby on Rails App.
Greg Molnar shared the new issue of This week in Rails.
r7kamura shared an article they wrote about Release notes management.
Hiroshi SHIBATA shared an article about Understanding /proc
Rails Links shared a link about a new open source Ruby project: Multi Blogging Platform
Ruby LibHunt shared an article written by Kanani Nirav about Debugging a Ruby On Rails Application in Visual Studio Code
Andrew Mason shared a new issue of Ruby Radar: Ruby Radar #63 - Monitoring Air Quality with Ruby
Something to watch or listen
GoRails published a new episode about writing Ruby on a Raspberri Pi to collect Air Quality. See it here → Air Quality Monitoring with Ruby and Raspberry PI
therubyonrailspodcast published a new episode of The Ruby on Rails Podcast. Listen to it here → Dearly Departed (Brittany + Jemma)
Dean DeHart shared a new video they uploaded about extending Rails 7 Trix Action Text with an emoji pop-up picker: See it here
Ruby for all published a new episode about best resources for juniors: Listen to it here → Best Resources for Juniors in 2022
Drifting Ruby shared a video log about This Week in Rails - 2022-08-12. Watch it here - This Week in Rails.
CJ Avilla shared a video made by Mike Rogers. See if here → Resize Images with Active Storage in Rails
Remote Ruby published a new episode. Listen to it here → Rubygem Idea for Juniors, Modern Assets in Rails & George Jetson's Birthday
New libraries and updates
Samuel Williams announced that Rack 3.0.0.beta1 was released. See the release here tagged with 3.0.0.beta1, and it is worth reading the Changelog and Upgrade Guide
Bozhidar Batsov announced the release of Rubocop 1.34, containing a lot of bug fixes and small improvements and then the release of Rubocop 1.35
Maciej Mensfeld announced a release of Karafkja 2.0 having a lot of nice new features:
Stan Lo announced that debug.rb released a new version 1.6.2 that contains important bug fixes. See changelog here.
Jeremy Evans shared the release of Roda 3.59.0. See the changelog here
Jean Boussier shared he started to work on redis-rb 5.0
Outro
Thank you for reading this. If you have any suggestions of people/tweets to include, please reach out to me @lucianghinda or at [email protected].
Reply