Quintilus

Engaged Member
Aug 8, 2020
2,687
7,640
Why are they doing it in Javascript anyway and not Java?
Java -> require dedicated virtual machine (slow by its nature, like running full emulator of a computer on other), require more powerful computer (because computer inside computer) and Inteligence >5 and Science > 80% to do something with it.
JavaScript -> mainly used in browsers (i.e. anything that able to launch it is gud enuf to launch JS port), language itself is pretty simple in all senses (even complete retard able to write something in it, but it would be something written by complete retard), there are lots of already ready solutions to read file/draw shit/text on a screen/play sound/etc.
 

Krynh

Engaged Member
Jan 20, 2020
2,850
4,242
Java -> require dedicated virtual machine (slow by its nature, like running full emulator of a computer on other), require more powerful computer (because computer inside computer) and Inteligence >5 and Science > 80% to do something with it.
Minecraft runs in Java though..
 

ctenken

Newbie
Feb 14, 2018
41
72
This is what I see. I opened by pressing index and it opens in my browser.
What I meant was is that you're missing the tits banner.
It looks like there is a high res and low res version of the picture. The low res picture was missing and my browser used the high res one so I was seeing the image and didn't notice the issue. Here's an updated version with the low and high res pictures.
 
  • Like
Reactions: Elias85 and Krynh

Fikedever

Member
May 26, 2020
101
321
Why are they doing it in Javascript anyway and not Java?
  • JavaScript runs in the browser. Pretty much everyone has a browser. Java is more difficult to run in the browser. I'm not even sure if Java applets can be run in the browser anymore (just like Flash).
  • Java requires an installed JVM. This makes it cross platform, but installing an extra program is an additional step that some people don't know how to do. JavaScript requires a browser/web renderer. OS's almost always come preinstalled with a web browser.
  • Java is more associated with business applications than games. There isn't a very good reason to choose it unless the developer is already experienced with the language.
  • JavaScript is hip and has all the hip tech stacks.
Java -> require dedicated virtual machine (slow by its nature, like running full emulator of a computer on other), require more powerful computer (because computer inside computer) and Inteligence >5 and Science > 80% to do something with it.
JavaScript -> mainly used in browsers (i.e. anything that able to launch it is gud enuf to launch JS port), language itself is pretty simple in all senses (even complete retard able to write something in it, but it would be something written by complete retard), there are lots of already ready solutions to read file/draw shit/text on a screen/play sound/etc.
While the JVM has overhead, JavaScript does as well. Both languages have a runtime. I feel like you are overstating how slow the JVM is compared to JavaScript.
 

Quintilus

Engaged Member
Aug 8, 2020
2,687
7,640
While the JVM has overhead, JavaScript does as well. Both languages have a runtime. I feel like you are overstating how slow the JVM is compared to JavaScript.
I just stated main differences between them.
I COULD have said something about "1" + 1 = "11" and "1" - 1 = NaN for JS and lack of GUI and proper support for important for game basic data types like unsigned integers for Java. But is non specialist in programming will understand all of it?
 

Krynh

Engaged Member
Jan 20, 2020
2,850
4,242
Java requires an installed JVM. This makes it cross platform, but installing an extra program is an additional step that some people don't know how to do. JavaScript requires a browser/web renderer. OS's almost always come preinstalled with a web browser.
I don't remember installing any additional java stuff with minecraft. Unless it does it all now?
 

Krynh

Engaged Member
Jan 20, 2020
2,850
4,242
But is non specialist in programming will understand all of it?
They made us learn Java at uni for a beginners programing lecture. I don't know why they went with that but it entirely put me off programming.
 
Last edited:

Warphorror

Active Member
Jan 2, 2018
663
830
They made us learn Java at uni. I don't know why they didn't go with a good language but it entirely put me off programming.
Off topic but Java is a good language for learning, an oriented object with good polymorphism, true inheritance and rigorous syntax without having to trouble you with the memory gestion. C, C++ and C# are really easy to learn after java because there are a lot in common (java being a "child" of C++). Javascript while being multi platform and more lightweight is horrible for anything oriented object and complex data manipulation, only good for client side data presentation. Server side we usually work with either C#, C++ or java (C# having a good support on microsoft server for obvious reasons).
If I had to learn with Scala I would have killed myself despite the performance of the language (if you want a nightmare try Oz it's (not) funny).
 
4.10 star(s) 64 Votes