About Idiosyncratic Ruby
Ruby is not only optimized for developer happiness, but also for writing concise one-liners. The language is extremely expressive, but this comes at a price: Ruby's grammar definition is more than 10000 lines long, the language is at its limits, and there is not one editor or syntax highlighter that actually highlights Ruby correctly.
Idiosyncratic != Bad
Ruby is a great tool (a pickaxe?) and it is better to know your tools well. You should know Ruby's meta programming API for methods, although it is not optimal. It is also good to know about unusual ways of creating local variables. Having a good understanding of Ruby's low level and its edge cases helps you to concentrate on solving the real problems. It also helps shaping new best practices. And it is fun.
What You Will Get
- Learn how to impress your co-workers with obscure Ruby tricks
For example: Advanced regex magic
- Get a lot of tables comparing things and telling you what to use
For example: A comprehensive overview of Ruby's standard library
- Learn about lesser-known Ruby command-line options
For example: An option to remove garbage
- Master Ruby's less common grammar features
For example: All 210 different syntaxes to create strings in Ruby
Ruby Moves On
The aim of Idiosyncratic Ruby is to document lesser-known features of Ruby as a series of blog posts. All the content is on GitHub, enabling it to live beyond its publish date.
The articles were published in three batches:
- Episodes 1 to 31 in May 2015
- Episodes 32 to 62 in May 2016
- Episodes 63 to 66 in May 2018
Last update: March 12, 2019
Jan Lelis is a freelance developer and he is ruining his Ruby style since late 2009. Back then, he was very unhappy with the IRB command-line experience. That is why he ended up writing the Irbtools gem, which makes using IRB more enjoyable.