r/shittyprogramming • • Nov 18 '16

Please stop saying that Java and JavaScript are the same thing

They are clearly different. For one, JavaScript is much less versatile because it has to be written in cursive. Java, on the other hand, you can basically just write whatever the heck you want and it'll compile something. And everyone always complains about how long the lines can get in Java. Well you should be appreciative because it raises the skill ceiling, making the competitive scene much more exciting. So please, respect the many differences between Java and Script.

255 Upvotes

18 comments sorted by

86

u/DrWatson420 Nov 18 '16

You can always start by learning JavaScript then just forget the Script

10

u/bigpigfoot Nov 19 '16

java is javascript except its more than just scripts so op is right java is more versatile

20

u/Harakou Nov 19 '16 edited Nov 19 '16

Here's the thing. You said "javascript is java." Is it in the same class? Yes. No one's arguing that. As someone who is a computer scientist who studies javascripts, I am telling you, specifically, in computer science, no one calls javascripts java. If you want to be "specific" like you said, then you shouldn't either. They're not the same thing. If you're saying "java family" you're referring to the set of JVM languages, which includes things like Scala and Clojure. So your reasoning for calling a javascript a java is because random people "call javascripts a java?" Let's get C# and Coffeescript in there, then, too. Also, calling something an object oriented or imperative language? It's not one or the other, that's not how programming works. They're both. A javascript is a javascript and a member of the java family. But that's not what you said. You said a javascript is a java, which is not true unless you're okay with calling all members of the java family javas, which means you'd call Scala, Clojure, C# and Coffeescript javas too. Which you said you don't. It's okay to just admit you're wrong, you know?

4

u/ThuisTuime Nov 19 '16

UwotM8?

6

u/pigeon768 Nov 19 '16

2

u/tylero056 Nov 19 '16

I miss unidan. Even though he used multiple accounts to give himself karma, I always enjoyed his comments

2

u/[deleted] Nov 22 '16

/u/unidanX is his new account. I think he's still reasonably active on it.

Thing is, he didn't really need to give himself karma.

14

u/dawy Nov 19 '16

One is essentially a toy, designed for writing small pieces of code, and traditionally used and abused by inexperienced programmers.

The other is a scripting language for web browsers.

2

u/pnorcross Dec 12 '16

AH! You got me there!

13

u/CellularBeing Nov 19 '16

I just program in pure html Sure it's not object oriented but its basically C programming

3

u/toastedstapler Nov 21 '16

I use a script to make every possible HTML page I'll need, rather than use silly JavaScript and php to change the contents

9

u/ipullstuffapart Nov 18 '16

My boss does this exact thing and it's incredibly irritating. And he's a professional web developer

14

u/trout_fucker Nov 18 '16

My boss does this exact thing and it's incredibly irritating. And he's a "professional" web developer

FTFY

3

u/AlGoreBestGore Nov 19 '16

Your boss is a spider?

1

u/divyap1 Dec 22 '16

The JavaScript programming language, developed by Netscape, Inc., is not part of the Java platform. JavaScript is a programming language that is run by most modern browsers. It supports object-oriented programming and procedural programming. It can be used to control web pages on the client side of the browser, server-side programs, and even mobile apps development . JavaScript does not create applets or stand-alone applications. In its most common form, JavaScript resides inside HTML documents, and can provide levels of interactivity to web pages that are not achievable with simple HTML.

Key differences between Java and JavaScript: Java is an OOP programming language while Java Script is an OOP scripting language. Java creates applications that run in a virtual machine or browser while JavaScript code is run on a browser only. Java code needs to be compiled while JavaScript code are all in text. They require different plug-ins.

JavaScript is an object-oriented scripting language that allows you to create dynamic HTML pages, allowing you to process input data and maintain data, usually within the browser. Java is a programming language, core set of libraries, and virtual machine platform that allows you to create compiled programs that run on nearly every platform, without distribution of source code in its raw form or recompilation.

While the two have similar names, they are really two completely different programming languages/models/platforms, and are used to solve completely different sets of problems.

1

u/[deleted] Dec 22 '16

yeah ok, but did you know that javascript was invented in the early 1800s and regular java hasn't even been released yet? better go to best buy and put in your pre-order, bud.

3

u/scorcher24 Nov 19 '16

You wrote JQuery wrong.

2

u/enchufadoo Nov 19 '16

if java-script is so smart why doesn't it work on internet explorer and installs virus when I try to chat?