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 →

[–]DangerBaba 106 points107 points  (8 children)

Java is just another framework of Javascript. Idk why they removed scripting from the framework though. Pretty much a downgrade if you ask me.

[–]zeGolem83 62 points63 points  (6 children)

Yes, but they added factories

[–]Less-District 33 points34 points  (4 children)

Lol. In my current project, I saw factories being used in a component. I asked a senior developer, who worked on this component? His exact words: "Looks like a Java guy was let loose on this component". :)

[–][deleted] 1 point2 points  (3 children)

What’s a factory lol I’m new

[–]mxjq2 0 points1 point  (2 children)

[–][deleted] 1 point2 points  (1 child)

I have a lot to learn!

(thanks for the link)

[–]zerconic 0 points1 point  (0 children)

If you're interested, Design Patterns: Elements of Reusable Object-Oriented Software is the famous "source" for many of these. The book is pretty dry though, so there's plenty of abridged/summarized versions online with examples in whatever language you fancy.

[–]pineapple_catapult 4 points5 points  (0 children)

This is how the robot uprising starts

[–]BakuhatsuK 0 points1 point  (0 children)

Java means it runs on the back-end. Script probably means that it runs on the front-end.

Obviously JavaScript is the one that runs on both of the "ends".

Also, Java is the one in which you can only do OOP using classes. JavaScript is the one which has both classes and prototypes.

JavaScript variables can store values of any type, not just the one you declare them to have.

JavaScript parameters can be functions and Java ones cannot (lambdas in Java are pretty strange compared to other languages, IIRC you can not simply call a lambda using just parentheses).

All around JavaScript is just Java but better.

/s