Java Weekly, Issue 193 – Java周刊,第193期

最后修改: 2017年 9月 7日

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

Lots of interesting writeups on Java 9 this week.

本周有很多关于Java 9的有趣文章。

Here we go…

我们来了……

1. Spring and Java

1.Spring和Java

>> Java to Move to 6-Monthly Release Cadence [infoq.com]

Moving forward, Java will be released twice a year.

在未来,Java将每年发布两次。

This is a big step, which should make it possible to constantly introduce new, smaller features without waiting for the completion of big ones (JPMS, Lambda Expressions).

这是一个很大的进步,它应该能够不断推出新的、较小的功能,而不需要等待大功能的完成(JPMS、Lambda表达式)。

>> Code Smells: Multi-Responsibility Methods [blog.jetbrains.com]

It is not a secret that “god” methods are hard to test, maintain, and refactor.

上帝 “的方法是难以测试、维护和重构的,这并不是什么秘密。

>> Spring Boot 2.0 Will Feature Improved Actuator Endpoints [infoq.com]

The new Spring Boot will bring slightly redesigned Actuator Endpoints – with improved security.

新的Spring Boot将带来略微重新设计的Actuator Endpoints–安全性得到了提高。

>> Streaming large JSON file with Jackson – RxJava FAQ [nurkiewicz.com]

An interesting use case for RxJava used for streaming JSON files without risking the memory overload.

RxJava的一个有趣的用例,用于流式传输JSON文件,而没有内存过载的风险。

>> Bypassing Kotlin’s Null-Safety [4comprehension.com]

There are situations when Kotlin’s null safety won’t always protect us – this is especially the case with libraries that use sun.misc.Unsafe.

在有些情况下,Kotlin的null安全功能并不总是能保护我们–这对于使用sun.misc.Unsafe的库来说尤其如此。

Also worth reading:

Webinars and presentations:

网络研讨会和演讲:

Time to upgrade:

升级的时间:

2. Technical

2.技术

>> Type of Mocks [blog.tremblay.pro]

Keep in mind that not every substitute implementation is a mock; we have also spies, dummies, stubs, and fakes.

请记住,不是每一个替代实施都是模拟的;我们还有间谍、假人、存根和假货。

Also worth reading:

还值得一读的是:

3. Musings

3.思索

>> Getting Started with Behavior-Driven Development [daedtech.com]

BDD ideas bridge the gap between engineers and business when it comes to testing. Definitely worth having a look.

在测试方面,BDD思想在工程师和业务之间架起了桥梁。绝对值得一看。

Also worth reading:

还值得一读的是:

4. Comics

4.漫画

And my favorite Dilberts of the week:

还有本周我最喜欢的Dilberts。

>> Work from home [dilbert.com]

>> Legacy System [dilbert.com]

>> Excuses [dilbert.com]

5. Pick of the Week

5 本周精选

>> Finally Getting the Most out of the Java Thread Pool [stackify.com]