An Introduction to Pattern Matching in RubyLet’s start with a brief discussion about pattern matching in Ruby, what it does, and how it can help improve code readability.Jul 28, 2021Jul 28, 2021
The Easiest Way to Monitor Ruby: Automatic InstrumentationSetting up a proper monitoring overview over your application’s performance is a complex task. Normally, you’d first need to figure out…Mar 17, 2021Mar 17, 2021
Using Service Objects in Ruby on RailsThis article has been modified from its original appearance in Playbook Thirty-nine — A Guide to Shipping Interactive Web Apps with…Jun 17, 2020Jun 17, 2020
Diving into Ruby’s #dup and #cloneIn today’s post, we will look into Ruby’s #dup and #clone. We'll start with a real-life example that triggered this interest. After that…Feb 26, 2019Feb 26, 2019
Bindings and Lexical Scope in RubyHappy new year, and welcome back to Ruby Magic! In this winter episode, we’ll dive into bindings and scopes. So put on your skis and…Jan 8, 2019Jan 8, 2019
Don’t be mean: Statistical means and percentiles 101Performance monitoring is an important part of running a successful application. One of the most basic ways to tell the performance of…Dec 4, 2018Dec 4, 2018
Fibers and Enumerators in Ruby: Turning Blocks Inside OutRuby has various ways of performing iteration — loops, blocks and enumerators. Most Ruby programmers are at least familiar with loops and…Nov 27, 2018Nov 27, 2018
Understanding Elixir’s GenStages: Querying the BlockchainIn this edition of Elixir Alchemy, we’ll dive into Elixir’s GenStage module. Along the way, we’ll explain backpressure and we’ll write a…Nov 13, 20181Nov 13, 20181
Testing Asynchronous Threads in RubyThreads and asynchronous environments are initially a bit tricky. Without a good mental model to organize interaction, it is easy to get…Nov 6, 2018Nov 6, 2018
Building a Ruby C Extension From ScratchIn this edition of Ruby Magic, we’ll show you how to use code written in C from Ruby. This can be used to optimize performance sensitive…Oct 30, 2018Oct 30, 2018