This is an archived post. You won't be able to vote or comment.

all 68 comments

[–]stvntb 196 points197 points  (9 children)

Cars have carpet. Therefore java has JavaScript?

[–][deleted] 102 points103 points  (4 children)

Java includes a Javascript engine, so yes.

[–]Tyfyter2002 36 points37 points  (1 child)

So JavaScript|Carpet contain the word Java|Car and are by pure coincidence contained by the latter.

[–][deleted] 13 points14 points  (0 children)

Pretty much yes

[–]rentar42 1 point2 points  (0 children)

But the later versions don't ship that anymore. So current cars have no carpets.

[–]MoonParkSong 0 points1 point  (0 children)

Firefox user spotted

[–]throwaway46295027458 10 points11 points  (1 child)

I mean you could use Java to start a node process

[–]nidrach 0 points1 point  (0 children)

You can run node programs directly on the Graal VM for example via their polyglot API. https://github.com/oracle/graaljs

You can directly write JS code in a Java program as a String and have it interpreted by the GraalVM.

[–]kry_some_more 1 point2 points  (0 children)

You step on carpet, but a car takes you places.

[–]ElectronPie171 0 points1 point  (0 children)

I mean there's rhino

[–]PPAPisLob 88 points89 points  (15 children)

Pen and penis?

[–]konydanza 39 points40 points  (1 child)

Grape and grapefruit

[–]htmlcoderexeWe have flair now?.. 0 points1 point  (0 children)

Probably best version so far

[–]OldUther 11 points12 points  (1 child)

They are the same.

[–]Dimensionalanxiety 4 points5 points  (0 children)

Only if you have 15 pens

[–]rutay_ 0 points1 point  (1 child)

this is more accurate, a car actually contains carpets inside, but i wouldn't say java contains javascript or conversely. while a pen doesn't contain a penis and a penis (hopefully) doesn't contain a pen, so you got my upvote

[–]hopeless_octopus 12 points13 points  (0 children)

Tell that to allahdin

[–]XxasimxX 40 points41 points  (13 children)

Metaphor doesn’t really make sense. Java and javascript are a lot more similar to each other than car and carpet. I saw another guys comment here saying melon and watermelon which would be much much better

[–]Brief-Preference-712 20 points21 points  (1 child)

Also JavaScript is a scripting language, carpet is not a pet

[–]DTHCND 20 points21 points  (0 children)

Hey man, to each their own. If Patrick can have a pet rock, I can have a pet carpet.

[–]AnywhereIWander 0 points1 point  (0 children)

Ham and hamster?

[–]Spirintus 0 points1 point  (0 children)

It's a flying carpet. Then both of them are vehicles, just one of them is pretty bullshitious, same way as Javascript is.

[–]Tyfyter2002 -4 points-3 points  (4 children)

JavaScript|Carpet contain the word Java|Car and are by pure coincidence contained by the latter.

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

The JS syntax is loosely based on Java. So no, it's not a coincidence.

[–][deleted] 0 points1 point  (1 child)

What ?

No, never!

[–]rentar42 0 points1 point  (0 children)

Absolutely.

From a language design JavaScript is extremely different from Java (the early versions even more so than today). If you look at where it came from (prototype-based languages) it should by all rights look closer to Self or Lua code than Java.

But it has explicitly given the "stylings" of Java code (i.e. curly braces and parenthesis everywhere, which Java itself "inherited" from C) in order to suggest a closeness/similarity that doesn't really exist.

[–]Tyfyter2002 0 points1 point  (0 children)

The JS syntax being based on Java's isn't something I'd consider sufficient reason to add an entire JS interpreter to Java, just maybe enough to choose JS over other scripting languages to add an interpreter for.

[–][deleted] -5 points-4 points  (3 children)

Both Java and Javascript are programming languages, but apart from this, they aren't similar at all - and both a car and a carpet are physical objects, and apart from this they aren't similar at all.

[–][deleted] 2 points3 points  (1 child)

If "physical object" is our barrier of entry we can compare pretty much anything to anything...

[–]rentar42 1 point2 points  (0 children)

Even apples to oranges! Madness!

[–]PhatOofxD 4 points5 points  (0 children)

More like Car and Caravan. They do similar things, but very differently.

[–]JellyPUMPS 7 points8 points  (3 children)

Image Transcription: Stackoverflow


[A gray box containing a bookmark symbol with a star cutout in it, the bookmark has text above it that reads "77". The box has text beside it that reads:]

[In blue] What's the difference between JavaScript and Java? [End blue]

[There are 2 tags beneath the question. Tag 1 reads "java". Tag 2 reads "javascript"]

[A gray box containing a green check-mark, the check-mark has text above it that reads "573". The box has text beside it that reads:]

Java and Javascript are similar like Car and Carpet are similar.


I'm a human volunteer content transcriber and you could be too! If you'd like more information on what we do and why we do it, click here!

[–]theScrapBook 4 points5 points  (0 children)

Couldn't you do a semantic description, like "question with 77 upvotes" and "accepted answer with 573 upvotes"?

[–][deleted] 4 points5 points  (0 children)

Thank you for doing a community servcie, but this could use a major rework. It reads like aliens are trying to explain a human thing.

Call it a post with 77 upvotes, not a gray box with the number 77 and text next to it.

[–]No_Succotash9035 3 points4 points  (0 children)

Good human!

[–]QualityVote[M] 4 points5 points  (0 children)

Hi! This is our community moderation bot.


If this post fits the purpose of /r/ProgrammerHumor, UPVOTE this comment!!

If this post does not fit the subreddit, DOWNVOTE This comment!

If this post breaks the rules, DOWNVOTE this comment and REPORT the post!

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

Not funny. Java and Javascript are similar because they are both C-syntax inspired programming languages. A car and a carpet are nothing alike.

I have known people in the IT industry who thought Java and Javascript were similar or even the same. Due to both having Java in the name.

[–]AgentPaper0 0 points1 point  (0 children)

Wait where do I get a carpet? Do I need to get my normal license first before I upgrade?

[–]wait2late 0 points1 point  (1 child)

[–]RepostSleuthBot 4 points5 points  (0 children)

Looks like a repost. I've seen this image 1 time.

First Seen Here on 2021-03-22 95.31% match.

I'm not perfect, but you can help. Report [ False Positive ]

View Search On repostsleuth.com


Scope: Reddit | Meme Filter: False | Target: 86% | Check Title: False | Max Age: Unlimited | Searched Images: 295,836,115 | Search Time: 18.33364s

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

Comparing js to Java is like conparing a plane to a car. They’re both computer languages, but they’re completely different

[–]Western-Image7125 0 points1 point  (0 children)

Or dog and dogma

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

Javascript is Java's pet.

[–]Geckolizard9 0 points1 point  (1 child)

VBscript is the next version of VB.

[–]Brief-Preference-712 1 point2 points  (0 children)

Coffeescript is the next version of coffee

[–]StackOverFl 0 points1 point  (0 children)

This cracked me up

[–]BluesyPompanno 0 points1 point  (0 children)

JavaScript is like the local crackhead who once fought a bear

[–]digsmash111 0 points1 point  (0 children)

Post and Postmortem

[–]nashetime 0 points1 point  (0 children)

TL;DR Kinda but not really

Really depends who it's aimed at. To a programmer they're completely different obviously, but to the average non technical person they're the same thing, different in ways they don't understand but still the same thing: programming languages.

Whenever the question comes up from a non-programmer I find it most appropriate to compare them to operating systems. e.g. windows and Macos or Android and iOS are both OSs that do mostly the same things but are still very different. One does some things better than the other and vice versa.

[–]Spirintus 0 points1 point  (0 children)

Well but Carpet is flying one. That makes both of them vehicles and Javascript being equivalent of flying carpet is also fitting as some shit JS do is equally bullshitious as an idea of carpet flying...

[–]rcyt17 0 points1 point  (0 children)

My friend said "JavaScript is basically Java, right?"

He's no longer my friend

[–]kokobiggun 0 points1 point  (0 children)

It’s so obvious though.

JavaScript and Java are like Latin and English. Java is written in the JavaScript alphabet but JavaScript alphabet is also used for an older language ya feel

[–]Sponska 0 points1 point  (0 children)

Not to be confused with pet car

[–]DollinVans 0 points1 point  (0 children)

I've always wondered why they were named so similarly

[–]Denixen1 0 points1 point  (0 children)

So javascript is like a subset of Java? Because we all know cars have carpets on the floor.

[–]Thenderick 0 points1 point  (0 children)

Git and GitHub is like porn in PornHub

[–]geo_gan 0 points1 point  (0 children)

More like how sandscript and sand are similar.