Java vs JavaScript

If you have been in programming for some time and have come across a Dilbert comic in your feed now and again. Now depending on your experience you may or may not understand some of the jokes in the strips. However, one comic caught my eye, which tackles an issue I had before I started programming. Java and Javascript.

Java is a compiled language which means it has to be launched in a intergrated development envirnment, IDE. Many IDE’s include Visual Studio, CodeBlocks and Android Studio, which distinctively uses Java and XML to build its applicaitons.

However, if you have run Java before you know that you can not run it without a couple of pre-requesites, an IDE which can run Java to build applicaitons, as well as the JDK (Java Development Kit). This includes the Java Runtime Environment (JRE), an interpreter/loader (java), a compiler (javac), an archiver (jar), a documentation generator (javadoc) and other tools needed in Java development. The JDK allows you to develop mobile and web applications.

What about JavaScript?

Despite the name Java Script is completely different to Java, as it has several main differences.

  • You can publish code straight into the browser
  • You don’t need an IDE or to download a JDK (Development Kit)

JavaScript is mainly used for web based applications and can be used for front and back end applications. The main appeal of JS is that you can type it up in notepad on your desktop with out a special compiler and run it in the browser and your code will work.

This is because all of the pre-requisites needed to run JavaScript are pre-installed in the browser allready, so you can code a web based game in note pad and it will work run in chrome.

This makes coding alot easier and fun as there are alot of possibilities with Javascript, below is a video which explains everything in a nutshell.

Leave a Reply

Your email address will not be published. Required fields are marked *