Menu Close

Articles

Programming: Ruby

Ruby is a dynamic, interpreted, reflective, object-oriented, general-purpose programming language. It was designed and developed in the mid-1990s by Yukihiro “Matz” Matsumoto in Japan. According to the creator, Ruby was influenced by Perl, Smalltalk, Eiffel, Ada, and Lisp.

Language Review

Ruby uses English keywords, and is not a curly bracket language. The syntax is more verbose than other languages but very readable once you get use to it. After you learn Ruby you should also learn RoR that is Ruby on Rails. This is a Model View Controller (MVC) framework for website design. 

Ruby vs JavaScript vs Python

Ruby is a general purpose scripting language and has very good drivers for databases. Therefore Ruby is as good as Python for creation of automation scripts for data pipelines and testing. It has a different philosophy than Python and this makes Ruby programmers more productive. Ruby is about 30% faster than Python.

Ruby is much slower than JavaScript. Linkedin website was created first in Ruby then they changed the entire code base for JavaScript. I have used both versions and I can tell that is now much faster. However JavaScript and NodeJS is difficult to use due to “callback hell”. JavaScript can become spaghetti code very quickly. And we know spaghetti code is hell. 

External References

Rating Exam

This exam is for beginners. We have only 30 questions. You can pass this exam if you have read the documentation. No work experience is needed. Questions are designed for learning. 

Start Exam

Leaderboard: Programming Ruby

maximum of 30 points
Pos.NameEntered onPointsResult
Table is loading
No data available