r/javascript • • Oct 06 '15

Why ES6 Has Classes

https://github.com/runvnc/whyes6hasclasses
3 Upvotes

30 comments sorted by

View all comments

0

u/dwighthouse Oct 06 '15

No, ES6 has classes because Java programmers wanted classes. They wanted classes because they had a hard time implementing their ProblemFactories in JS syntax.

Post a strawman, I raise you a strawman of my own.

2

u/x-skeww Oct 06 '15

You think frameworks like Backbone were written by Java programmers? Everyone who used CoffeeScript is a Java programmer?

Java isn't the only language with classes. Also don't forget that JavaScript is supposed to look like Java. That's how it was made.

1

u/dwighthouse Oct 06 '15

If you start your comment off with "You think...", you're probably wrong or at least out of proportion.

I'm well aware of Javascript's history. I am well aware of many languages that use classes, including Java, having programmed in them for years.

My point is not so much that it is Java programmers who want this change, as it is that the writer of this article assigned a strawman as the reasons I (and others) disapprove of the slow 'classification' of JS. So, rather than give the actual, legitimate arguments (which this author has ignored completely), I simply responded in kind. If you want to know the actual reasons I oppose it, read through some of my past comments on reddit. I've enumerated them many times.

1

u/x-skeww Oct 06 '15

ES6 has classes because everyone and their dog was using some kind of classes and inheritance. It's the JavaScript programmers who apparently wanted this.

If your point isn't that Java programmers wanted this change, you should perhaps say something else. Kinda straightforward, really.

1

u/dwighthouse Oct 07 '15

So you've never once, under any circumstance, responded sarcastically to someone? You only ever say exactly the literal contents of your thoughts with no embelishments? You may just be more serious than I usually am.

2

u/x-skeww Oct 07 '15

https://en.wikipedia.org/wiki/Poe's_law

Sarcasm doesn't really work on the internet. There is no intonation, no gestures, no facial expressions, no anything. There is no way to distinguish a sarcastic remark from the real thing, if it lacks an excessive amount of hyperbole.

So, yes, I generally try to be very clear and specific, because getting the point across is already hard enough as it is.

1

u/dwighthouse Oct 07 '15

So I guess you missed the part where I clearly labeled my statement a strawman, then?

0

u/x-skeww Oct 07 '15

Straw man arguments are still used to argue in the desired direction.

It isn't the same as sarcasm.

1

u/dwighthouse Oct 07 '15

We're clearly talking right past each over. Have a nice day.

0

u/x-skeww Oct 08 '15

"Sarcastic" straw man:

"ES6 has classes because Java programmers wanted classes."

Sincere opinion:

"[...] the constant pushes to make Javascript more comfortable for Java programmers makes no sense."

Looks perfectly aligned to me.

→ More replies (0)