ruby

Dec
04
Catching and throwing in Ruby

Catching and throwing in Ruby

Nothing to do with exceptions, ruby's catch and throw
1 min read
Oct
01
Is it an Integer?

Is it an Integer?

Casting strings to integers without exceptions
1 min read
Aug
27
Parsing a Gemfile

Parsing a Gemfile

Parsing a Gemfile programmatically to find out what it contains
Jun
29
Open3

Open3

Ruby's has lots of ways of forking a process, the obsure one is the best
1 min read
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