HomeCoursesLearn Ruby from Scratch
AI-powered learning
Free
Save

Learn Ruby from Scratch

Discover Ruby's simplicity and power through hands-on practice. Gain insights into variables, built-in classes, objects, and more, making you productive and happy with programming.

4.5
124 Lessons
3 Projects
12h
Updated 1 month ago
Join 3 million developers at
Join 3 million developers at
LEARNING OBJECTIVES
  • Learn how to program using Ruby as your first programming language.
  • Learn idiomatic Ruby.
  • Learn about blocks, methods, regular expressions, and more in Ruby.

Learning Roadmap

124 Lessons3 Projects13 Quizzes31 Challenges

1.

The Big Picture

The Big Picture

Get familiar with Ruby's object-oriented paradigm and the creative aspect of programming.

2.

Variables

Variables

Walk through Ruby variable assignment, reassignments, and operator precedence.

3.

Built-in Class: Numeric

Built-in Class: Numeric

5 Lessons

5 Lessons

Go hands-on with numeric operations, including Integers, Floats, and practical exercises.

4.

Built-in Class: String

Built-in Class: String

8 Lessons

8 Lessons

Grasp the fundamentals of Ruby strings, including manipulation, interpolation, and common string methods.

7.

Built-in Class: Array

Built-in Class: Array

10 Lessons

10 Lessons

Test your understanding of arrays in Ruby with versatile exercises and practical manipulation tasks.

8.

Built-in Class: Hash

Built-in Class: Hash

7 Lessons

7 Lessons

Learn how to use hashes, their syntax, methods, and practical exercises in Ruby.

9.

Objects

Objects

10 Lessons

10 Lessons

Unpack the core of objects, classes, and methods in Ruby programming.

10.

Methods

Methods

13 Lessons

13 Lessons

Master the steps to creating, using, and combining methods, including defining scopes and returning values.

11.

Operators are Methods

Operators are Methods

6 Lessons

6 Lessons

Break down complex ideas in Ruby operators and their behavior as methods.

12.

Blocks

Blocks

11 Lessons

11 Lessons

Take a closer look at Ruby blocks, various syntaxes, arguments, return values, iterators, and practical exercises.

13.

Conditionals

Conditionals

6 Lessons

6 Lessons

Investigate Ruby conditionals, shorthand syntax, return values, truthiness, and practical exercises.

14.

Coding Challenge: Truthiness and Equivalence

Coding Challenge: Truthiness and Equivalence

2 Lessons

2 Lessons

Test your understanding of truthiness and object equivalence through coding challenges.

15.

Writing Classes

Writing Classes

14 Lessons

14 Lessons

Learn how to use classes, methods, variables, and object interactions in Ruby.

16.

Spotlight on Things Unremarked

Spotlight on Things Unremarked

11 Lessons

11 Lessons

Walk through Ruby's top-level object, escape sequences, syntax alternatives, and method usage.

17.

Advanced Topics

Advanced Topics

8 Lessons

8 Lessons

Work your way through advanced Ruby topics including libraries, modules, private methods, and regex.

18.

Your Toolkit

Your Toolkit

4 Lessons

4 Lessons

Grasp the fundamentals of essential tools like text editors, terminals, and IRB for Ruby programming.
Certificate of Completion
Showcase your accomplishment by sharing your certificate of completion.
Fahim Ul HaqLearn Ruby from ScratchFounder & CEO

Show License and Attributions

Developed by MAANG Engineers
Every Educative lesson is designed by a team of ex-MAANG software engineers and PhD computer science educators, and developed in consultation with developers and data scientists working at Meta, Google, and more. Our mission is to get you hands-on with the necessary skills to stay ahead in a constantly changing industry. No video, no fluff. Just interactive, project-based learning with personalized feedback that adapts to your goals and experience.
ABOUT THIS COURSE
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 happy. That is the primary purpose of Ruby language." This introductory course provides hands-on practice with the support of interactive illustrations, exercises, and the integral topics of variables, built-in classes, objects, conditionals, blocks, and more! Ready to dive into one of the most influential and demanding third-generation programming languages? Let's get started!

Trusted by 3 million developers working at companies

Built for 10x Developers

No Passive Learning
Learn by building with project-based lessons and in-browser code editor
Learn by Doing
Personalized Roadmaps
The platform adapts to your strengths & skills gaps as you go
Learn by Doing
Future-proof Your Career
Get hands-on with in-demand skills
Learn by Doing
AI Code Mentor
Write better code with AI feedback, smart debugging, and "Ask AI"
Learn by Doing
Learn by Doing
MAANG+ Interview Prep
AI Mock Interviews simulate every technical loop at top companies
Learn by Doing

Free Resources