What's Next?
Congratulations
You have completed all 15 lessons. You now know Ruby's core: variables, strings, numbers, arrays, hashes, ranges, control flow, iterators, methods, blocks, classes, and modules.
That is a real foundation. You can read Ruby code, write Ruby programs, and start exploring the vast Ruby ecosystem.
What to Explore Next
Here are the natural next steps:
- Ruby on Rails -- The most popular Ruby framework. Build web applications with models, views, controllers, and a database in hours. Start with the Rails Guides.
- RubyGems -- Ruby's package manager. Over 100,000 gems available.
gem installandrequireto add any library. - Symbols and frozen strings -- Ruby's performance optimization for immutable string-like values.
- Procs and Lambdas -- First-class functions in Ruby. Understand the difference between
Proc.new,proc {}, andlambda {}. - Comparable and Enumerable -- Two of Ruby's most useful modules. Include them in your classes to get dozens of free methods.
- File I/O --
File.read,File.write, and processing files line by line. - Regular expressions -- Ruby has native regex support:
"hello" =~ /e(l+)o/. - Testing -- RSpec and Minitest, the two dominant testing frameworks. TDD is a core Ruby community value.
Build Something
The best way to learn is to build:
- A command-line tool -- process CSV files, generate reports, or automate a repetitive task.
- A web scraper -- use the Nokogiri gem to parse HTML and extract data from websites.
- A REST API -- use Sinatra (a lightweight framework) to build a simple HTTP API.
- A Rails app -- follow the official Rails tutorial and build a blog or to-do app with a real database.
References
- The Ruby Programming Language by Matz and David Flanagan (O'Reilly) -- the definitive Ruby book.
- Programming Ruby (the Pickaxe) by Dave Thomas -- the classic Ruby reference.
- Ruby Documentation -- official API docs for the standard library.
- RubyGems -- the Ruby package repository.
- Ruby on Rails Guides -- comprehensive guides for the most popular Ruby framework.
- The Odin Project -- free, comprehensive full-stack curriculum using Ruby and Rails.