Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Intro To Ruby Programming
Rating: 4.6 out of 5(257 ratings)
1,913 students

Intro To Ruby Programming

Beginners Series
Created byJohn Elder
Last updated 11/2023
English
English [Auto],

What you'll learn

  • Create programs in the Ruby Language
  • Understand the Basics of Programming the Ruby Language

Course content

1 section32 lectures3h 8m total length
  • Intro To Ruby Programming5:37

    Download my book here...

  • Introduction1:37

    Introductory session outlines setting up a Ruby development environment and learning basics like strings, variables, input, math, and comparisons, then loops, hashes, fizz buzz, and finally methods and classes.

  • First Things First: How To Get Support Fast!0:09

    Check out my student Facebook Group...

    It's a great place to get fast support for this course from me, to interact with other students, to post your projects and code, and to access course announcements and extras...

    Join Now!

    https://www.facebook.com/groups/codemycom/

  • Install Sublime Text and Git Bash5:41
  • Install Ruby4:58

    Install Ruby on Windows using Ruby Installer and Dev Kit, set the Ruby path to run from anywhere, and complete the installation wizard.

  • Hello World! Our first Ruby Program...7:52
  • Comments And Errors6:21
  • Math Operators5:28

    Explore basic math in Ruby by performing addition, subtraction, multiplication, division, exponents, and modulus operations, and learn how Ruby follows order of operations and precedence.

  • Floats And Integers2:42

    Explore integers and floats in Ruby, including how Ruby defaults to whole numbers and how decimals like 4.97 enable precise costs and calculations.

  • Comparison Operators3:29
  • Variables6:34
  • Assignment Operators5:32

    Explore assignment operators, notably plus equals and minus equals, which update a variable by adding or subtracting, using number_one += 5 instead of number_one = number_one + 5.

  • Getting User Input With Gets5:02

    Learn to interact with Ruby programs by getting user input with gets, printing results with puts, and converting input to integers using to_i for simple interactive examples.

  • Git Bash Weirdness...0:04

    Sometimes Git Bash has issues with gets... to get around them, run your program like this:

    winpty ruby program_name.rb

  • If / Then / Else / Elsif Statements6:06

    Learn to implement if, else, and elsif statements in Ruby, using comparison operators to test conditions, control flow with end, and build simple logic for user input games.

  • Multiple Conditional If / Then Statements3:44

    Explore multiple conditionals in ruby by using and and or to combine comparisons. See how and requires two conditions to be true, while or allows either to trigger output.

  • String Manipulation10:20

    Learn string manipulation in Ruby by handling user input, removing trailing whitespace with chomp, normalizing case with downcase, upcase, capitalize, and swapcase, and using if/then conditionals.

  • Arrays9:35

    Explore arrays in Ruby: create and access elements by zero-based indexes, nest arrays for multi-dimensional data, and use length to count items and prepare for adding or removing.

  • Array Manipulation7:14
  • While Loops6:29

    Explore Ruby loops, including while, until, and for loops, with a focus on their structure, conditions, and practical examples.

  • Until Loops1:59

    Explore until loops in Ruby and compare them to while loops, showing how until repeats until a condition becomes true and prints values. Learn when to use until versus while.

  • For and Each Loops5:25

    Explore Ruby looping by comparing for loops and the each method. Use ranges and arrays to iterate a fixed number of times or through items.

  • Fizz Buzz!7:37

    Practice with the each loop to build fizz buzz from 1 to 100, using modulus to check divisibility by 3 and 5, a common coding interview task.

  • Hashes7:13

    Explore hashes in Ruby by comparing them to arrays, learning to create key-value pairs with curly braces, naming keys like John and Tim, and printing hash contents.

  • Hash Manipulation7:08

    Master hash manipulation in ruby by adding and removing items, understanding when to use hashes versus arrays, and iterating with each to access keys, values, and addresses.

  • Methods (Functions)8:19
  • More on Methods5:40

    Explore Ruby methods by passing multiple arguments, using default values, and returning booleans, then apply while and until loops to keep code readable.

  • Random Number Generation4:24

    Learn to generate random numbers in ruby using rand and range notation, explore two-dot versus three-dot behavior, and use variables to power a math flashcard game.

  • Build a Math Flashcard Game!4:29

    Build a ruby math flashcard game by creating a start_game method that prompts the user to choose addition, subtraction, multiplication, or division, handling input with downcase comparisons.

  • Flashcard Addition Method10:15

    Master Ruby programming by building a flashcard addition method that presents two numbers, checks the user's answer, and loops to play again.

  • Finishing Up Our Flashcard Game | Conclusion10:48
  • Bonus Lecture10:10

    Unlock a limited time bonus: lifetime membership to access 60+ programming courses and books, with $200 off for three days via coupon Udemy.

Requirements

  • No programming skills or special tools are necessary to take this course

Description

Ruby on Rails is one of the most popular web frameworks in the world, but you don't need to learn the "Ruby" programming language to use "Rails"...so most people don't! 

That's a shame because Ruby is one of the most fun and easy to use programming languages to learn.  In this course I'll teach you the Ruby programming language from the ground up.

This is not a course on Rails, we'll focus only on Ruby here.  You'll quickly see just how fast and easy it is to code Ruby like a pro.  

Aimed at the absolute beginner, we'll start with basic programming concepts and move on from there.  

This course contains 27 videos and is just under 3 hours long.  Watch the videos at your own pace, and post questions along the way if you get stuck. You don’t need any special knowledge or tools to take this course, I'll show you everything you need to know.

Let's learn some Ruby!  

Who this course is for:

  • This course is meant for absolute beginners who want to learn the Ruby programming Language