r/programming • u/joanmiro • Jul 18 '16
Web programming is getting unnecessarily complicated
http://en.arguman.org/web-programming-is-getting-unnecessarily-complicated
324
Upvotes
r/programming • u/joanmiro • Jul 18 '16
View all comments
Show parent comment
-13
u/[deleted] Jul 18 '16
I am curious why you come to this conclusion. JavaScript and Java are both garbage collected languages, so performance management in both is hands off at a lower unexposed level.
Early in its day Java was also slow garbage, but then it adopted the JVM in the late 90s. Java used to be hundreds of times faster than JavaScript, because of it. Now JavaScript has nearly reached performance parity to Java. Aside from graphics and visual artifacts the differences between these two is nearly unnoticeable. In benchmarks Java will always be faster because it is statically precompiled and statically typed. In real world use though these things don't really matter. The JavaScript compile time is pretty tiny and only evident on first execution (cold state). Ultimately, the differences are irrelevant unless you are competing in benchmark tests.
Neither was Java... it was too slow and failed too frequently. It was intended to serve media as applets.
What really kills me is that Java takes a long time to compile. A soul destroying legendary amount of time to compile. When I make a change in Java code I have to rebuild, which is time best spent on Reddit instead of doing the job I am paid to perform.
Worse still is the lie that Java is a web technology. It isn't. It isn't an open source project backed by a standards consortium. It is a commercial product of a software company. If you ask a Java developer if they are a web developer they will probably say yes, because they bought into this lie. It is easy to prove that it is a lie, because when you ask the average Java developer about web technologies you get back confusion, defensiveness, and other emotional qualities associated with little white lies. When I say asking about web technologies I mean simple universal knowledge like the syntax of URI, HTTP headers, Unicode, and so on. But... you know.... Java is science. I might honestly believe that as well if not for this painfully obvious lie.