Why do I love Ruby?




If you go to ruby's home page Ruby Programming Language, it says a programmers best friend, and they mean it. It is written with the goal to increase programmer happiness.

Here are a few personal reasons:

1- Its simplicity / intuitiveness: Ruby is pretty simple to understand and easy to learn. There are tutorial on the internet that'll get you started in 15-20 minutes. For example: Code School - TryRuby , Ruby in Twenty Minutes. Ruby’s linguistic syntax is intuitive, writing code is much simpler and easier than other languages, you can kiss semicolons and parentheses goodbye.

2- Its pure OOP language: Even primitive datatypes in ruby are object, this means we don't have to write wrapper class like Java. Even constants are treated like objects. So, a method can be invoked on a numeric.

3- It has a really smart Garbage Collection mechanism. There is no need of destructors.

4- It has a really really awesome community . Any time you have a question, just join #Ruby on Freenode. You'll always find a helping hand. There are sites such as The Ruby Toolbox, which always helps you find the best plugin you are looking for.

5- Although some people argue that Ruby is very focused to Web Development. I have seen Ruby being applied to as remote field as Machine Learning.  Intelligent Ruby: Getting Started with Machine Learning.

And there are many many other reasons.

Why "Hello World" ?

Brian Kernighan actually wrote the first "Hello, World!" program as part of the documentation for the BCPL programming language developed by Martin Richards. BCPL was used while C was being developed at Bell Labs a few years before the publication of Kernighan and Ritchie's C book in 1972. 
As part of the research for a book I was writing about the Alice programming environment, I corresponded with both Prof. Kernighan at Princeton and Martin Richards at Cambridge (when I was teaching a seminar there in the 1990’s). They helped me track down the first documented use of code to print the message "Hello, World!” Brian Kernighan remembered writing the code for part of the I/O section of the BCPL manual. Martin Richards -- who seems to have a treasure trove of notes, old documents, etc. -- found the manual and confirmed that the this was the original appearance of the program. The code was used for early testing of the C compiler and made its way into Kernighan and Ritchie's book. Later, it was one of the first programs used to test Bjarne Stroustrup's C++ compiler.
It became a standard for new programmers after it appeared in Kernighan and Ritchie, which is probably the best selling introduction to programming of all time.

Popular Posts

Like us on Facebook

Flickr Images