5 ms·
Java would be the same success as PHP .. it might be everywhere but due to all kinds of side forces. It's like playing snooker, claiming a ball, missing it but
by agumonkey 5y ago
Java would be the same success as PHP .. it might be everywhere but due to all kinds of side forces.
It's like playing snooker, claiming a ball, missing it but scoring all the other ones accidentally and bragging.
- Sharlin 5y agoThat's very unfair. Some people may dislike Java and its ecosystem (and even the JVM platform), but it is not where it is now by accident.
- agumonkey 5y agoI honestly wonder what made java so prevalent server side. JVM jit speed and memory safety are good arguments but the rest was not so shiny. Remember the J2EE era, it was horrible and the reason java got there seems, IMO, to be heavy marketing. ps: I forgot, the JVM spec was a good thing, it made a lot of things sound for people, so easier deployments and less inconsistencies.
- Jetrel 5y agoNot exactly a java fan here, but java targeted the enormous block of people writing in C/C++ for their enterprise servers, and gave them "machine-independence". Being able to upgrade your server, and not having to rewrite your app, was huge. The competition wasn't PHP, at the time; it was C/C++. It's interesting in today's era of Rust, that people think of Java as failing to replace C++; in practice, it was only 90% successful, and managed to replace the vast majority of cases where people did use it. About the only things that didn't get replaced were (some) desktop gui apps, and apps that were so tiny that they weren't worth the launch of the JVM.
- agumonkey 5y agoYeah I remember steele saying they wanted to make c++ move toward lisp. But you got me curious.. what kind of backend code was written in c++ ? did people write server side logic in it ? I remember seeing some Oracle C code but it felt like a strange thing and not a c/c++ land. But to be honest that's not my world.
- pbourke 5y agoC++ was quite common back in the day. Amazon began as a C++ monolith (obidos).
- zmmmmm 5y agoAlso - you have to remember that in the late 90's / early 2000's, Windows was at peak dominance, nearly 100% of developers at work were stuck with a Windows desktop to develop on. At the same time nearly all servers were linux or maybe solaris. So how are you going to develop on Windows and deploy on Unix? C++ was a nightmare, scripting languages were far from ready ... Java was really transformational in how it gave a complete, totally portable standard library in a mature language framework. All these things are take for granted today.
- KptMarchewa 5y agoI honestly feel there was no competition in the early 00s besides PHP, and that choice came with tons of other issues, especially at that time.
- LanceH 5y agoBut it isn't necessarily there strictly on the merits of the language. Sun put a billion dollars of marketing into it. Managers, directors and others with expectation of ever programming were taking Java courses because it was going to change everything. It was going to run on every device in my kitchen, and they were all going to talk to each other. Instead the first niche it found was J2EE, and that "write once, run anywhere" was a bit comical, because who swaps out the OS on their server? It was apparently good enough to be the choice for Android and similar, but that was much later. It's really difficult to describe how people -- especially non programmers -- bought into the hype surrounding Java. I've since seen a bit of that hype around some things, but never to that extent: XML, SPA, a strange obsession with tiled widgets.
- pbourke 5y ago> It was going to run on every device in my kitchen, and they were all going to talk to each other. Instead the first niche it found was J2EE The first niche was applets. A managed language with a batteries-included library, familiar syntax and cross-platform GUI story was a new thing at the time.
- KptMarchewa 5y ago3 billion devices run log4shell.
- simion314 5y ago>Java would be the same success as PHP .. it might be everywhere but due to all kinds of side forces. People like you that complain about C,PHP,Java etc forget the history , your favorite cool language did not exist at that time or if it existed had probably a lot of downsides. Also many complainers do not work with the languages and repeat like parrots something they read. I would love to get some perfect programming language, something with more maths in it that forces thinking of solutions and less glueing shit together or rewriting X and CoolLang for my CV.
- deleted 5y ago[deleted]
- agumonkey 5y agoAnd what is that history I have forgotten ? Was java an embedded project at first ? yes Was it then a client side universal solution ? yes is it still any of those two ? no Also please don't make comments on me assuming I'm parroting, that would be nice :)
- whimsicalism 5y ago> Was it then a client side universal solution ? yes This remains true?
- agumonkey 5y agoI rarely run into client side programs being better (or even interesting) due to java/jvm. Eclipse was quite a clusterf.. (at least when I left that side in 2008). Note that I'm not anti Java. I just think its course was fluctuating across time and "success" is really a strange term. The rare times people were happy about Java was the advanced JIT.
- whimsicalism 5y agoIntelliJ/Pycharm?
- chuckSu 5y ago
- kaba0 5y agoPHP was a scripting language that got big because my aunt could create a “website” with it and host it for pennies. If anything, its popularity was the only surprising thing. The JVM on the other hand was not chosen by Google, Apple, Alibaba and basically the majority of web servers to be the base stone of their functionality by accident.
- agumonkey 5y agoBut the server side position of java is already a strange notion of success, as mentioned above java wasn't meant to live there. Hence the parallel with PHP, its mod_php was the reason admins installed it on servers, because it was easier and leaner (compared to mod_perl), a happy accident.
- wanderingstan 5y agoIndeed. Reminds me of an early 1997 interview I had about the future of Java, when it was trying hard to displace JavaScript in the browser (swing gui and such) and flash was already starting to beat it out. https://wanderingstan.com/netguide-interview-february-1997 https://wanderingstan.com/netguide-interview-february-1997
- jfengel 5y agoI still wonder what would have happened if Java decided to take Javascript's approach by giving access to the DOM, rather than an entirely separate GUI mode. Things like Google Maps and Gmail came as something of a shock. They were near-desktop-level apps entirely within the browser. That meant JS, not because of the language but because it was the only cross-platform system that gave access. It should have been possible to do that for Java as well, but they never really tried.