Transitioning to JavaScript From Ruby: Prototypes

added by JavaScript Kicks
11/17/2014 2:54:32 PM


Having gotten very comfortable with the beauty and elegance of Ruby over the past few months, making the transition to JavaScript was anything but painless. All of the small things such as having declare variables, remembering to insert semi-colons at the end of the line, and having to build out methods that felt like they should be part of the standard library (luckily underscore.js eased some of the pain here) made my life quite difficult. However, the hardest thing, I found, was getting into the JavaScript mindset of prototypes rather than classes and instances like we use in Ruby.