Learn Ruby from Scratch

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.

Beginner

124 Lessons

12h

Certificate of Completion

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.

AI-POWERED

Code Feedback
Explanations

AI-POWERED

Code Feedback
Explanations

This course includes

3 Projects
177 Playgrounds
31 Challenges
13 Quizzes

This course includes

3 Projects
177 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

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

Variables

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

Built-in Class: Numeric

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

Built-in Classes: TrueClass, FalseClass, and NilClass

Take a look at Ruby's true, false, and nil objects representing truth values and absence.
6.

Built-in Class: Symbol

1 Lesson

Investigate the unique role of symbols as memory-efficient string alternatives in Ruby.
8.

Built-in Class: Hash

7 Lessons

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

Operators are Methods

6 Lessons

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

Conditionals

6 Lessons

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

Coding Challenge: Truthiness and Equivalence

2 Lessons

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

Advanced Topics

8 Lessons

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

Your Toolkit

4 Lessons

Grasp the fundamentals of essential tools like text editors, terminals, and IRB for Ruby programming.
19.

Appendix: Mailbox Project Prerequisite

1 Lesson

Solve problems in HTML for creating and displaying webpage structures in the browser.

Trusted by 1.4 million developers working at companies

Anthony Walker

@_webarchitect_

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

Souvik Kundu

Front-end Developer

Eric Downs

Musician/Entrepeneur

Anthony Walker

@_webarchitect_

Evan Dunbar

ML Engineer

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