Stringing Us Along

Today we are going to talk about strings, specifically in Ruby: What are they? How do I make them? What can I do with them? By the end, both of us should have a lot of good information in one place so we don’t have to hunt for it later.

What is a string?
A string, at its most fundamental level, is a collection of bits and bytes. At a people-level, it’s the letters and other characters we use to make sentences. When I think of strings, I think of sentences first. Strings can be a lot of things: a letter, a punctuation mark, a space, jibberish — but it’s code that doesn’t represent something else, unlike a variable or a class.

For example:

Read More