Edition #14 - 10-16 October 2022
The one with the map of Ruby books
If you want a short excerpt of this newsletter containing only some of the images with code, I created one here. But I invite you to read the entire newsletter as it has excellent content 😊.
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 in the newsletter.
Prepend is like include, it adds the method as the instance method, but while prepend places the module at the beginning of the ancestors' chain, including places it after the class in which it was included.
Pawel wrote a detailed article about this: Extending Ruby Classes
So prepend is like, reopening the class and redefining methods, but only you can still call the methods that you redefine, by using Super.
Here is a summary of some of the replies in that thread:
It is also worth reading the tweet from Xavier Noria:
Kirill also shared three more ways for more complex manipulations:
This seems to be a problem in Ruby/Rails world, as there are very few jobs for juniors. Thus, this does not attract so many people. I think you should read all the replies. It is hard to summarise them here.
And this reply from Morgan VanDerLeest:
If you have read so far and you like the content, maybe you take into consideration sharing this and subscribing:
Related (but not Ruby-specific)
Here is a summary of the replies comparing `git rebase main` with `git merge main`:
Here are two more tips shared in the replies to this tweet:
Articles and Videos
Something to read
🗞 Greg Molnar shared a new edition of This Week in Rails: Read Column information in ERB template exceptions, migration option validation and more!
Eric Berry shared an article written by Julian Rubisch about deploying a Reactive Rails application to @flydotio
Janko Marohnić shared an article they wrote about What It Took to Build a Rails Integration for Rodauth
Something to watch 🎥 or listen 🎧
🎥 Yaroslav Shmarov shared a new video about Setting up Github Actions CI (run Tests, Rubocop, Erblint)
🎥 Adrian Marin shared the presentation done by Yaroslav Shmarov at @wrocloverb about 18 months of using hotwire and viewcomponent in production. Yaroslav shared the slides used in that presentation here
🎧 Audio & Podcasts
🎧 The Ruby on Rails Podcast shared a new episode with Andy Croll. Listen Episode 439: One More Podcast Pitch with Andy Croll
🧰 Gems, Libraries, and Updates
🧰 Bridgetown shared the latest release of Bridgetown version 1.2: Bridgetown 1.2 “Bonny Slope” Takes Your Applications to the Next Level
🧰 Vinicius Stock shared an update for the Ruby LSP server gem and for the VSCode plugin. Read the changelog for Ruby LSP Server and the one for the VSCode Plugin. It is also worth taking a look at the documentation.
It automatically generates JSON-Schema from #jbuilder templates, which is useful to auto-generate OpenAPI documentation of your existing APIs.
🎵 Music for coding
A random selection of coding music:
Coding Playlist | (almost) No Vocals - Spotify - electronic music
Inspired Moment for Coding - Spotify - modern jazz
If you enjoyed this and want to receive the newsletter weekly in your inbox, consider subscribing: