Who is going to kill Java in the future?

Source: Internet
Author: User

Java is one of the most popular programming languages on the planet, but competition is intensifying. Below we will talk about where Java may encounter Waterloo and what can be done to prevent its decline.

The Tiobe index of September 2017 ranked Java as the more popular language of the month. In fact, it has been ranked the top three for many years.

Stack Overflow Developer Survey 2017 lists Java as the third most common programming language after JavaScript and SQL (in fact, it has been in place for the last four years).

We cannot deny that Java is still a popular language in many environments, not how these results are produced, or whether the results reflect real-world situations.

However, Java will someday die. No matter what, nothing can last forever.

The real definition of programming language death is that no one is using it--but it is difficult to do so. Even a decrepit and not widely used language (for example, have you ever heard of Modula-3?). ), still being used, maintained, or at least transformed into something else.

Of course, this is a gradual process, how the method of occurrence is uncertain. In practice, it is assumed that the programming language, when it is no longer being used in new projects, means its death, but it may still exist on many legacy projects (COBOL is a perfect example).

Eventually the end will come to Java, then who will kill it?

Let's analyze the options.

In a speech on "What Killed Smalltalk Could kill Ruby Too", Robert "Uncle Bob" Martin said that the reason Smalltalk was killed was that it was too easy to cause confusion, And its arrogance leads to unprofessional practices, such as a lack of test-driven development (TDD).

You can make a mess in any language. Of course, in some languages, it's more likely to cause confusion than other languages--for example, in a dynamic type language, we can change the type of the variable at any time--but we don't have this problem in Java.

In addition, good practices that many people use in the Java community, such as design patterns and TDD, help us make better software.

So let's explore another option.

Java is an object-oriented language. What if the other (new) paradigm takes over? What if object-oriented programming becomes obsolete?

Well, that's not a big possibility-the fundamentals haven't really changed for a long time. Significant innovations such as structured, functional, and object-oriented programming occurred in the the 1950s, 60 and even 70, but since then, nothing significant has happened.

But in the past decade, there have been many new languages that have a modern syntax and a framework for new features.

So, does not modern grammar and new features lead to the death of Java?

No, I don't think so.

Do you remember (or heard of) EJB 2.0 and its entity beans? They are scary, but members of the Java community, like Rod Johnson and Gavin King, respond with frameworks such as spring and hibernate.

In a similar fashion, although Java is not a fully functional language, we can make Java more functional because of libraries like VAVR.

I mean, Java is missing something that someone will fill this void by creating (frameworks, tools, specs, whatever).

So will Java die because of another programming language?

Let's take JavaScript for example. After all, JavaScript is capturing the world, isn't it?

We can use node. js in the background, similar to react native or ionic on mobile devices, and we don't even have to mention all the competing options on the front end.

But, at least in enterprise software, I don't see the trend that JavaScript is going to replace Java. JavaScript has no framework or tools for success in the enterprise domain. It also has no equivalent to the Java Virtual Machine (JVM), and the Java Virtual Machine (JVM) remains the preferred platform for large and mission-critical software.

What about Kotlin?

The Kotlin language first appeared in 2011, and Google recently announced first-class support for Kotlin on Android. Kotlin is gradually being adopted by well-known companies and is not limited to the Android apps of these companies (example).

In addition to its modern features, Kotlin is an open-source language supported by a company that produces the best Java ides.

So, if you ask me, my answer is, yes, Kotlin looks like a good candidate to replace Java (in the distant future).

Of course, Java can also be replaced by one or more languages.

What is it?

I'm not sure, and I'm sure no one knows the answer to that question right now.

All I can be sure of is that no language can kill Java in its own way. Without any external force, in this case.

The knife that kills Java is that it can't meet the needs of the market.

Programming languages are tools for building applications that solve computer problems. If a programming language provides abstractions, models, tools, and frameworks so that you can be more efficient or create more efficient code than Java, which language would you choose?

Even between Java versions, if you choose between Java 1.4 and Java 9, would you choose Java 1.4? Will you give up the opportunity to work with lambdas or generics? I don't think so. You will need the newer version of the feature.

Over the years, Java has been considered a lengthy and clumsy language because of checks for exceptions, inner classes, getter and setter, and so on. It wasn't until Java 7 (some people thought it was Java 8) that it started to get better.

However, Java 7 was released in 2011, nine years later than Java 1.4 (released in 2002). In this age, this is unacceptable and can lead to a vicious cycle.

Take a closer look at the Java diagram on the Tiobe page. Although Java most of the time is in the top three, there is a clear downward trend, indicating that it is losing market share. This trend is common in all languages. The most likely reason is that the number of programming languages is increasing, and applications are increasingly being written in multiple languages. Therefore, competition is more intense than ever.

If we think that other languages are better than this language, then it is no longer popular and we will not teach this language to a new generation of developers.

New tutorials, courses and books will no longer be created.

Valuable members of the community will be lured away by other technologies.

The language will not be used in the new environment.

will result in a reduction in the prevalence of language.

Mark Reinhold,oracle, chief architect of the Java Platform Group, proposed a new six-month release plan that is a major step forward in advancing Java and moving towards the future. In his words (in the feature-driven version):

This method can provide a large new function at a high level of quality after thorough inspection and testing by the early adopters. However, the disadvantage is that smaller API, language, and JVM features can only be implemented when large functions are ready. It was an acceptable compromise in the decades before and after the turn of the century, when Java was competing only with a few platforms that evolved at a similar pace. Today, however, Java is competing with many platforms that are growing at a faster pace.

Many of the last words are facts.

However, this is not just the work of Oracle. The community must also protect Java.

What do you do?

Some of my ideas:

    • Don't be arrogant (don't think Java is too big to fail)

    • Promote good development practice methods

    • Continue to publish awesome frames, tools, and more

    • Support JSR

    • Help with teaching and promoting the Java language

    • Try Java in a new environment

Otherwise, if Java cannot keep up with the pace of the times, it will eventually be shot dead on the beach by the rear wave.

Who is going to kill Java in the future?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.