learn
learn
The Adapter Pattern in Ruby
The Adapter pattern allows you to make incompatible objects work well together by using an adapter object....

The Strategy Pattern in Ruby
In this post we're going to take a look at how the Strategy Pattern works in Ruby....

Symbols vs. Strings in Ruby
If you're curious, as I was, about which one to choose, or why there are both available, or which one is better, then keep reading as I will explain everything you need to know about the differences b...

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 general concept that maps unique keys to non-unique values....

What is Type-Driven Design/Development in Ruby
Type Driven Development and Ruby might sound like apples and oranges but it's actually very useful....

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....

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 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 instanc...