The Best Ruby Tutorials!

Hey!

While you are here you should pick up my FREE 'Become a Better Ruby Developer' guide
which contains free resources & actionable tips you can start using right now.

Just drop your email below and I will send it to you :)

Latest Articles

ruby ranges

Ruby Ranges: How Do They Work?

Have you ever wondered how ranges work in Ruby? Even if you haven’t, isn’t it fun to discover how things work under the hood? That’s exactly what I’m going to show you in this post. Understanding Ranges Just as a reminder, this is what a Ruby range looks like:

The parenthesis are not necessary […]

ruby standard library

5 Useful Examples From The Ruby Standard Library

The Ruby Standard Library is a series of modules & classes that come with Ruby but are not part of the language itself. These classes offer a variety of utilities like Base64 encoding, prime number generation & DNS resolution. In this article I’m going to show you 5 of these classes with useful examples. Unique […]

weighted random numbers in ruby

How to Generate Weighted Random Numbers

Random numbers usually follow what we call a ‘uniform distribution’, meaning that there is the same chance that any of the numbers is picked. But if you want some numbers to be picked more often than others you will need a different strategy: a weighted random number generator. Some practical applications include: the loot table […]

metaprogramming ruby

Metaprogramming in The Wild

You may have read about Ruby metaprogramming before & maybe you have used it in some of your projects, but how are some of the most popular open-source projects making use of this feature? Find out in this post! Rails Example Rails makes heavy use of metaprogramming, so it’s a good place to start looking. […]

ruby twitter api

Learn to Use the Twitter API with Ruby

Do you want to learn how to write a Twitter application using Ruby? Then you are in the right place! In this post I will teach you, step-by-step, how to create a program that can interact with the Twitter API and do things like looking for certain keywords or send automated replies. Let’s get started! […]