How To get Started with Ruby

This entry is part 2 of 2 in the series Ruby

Today we are going to look into the basics of ruby , how to get started , how to install and how to start writing your first Ruby program in under 10 seconds!

As previously mentioned in a previous post, Ruby was invented by Matz.  It was designed & developed in the mid-1990s by Yukihiro “Matz” Matsumoto in Japan. Ruby is a dynamic, reflective, object-oriented, general-purpose programming language.


How to get started

A few years ago it was difficult to get started with Ruby because there was no or little documentation on installing Ruby on your computer . But in the last few years…Good News, with the explosion of people who want to learn Ruby , several tools have been created to install Ruby. These tools are called ‘Installers’.

So installers can be used to install a specific or multiple Ruby versions , don’t worry there are installers for windows as well! The most well know installer is called RubyInstaller. It gives you all the necessary files to setup a fully Ruby development environment on Windows. If you are on Mac then this is a clear guide from the guys at RailsApps

A ruby program can’t run on its own! You need to load a VM , which stands for ‘virtual machine’ So one of the main ways to execute this via the command line. If you’re on a Mac click on the terminal icon or if you’re on a PC go to the command prompt and type in  irb


Write the first “Hello world”

 At the command line type in “Hello World” – don’t forget the quotes and hit enter. You get the following

Screen Shot 2015-04-09 at 19.55.47

Ruby Obeyed you!



Now lets try some maths!

Screen Shot 2015-04-09 at 19.58.19


You also have a free calculator!



If you are having problems with installing Ruby , then no problems. You can try Ruby in your browser go to try ruby This gives you free 20 min lesson.


Final Thoughts

The great thing about ruby is that you really can’t go wrong , there is a strong community of people willing to help you get started. And if you are having problems there is  plenty of documentation at the official ruby site to resolve your issues!



Neil Patel

Ruby on Rails Coder & Marketer




Intro to Ruby

This entry is part 1 of 2 in the series Ruby

My introduction to Ruby, started off like many others – at a Startup Weekend event. Despite having the best marketing team and a solid business model, there were no developers in my group. It  meant that we could not  actually execute on the technology side of the idea. In fact, of the 50 participants at the event, only 3-4 people knew how to code!

By the end of the weekend, I decided to learn to program. I decided to learn Ruby on Rails, because it was one of the more popular web frameworks for startups.

But what actually is Ruby? This article gives you an introduction into the Ruby programming language and why its so popular at the moment.


Enter Yukihiro Matsumoto

Ruby was born 1993. It originated during a discussion between Yukihiro Matsumoto (“Matz”) and a friend, before any code was developed! Matsumoto decided to chose the name “Ruby” because its was the birthstone of one of his colleagues. Ruby is an object-oriented language suitable for writing day to day scripts as well as full-scale applications.



So Ruby has been around for the last 22 years , but in the last few years , it has really taken off because of Ruby on Rails. The Ruby on Rails framework is a brand new framework. Built with the Ruby language by David Heinemeier Hansson and has really changed the way people create web applications today.


Around the world software developers really enjoy it.  In fact the Ruby on Rails has a community that’s vibrant and fanatical about developing great code.



What I love about this programming language is the philosophy behind it , in a interview in Matsumoto did in 2003 he told the interviewer he wanted to invent a language that made him productive while being fun to use!


For me this is a breath for fresh air, many times we spend many hours in front of the screen , especially in the business world, trying to build the next big thing, but sometimes we have to look at the big picture in life – is this enjoyable and fun?  For me it is!

Later on in the Interview Matsumoto is says  that instead of focussing on machines all the time, trying to make them faster and more efficiently, we should focus on humans. At the end of the day , we are the master the computers are the slaves , but I think this is changing, we are becoming the slaves and machines are becoming the masters!


Ruby Success Stories


Here are few samples of the real world usage of Ruby

Basecamp, a web-based project management application developed by 37signals, is programmed entirely in Ruby.

43 Things allows you to keep a list of goals and share it with the world. It was developed entirely in Ruby.

A List Apart, a magazine for people who make websites that has been around since 1997, has recently been revamped and uses a custom application built with Ruby on Rails.


Final Thoughts

Matz wanted a programming language that suited his needs, so he built one. This is a great story of software development.

For me Ruby is a great language to learn. Nobody can predict the future of the Ruby or another programming language, but in my opinion it will grow because of the amazing community and people I have met. With more and more people making Ruby applications the future is definitely bright !

I shall leave the last word with matz when the interviewer asked why Ruby made him happy

You want to enjoy life, don’t you? If you get your job done quickly and your job is fun, that’s good isn’t it? That’s the purpose of life, partly. Your life is better



Neil Patel

Ruby on Rails Coder & Marketer