State Machines in Ruby: An Introduction

A state machine can hold all possible states of something and the allowed transitions between these states. For example, the state machine for a door would have only two states (open and closed) and only two transitions (opening and closing).


An Introduction to Pattern Matching in Ruby

This post looks at the new pattern matching support for Ruby 2.7+ and how we can use it to make our code more readable.