
Launch a free online text editor to write Ruby, set up your development environment, save your code, and learn to print Hello Ruby.
Explore how to use the Replicate editor to run Ruby code, understand comments, variables, strings, and the print function, and see Hello Ruby printed as output.
Build a Ruby jelly bean guessing game that greets the player, captures their name, and generates a 1–500 number with up to 10 guesses and feedback.
Explore Ruby syntax by working with strings and numbers, debugging, and using comments, quotes, and print statements. Master arithmetic and comparison operators such as addition, subtraction, and equal to.
Explore Ruby syntax by mastering variables and objects. Learn variable naming with snake_case, and call built-in string and number methods such as upcase and even? on real examples.
Begin by greeting the player and prompting for their name, then capture input with gets, print a welcome message using puts, and explore string concatenation and interpolation in Ruby.
Debug a Ruby project with the inspect method to reveal details and the chomp method to remove newlines. Keep the greeting on one line by using gets and print.
Learn to use the escape character in Ruby, including backslash n for new lines and backslash t for tabs, plus escaping quotes and string interpolation.
Practice Ruby’s rand method to generate a random number between 1 and 500 for the jelly bean jar, assign it to total jelly beans, and prompt the user to guess.
Learn how to convert numbers to strings in Ruby using to_s and string interpolation, handling an implicit conversion error, and display remaining guesses in a 10-guess game.
Convert strings to integers using the to_i method, capture user input with gets and chomp, and compare the guess to the total jelly beans in Ruby.
Learn how to convert string input to integers in Ruby using to_i, capture user guesses with gets, and compare them to a numeric total to build interactive programs.
Learn how to use Ruby conditionals to respond to temperature scenarios with if, else, and else if, setting a temperature variable and printing appropriate outfits.
Learn Ruby conditionals using and, or, and not equal to operators, applying boolean logic to weather scenarios to decide outfits and understand code flow.
Master conditionals in Ruby by building a jellybean guessing game that compares a user guess to a total and uses loops to handle too low, too high, and correct responses.
Demonstrate a Ruby while loop that tracks energy and miles, prints a final message when energy runs out, and shows end keyword and string interpolation with a jelly beans example.
Use a while loop to let a player guess until they win or exhaust 10 attempts, updating guesses and providing high/low feedback, with jelly beans revealed at end.
Develop a Kelvin to Fahrenheit converter in a beginner Ruby project by defining Kelvin temp, converting to Celsius and Fahrenheit, then rounding with floor and printing via string interpolation.
Hello Ruby is not the only Ruby course you should ever take but it should be your first!
Here are a few reasons why you might want to learn Ruby:
It is beginner friendly. Ruby was a programming language built for people. It was meant to have a low learning curve so beginners could get started right away!
It is incredibly popular among developers. It is the third most tagged programming language on GitHub.
High work demand. It is listed as the fourth most popular programming language on Angel List, a premier site for Startups.
This is an early release of the course. There will be much more coming in the next few months but it is already loaded with great content :)
Here are a few things you will learn in just the first two hours:
* Ruby expressions
* Ruby variables
* Ruby strings
* Ruby escape sequence in strings
* Ruby method converting strings to numbers
* Ruby numbers
* Ruby math operations and comparisons
* Ruby method converting numbers to strings
* Ruby methods on an object
* Ruby comments
* Ruby "puts" and "print"
* Ruby "gets"
* Ruby input, storage and output
* Ruby string interpolation
* Ruby object inspection with "inspect" and "p" methods
* Ruby conditionals
* Ruby loops - for and while
We will learn about all of these while building our first program! This course teaches you the language of Ruby and then gives you an opportunity to speak, program, in that language.
Hello Ruby isn't the only course you should ever take but it should be your first!
Welcome to Hello Ruby!