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

2

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)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay