Ruby Tutorials

Using Regular Expressions (RegEx) in Ruby

You may have heard of RegEx, which is short for regular expressions. It can come off as intimidating, but it’s not too bad once you get used to what the patterns mean and how to construct an actual expression and…

Ruby Each with Index

When you’re programming, you’ll use and encounter various data structures including arrays and hashes. Eventually, you’ll want to iterate through each item in an array or hash to extract or transform the information in these data structures. The ability to…

Ruby For Loop

As developers, our goal is to write succinct and effective code. Loops are one way to cut down on unnecessary code. In Ruby, there are several types of loops including `while`, `for`, `do..while`, and `until` loops. In this article, we’ll…

How to Build a Command Line Interface Using Ruby

Are you considering building a command line interface? That’s a great project idea! In this guide, we discuss how to build a command line interface in Ruby. Before we get started, you should have Ruby installed on your computer, and…

Ruby String Methods

Manipulating text is a common operation in many programming languages, and Ruby is no exception. For example, you may want to capitalize someone’s name before it is printed on an invoice, or you may want to replace someone’s apartment number…

Ruby If Statement

When you’re programming in Ruby, you may want to run certain code only if a condition is met. For example, you may want to stop a customer from buying a product if there is no stock left in inventory, or…

Ruby Array Methods

Arrays are a data type that allows you to store lists of data in your code. Data in an array can be sorted, reversed, extracted, and amended. You can also search through an array to find a specific value, and…

Ruby While Loop

Loops are used in a number of programming languages to perform a similar task multiple times. For example, if we wanted to print out the name of every employee in a list, we may want to use a loop. Or…

Get matched modal

Find the best bootcamp for you

Our matching algorithm will connect you to job training programs that match your schedule, finances, and skill level.