The concepts in this book aren’t specific to one particular programming language. Because of this, I chose to use a variety of languages to demo the examples in this book. The examples are written in Ruby, Python, and JavaScript, so having a basic understanding of these languages would be helpful.

That being said, I’ve tried to write the examples in such a way that even if you’re not familiar with the language of a given example, you should be able to follow along. To help with this, I don’t always follow the popular idioms for each language where I feel that an idiom may confuse someone new to that particular language.

I understand that having the book switch languages frequently can come with a certain mental switching cost. However, I felt that it was important to keep the book language-agnostic. And again, I’ve tried to keep the code in all languages easy to read and straightforward.

There are some longer code snippets under the headings that read “Code Implementation.” I certainly encourage you to study these code samples, but you don’t necessarily have to understand every last line in order to proceed to the next section of the book. If these long pieces of code are bogging you down, just skip (or skim) them for now.

Finally, it’s important to note that not every code snippet is “production ready.” My greatest focus has been to clarify the concept at hand, and while I did also try to make the code generally complete, I may not have accounted for every edge case. There’s certainly room for you to optimize the code further—so feel free to go crazy with that!