Javascript Init

Tuesday July 2, 2015

Fundamental differences between Javascript and ruby oh let me count the ways. Something i didn't think would be an issue was the curly braces and the semi-colons, as it turns out I really don't like having to put those back into the code, thank you Yukihiro Matsumoto for the smarter compiler. Another fundemental difference I found is an Object in Javascript is a Ruby hash, and a ruby hash, like almost everything else in ruby is an Object. essentail though I still think of them all as Key, value pair dictionaries. Javascipt has Constructor functions where ruby has Classes, I like classes for the next couple of weeks i will have to find my happy place because javascript is going to make me batty. In all fairness if I had seen the javascipt documentation first I would have appreciated Ruby's documentation a lot more. They aren't really that different but nether is great. Writing loops in Javascript syntax is more or less how I learned to write loops in the first place. it's close enough to C++ that I feel I have a good grasp of it. As to the complier i'm not to sure how to feel about it. node.js messages look nicer then irb or ruby's