Ruby Explained: Arrays
This post will get into Arrays, which is where you really start seeing some of Ruby's cool programmer-friendly features
Arrays are almost as ubiquitous as strings. You'll be working with them all the time to help store data, everything from the names of all your users to coordinates on a game board. An array is an all-purpose bucket into which you can put pretty much anything.
Here, you'll learn the basics of creating arrays, how to manipulate them in a dozen different ways, and some best practices for working with arrays. Note that we'll be learning even more about how to dig around inside of arrays in a future lesson, so if you're excitedly waiting to better understand #each
, #map
and others like them, we're almost there! If not... you will be.