Series

Ruby

A journey in the beautiful yet powerful programming language Ruby.

Articles in this series

Ruby blocks made easy, part I, methods and procs

Jul 23, 20214 min read

Blocks in Ruby are powerful structures that are part of our daily basis as Ruby developers. We see them being used across a variety of standard classes as well as in almost every popular gem. A few examples: # print each number within an array [1, 2...

Ruby blocks made easy, part I, methods and procs
Ruby blocks made easy, part II, curry and procs as arguments
Ruby blocks made easy, part III ~grand finale~, blocks and syntactic sugar
Quicksort, a Ruby implementation using Test-driven development
Boilerplate for a containerized plain Ruby application
How to reduce the time complexity of nested loops