Learning Ruby From the Ground Up
Getting started with any programming language can be daunting. What do you install? Where do you get it? What do you run? What are the common idioms and conventions that Ruby programmers use? Without these articles you'll be fumbling in the dark before discovering these things out by trial and error.
Before you begin programming, you need to have a grasp of the most basic component of a program: the variable. Variables store information and can be used as containers to pass information from one point in a program to another. This section provides an overview of using variables in Ruby.
Strings are one of the most basic types in Ruby (or any programming language, for that matter). Whether you're writing system scripts, web applications or games, strings will be used extensively. Ruby's tools for dealing with strings are extensive and expressive, enough to rival even Perl!
In order for a computer program to have any meaningful effect, it must be able to react differently to changing conditions. The basic form of program flow control in Ruby are conditionals (if statements) and loops (both keyword and method loops). And at the heart of all of that are boolean expressions.
- Boolean Expressions
- Boolean Operators
- Conditional Statements
- The Conditional (Question Mark) Operator
- The Case Equality Operator