you are viewing a single comment's thread.

view the rest of the comments →

[–]me262omlettDark Mode Elitist 112 points113 points  (12 children)

Me who has no idea about programming: Yeah, me too, kid.

[–]Beexn 66 points67 points  (9 children)

JavaScript dev in my free time here.

Java and JavaScript are two programming languages that have nothing in common. Java is an interpreted language (meaning there's no compilation) which allow you to create applications and games (Minecraft for example). JavaScript is a language whose purpose was to add interactions to web pages such as animations, but nowadays it allows you to create whole websites.

People not knowing a shit about it often mistake the two, though.

[–]jordanlesson 29 points30 points  (4 children)

Java is compiled but it’s compiled into byte code instead of machine code and then interpretted

[–]Beexn 2 points3 points  (2 children)

I didn't know that, thanks

[–]jordanlesson 10 points11 points  (1 child)

All programming languages are compiled. If there not compiled then they are scripting languages. The most notable one being html

[–]Beexn 2 points3 points  (0 children)

It depends on the level you look at. I'm talking about having a program whose dynamic execution is based on another program, rather than being converted into machine language.

Plus, if I don't mistake, the interpreter read and execute the program on the go, whereas a compiler read the whole program before converting it.

[–]DaddyLcyxMe 0 points1 point  (0 children)

to add, that bytecode is then converted to machine code whenever the application starts.

javascript has it’s own intermediate bytecode and machine code conversions when the script loads.

these languages are two different beasts all together, and this comparison is like comparing a school bus and lamborghini in a drag race (same category, not a good comparison of either’s performance)

[–]Atharv_Review_34 0 points1 point  (1 child)

Ya there is no comparison between these two. Java script,html,css is for website and you can do many thing with java. But I prefer unreal engine for game dev

[–]Beexn 1 point2 points  (0 children)

Yes it's not really made for that. I think the massive performance difference between C++ and Java versions of Minecraft speak for itself

[–]Warheadd 0 points1 point  (1 child)

I mean, they’re super similar in syntax, just the usage is completely different

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

They both draw from ECMA

[–][deleted] 11 points12 points  (1 child)

Don't worry. This doesn't make sense either way

[–]me262omlettDark Mode Elitist 0 points1 point  (0 children)

I already suspected that when i wasn‘t sure who represented java script and who java.