Tutorials

Understanding Ruby - Enumerable - Intro and Interfaces
Enumerable. Debatably one of, if not the, most powerful features in Ruby. As a majority of your time in programming is dealing with collections of items it's no surprise how frequently you'll see it used.This first article will cover implementing ...



Tip: Use Rails `cycle` to avoid `i % 2 == 0` in your view loops
Sometimes you need to keep track of how many times you’ve looped when rendering some views, for instance to alternate background colors to create a “striped”.Sometimes you need to keep track of how many times you’ve looped when rendering some view...

Checking Ruby C extensions for object movement crashes
This guide intends to help Ruby native extension maintainers upgrade libraries to be compatible with GC.compact. Application developers can also use this guide to check applications for compaction compatibility. At the time of writing, the latest ...

The Gnar Blog - Using Sonic Pi To Play Music With Ruby
My RubyConf 2020 talk about Ruby's Coverage module uses examples about playing live music. As such, I had the ambitious goal of delivering a live performance of some music during the presentation. This ended up getting cut for a variety of reasons...


Let's make Tetris with DragonRuby Game Toolkit! (Part 1) - YouTube
Let's build Tetris with DragonRuby Game Toolkit!Programming experience needed, but you don't need to be a game developer or know Ruby.Definitely crank this up to HD and maybe go fullscreen, so you can see my tiny font. :) I'll do a second part,...

Definitive Pattern Matching - Array-like Structures
This is the start of a series on Ruby Pattern Matching, the goal of which is to provide a definitive reference on the nuances, best practices, and common usages of Pattern Matching, a new feature introduced in Ruby 2.7.For this post we'll be takin...