Java in 2017 Survey Results – 2017年Java的调查结果

最后修改: 2017年 4月 8日

中文/混合/英文(键盘快捷键:t)

We’ve been running the “State of Java” survey for many years now – to get a good read of the state of the Java ecosystem. Last year, 2250 Java developers decided to take the time to answer the questions, and so it’s fantastic to see this year that number is almost double – we got 4439 answers.

我们开展 “Java现状 “调查已经很多年了,目的是了解Java生态系统的状况。去年,有2250名Java开发者决定花时间来回答问题,所以很高兴看到今年的数字几乎翻了一番–我们得到了4439份答案。

So, before we get into the numbers – I wanted to say “thanks” to everyone who participated.

因此,在我们讨论数字之前–我想对每个参与的人说 “谢谢”。

Let’s jump right in and start with the Java adoption.

让我们直接跳进去,从采用Java开始。

1. Java Adoption

1.采用java

The 2016 numbers had Java 7 adoption at 29.5% and Java 8 at 64.3%.

2016年的数字Java 7采用率为29.5%,Java 8为64.3%。

The numbers today – April 2017 (exactly one year later) – look quite different:

今天–2017年4月(整整一年后)–的数字看起来完全不同。

As you can see, Java 8 adoption has reached a solid 75% of the developer community.

正如你所看到的,Java 8的采用已经达到了开发者社区的75%。

This is quite encouraging to see and it also means that we’re very much ready for Java 9 to finally be here.

看到这一点相当令人鼓舞,这也意味着我们已经为Java 9的到来做好了非常充分的准备。

Let’s have a look at the Spring and Spring Boot numbers next.

接下来让我们看一下Spring和Spring Boot的数字。

2. Spring Adoption

2.Spring领养

The 2016 numbershad Spring 4 adoption at 81% and Spring 3 at 18%.

2016年的数字Spring4号的采用率为81%,Spring3号为18%。

Let’s have a look at the 2017 numbers now:

现在让我们来看看2017年的数字。

Spring 4 has inched up from 81% to 85% and Spring 3 has gone down from 18% to about 12% over the course of a year.

Spring4号从81%上升到85%,Spring3号在一年中从18%下降到约12%。

What’s also quite interesting is that more than 2% of developers are using the Spring 5 milestones – which is a lot higher than the 1% using Java 9 milestones.

同样相当有趣的是,超过2%的开发者在使用Spring 5的里程碑–这比使用Java 9里程碑的1%要高得多。

Finally, note that these numbers represent the developers that are using Spring. Overall, 25.5% of the developers answered they’re not using the framework.

最后,请注意,这些数字代表的是正在使用Spring的开发者。总的来说,25.5%的开发者回答他们没有使用这个框架。

3. Spring Boot Adoption

3.采用Spring Boot

Boot is seeing some incredible adoption in the Spring ecosystem – that much is clear. Last year, the adoption numbers were at 53% – which is very high considering just how new the project really is.

Boot在Spring生态系统中的采用情况令人难以置信–这一点很清楚。去年,采用率为53%–考虑到该项目确实很新,这是非常高的。

Well, this year, growth is still going strong: ​

那么,今年,增长仍然强劲。

We can see that, summed up – the adoption number for Boot jumped from 53% to 70% – which is huge year over year growth. ​

我们可以看到,总结起来–Boot的采用数字从53%跃升至70%–这是巨大的同比增长。

4. IDE Market Share

4.IDE市场占有率

Time to look at the market share of IDEs in 2017:

是时候看看2017年IDE的市场份额了。

The trend was pretty clear last year as well – Eclipse is bleeding users to IntelliJ and NetBeans.

这个趋势在去年也很明显–Eclipse的用户正在向IntelliJ和NetBeans流失。

Last year, Eclipse was at a respectable 48% and it’s now sitting at a 40.5% – which is a severe, near double-digit drop in a single year.

去年,日食的比例是可敬的48%,现在是40.5%–这是一个严重的、接近两位数的下降,在一年之内。

5. JVM Languages

5.JVM语言

This year, we asked a new question in the survey – “Are you using other JVM based languages?”.

今年,我们在调查中问了一个新问题–“你是否使用其他基于JVM的语言?”。

Here are the super interesting results:

以下是超级有趣的结果。

Groovy is clearly leading the pack with a strong 40%, Scala’s following suit with over 28.5% and Kotlin is number 3 – with a surprising 11.5%.

Groovy显然以40%的强势领先,Scala以超过28.5%的比例紧随其后,Kotlin位居第三–以惊人的11.5%。

Note this data is adapted to the “yes” answers – developers who are using other JVM languages. Overall, 57% of developers are only using Java.

注意这个数据是适应于 “是 “的答案–正在使用其他JVM语言的开发者。总体而言,57%的开发者只使用Java。

6. Build Tools Market Share

6.建设工具的市场份额

On to build tools. Last year, we had Maven sitting at 72.5% and Gradle at 19%.

关于构建工具。去年,我们的Maven占72.5%,Gradle占19%。

Well, this year’s numbers are quite close – surprisingly, Maven’s slowly getting even more traction and is now at 76% and Gradle is just slightly down to 18%.

好吧,今年的数字相当接近–令人惊讶的是,Maven慢慢得到了更多的关注,现在已经达到了76%,Gradle只是略微下降到18%。

The build tools market seems to be a lot more stable than the rest of the Java ecosystem, where things are changing a lot more and a lot quicker.

构建工具市场似乎比Java生态系统的其他部分要稳定得多,因为那里的变化要大得多、快得多。

7. Running Your Own Blog?

7.运行你自己的博客?

We added this question in the survey out of pure curiosity. Here are the results:

我们纯粹是出于好奇才在调查中加入这个问题。以下是结果。

Hopefully, more and more developers are going to start writing and putting their work out there.

希望越来越多的开发者开始写作,并把他们的作品放在外面。

8. Conclusion

8.结语

The 2017 numbers are quite interesting and somewhat surprising in some respects.

2017年的数字相当有趣,在某些方面有点令人惊讶。

Java 8 adoption has hit 75%, only a few months away from the GA of Java 9.

Java 8的采用率已经达到75%,离Java 9的GA只有几个月的时间。

The Spring community has fully adopted Spring 4 – over 85% – and Spring Boot is up to 70% as well – which means that most Spring developers are actively using the new framework as well.

Spring社区已经完全采用了Spring 4–超过85%,Spring Boot也达到了70%–这意味着大多数Spring开发者也在积极使用新框架。

On the IDE side of things, IntelliJ is clawing market share from Eclipse with the same effectiveness as last year, and with no signs of slowing down any time soon.

在IDE方面,IntelliJ正在从Eclipse手中夺取市场份额,其成效与去年相同,而且没有任何迹象表明会很快放缓。

The build landscape is much more quiet, with Maven continuing to be the dominant player and actually gaining ground, despite no major releases this last year.

构建领域则平静得多,尽管去年没有重大发布,但Maven继续占据主导地位,而且实际上还在增长。

And finally, JVM languages are getting a lot of traction as well – given that almost half of the developers who answered the survey are actively using a second language.

最后,JVM语言也得到了很大的发展–鉴于回答调查的开发者中几乎有一半人在积极使用第二种语言。

This is going to be an exiting year in the Java community.

今年将是Java界令人振奋的一年。