In today's video, learn a concise and expressive syntax for merging several Ruby hashes into one!
Tag: literals

Make big numbers readable in Ruby
Quick! How many zeroes are in 1000000000000000? Large literal numbers may be a cinch for the computer to read, but they aren't very friendly to human eyes. Take 45 seconds …

Use beautiful binary literals in Ruby
Stop trying to remember octal permission codes. Instead use beautiful binary literals in your Ruby code!

Episode #513: Literal Expectation
In tests is it better to assert against model attributes, or against literal values? In this episode, you'll see why one option is clearly preferable to the other.

Episode #509: Logical Matrix with Piotr Szotkowski
Use an obscure feature of Ruby integers to efficiently store large matrices of boolean data.

Episode #379: Squiggly Heredoc
This page is just for members. Sign in or subscribe to gain access! Username Password * Remember Me Forgot Password

Episode #247: Multiline Strings
Today we'll compare a few different ways to quote large, multi-line blocks of text.

Episode #232: Range
Good morning diners! On today's menu, we have a deep exploration of Ruby's Range type. Even if you've used ranges before, you might find something new to chew on. Enjoy!