New opt-in confirmation

Thanks! You’re almost done 🙂Please complete the sign-up process now by following 3 quick steps: 1.Open the inbox of the email address you used to sign up. 2.Find the email I just sent you (from Jesus Castello) with the subject line: “Ruby Guides – Confirm your email address!” (Gmail Users: You may have to check your Notifications / Promotions tab.) 3.Click … Read more

About Jesus Castello

Jesus Castello – Author @ RubyGuides.com Hey!My name is Jesus Castello, I’m a 37-year old Ruby developer, technical writer & mentor from Spain. My mission is to help as many people as possible improve their Ruby skills so they can tap into the full power of this amazing language, write better code & be proud of … Read more

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 … Read more

Exploring MRI Source Code

If you have been using Ruby for a while you may be curious about how some things work under the hood. One way to dig deep into Ruby internals is by reading the source code that makes it work. Even if you don’t know C, you can still pick up some interesting things. The source … Read more

The Ultimate Guide to Blocks, Procs & Lambdas

Ruby blocks, procs & lambdas. What are they? How do they work? How are they different from each other? You will learn that & a lot more by reading this post! Understanding Ruby Blocks Ruby blocks are little anonymous functions that can be passed into methods. Blocks are enclosed in a do / end statement … Read more