Author: hjalle - 2008-03-29

Why ruby?

10/10

Ruby is a programming language that has been placed in the shade of languages like php and java.

So why are people afraid of ruby?
Obviously there is no answer to that question, but one could be the “strange” syntax. Or in fact, it has a nonstrange syntax and all other programming languages has a strange syntax.

The coolest part abour ruby that it is 100% object oriented (OO). Check these differences between a php source and a ruby source. Both lines of code will output the same line but in lowcase intead.
"THIS IS A NORMAL STRING IN UPPER LETTERS".lowcase
That’s because all strings, integers and bools are objects.
Then, if you’re using PHP, you would have to place the string into a function like this:
strtolower("YOU SHOULDN'T ALWAYS USE CAPITALS");
In fact you save some time using ruby in this case..

There are cool things about Ruby but since the syntax is so easily human-read, I believe programmers have difficulties of writing it. They want the strange syntax that no one will understand.

Summary: With Ruby, your code is completely object-oriented. If you don't know what it means, you should try it out.


Rate:
Add Comment

Title:

Comment:

Author:

Comments ( 0 )