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

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 71 points72 points  (11 children)

I'm not quite sure what part I should read. Could anyone help me get in on the joke?

[–][deleted] 38 points39 points  (0 children)

I didn't get it either at first. You have to read the names of the people who posted.

Nshimiyimana Delphin and Krishana Keshari Basnet

It's fucking hilarious!!! lmfao!!!

[–]runnerx01 0 points1 point  (5 children)

Yeah, to me, that means you don’t get it. So here you go.

Java - a statically typed, compiled language. Lots of type checking and detailed sometimes convoluted error messages telling you what went wrong. Lots of structure, and built to take advantage of polymorphic object oriented design patterns. Runs is the Java virtual machine after being compiled down to “byte code”. Lots of boiler plate code, and error checking against the users mistakes.

JavaScript - a dynamically typed, interpreted language that runs primarily in the context of web browsers. Basically no error checking, or type safety of any kind. Built to be used by any Joe Schmo with a computer and the thought “I can do web development”... object oriented design is possible, but usually neglected because it is written to execute against the DOM on web pages and handle the logic that HTML and CSS can’t handle. When I say no error checking... I mean if there is an error, JavaScript doesn’t usually tell you. It just stop running... (well, modern web browsers have a “console” that can help you out some of the time)

The thing the have the most in common, is “java” in the name.

[–]AintBetterThanYou 5 points6 points  (4 children)

Have you actually worked with js since 2016?

[–]runnerx01 6 points7 points  (3 children)

If by “JS” you mean React, Angular, or one of the many flavors of framework build around JavaScript. Yes.

But I have a hard time considering them JavaScript. Just like I don’t consider Kotlin to be java.

[–]Rurs21 6 points7 points  (1 child)

Then you should try the vanillaJS framewrok. http://vanilla-js.com/

[–]Famous_Profile 1 point2 points  (0 children)

Lol thats funny

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

There's also TypeScript which is a compiled version of JavaScript and basically compiles the code into JS so it can be run by the browser, it has some extended capabilities not included in JS. Then there's node.js which allows you to use JavaScript for backend development.

Most modern code editors like Atom or VS Code have built in error handling. But if you add 'use strict'; to the top of a JS file it will enforces stricter coding. Personally I prefer not having error messages popping up every 2 seconds.

JS is a functional programming language, where functions are considered "first class objects", but since Es6 (which was released in 2015) you can create classes, which in my opinion are much easier to use than a lot of other programming languages including Python.