4 ms·
Well, there is opportunity cost. Could the time and effort spent on Java be better spent elsewhere? It may be because I'm still feeling the glow Java had when
by 10ren 17y ago
Well, there is opportunity cost. Could the time and effort spent on Java be better spent elsewhere?
It may be because I'm still feeling the glow Java had when I learnt it in the late 1990's, but I really like a lot of things about it. It's a very simple, safe and easy to use language, it's C++ without the broken glass, it's C with automatic memory allocation, bounds checking and a nicer package/interface system. API's are separated and enforced. It used to be bemoaned as slow ("knock knock" "who's there" "................java"), and now it's seen as fast. That's pretty cool (it's partly because it's relatively faster than python... but it also has been made actually faster).
Many early adopters left it for python/ruby a few years ago when the small language that Java was became uglier with extensions, esp generics and annotations. Perhaps an important reason people left is because it became successful, and it became associated with unpleasant mindless corporate programming.
If you care at all about what qualities a language needs to have in order to be wildly adopted, Java has something to teach. Some people say it was just Sun's marketing... but Sun marketed it as a web language (applets), and it never took off there.
- mmt 17y agoWell, there is opportunity cost That's the succinct version of my first thought: "Because one was too busy making something instead of learning languages for their own sake."
- karthikm 17y agoThe opportunity cost of learning Java (or any programming language/paradigm for that matter) is very low compared to cost of failure (in the instance i've quoted). Your thoughts on what's good in Java is well put. I don't know if generics/annotations made the language uglier but I can definitely vouch that it has made my life a lot more easier to write programs faster. Has it made my programs faster? - maybe or maybe not :)
- silvestrov 17y agoJava is the new C.