r/javascript • • Apr 21 '15

Recruiters... JavaScript is NOT Java.

http://javascriptisnotjava.io/
380 Upvotes

162 comments sorted by

View all comments

30

u/ianme Apr 21 '15

But javascript has classes now! Just like Java! Same language confirmed.

-5

u/SarahC Apr 21 '15

You mean I can avoid fucking prototype chains?!

Woooooooo!

10

u/kolme WebComponents FTW Apr 21 '15

No, it's just syntactic sugar. The prototype chains are now disguised as classes.

2

u/intermediatetransit Apr 21 '15

The protypes are now diamonds!

2

u/SarahC Apr 22 '15

!............ .!...

Jeez... =(

EVERY other mother bumping language I know uses some sort of classes.... except this booger.

8

u/[deleted] Apr 21 '15

Or you could just stop trying to use OO design in a language that isn't well suited for it.

5

u/[deleted] Apr 21 '15

Pretty much this. I've never needed classes in JS. I've needed tail calls I didn't have to fake myself, but once they're in place, JS will - to me - have grown up. Now we just need to eliminate var and leave only let and const, and things get really interesting.

2

u/ianme Apr 22 '15

Javascript is about as well suited for OO design as it is well suited for functional programming. Using the pieces of both that javascript provides is in my opinion the correct way to write the language.

1

u/SarahC Apr 22 '15

It's the only language that isn't OO that I use, and I use several dammit!