Re:Ask HN: Is web programming a series of hacks on hacks?
by talyssonoc on Tuesday September 13, 2016 @06:34AM
(#12486847)
Totally agree. The lack of understanding of JavaScript's paradigm from some people make them blind about the language power, it has the enough amount of every needed paradigm there, including OOP, functional and evented. I see in the comments here people complaining about things like dynamic `this` when they just don't understand it's one of the biggest powers of JS.
[ Parent
| on HN ]
Re:Ask HN: Is web programming a series of hacks on hacks?
by scriptkiddy on Tuesday September 13, 2016 @11:58AM
(#12489456)
JS is not object oriented. A prototype is not the same thing as an object. There are no classes in JS.
Re:Ask HN: Is web programming a series of hacks on hacks?
by renku on Tuesday September 13, 2016 @05:14PM
(#12492316)
What you mean to say: JavaScript is not class-oriented.
Sure, there are features that JavaScript lacks compared to other object-oriented languages, but saying that it's not object-oriented is like saying that it's statically typed. It's just wrong, the language is full of objects.
Re:Ask HN: Is web programming a series of hacks on hacks?
by talyssonoc on Monday September 26, 2016 @07:33AM
(#12580939)
Ok, tell me where on "object-oriented programming" is the word "class". Objects are not necessarily related to classes. And yes, a prorotype is a object that you can extend from, as well as from any other object, like prototype-based OOP works.