DEV Community

Muse'
Muse'

Posted on

The tough choice: Ruby or Javascript

JavaScript versus Ruby.
Which one do I like more and which one is better for me?
When I first got interested in coding, I sought out to teach myself the basics without any help.
I spent a long time deciding on which language I should start off with. And I went ahead with a language called Javascript and here’s why:

JavaScript has a huge community: The JavaScript community continue to grow the language supports and library creations with every passing year. With that comes a huge pool of working professionals that you can work with.

JavaScript can easily be setup: simply from launching google chrome and accessing the developer mode. A couple of clicks and you are ready to code away and build!

JavaScript with the addition of Node: makes it a full stack platform to build pretty much any program you’d like, especially with how scalable the JavaScript language is in itself.

And for that and many other reasons, I set my path of self teaching geared at focusing on JavaScript and utilizing the online resources I could. Till I realized that without proper instruction/mentorship, I wouldn’t truly be maximizing my learning potential and even more with how sophisticated JavaScript can get at time. So I went on to compare languages till I realized that ruby might be a language that might be a better choice for me at the same that I am, a beginner. And no matter how much I do enjoy JavaScript..

Ruby in my opinion is a better choice for a beginner and this is due:

To the simplicity of the syntax, and how easily variables can be declared and having to not worry about curly braces and semi colons unlike with JavaScript.

Also Because it truly lives us to the philosophy it was built on, “The Principle of Least astonishment”, its creator Mats, believed that computers are the slaves and we are the masters not the other way around. We should be in control!
So he set out to make ruby as easily as possible, to ensure that with every build you are least surprised by your code because of user friendly and simple the language is.
And lasty, we all know that with languages, your first new language that you try to pick up is the hardest on you. But as soon as you get familiar with one language, you realize that there’s always similarities between vocabularies and word roots but it’s the grammar and the structure that’s difficult, same goes with ruby and JavaScript, yes the syntax is different and yes JavaScript might seem more cool and popular but as a beginner I opened up to the idea of taking it slow and deciding to learn to code rather than coding in the language I love, that can always be done later on in life.

Top comments (1)

Collapse
 
drmandible profile image
DrMandible

Interesting insight. I'd be curious to see something like "Beginner Ruby for Javascript Devs" if you have it in you.