I remember hating JS before all of these things were standardized. Coming from Ruby, I favor list operations over while and for loops. JS being (originally) a functional language, it didn't make much sense that all of these list operations were missing until just a few years ago. I guess they were too busy justifying the dual existence of undefined and null.
Heh, true. There were things like the Prototype library that extended the prototypes to fill the gap somewhat, but that just made it harder for language designers to implement the built-in objects without breaking the web in the process.
To be honest, the prototype methods are mainly just syntactic sugar, and I'm currently working on a followup series of articles and a secret project to explain the application of this in a much broader context. :)
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I remember hating JS before all of these things were standardized. Coming from Ruby, I favor list operations over
while
andfor
loops. JS being (originally) a functional language, it didn't make much sense that all of these list operations were missing until just a few years ago. I guess they were too busy justifying the dual existence ofundefined
andnull
.Heh, true. There were things like the Prototype library that extended the prototypes to fill the gap somewhat, but that just made it harder for language designers to implement the built-in objects without breaking the web in the process.
To be honest, the prototype methods are mainly just syntactic sugar, and I'm currently working on a followup series of articles and a secret project to explain the application of this in a much broader context. :)