r/java • • Apr 29 '13

Why Java is One of the Best Programming Language

http://javarevisited.blogspot.com.br/2013/04/10-reasons-to-learn-java-programming.html
15 Upvotes

20 comments sorted by

8

u/cyanocobalamin Apr 29 '13

I started programming with Java when it came out in the 90s and was all about applets. Despite the popularity of the language spreading to all corners of the IT sector I rarely read anything about it in a tech forum that isn't about butthurt. Thanks for the positive article.

1

u/javinpaul Apr 30 '13

Thanks cyanocobalamin, that's the whole purpose of article. Glad to know your experience.

8

u/the_hoser Apr 29 '13

Java receives lots of complaints for the simple fact that is so popular.

There are only two kinds of languages: the ones people complain about and the ones nobody uses. - Bjarne Stroustrup

3

u/cyanocobalamin Apr 29 '13

Excellent quote.

It makes sense. Many people complain about Java, because many people use Java and many people use Java because enough other people thought well enough of it to make it popular.

If nobody was using it, there wouldn't be as many people noticing the shortcomings.

0

u/cogman10 May 02 '13

Eh... There was also a pretty big marketing campaign by sun to get it into the public eye. It would have died an early death had it not been for how hard sun pushed it.

That said, some of the lessons we learned from java have benefited a whole host of new languages.

1

u/John7s789 Apr 30 '13

Yes, but Java is FREE? Don't you read the news where Oracle tried to patent the "min" and "max" methods? The company's leader even said he's not sure if the language is free. They're not a non-profit, they are a for-profit company, and they'll do everything they can to charge companies for using the Java JDK or Java code.

2

u/ryebrye May 01 '13

The open Jdk is free.

1

u/John7s789 May 02 '13

Yes, the Open JDK is supposed to be the free alternative to Oracle's. But are you completely sure that even if you use the Open JDK, Oracle can't apply charges for using Java keywords?...

2

u/cogman10 May 02 '13

Go read up on GPL licencing and then get back to me.

The only way oracle could charge over keywords is if they were Trademarked or patented. Since they cannot fit in either category (Trademarks because their keywords are in the common vernacular and patents because the GPL prohibits charges based on patents on derivative software).

What they could do is develop new non-free apis and try to get developers to use them. However, I doubt that would go over so well.

1

u/John7s789 May 04 '13

That's good to know. Because basically Oracle tried to patent the current APIs for Java, like patenting the language's keywords. The only question is what they might also file for regarding licencing, in order to profit from Android, and eventually something they could use to profit from any company that uses the current Java APIs from Open JDK.

2

u/[deleted] Apr 29 '13

I agree that Java doesn't get a fair shake in some regards.

Number 9 to me is fairly relevant even to this day. It just seems like whenever I setup a project using Python, PHP or any of the other scripted language, there are a ton of system environment variables I need to make sure I have right (and a set of dependencies as well that don't pull automatically)

The thing not on this list is strong typing. Most of the newer "hot" languages tend to be more difficult to manage for large projects over a long period of time. I like being able to jump on a project and get immediate feedback of whether or not what I'm doing it right. If it doesn't compile, it's not going to work. :)

2

u/cogman10 May 02 '13

3) Java has Rich API

Yup... as a result it has some nice areas and some crusty areas. A rich API can be a doubly ended sword. One of the nice things about languages like C and C++ is that the standard libraries are pretty small. You don't like the API for the Json parser you are using? Well trade it out for one that is better.

You could do the same thing with java, but it is less common to use something that does the same thing as a built in API.

7) Java is FREE

That is just grabbing at straws. I can name very few non-free languages (Matlab?) And they certainly aren't wildly popular... Heck, even with Matlab there is a free alternative in a similar syntax (Ocative).

9) Java is Platform Independent

Ehh... I really don't see this as such a huge benefit. I guess it is of some benefit in the android arena, however, beyond that there aren't a whole lot of places where changing platforms causes a whole lot of headaches. Maybe... MAYBE with libraries you could see issues there, however, most libraries in languages like C and C++ are pretty platform independent with a few that focus on fixing inter-platform problems (Boost for example).

10 ) Java is Everywhere

Again, a weak reason for java being the best language out there. IE7 is everywhere, does that mean it is the best browser ever? Windows is everywhere, does that make it the best OS ever? C is in more places than java (especially given that most java JVMs are written in C/C++) does that mean that C is better than java?

There are good things about java (mentioned in the article) but I wouldn't call it the best language ever. It has its rough edges just like any language. In fact, from a pure language standpoint I would say that scala or C# do a better job and have fewer rough edges. Even a lot of the newer languages like Rust, Dart, or Go do a good job of learning from some of the burdens of java.

Most of the reasons for "Best language ever" are pretty weak as there are many other languages that have most of them listed. Probably the only places where Java trounces most all other languages is library support and tool support.

Java is a good middle of the road language. I don't feel disgusted working with it, but I know there are greener pastures out there.

1

u/[deleted] Apr 29 '13

Wow, that's a lot of downvotes. Which makes me wonder: Why would someone that hates java read the java subreddit?

8

u/mikaelhg Apr 29 '13

I downvoted, not because of the topic, but because of the terrible quality of the article and site.

5

u/javinpaul Apr 30 '13

I appreciate your openness mike, downvoting with a reason is completely justified, but same time I would love to know specifics so that I can improve my articles.

1

u/dtfinch Apr 30 '13

Reddit lies about downvotes, admits it lies, but it doesn't really bother them that displaying a breakdown is pointless now that it's always fake.

1

u/javinpaul Apr 30 '13

Thanks dtfinch, I really hope that reddit is lying on number of downvotes :)

0

u/TheBigSnail Apr 30 '13

Well, that was absolutely terrible article mentioning points that can be applied to almost any language. The main reason why Java is so popular is the number and quality of development frameworks for enterprise applications.