Ruby Programming for Beginners
4.5 (489 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
27,977 students enrolled
Wishlisted Wishlist

Please confirm that you want to add Ruby Programming for Beginners to your Wishlist.

Add to Wishlist

Ruby Programming for Beginners

Learn Ruby Programming the fast and easy way!
4.5 (489 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
27,977 students enrolled
Created by Huw Collingbourne
Last updated 10/2015
English
Curiosity Sale
Current price: $10 Original price: $75 Discount: 87% off
30-Day Money-Back Guarantee
Includes:
  • 3.5 hours on-demand video
  • 13 Articles
  • 6 Supplemental Resources
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
What Will I Learn?
  • 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
View Curriculum
Description

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...

Students Who Viewed This Course Also Viewed
Curriculum For This Course
56 Lectures
05:59:13
+
Introduction
10 Lectures 34:19

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

Preview 07:40

The Little Book Of Ruby (4th edition) is the 'course text'. It covers all the topics in this course in ten chapters. Click the download tab on the right to download a copy for offline reference. Be sure to download the code archive too (next lecture). This contains all the ready-to-run Ruby programs from each chapter.

The Little Book Of Ruby
101 pages

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

Little Book Of Ruby Code Archive
27.3 kB

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.
Getting Started FAQ And Resources
9 pages

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…
Exclusive Discount on The (Big) Book Of Ruby
01:14

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.

Preview 04:27

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

First Steps on a Mac
04:03

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!

Mac users: quick tip - open a Terminal in any folder
02:23

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.

Programming Fundamentals
12:37
+
Step One
4 Lectures 26:51

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.

Step One - part one: Strings and embedded evaluation
05:33

See it in action: strings
00:47

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.

Step One - part two: Objects and methods
06:44

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.

Hands-on Session: Ruby basics
13:47
+
Step Two
3 Lectures 13:51

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.

Step Two - part one: Creating Classes and Objects
07:20

See it in action: classes and objects
01:10

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.

Step Two - part two: Initializing & Inspecting Objects
05:21

Test your knowledge of the first two steps.

Step 1 and 2 Quiz
8 questions
+
Step Three
3 Lectures 10:47

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

Step Three - part one: Superclasses and Subclasses
05:48

See it in action: class hierarchies
01:13

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

Step Three - part two: Class Hierarchies
03:46
+
Step Four
3 Lectures 08:44

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

Step Four - part one: Attribute Readers & Writers
03:51

See it in action: attribute accessors
00:55

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

Step Four - part two: Class Variables
03:58

Test what you've learnt in steps 3 and 4.
Step 3 and 4 Quiz
8 questions
+
Step Five
5 Lectures 20:56

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

Step Five - part one: Arrays
05:23

See it in action: arrays
00:56

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

Step Five - part two: Array indexing and iterating
06:50

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!

Hands-on Session: Arrays
07:47

It’s time to do some ‘hands-on’ coding. Here are some ideas to get you started...
Ruby Programming Projects
5 pages
+
Step Six
3 Lectures 12:45

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.

Step Six - part one: Hashes
08:45

See it in action: hashes
01:29

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.

Step Six - part two: Keys and Values
02:31

Test yourself on steps 5 and 6.

Step 5 and 6 Quiz
8 questions
+
Step Seven
3 Lectures 10:58

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

Step Seven - part one: Loops and Iterators
05:27

See it in action: for..in loops
01:06

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.

Step Seven - part two: Blocks
04:25
+
Step Eight
3 Lectures 13:13

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.

Step Eight - part one: Conditional Statements
06:21

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!

Step Eight - part two: Boolean operations
04:54

See it in action: conditional tests
01:58

Check what you've learnt in steps 7 and 8 with this quiz.
Step 7 and 8 Quiz
6 questions
+
Step Nine
3 Lectures 12:26

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

Step Nine - part one: Modules and Mixins
07:01

See it in action: modules
01:46

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

Step Nine - part two: Constants and variables
03:39
3 More Sections
About the Instructor
Huw Collingbourne
4.4 Average rating
3,052 Reviews
53,963 Students
12 Courses
Director of Technology, SapphireSteel Software

Huw Collingbourne is the technology director at SapphireSteel Software, developers of programming tools for Microsoft Visual Studio. 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#, C++, Smalltalk and Ruby) for a number of computer magazines, such as Computer Shopper, PC Pro, and PC Plus

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.