Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.


Learn Ruby

via Codecademy


Learn to program in Ruby, a flexible and beginner-friendly language used to create sites like Codecademy.

### Why Learn Ruby?

Ruby is a general-purpose language that is still popular and in high demand in the marketplace, as it's more commonly used in Rails applications.

Concise and readable, it is easy to pick up but also plenty powerful. Companies like Twitter, Soundcloud, Goodreads, and Kickstarter got their products off the ground with Ruby.

### Take-Away Skills:

In this course, you will gain familiarity with Ruby and basic programming concepts—including variables, loops, control flow, and most importantly, object-oriented programming.


  • Introduction to Ruby: Learn about Ruby, an object-oriented scripting language you can use on its own or as part of the Ruby on Rails web framework.
    • Lesson: Introduction to Ruby
    • Lesson: Putting the Form in Formatter
  • Control Flow in Ruby: Learn how to write more complex programs that can respond to user input.
    • Lesson: Control Flow in Ruby
    • Lesson: Thith Meanth War!
  • Looping with Ruby: Learn to use loops and iterators to automate repetitive tasks.
    • Lesson: Loops & Iterators
    • Lesson: Redacted!
  • Arrays and Hashes: Learn about arrays and hashes, including how to iterate over these data structures.
    • Lesson: Data Structures
    • Lesson: Create a Histogram
  • Blocks and Sorting: Learn how to define your own methods, as well as how to use blocks to develop powerful sorting algorithms.
    • Lesson: Methods, Blocks, & Sorting
    • Lesson: Ordering Your Library
  • Hashes and Symbols: Learn more about Ruby’s _hash_ data structure including its various syntaxes, relationship with _symbols_, and the commonly used methods it
    • Lesson: Hashes and Symbols
    • Lesson: A Night at the Movies
  • Refactoring: Learn how to refactor code with Ruby’s best practices and conventions in order to vastly improve the readability and structure of a program.
    • Lesson: The Zen of Ruby
    • Lesson: The Refactor Factory
  • Blocks, Procs, and Lambdas: Learn the similarities and differences between a _block_, _proc_, and _lambda_ as well as the various circumstances in which each one can be
    • Lesson: Blocks, Procs, and Lambdas
  • Object-Oriented Programming, Part I: Learn how to organize information and behavior in a program with Ruby’s object-oriented concepts such as classes, objects, and inheritance.
    • Lesson: Object-Oriented Programming I
    • Lesson: Virtual Computer
  • Object-Oriented Programming, Part II: Learn about the more advanced aspects of object-oriented programming in Ruby which include modules, mixins, and method privacy.
    • Lesson: Object-Oriented Programming II
    • Lesson: Banking on Ruby

Taught by

Nik Stern


4.5 rating at Codecademy based on 2376 ratings

Start your review of Learn Ruby

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.