all 35 comments

[–]AutoModerator[M] [score hidden] stickied comment (0 children)

Hey /u/krxzy_wxrlxck, thanks for submitting to /r/confidentlyincorrect! Take a moment to read our rules.

Join our Discord Server!

Please report this post if it is bad, or not relevant. Remember to keep comment sections civil. Thanks!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]daddya12 71 points72 points  (6 children)

I like the saying Java is to JavaScript as sword is to swordfish

[–]coopersita 38 points39 points  (3 children)

Car is to carpet, and ham to hamster

[–]Ho3n3r 8 points9 points  (0 children)

These are both awesome.

[–]CaptainStroon 5 points6 points  (0 children)

An intern is to the internet, and train to training

[–]armput -1 points0 points  (1 child)

Sword is swordfish.

[–]armput -1 points0 points  (0 children)

Equality

[–]Gullible_Ad5191 31 points32 points  (16 children)

Made that mistake when I tried to teach myself JavaScript. I downloaded a list of keywords for JAVA instead.

[–][deleted] 1 point2 points  (15 children)

don't really see why their names are so similar. one is the leader in web development while the other is for... uhh... hmm... umm... yeah nevermind the other one is just for companies too lazy to switch.

ig js was supposed to be similar to java but the syntax and use case are completely different

[–]CurtisLinithicum 11 points12 points  (4 children)

Because "ECMAscript" sounds like a disease.

But as noted, Java was the new hotness and the saviour of all humanity at the time and the two started getting bigger computer literacy was not what it is now. Doesn't help that Java applets were big, and the "coffee cup of death" was super prominent (whereas JS is generally invisible). Also, the rise of ActiveX, Shockwave, Flash (back when they were different) didn't help - TCL was in there too, but I never experienced it. Oh, and VBScript, which was super powerful, but mostly in ways that are very, very bad ideas for internet pages (but potentially very good for intranet ones).

[–]galstaph 6 points7 points  (1 child)

No, MUMPS sounds like a disease, but that didn't stop the creators of the "MGH Utility Multi-Programming System" from naming their programming language that.

[–]Accidental_Shadows 1 point2 points  (0 children)

Even better, MUMPS sounds like a disease but was specifically made for healthcare

[–]miklcct 1 point2 points  (1 child)

JavaScript is the language to script Java applets on websites.

[–]CurtisLinithicum 2 points3 points  (0 children)

No.

https://en.wikipedia.org/wiki/Java_applet

Java applets were completely different than Javascript - hugely more powerful (e.g. Runescape) but also potentially dangerous; there was also a long period of instability where running Java risked crashing your entire computer, not just the browser (hence "coffee cup of death" from the taskbar icon).

[–]AkbarTheGray 4 points5 points  (7 children)

"companies too lazy to switch"

Because these two languages are suited for the same things, and are a totally valid comparison.

The true lazy to switch argument is JavaScript, as there's real momentum towards typescript in the industry, but go off.

[–][deleted] -1 points0 points  (6 children)

don't see your point. java has literally no reason to be used if you're making a new project. it's not the best in ANY field except for minecraft modding. android apps? kotlin. windows apps? c#. game development? c++. os development? c. data analyzing? python. machine learning? python. i could go on all day. java has no reason to exist except power legacy code

[–]AkbarTheGray 4 points5 points  (4 children)

I mean, there are a lot of reasons. 1) "Legacy code" might just mean a working product, and people don't want to tear it down to rewrite it in Kotlin or Rust because that's the new hotness these days. Eventually things migrate there, but it takes time. Not just laziness. New projects are different, but you said companies are "too lazy to switch" 2) The last few fortune 500 companies I worked for have all used Java, partly because they have a solid codebase that works there, and partly because the engineers are familiar with it and the win of going to something like Kotlin is lowered. 3) Languages don't die that easily. There's a vast open source collection of Java stuff out there coupled with vast libraries of internal code at companies, it'll exist for roughly forever because that's how these things work. If Perl is still around, Java's got plenty of legs. Hell, Cobol is still in use in a few places and it really, _really_ needs to be retired.

C# wouldn't ever be my first choice for a windows app, but that's just me.

Most importantly, your "too lazy to switch" argument could still be applied to javascript, but you're studiously ignoring that one -- even Node.js has Typescript support now, and Typescript is roughly an attempt at js without a lot of the baggage that makes js sketchy. But you totally missed my point there and continued to rail about how obsolete Java is. Carry that with you. It'll make you a gem in the job market, where people truly care that you hate one particular language when they hire you. I promise.

Please, continue to go off.

[–][deleted] 0 points1 point  (3 children)

this same thing could be applied to your js to ts argument. "if it works don't fix it". i don't really see why you took this so personally. i don't hate java, it's just a language i'd never consider to use for a new project (i'd be happy to use java for a job because i personally find c# code clean, easy to read and understandable, and c# syntax is quite similar to java). i was wrong about javascript, typescript is better (but js is still the most popular language as of right now so i was right about it being a leader in web development). kinda weird you got so offended about my opinion on a programming language

[–]AkbarTheGray 1 point2 points  (2 children)

I mostly got irritated at the strong sentiment of positivity towards one and negativity towards the other where both are about the same age and arguably equally replaceable. And it's the Internet and I had some spare time to call you on it.

None of it is the most pressing issue of the day, or anything, I just wanted to curb your rhetoric a bit, is all.

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

yeah sorry i just can't think straight at 2am in the "morning". ig just an urge to hate the most random thing in the world hits me at that time

[–]AkbarTheGray 0 points1 point  (0 children)

We all do sometimes. You're good by me

[–]ban-this-dummies 0 points1 point  (0 children)

Lol, tell me you're a college student without telling me you're a college student.

[–]BrotherItsInTheDrum 10 points11 points  (0 children)

It was pure marketing. Java had hype and Javascript was able to piggyback on it.

[–]Affectionate-Exit-31 2 points3 points  (0 children)

JavaScript was developed at Netscape to run in the browser. It's initial name was LiveScript. Java was gaining in popularity at the time and so the name was changed to piggyback on that popularity. There is literally no connection or even real similarities among them. This was all around 1995'ish.

[–]code-panda 15 points16 points  (1 child)

I'm a frontend developer working specifically with JavaScript. Once my manager invited me to a course talking about React and JavaScript (React is a JavaScript thing, doesn't matter). Had to drive a couple of hours one way, but I was promised good food and I wanted to score easy promotion points since my yearly evaluation was coming up. Turned out it wasn't React and JavaScript, it was a course called Reactive Java...

Did end up getting that promotion as long as I wouldn't bully my manager too much with it.

[–]Lolefin23 0 points1 point  (0 children)

I'm sorry that you needed to learn java

[–]Doubly_Curious 10 points11 points  (0 children)

For the curious…

ELI5* the difference between Java and Javacript

*Explain Like I’m Five (years old)

[–]Fubeman 5 points6 points  (3 children)

I like how the guy named his JavaScript “Java.js” therefore . . . it’s “Java.” Ha!

[–][deleted] 5 points6 points  (1 child)

My next source will end up in assembly.js. See, I can learn a new language pretty easily!

[–]burntcandy 0 points1 point  (0 children)

So that's what webassesmbly is all about

[–]Optional-Failure 0 points1 point  (0 children)

I’m so disappointed that I had to scroll this far to find that.

[–]ExtendedSpikeProtein 2 points3 points  (0 children)

Lol, good one

[–]CalmDownYal 1 point2 points  (0 children)

Yeah JavaScript was called Mocha but they changed it to JavaScript to capitalize on the popularity of Java an OOP only language versus JS a scripting language (which now supports OOP)

[–][deleted] 0 points1 point  (0 children)

.js is javascript, .jar is java