DEV Community

Cover image for What I wrote about Ruby this week #2
Lucian Ghinda
Lucian Ghinda

Posted on • Originally published at allaboutcoding.ghinda.com

What I wrote about Ruby this week #2

Monday

My week started (as it always starts) with publishing the Short Ruby Newsletter on Monday

Short Ruby Newsletter - edition 114

Tuesday

I followed up on Tuesday with another series that I am starting that I call โ€œThree Ruby Linksโ€

Three Ruby Links #9

Wednesday

During my GoodEnoughTesting workshops we discuss in the beginning expectations from the training. There is always an expectation about best practices when writing tests and I tried in this article to pin down some high-level simple rules that I try to apply when writing test code

Tests should be simple

Thursday:

This is a small post showing how to use pattern matching in Ruby to check if an array is empty, not empty, or has some specific kind of objects inside

Using Pattern Matching in Ruby to act based on array contents

Friday

I was reading this article by Vladimir Dementyev and noticed an example of using RBS inline. Then I read the source code and noticed how he uses Prism to parse method definitions together with RBS type and generate function definitions for LLMs

RBS inline code sample from Anycable example


If you like this article:

๐Ÿ‘‰ Join my Short Ruby Newsletter for weekly Ruby updates from the community and visit rubyandrails.info, a directory with learning content about Ruby.

๐Ÿ‘ Join my live workshop about goodenoughtesting.com - to learn test design techniques for writing effective tests

๐Ÿค Let's connect on Bluesky, Ruby.social, Linkedin, Twitter where I post mostly about Ruby and Ruby on Rails.

๐ŸŽฅ Follow me on my YouTube channel for short videos about Ruby/Rails

Top comments (0)