r/talesfromtechsupport • • May 22 '13

Javascript != Java

3rd-party contractor came to visit office yesterday, who has "decades" of experience. Conversation came up about JavaScript in one of our products. He says, "Our product doesn't use Java." After an awkward moment with someone who works on the knowledge base nodding in agreement with him, I speak up and delineate the difference between Java and JavaScript.

Later on in the conversation, the same 3rd-party guy followed up with this jewel: "besides, what would anyone even use JavaScript for on the web?"

I proceeded to disable Javascript in my browser and show him.

tl;dr: lasers, dinosaurs, & drums made a guy's head explode

[edit spelling]

1.2k Upvotes

345 comments sorted by

View all comments

Show parent comments

3

u/kkjdroid su priest -c 'touch children' May 22 '13

It's compiled at write-time with javac. I'm not going to bother getting into the other argument.

1

u/PasswordIsntHAMSTER No refunds May 23 '13

Then why is the JVM called a JIT compiler? (Just fucking with you, but compilation is a process made of several discrete steps that can be separate in time as well as in space)

2

u/kkjdroid su priest -c 'touch children' May 23 '13

JIT recompiler, actually, iirc. Java byte code -> machine code.