NewJourney
Learn Ruby
A free, interactive online Ruby course. You write Ruby on every lesson — syntax, blocks, classes, modules, idiomatic Ruby — with AI hints when something raises, and a free certificate of completion when you finish.
3,420+ codders enrolled
- Beginner friendly
AI-assisted coding help
Hands-on interactive lessons
Audio narration on every lesson
Quizzes to test your knowledge
Free certificate of completion
Syllabus
Section 1
Fundamentals
Start sectionStartExpandCollapseBuild a strong foundation with essential concepts and basic skillsIntroduction to Ruby
3 lessons217- 01What is Ruby?ChallengeAudio
- 02Hello WorldChallengeQuizAudio
- 03Comments in RubyQuizAudio
Variables and Data Types
7 lessons750- 01Numbers and VariablesChallengeQuizAudio
- 02String Data TypeChallengeQuizAudio
- 03Boolean Data TypeChallengeQuizAudio
- 04Symbol Data TypeChallengeQuizAudio
- 05Checking Data TypesChallengeQuizAudio
- 06Naming ConventionsChallengeQuizAudio
- 07Recap - Variable CreationChallenge
Operators Part 1
5 lessons534- 01Arithmetic OperatorsChallengeQuizAudio
- 02Modulo OperatorChallengeQuizAudio
- 03Arithmetic ShortcutsChallengeQuizAudio
- 04Recap - Simple MathChallenge
- 05Comparison OperatorsChallengeQuizAudio
Operators Part 2
5 lessons534- 01Logical Operators Part 1ChallengeQuizAudio
- 02Logical Operators Part 2ChallengeQuizAudio
- 03Recap - Simple LogicChallenge
- 04Logical Operators Part 3ChallengeQuizAudio
- 05Logical Operators Part 4ChallengeQuizAudio
Decision Making
5 lessons533- 01If StatementChallengeQuizAudio
- 02If - ElseChallengeQuizAudio
- 03Recap - Simple CalculatorChallenge
- 04Nested If - ElseChallengeQuizAudio
- 05Unless StatementChallengeQuizAudio
Basic IO
8 lessons850- 01Output with putsChallengeQuizAudio
- 02Output with print and pChallengeQuizAudio
- 03Output With VariablesChallengeQuizAudio
- 04Input with getsChallengeQuizAudio
- 05Chomp MethodChallengeQuizAudio
- 06Type ConversionChallengeQuizAudio
- 07Recap - Age CalculatorChallenge
- 08Recap - True or FalseChallenge
Bill Split Calculator
Project5 lessons1- 01Welcome MessageChallenge
- 02Getting User InputProject
- 03Calculating Tip And TotalProject
- 04Splitting The BillProject
- 05Formatted OutputProject
Loops
9 lessons960- 01For Loop with RangesChallengeQuizAudio
- 02While LoopChallengeQuizAudio
- 03BreakChallengeQuizAudio
- 04NextChallengeQuizAudio
- 05Recap - FactorialChallenge
- 06Times LoopChallengeQuizAudio
- 07Until LoopChallengeQuizAudio
- 08Nested LoopsChallengeQuizAudio
- 09Recap - Dynamic InputChallenge
Methods
6 lessons634- 01Defining a MethodChallengeQuizAudio
- 02Method ParametersChallengeQuizAudio
- 03Return ValuesChallengeQuizAudio
- 04Recap - Sigma MethodChallenge
- 05Recap - Validation MethodChallenge
- 06Default Parameter ValuesChallengeQuizAudio
FizzBuzz with a Twist
Project4 lessons1- 01Game OverviewChallenge
- 02The FizzBuzz MethodProject
- 03Looping Through NumbersProject
- 04Adding The TwistProject
Arrays
7 lessons744- 01Creating ArraysChallengeQuizAudio
- 02Accessing Array ElementsChallengeQuizAudio
- 03Modifying ArraysChallengeQuizAudio
- 04Array MethodsChallengeQuizAudio
- 05Recap - Product ArrayChallenge
- 06Recap - Reversed ArrayChallenge
- 07Array ShortcutsChallengeQuizAudio
Iterating Over Collections
4 lessons434- 01Each IteratorChallengeQuizAudio
- 02Each with IndexChallengeQuizAudio
- 03Iterating Over StringsChallengeQuizAudio
- 04Map and CollectChallengeQuizAudio
Arrays Advanced
4 lessons435- 01Array Slicing with RangesChallengeQuizAudio
- 02Array Slicing with IndexesChallengeQuizAudio
- 03Array OperatorsChallengeQuizAudio
- 04Include? MethodChallengeQuizAudio
Hashes
6 lessons644- 01Creating HashesChallengeQuizAudio
- 02Accessing Hash ElementsChallengeQuizAudio
- 03Modifying HashesChallengeQuizAudio
- 04Hash MethodsChallengeQuizAudio
- 05Recap - Product HashChallenge
- 06Symbols as Hash KeysChallengeQuizAudio
Daily Expense Tracker
Project7 lessons1- 01Project OverviewChallenge
- 02Exit The ProgramProject
- 03Add ExpenseProject
- 04View All ExpensesProject
- 05Total And AverageProject
- 06Clear AllProject
- 07Error HandlingProject
Final Challenges
3 lessons3- 01Flat Asterisk PyramidChallenge
- 02Pattern FinderChallenge
- 03What To BuyChallenge
Why learn Ruby with Coddy
- Run real Ruby code in your browser. No Ruby install, no rbenv or RVM to configure. Each lesson runs your Ruby script server-side and shows the output instantly.
- Idiomatic Ruby: variables, control flow, methods, blocks and procs, classes, modules, mixins, exception handling, the standard library. The Ruby foundations every Rails developer needs.
- AI hints help you read and fix Ruby errors without spoiling the answer, so the language's looser, more expressive style feels natural instead of confusing.
- Free Ruby programming certificate when you finish the course. A credible signal for Ruby on Rails, backend, and full-stack roles where Ruby fluency is the baseline expectation.
Frequently asked questions about learning Ruby
Is Ruby hard to learn?
Ruby is one of the more beginner-friendly programming languages. The syntax is famously readable, almost like English, and the language was designed with developer happiness in mind. Most beginners build their first working Ruby program within the first hour and reach blocks and classes within a couple of weeks.
What is Ruby programming used for?
Ruby is best known as the language behind Ruby on Rails, the web framework that powers GitHub, Shopify, Airbnb, and many other large applications. Outside Rails, Ruby is widely used for scripting, automation, DevOps tooling, and small command-line utilities. Most people learning Ruby today are aiming at Rails or full-stack web development.
Should I learn Ruby or Python first?
Pick by goal. Python is the broader, more popular choice — strong for data, scripting, and AI. Ruby is the more focused choice if you're aiming at Rails, web startups, or backend roles in companies that use Ruby. The fundamentals transfer in both directions, so neither is a wasted investment.
How long does it take to learn Ruby?
Ruby basics — variables, conditionals, loops, methods — take one to two weeks of daily practice. Becoming comfortable with blocks, classes, modules, and idiomatic Ruby usually takes one to three months. From there, picking up Ruby on Rails is a separate ramp on top of the language itself.
Can I learn Ruby online for free?
Yes. The interactive Ruby course is free — full lessons, coding exercises, quizzes, and a certificate. Ruby runs server-side in a sandboxed environment, so you don't need to install Ruby or set up rbenv locally to start coding.
Do I get a certificate after the Ruby course?
Yes. Finishing the Ruby course gives you a free certificate of completion. A verifiable signal you can add to your resume or share on LinkedIn, especially useful as a stepping stone toward Ruby on Rails or backend developer roles.