Latest

Jun
14
Clean Monkey Patching in Ruby

Clean Monkey Patching in Ruby

I have a library and I want to change some of its behaviours. I could straighout monkey patch, or I could be a lot cleaner
1 min read
Apr
24
Ruby #itself

Ruby #itself

Ruby’s unusual Kernel#itself method
1 min read
Apr
09
Ruby's tap and then

Ruby's tap and then

The tap and then methods are awesome ways to build functional pipelines, here's the simple difference between them
Mar
15
Ruby's Looping Suffixes

Ruby's Looping Suffixes

One-line looping in Ruby
Mar
12
Tail Call Optimisation in Elixir & Ruby

Tail Call Optimisation in Elixir & Ruby

Surviving without looping
2 min read
Mar
11
Default Values for Ruby Hashes

Default Values for Ruby Hashes

Setting a default for ruby hashes which returns a new object
Feb
04
Playing with Ruby Ractors

Playing with Ruby Ractors

Exploring Ractors with Ruby 3.0
3 min read
Dec
13
Fun with Ruby Pattern Matching

Fun with Ruby Pattern Matching

Pattern matching emerged in experimental status in Ruby 2.7, I got my first chance to properly play with an implementation that uses it
2 min read
Oct
29
A Gem that Provides Rake Tasks

A Gem that Provides Rake Tasks

I'm building a Gem and I want it to provide Rake tasks when it is used in other projects
1 min read
Oct
28
ActiveRecord without Rails

ActiveRecord without Rails

I needed a quick and simple database to use with a plain old ruby project, taking ActiveRecord on it's own is pretty easy
3 min read