Live data from Hacker News

Ask HN: Would Java make it if introduced today?

news.ycombinator.com

41–50 of 57 posts

Re: Ask HN: Would Java make it if introduced today?

#41

Earlier quoted context omitted.

OO's death has been exaggerated. Take a language like Scala, which has really powerful OOP constructs in the form of mixin-style traits (at least on the static side of object innovation). Not to mention many of the strongtalk people are now working Dart. Objects will rise again (if you think they've fallen, that is).

I agree somewhat. You can also find object models in plenty of other places where many don't realize it (e.g. in many practical implementations of actor model concurrency). Those are all relatively small and indirect victories though. Who knows - maybe pure message passing languages might become the next fad soon enough.

The Clojure and Go people always like to talk about their non-object systems, which are of course very object-like. The only real functional purists is the haskell community.

I'm personally working a new language/programming environment right now based on traits/mixins; there is still a lot of fun to be had there.

Re: Ask HN: Would Java make it if introduced today?

#42

Instead of answering the question, I'd like to point out how different the world of programming might look today WITHOUT Java. Java was the first maintstream GC language (no more malloc), fully object oriented and the first byte code based VM language. Prior to Java, you were either writing in interpreted languages like Perl or in C/C++. Java brought programming to a higher standard with clear syntax, easy of use and…

> the first byte code based VM language

UCSD pascal would like to have a word with you. Circa 1980

> fully object oriented and the first byte code based VM language.

Smalltalk would like to have a word with you. Circa 1984

> Java was the first maintstream GC language

Basic (in all its variations) would like to have a word with you. Circa 1968; And perhaps it is going to bring along its buddies Lisp (1958?) and APL (1950-1960, depends on who you ask).

All of these languages were mainstream at one point or another - in a much smaller world, but still, mainstream.

Java wasn't the first to offer all of these together - Smalltalk did that in 1984, and I'm not sure Smalltalk was the first.

> Java brought programming to a higher standard with clear syntax, easy of use and a much faster learning curve than languages up to that point. That paradigm gave rise to new languages like Javascript and new designs for large scale software.

Java's syntax is clear only to someone who is versed in Java (or a Java like language like C, C++, C#). Python came out at the same time (1991) and brought a syntax much, much clearer, with a much faster learning curve. It was also VM based and GC, by the way - and having programmed both in 1991, I can tell you Python was often much faster (mostly owing to dicts being implemented in C, whereas Java was all interpreted).

> So, I think it's irrelevant if Java would make it if introduced today since I am not sure today would be here (or at least in its current form) without Java.

I agree. But I don't think that's necessarily a good thing. Specifically, I don't think Java deserves any accolades. It's the COBOL of the 21st century. If Java wasn't around, and Python took over, I think we'd be in a much better place. If Java wasn't around and C/C++ continued their reign, I supposed we'd be slightly less well off. We don't have to agree on opinion. But we should be able to agree on facts.

Re: Ask HN: Would Java make it if introduced today?

#43
If Java was released today, it would still be valuable. Java is a small, well defined language (without many surprises). Java runs on an open source platform, OpenJDK. The JSR's are incredibly well designed -- Web programming (Servlet, JSP, JSF), Message Driven Beans, JMS, JPA, and JAXB.

If you look at benchmarks of web applications/frameworks, Java-based ones are blazing fast.

Re: Ask HN: Would Java make it if introduced today?

#44
I don't know, but Java definitely succeeded at least in part because of the programming environment at the time.

I didn't live through the time that Java saw it's rise in use on the enterprise, but what I've been told by others that was a big deal at the time were two things combined that made it attractive, and it being one of the few languages that was very accessible that had these two characteristics. These were:

* Garbage Collected language.

* Being able to write code in Windows (which is what most enterprise developers used then and even now), and deploy on Linux/other OS reliably.

Again, this is just what I've heard from others that were there, so feel free to correct me if I'm wrong.

Today, there are other options, so maybe it wouldn't be as big a sellilng point. But to me at least, it is still one of the languages that allows this the easiest by far.

Re: Ask HN: Would Java make it if introduced today?

#45

Honestly, as it currently stands, Java appears to me as merely a pared down version of C#. C# shares nearly all of the same major features, while adding in more useful ones like properties and Linq, plus the promise of many new features on the horizon, like the null propagating operator. All of those, plus the rest of Microsoft's development ecosystem, make it a much nicer language overall. The only reason I don't th…

Isn't Silverlight effectively dead for new development?

I know it won't even run in Chrome any more, and it's been several years since Microsoft issued any updates.

Re: Ask HN: Would Java make it if introduced today?

#46

Instead of answering the question, I'd like to point out how different the world of programming might look today WITHOUT Java. Java was the first maintstream GC language (no more malloc), fully object oriented and the first byte code based VM language. Prior to Java, you were either writing in interpreted languages like Perl or in C/C++. Java brought programming to a higher standard with clear syntax, easy of use and…

Don't forget the culture of design-pattern-overdose, dogmatic architecture astronautism, and extreme overengineering that it propagated. This happens in C++ too, but in Java, it was so easy to build obtusely baroque designs with disturbingly long chains of indirection and have everything still work for the most part... while consuming massive amounts of CPU time and memory.

I worked briefly with Java applications in the early 2000s, and that was certainly not an enjoyable experience. I won't miss the bureaucracy, extreme waste, and fervently dogmatic adherence to "best practices" that created more busy-work than anything else.

"If all you have are classes, everything turns into an object."

Re: Ask HN: Would Java make it if introduced today?

#47
The way that the Java platform evolved very slowly just seems rather unlikely nowadays. Sun didn't allow for Java extensions that made it too platform dependent. To this day Java's platform independence is perhaps its greatest legacy, since platforms have changed a lot and the Java code can still be used even for the latest hardware.

But the idea of a proprietary platform is just exotic nowadays. I doubt it that when they started the Java project that they imagined it that most of it would be free and Free. Everyone wants software to be a commodity. I don't know how they would fund a similar project knowing that it would compete against very much free and Free solid alternatives.

Also, browser plugins are dead. So something like Java applets would hardly take foot.

Like others have said, one of the big selling points for Java was Windows development. The interfaces sucked. But the need was there. Once Microsoft came up with .NET that profitable market was challenged.

A lot of Java alternatives nowadays can go a long way from just hosting web services on Linux. So Java's selling point of supporting many different platforms would not have been as interesting. Also, Apple restricts JIT on iOS, further compromising alternative platforms on that platform so even if a new Java wanted to support iOS it would have to settle for less.

Settling for less was in fact one of Java's goals. It helped it with platform independence. But it didn't make many platform dependent developers too happy either. :-)

Re: Ask HN: Would Java make it if introduced today?

#48
post #36
post #34

Earlier quoted context omitted.

Do you have any links / sources to back this story up? I haven't heard about this before.

This was back in the 90s, when Microsoft had their own JVM and own version of java called j++

i STILL REMEMBER VISUAL J# AND vISUAL j++

Re: Ask HN: Would Java make it if introduced today?

#49
post #34
post #32

Earlier quoted context omitted.

Worse, they took Java, put Windows only stuff in it, and Sun sued them...

Do you have any links / sources to back this story up? I haven't heard about this before.

http://www.javaworld.com/article/2077055/soa/what-does-sun-s...

Re: Ask HN: Would Java make it if introduced today?

#50
post #34

Earlier quoted context omitted.

Do you have any links / sources to back this story up? I haven't heard about this before.

I hesitate to pull the "Google is your friend" card, but this is one of those stories that's so well documented that a three word query will keep you reading relevant articles all weekend.

What's bad about LMGTFY is it assumes Google's results and articles would lead me the correct and objective sources - in a perfect vacuum - where you assume I know what to even query. C# and Java bring up a lot of things - and guessing won't necessarily reveal the context of what was in conversation.

In my opinion, the LMGTFY peanut gallery tend to be the glib one's. Always going for the short, clever smirks, never the depths, the wisdom; teaching others.

What's most toxic about this kind of - I assume well-intention people's behavior - I literally find myself Googling, and every now and then, hopefully an answer on forum thread where they say "Just Google it", "Just search it on the forum".

Post reply on HN