Image of Lucian Ghinda writing for notes.ghinda.com Short Notes
September 3rd, 2024

Three Ruby Links #3

If I were to recommend three articles published last week to read, here is what I would recommend:

1️⃣ The Thread API : Concurrent, colorless Ruby by JP Camara

Screenshot from a part of the article "Ruby shebang behavior"
Excerpt from "The Thread API : Concurrent, colorless Ruby"

JP Camara continues their series about concurrency, parallelism, and async programming  and this one is about threads. It is a deep dive into Ruby threads with a lot of code samples.

2️⃣ Ruby shebang behavior by Ashok Gautham Jadatharan

Screenshot from a part of the article "Ruby shebang behavior"
Excerpt from "Ruby shebang behavior"

Ashok found an interesting allowed behavior from CRuby interpreter that allows to create scripts that can run both bash and Ruby commands. The article shows code samples about how to do this.

3️⃣ How to test graphql-ruby responses by Dmitry Tsepelev

Screenshot from a part of the article "Ruby shebang behavior"
Excerpt from "How to test graphql-ruby responses"

Dmitry is writing a good tutorial about how to test GraphQL using RSpec, but the ideas presented here can be applied also to Minitest. The code samples are clear, with comments to understand pros and cons.


You can find a lot more articles to read in the full edition of Short Ruby Newsletter at https://newsletter.shortruby.com/p/edition-105

Check out the schedule for https://friendlyrb.com - a conference I co-organize in September this year in Bucharest, Romania. We will have exciting talks and a relaxing atmosphere to meet new Ruby developers.