Skip to content

About: Ruby Programming

← Back to deck

50 cards

Overview

This deck walks you through some of the core building blocks of the Ruby programming language, from everyday data structures like arrays and hashes to the more distinctive features that set Ruby apart, such as blocks, procs, and lambdas. You will also explore the object-oriented side of the language, including how classes are defined, how instance and class variables differ, and how modules and mixins let you organize and share behavior across your code. Together, these cards cover the kinds of concepts that come up constantly when reading or writing idiomatic Ruby.

It is a good fit if you are relatively new to Ruby and want to firm up your understanding of its fundamentals, or if you have some experience with another language and are picking up Ruby for the first time. The questions about procs versus lambdas, and modules versus mixins, are especially useful if you are preparing for a technical interview or a coding assessment, since these distinctions are commonly tested.

Because many of these topics come in pairs that are easy to mix up, try to think about the relationships between concepts as you study, for example why you might reach for a lambda over a proc, or what a mixin really is under the hood. Spacing your review sessions over several days, rather than cramming everything in one sitting, tends to help these distinctions stick. If you can, follow up each card by writing a short snippet of Ruby on your own machine to test the idea in practice.