Ruby Programming for Beginners

Learn Ruby Programming the fast and easy way!
56 reviews
  • Huw Collingbourne Director of Technology, SapphireSteel Software

    Huw Collingbourne is the technology director at SapphireSteel Software, developers of the “Sapphire” Ruby IDE for Visual Studio and the “Amethyst” IDE for the Adobe Flash Platform. He is author of The Book Of Ruby from No Starch Press. He runs Bitwise Courses and teaches courses on a range of programming topics.

    Huw has been a programmer for more than 30 years. He is a well-known technology writer in the UK. For over ten years he wrote the Delphi and Java programming column for PC Plus Magazine. He has also written numerous opinion and programming columns (including tutorials on C#, Smalltalk, ActionScript and Ruby) for a number of computer magazines, such as Computer Shopper, Flash & Flex Developer’s Magazine, PC Pro, and PC Plus. He is the author of the free ebook The Little Book of Ruby and is the editor of the online computing magazine Bitwise.

    In the 1980s he was a pop music journalist and interviewed most of the New Romantic stars, such as Duran Duran, Spandau Ballet, Adam Ant, Boy George, and Depeche Mode. He is now writing a series of New Romantic murder mysteries.

    At various times Huw has been a magazine publisher, editor, and TV broadcaster. He has an MA in English from the University of Cambridge and holds a 2nd dan black belt in aikido, a martial art which he teaches in North Devon, UK. The aikido comes in useful when trying (usually unsuccessfully) to keep his Pyrenean Mountain Dogs under some semblance of control.

  • Lifetime access to 55 lectures and 5 quizzes
  • 4+ hours of high quality content
  • A community of 13500+ students learning together!
  • 150+ discussions

Ruby Programming for Beginners

Learn Ruby Programming the fast and easy way!
56 reviews


Discover courses made by experts from around the world.

Take your courses with you and learn anytime, anywhere.

Learn and practice real-world skills and achieve your goals.


Learn Ruby today!

Ruby is famous for being easy to learn but most users only scratch the surface of what it can do. While a typical Ruby tutorial or book focuses on Ruby's trendier features this course reveals the secret inner workings of one of the world's most popular programming
languages. It helps you learn Ruby in one of the easiest ways possible through 10 simple steps that will have you writing clear maintainable code in no time. Rather than bog you down with a lot of theory this course takes a hands-on approach and focuses on helping you learn Ruby so that you'reproductive on day one.

Whether you're new to programming or just new to Ruby this Ruby tutorial is your guide to rapid real-world software development withthis unique and elegant language.

Who uses Ruby?

Ruby is an incredibly powerful and highly scalable object-oriented language. Leading technology companies & startups around the world use Ruby or the Ruby on Rails framework to power their websites & web applications. They include:
* Amazon
* Twitter
* Electronic Arts
* Yahoo
* New York Times
* 37 Signals

* And many many more...

    • Over 55 lectures and 4.5 hours of content!
    • Hours of video lectures detailing the ten steps to becoming an awesome Rubyist
    • Free eBook The Little Book of Ruby and exclusive discount for The (Big) Book of Ruby
    • Downloadable source codes and sample test files to complement lectures
    • 5 extra videos detailing Ruby on Rails, Symbols, Recursion, and other challenges
    • Interactive quizzes to let you test your understanding of the topics covered
    • Ruby programs that you can run online - from right inside this course!


30 day money back guarantee
Lifetime access
Available on Desktop, iOs and Android
Certificate of completion


  • SECTION 1:
  • 1
    Ruby Programming for Beginners - Intro
  • 2
    Welcome To Ruby Programming In Ten Easy Steps

    Welcome to the course! This is a short introduction to the Ruby language and a few words abiout what you can expect from this course.

  • 3
    Little Book Of Ruby (3rd Edition)
    1.27 MB

    This is the 'course text'. It covers all the topics in this course in ten chapters. Be sure to download the code archive too. This contains all the ready-to-run Ruby programs from each chapter.

  • 4
    Little Book Of Ruby Code Archive
    26.68 KB

    This code archive contains all the programs from The Little Book Of Ruby.

  • 5
    Getting Started FAQ And Resources
    7 pages
    This document lists essential online resources for Ruby and summarises a few 'frequently asked questions' about running Ruby on different operating systems. If you have any questions about getting Ruby installed and running, please ask in one of the Discussion forums. I may update this document if users have additional 'getting started' questions or if you have any hints and tips that might helpful to other users.
  • 6
    Exclusive Discount on The (Big) Book Of Ruby
    Subscribers to this course are entitled to a 30% discount off the price of my other Ruby programming book, The Book Of Ruby, published by No Starch Press. In around 400 pages, The Book Of Ruby goes into more advanced Ruby topics such as blocks and nameless functions, threads and fibers, self-modifyi…
  • 7
    Getting Ready

    First install a Ruby interpreter and a text editor or IDE. In this video I'll explain how to find and install the right interpreter for your operating system and I’ll show a couple of ways in which you can edit and run your Ruby programs.

  • 8
    First Steps on a Mac

    If you are a Mac user, this video will guide you through the steps needed to write and run your first Ruby programs.

  • 9
    Mac users: quick tip - open a Terminal in any folder

    Here’s a quick tip that could save you a lot of time if you are running Ruby on a Mac. It explains how to use Finder to open a Terminal (for running Ruby programs) in any folder. Easy when you know how!

  • 10
    Programming Fundamentals

    If you haven’t done much (or any) programming before or if you need a quick revision of the basics of programming, start with this video. This explains the fundamental features of computer programming – how to use variables, constants, methods, arguments and more.

  • SECTION 2:
    Step One
  • 11
    Step One - part one: Strings and embedded evaluation

    Ruby can delimit strings with single quotes 'like this' or double quotes "like this". It turns out that double-quoted strings can do a special trick – they can evaluate embedded Ruby code. This lesson explains the fundamentals.

  • 12
    See it in action: strings
  • 13
    Step One - part two: Objects and methods

    An introduction to objects and methods. How to use the standard methods of Ruby objects and how to create objects with methods of their own.

  • 14
    Hands-on Session: Ruby basics

    Hands-on sessions are where I encourage you to get at your keyboard and try out bits of Ruby. This hands-on session doesn't introduce new concepts but it does give you some guidance on how to experiment with Ruby as an aid to your study.

  • SECTION 3:
    Step Two
  • 15
    Step Two - part one: Creating Classes and Objects

    Now we’ll look at how multiple objects can be created from a class and we’ll see how to create and access ‘instance variables’ to store different data for each object.

  • 16
    See it in action: classes and objects
  • 17
    Step Two - part two: Initializing & Inspecting Objects

    How to initialize an object’s data at the time of creation using the initialize() method and how to look inside objects using the inspect() and p() methods.

  • 18
    Step 1 and 2 Quiz
    8 questions
  • SECTION 4:
    Step Three
  • 19
    Step Three - part one: Superclasses and Subclasses

    In this step you will learn how to create class hierarchies in Ruby so that descendent classes inherit the features of their ancestors.

  • 20
    See it in action: class hierarchies
  • 21
    Step Three - part two: Class Hierarchies

    This video summarizes the essentials of class inheritance in which different ‘branches’ of subclasses can descend from a common ancestor.

  • SECTION 5:
    Step Four
  • 22
    Step Four - part one: Attribute Readers & Writers

    We look at simple ways of creating 'attributes' to access instance variables without having to write 'getter' and 'setter' methods.

  • 23
    See it in action: attribute accessors
  • 24
    Step Four - part two: Class Variables

    What is the difference between an @instance_variable and a @@class_variable? This video explains...

  • 25
    Step 3 and 4 Quiz
    8 questions
  • SECTION 6:
    Step Five
  • 26
    Step Five - part one: Arrays

    An introduction to creating arrays in Ruby, including arrays of mixed types. How to index a single array item and how to append arrays.

  • 27
    See it in action: arrays
  • 28
    Step Five - part two: Array indexing and iterating

    How to index multiple sequential elements in an array, how to specify ranges of elements, and how to iterate over array items.

  • 29
    Hands-on Session: Arrays

    Time to get back to your keyboard and do some hands-on coding. In this video I suggest that you copy and paste code from the documentation of Ruby's class library. That's a great way to learn about the classes and methods available!

  • SECTION 7:
    Step Six
  • 30
    Step Six - part one: Hashes

    Hashes (or 'dictionaries') let you create lists of objects indexed using a key – for example, a string key such as "chocolate cake" may index a value such as the cake’s recipe. This step explains the fundamentals of hashes.

  • 31
    See it in action: hashes
  • 32
    Step Six - part two: Keys and Values

    Ruby can return arrays of all the keys and values found in a hash. You can then use array methods to add, delete, reverse and append one array to another.

  • 33
    Step 5 and 6 Quiz
    8 questions
  • SECTION 8:
    Step Seven
  • 34
    Step Seven - part one: Loops and Iterators

    How to repeat actions and iterate over collections using for and while loops and some special Ruby methods.

  • 35
    See it in action: loops
  • 36
    Step Seven - part two: Blocks

    Ruby uses Blocks to perform iterative actions. But there is more to Blocks than meets the eye. In a sense, a Ruby Block is like a method without a name. This video explains.

  • SECTION 9:
    Step Eight
  • 37
    Step Eight - part one: Conditional Statements

    How to perform tests using 'if', 'elseif' and 'case' statements along with a number of operators to determine whether test conditions are true or false.

  • 38
    Step Eight - part two: Boolean operations

    Ruby has quite a few Boolean operators to test true/false values. They may look simple enough at first sight but be careful. They may not always work quite as you expect!

  • 39
    See it in action: conditional tests
  • 40
    Step 7 and 8 Quiz
    6 questions
  • SECTION 10:
    Step Nine
  • 41
    Step Nine - part one: Modules and Mixins

    Modules let you wrap up code for easy reuse – they also provide some of the features of multiple inheritance without the complexities.

  • 42
    See it in action: modules
  • 43
    Step Nine - part two: Constants and variables

    What is the difference between a local and a global variable? And when is a constant not a constant?

  • SECTION 11:
    Step Ten
  • 44
    Step Ten - part one: Saving Data With YAML

    This step explains how to save data in YAML format and subsequently reconstruct objects initialized with the saved data.

  • 45
    See it in action: YAML
  • 46
    Step Ten - part two: Going Further

    Now you’ve finished this course, what next? Here I look at some sources of information to take your Ruby skills to the next level.

  • 47
    Hands-on Session: Classes and Objects revisited

    We've learnt a lot about classes and objects in this course - including constructing new objects and using class and instance methods and variables. This Hands-on session revises the essential features and explains how classes can have their own instance variables.

  • 48
    Step 9 and 10 Quiz
    8 questions
  • SECTION 12:
  • 49
    Ruby On Rails

    A short explanation of what Ruby On Rails is and how to create a very simple Rails application.

  • 50
    Putting The Ruby Into Rails

    So how do you program Rails with Ruby? This explains the fundamentals...

  • 51
    Ruby On Rails Notes
    2 pages
    Brief notes on getting started with Ruby On Rails.
  • 52
    Ruby Extras
    3.58 KB

    RubyExtras code archive - some small programs showing file handling and recursion.

  • 53
    File Operations and Recursion

    A quick look at the file handling programs in the RubyExtras code archive and a debugging session to illuminate the effects of recursion.

  • 54
    File Handling And Recursion
    6 pages
    A look at some file and directory handling classes and methods plus a simple explanation of recursion.
  • 55

    What are :symbols and why do they matter? This lecture uses some sample programs from Chapter 11 of my paperback advanced Ruby programming book, The Book Of Ruby. Download the text of Chapter 11 here.  If you want to download the code archive for the entire
    Book of Ruby, you can do so from

  • 56
    Book Of Ruby, Chapter 11: Symbols
    10 slides

    This is the chapter explaining Symbols taken from The Book Of Ruby. Subscribers to this course are entitled to a discount on a purchase of The Book Of Ruby. See the online Chapter 1 (Introduction) for more information.

  • 57
    Adventure Game
    3.34 KB

    Code archive for a simple exploring-style Ruby text adventure game. You are free to use this as the basis for a game of your own!

  • 58
    Write An Adventure Game

    This video explains what's in the Adventure Game code archive and it should give you some ideas of ways to use the code as a fun way of extending your Ruby programming expertise by writing an adventure game of your own.

  • SECTION 13:
    Moving On...
  • 59
    Expert Ruby - SPECIAL OFFER - take your Ruby skills to the next level.
    Now you’ve mastered the fundamentals of Ruby, why not take your coding to a higher level with Huw Collingbourne’s advanced course, ‘ Expert Ruby – ten steps to mastery ’? As a subscriber to the Beginner’s Ruby Course you can take advantage of a 40% discount. That means that you can enrol on the ‘Exp…
  • 60
    Thank you - so what next...?


Hours of video content
Course Enrollments


  • 32
  • 18
  • 5
  • 0
  • 1


  • Calvin Fu
    Good fit for Beginners

    Huw's step by step approach clearly illustrates lots of confusing concepts in Ruby where the other tutorials fail. I found it useful and I would recommend to anyone at beginner level

  • Oscar Colomé
    Great introduction course

    Great introduction course, classes are short and got straight to the topic.

  • Shanna Brainard
    Excellent Course for Programming Newbies

    I am very new to programming language, having only a smattering of knowledge about SQL and HTML. This course did a very good job of explaining the basics of computer programming, and then bringing me up to speed within the context of Ruby. Additionally, the instructor includes practical (real-world) examples to help you practice. If you utilize all of the material provided (the videos, book, and codes), you will feel pretty confidant in your abilities to code. If you are already familiar with another language (like PHP), you could definitely skip a few sections.

  • Andreas Plath
    Very good pacing!

    Thanks Huw, for the right speed of the course!! Even to rethink my existing ruby knowledge. A right place to be. Best regards, Andreas

  • Dongchul Lee
    Love this course

    Simply great for beginner. I am working on it. Great resources!

  • 30 day money back guarantee!
  • Lifetime Access. No Limits!
  • Mobile Accessibility
  • Certificate of Completion