Learn

Hash vs. Dictionary

The Ruby Hash is an implementation of the dictionary concept, where the keys (in the key, value pair) are unique numbers. A dictionary is a

Symbol vs. String in Ruby

For the longest time, I’ve postponed digging deeper to find the differences. I would tell myself I’d eventually find the time to look into it,

How to Test Ruby Modules With Rspec

When you have a module that you include in other classes, the way you test it might not be obvious. This is what I’m going to show you in this tutorial.

Let vs. Let! vs. Instance Variables in RSpec

A common source of confusion when using RSpec is whether to use let, let!, or an instance variable, for storing state. In this article I’ll try to explain the difference between let, let!, and instance variables so you know which one to choose.

If vs. Unless in Ruby

Do you find unless to be confusing? I know I do. Especially if it’s combined with one or more boolean operators.

Ruby's Sort and Sort_by

Ruby’s Sort and Sort_by

The Ruby sort method works by comparing elements of a collection through the spaceship operator, and using the quicksort algorithm.

Why You Too Should Learn Elixir

Why You Too Should Learn Elixir

Learn Elixir not because you will get a better job out of it, but because learning functional programming will make you a better programmer.

What Is a Ruby Reducer?

What Is a Ruby Reducer?

The term comes from the world of functional programming, and it’s often paired with map. You’ve probably heard the term map/reduce if you’ve been in the programming world for more than a few months.

How to Use the Ruby Map Method

How to Use the Ruby Map Method

I think it’s so cool that the Ruby map method exists. It means that Ruby has support for higher-order functions, and functional programming.

How to Use Strings in Ruby

How to Use Strings in Ruby

I remember when I first heard about strings. I wanted to create a command line application that would ask the user for his name and age.