โ Ruby Programming learning pathRuby Programming ยท Module 1 of 10
Getting started with Ruby
Ruby is a friendly, object-oriented language designed for programmer happiness.
๐ Key ideas
- Ruby was created by Yukihiro "Matz" Matsumoto in Japan in 1995.
- Run code with ruby file.rb or try lines in irb, the interactive shell.
- puts prints a line; p prints a value for debugging.
- Comments start with #.
- Ruby powers Ruby on Rails, used by GitHub, Shopify and many startups.
๐ก Real-life example: Like a language written to read almost like English: 5.times { puts "Hi" } says exactly what it does.
irbInteractive Ruby shell
putsPrint a line of output
MatzCreator of Ruby
#Starts a comment