Learn Ruby from Scratch

This course provides the best approach to learning Ruby and progressing from beginner to advanced levels in mastering Ruby.

Beginner

124 Lessons

12h

Certificate of Completion

This course provides the best approach to learning Ruby and progressing from beginner to advanced levels in mastering Ruby.

AI-POWERED

Explanations

AI-POWERED

Explanations

This course includes

3 Projects
176 Playgrounds
31 Challenges
13 Quizzes

This course includes

3 Projects
176 Playgrounds
31 Challenges
13 Quizzes

Course Overview

Do you want to learn about interpreted languages? Tired of dense syntaxes? Tired of compiling code to machine language first? Are you looking for an easy-to-use scripting language? Well, Ruby is the answer! Ruby is a smart, easy-to-use, functional, object-oriented programming language, a wondrous mix of Perl's scripting power, Pythonic capabilities, and more! As Matsumoto, creator of Ruby, implies: "I hope to see Ruby help every programmer in the world to be productive, and to enjoy programming, and to be ...Show More

TAKEAWAY SKILLS

Ruby

Programming Language

Learn To Code

What You'll Learn

Learn how to program using Ruby as your first programming language.

Learn idiomatic Ruby.

Learn about blocks, methods, regular expressions, and more in Ruby.

What You'll Learn

Learn how to program using Ruby as your first programming language.

Show more

Course Content

1.

The Big Picture

This chapter discusses how Ruby supports object-oriented approach and provides an intuitive way to model and interact with real-world entities.
2.

Variables

This chapter covers variables and discusses the nature of Ruby variables, how to use them, and how to assign values to them.
3.

Built-in Class: Numeric

This chapter focuses on numeric types in Ruby, enhancing understanding through practical exercises involving calculations and the modulo operator.
4.

Built-in Class: String

This chapter focuses on string manipulation in Ruby, covering string creation, interpolation, and practical exercises to enhance text handling skills.
5.

Built-in Classes: TrueClass, FalseClass, and NilClass

This chapter covers how the True, false, and nil objects in Ruby serve as key representations of truth values and absence.
6.

Built-in Class: Symbol

1 Lesson

This chapter covers how Symbols in Ruby serve as unique, memory-efficient identifiers, often serving as alternative to strings and leading to clarity in code.
7.

Built-in Class: Array

10 Lessons

This chapter introduces Ruby arrays and demonstrates their versatile uses, reinforcing this through a series of hands-on exercises.
8.

Built-in Class: Hash

7 Lessons

This chapter covers hashes in Ruby, explaining how they enable efficient data retrieval and manipulation through various methods.
9.

Objects

10 Lessons

This chapter explores the essential concepts of Ruby objects, their methods, relationships with classes, and practical applications through exercises.
10.

Methods

13 Lessons

This chapter delves into Ruby methods, covering their structure, usage, return values, scoping, and practical exercises to enhance coding skills.
11.

Operators are Methods

6 Lessons

This chapter covers operators in Ruby, emphasizing their versatile uses and implementation as methods, along with practical application through exercises.
12.

Blocks

11 Lessons

This chapter explores Ruby blocks, including their syntax, functionality, and dynamic usage, along with practical exercises.

Get Ready for Some More Drill!

Project

13.

Conditionals

6 Lessons

This chapter covers conditionals in Ruby, the concept of truthiness, and how to write efficient programs using shorthand syntax.
14.

Coding Challenge: Truthiness and Equivalence

2 Lessons

This chapter presents coding challenges based on concepts learned so far like truthiness, equivalence, use of blocks, and conditionals.

Lets Run Another Lap with Hashes

Project

15.

Writing Classes

14 Lessons

This chapter covers Ruby classes and relevant concepts like class vs. instance methods, instance variables, encapsulation, object interactions, and scope.

The Mailbox Project

Project

16.

Spotlight on Things Unremarked

11 Lessons

This chapter explores key Ruby concepts like top-level objects, escape sequences, alternative syntaxes, and good naming practices for programming effectively.
17.

Advanced Topics

8 Lessons

This chapter covers relatively advanced Ruby topics like modular code design, encapsulation with private methods, and regex for text manipulation.
18.

Your Toolkit

4 Lessons

This chapter focusses on essential tools like text editors, operating system terminals, and the Interactive Ruby Shell for becoming a productive Ruby developer.
19.

Appendix: Mailbox Project Prerequisite

1 Lesson

This appendix chapter introduces HTML, as basic familiarity with it is a prerequisite for completing the course project.

Trusted by 1.4 million developers working at companies

Anthony Walker

@_webarchitect_

Emma Bostian 🐞

@EmmaBostian

Evan Dunbar

ML Engineer

Carlos Matias La Borde

Software Developer

Souvik Kundu

Front-end Developer

Vinay Krishnaiah

Software Developer

Eric Downs

Musician/Entrepeneur

Kenan Eyvazov

DevOps Engineer

Anthony Walker

@_webarchitect_

Emma Bostian 🐞

@EmmaBostian

Hands-on Learning Powered by AI

See how Educative uses AI to make your learning more immersive than ever before.

Instant Code Feedback

Evaluate and debug your code with the click of a button. Get real-time feedback on test cases, including time and space complexity of your solutions.

AI-Powered Mock Interviews

Adaptive Learning

Explain with AI

AI Code Mentor