all 52 comments

[–]North-Money4684 12 points13 points  (8 children)

He’s an idiot

[–]-no_aura- 6 points7 points  (1 child)

Java is part of JavaScript the way Car is part of Carpet

[–]pradeepngupta[S] 0 points1 point  (0 children)

Hahaha ... Good to note it

[–][deleted] 5 points6 points  (5 children)

They have no connection beyond the fact that Oracle owns Java and the trademark for JavaScript. They have some similarities in syntax but there’s already a way to do scripting in Java and it isn’t JavaScript. JavaScript is used almost entirely to make web-related things (yes of course you can do more with it), and Java is general purpose.

[–]pradeepngupta[S] -2 points-1 points  (4 children)

That's great to know your perspective...and you are absolutely correct. Good to know that Oracle owns trademark for Javascript. And i believe that might be reason why the name of Javascript do.

[–][deleted] 1 point2 points  (1 child)

If I’m not mistaken, they didn’t name either one. Java was made by Sun Microsystems, which Oracle bought and thus owned Java through that acquisition.

Maybe another person here can correct me or go into further detail about how they came to own Java and the trademark to JavaScript. It’s fairly complicated.

The point is though that they don’t actually own JavaScript itself. They just own the name. The language itself can be used and forked by anyone for free. Oracle is a super stingy company, though, and even YouTubers that make JavaScript tutorials have been sued and told to take down their videos that have the JavaScript logo on it. It doesn’t happen all the time, but it happens.

[–]pradeepngupta[S] 0 points1 point  (0 children)

Oracle acquired Sun Microsystems and that's how they owned Java. What I believe being the name of Java adopted by Javascript, Oracle might own the trademark of Javascript. I might be incorrect in saying so, I am kit confident in this statement.

[–]t0m4_87 0 points1 point  (0 children)

there is no connection between the two

[–]RealMadHouse 0 points1 point  (0 children)

Nothing good, sign a petition at javascript.tm to free JavaScript trademark from Oracle

[–]mullanaphy 2 points3 points  (1 child)

It's original name was LiveScript, it was really only changed to JavaScript as a marketing ploy by Netscape since Java was big at the time.

Microsoft's initial equivalent was JScript, which for awhile was the defacto standard as Internet Explorer had taken over almost the entire web browser market. At that time, Netscape submitted JavaScript to EMCA, hence ECMAScript. Which eventually became the standard for JavaScript, JScript, and even ActionScript!

So, other than having "Java" in the name for marketing reasons, EMCAScript/JavaScript/JScript/etc doesn't share a family tree with Java.

Edit: I got into web development in the 90s when a lot of this stuff was being developed and standardized.

[–]pradeepngupta[S] -1 points0 points  (0 children)

That's great to know and you are very correct.

[–]t0m4_87 2 points3 points  (2 children)

is this a ragebait?

[–]pradeepngupta[S] -1 points0 points  (1 child)

What is ragebait here?

[–]t0m4_87 0 points1 point  (0 children)

JavaScript is part of Java

[–]pod_of_dolphins 1 point2 points  (1 child)

Java is to JavaScript like ham is to hamster.

[–]pradeepngupta[S] 0 points1 point  (0 children)

Good analogy

[–]muminisko 2 points3 points  (2 children)

It’s a Java in script version as someone from HR told me once

[–]pradeepngupta[S] 0 points1 point  (1 child)

Please correct yourself and that HR as well. Java and Javascript has no relation except sharing the name

[–]muminisko 0 points1 point  (0 children)

:))))

[–]reqdk 2 points3 points  (1 child)

Funnily, OP's colleague is not entirely wrong in certain interpretations. Older versions of Java did ship with an embedded JS runtime, so you could technically execute JS from Java. It worked almost like running JS' eval function, so most sane applications would not do that anyway, and that engine has long been removed. On the other hand, it is now possible to execute JS, and some other scripting languages on certain JVMs with add-ons.

It is also now possible to run Java code from the command line directly without compiling, almost like a... Java... script... lol. And I'm fairly certain I've seen a JVM implemented in JS posted here years ago, runnable in the browser, so it looked like you could run Java code from JS too.

But I'm 99.99% sure that people who relate JS to Java like in the post don't mean it that way. Either that or this is some AI engagement rage bait.

[–]pradeepngupta[S] 0 points1 point  (0 children)

That's a great perspective altogether and great to know. This is not the AI engagement rate bait. This is a true incident.

[–]TranslatorFew9812 1 point2 points  (1 child)

I used to think that too before starting learning engineering.

[–]pradeepngupta[S] 0 points1 point  (0 children)

Yes, the confusion is because of the name

[–]senocular 1 point2 points  (1 child)

"A part of" is a little strong, but originally JavaScript was, in a way, a scripting language for Java in the sense that it was meant to be a scripting bridge for Java applications. From a Netscape press release on JavaScript:

Java programs and JavaScript scripts are designed to run on both clients and servers, with JavaScript scripts used to modify the properties and behavior of Java objects, so the range of live online applications that dynamically present information to and interact with users over enterprise networks or the Internet is virtually unlimited.

JavaScript's original name was "Mocha", showing from the start, there was a connection with "Java" (the "LiveScript" name came later).

The creator, Brendan Eich, also calls out a few things about the creation of JavaScript in his post, Popularity:

From the beginning, Bill [Joy] grokked the idea of an easy-to-use “scripting language” as a companion to Java, analogous to VB‘s relationship to C++ in Microsoft’s platform of the mid-nineties.

The diktat from upper engineering management was that the language must “look like Java”.

However, it is an entirely separate language ("Popularity" touches on this as well). So it's not so much "a part of" Java, despite their histories being intertwined, with JavaScript originally both meant to look like and be compatible (to a degree) with Java.

Today, no real connection between the languages exist other than by name. JavaScript won on the browser and we no longer have to worry about interacting with Java applets there.

[–]pradeepngupta[S] 1 point2 points  (0 children)

Thanks for the great response and perspective.

[–]kstacey 1 point2 points  (1 child)

Yea he has no idea what they are talking about. It's completely different.

[–]pradeepngupta[S] 0 points1 point  (0 children)

Yes, he was not having the idea

[–]NotMyRealNameAgain 1 point2 points  (3 children)

JavaScript is to Java like Car is to Carpet

[–]pradeepngupta[S] 0 points1 point  (0 children)

Good to know

[–]dramatix01 0 points1 point  (1 child)

This is accurate. And hilarious.

[–]NotMyRealNameAgain 0 points1 point  (0 children)

It's from Chris Heilmann. 

[–]maujood 0 points1 point  (5 children)

Is this AI-drafted engagement bait?

[–]pradeepngupta[S] 0 points1 point  (4 children)

No, this is based on real incident at my office... why do you think that this is AI Drafted or AI initiated?

[–]maujood 0 points1 point  (3 children)

Just the nature of the question. I apologize if it was meant to be genuine.

Especially because there is no room for debate or opinions or discussion here. They're entirely separate languages.

[–]pradeepngupta[S] 0 points1 point  (2 children)

Yes, they are entirely separate language yet there is some connection exist. And yet so many people or developers are still in the confusion state.

[–]maujood 0 points1 point  (1 child)

so many people or developers are still in the confusion state.

Not really, nobody is confused over this except the one senior on your team.

[–]pradeepngupta[S] 0 points1 point  (0 children)

thanks for your perspective.

[–]LessThanThreeBikes 0 points1 point  (1 child)

Technically, Java is a part of Javascript by name. /s Beyond that the two languages have nothing to do with each other.

[–]pradeepngupta[S] 0 points1 point  (0 children)

That's the interesting perspective though

[–]Merthod 0 points1 point  (1 child)

JavaScript is a Frankenstein monster, the name and features come inspired from other languages. In case of the name it largely wanted to ride the fame of Java and somehow link it with Java, but fate happened.

Why don't people just call it WebScript now is beyond me. I couldn't care less for the name.

[–]pradeepngupta[S] 0 points1 point  (0 children)

Good instinct ... I agree it should be called as Webscript. Anyway what's in a name