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

最后修改: 2017年 9月 14日

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

Lots of interesting writeups on Java 9 this week.

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

Here we go…

我们来了……

1. Spring and Java

1.Spring和Java

>> Five Command Line Options To Hack The Java 9 Module System [blog.codefx.org]

Java 9 will be out in a week – this is the right time to get to know the JPMS better.

Java 9将在一周内发布–这是更好地了解JPMS的正确时机。

>> Flavors of Spring application context configuration [blog.frankel.ch]

There multiple ways of configuring a Spring context – some can (maybe even should) involve Groovy and Kotlin.

配置Spring上下文有多种方式–有些可以(甚至应该)涉及Groovy和Kotlin。

>> JUnit 5 Tutorial: Writing Our First Test Class [petrikainulainen.net]

JUnit 5 has just been released – time to start putting it to work.

JUnit 5刚刚发布–是时候开始将其用于工作了。

>> Fixed-rate vs. fixed-delay – RxJava FAQ [nurkiewicz.com]

A very interesting write-up about simulating scheduleAtFixedRate and scheduleWithFixedDelay with RxJava.

关于用RxJava模拟scheduleAtFixedRatescheduleWithFixedDelay的文章非常有趣。

>> Code Smells: If Statements [blog.jetbrains.com]

Using an if statement can be both good practice – as well as a code smell – it’s important to know when to use it.

使用if语句既是一种好的做法–也是一种代码气味–知道何时使用它很重要。

>> Lombok – You Should Definitely Give It A Try [blog.codeleak.pl]

Lombok is a great tool that can bring some fresh breath to Java and make some boilerplate go away.

Lombok是一个伟大的工具,可以为Java带来一些新鲜的气息,使一些模板消失。

>> Idiomatic concurrency: flatMap() vs. parallel() – RxJava FAQ [nurkiewicz.com]

It’s important to know the semantics of tools we’re using – otherwise, for example, we might end up with unintentional sequential processing where parallel was expected.

了解我们所使用的工具的语义是很重要的–否则,例如,我们可能会在预期并行的地方无意中出现顺序处理。

Also worth reading:

Webinars and presentations:

网络研讨会和演讲:

Time to upgrade:

升级的时间:

2. Technical

2.技术

>> NoSQL Options for Java Developers [developer.okta.com]

A comprehensive guide to NoSQL from the non-technical viewpoint 🙂

从非技术角度看NoSQL的全面指南 🙂

>> Traefik – The modern reverse proxy [blog.codecentric.de]

A cool proxy solution I didn’t know about until this writeup.

一个很酷的代理解决方案,我是在这篇报道之前才知道的。

Also worth reading:

还值得一读的是:

3. Musings

3.思索

>> What Problems Do Microservices Solve? [daedtech.com]

Microservices are not silver bullets – they should be used when you need them and not because you want them.

微服务不是银弹–它们应该在你需要时使用,而不是因为你想要它们。

Also worth reading:

还值得一读的是:

4. Comics

4.漫画

And some cool Dilberts of the week:

还有一些很酷的迪尔贝特周。

>> A New Employee [dilbert.com]

>> All Robots Quit [dilbert.com]

>> Pat Yourself On The Head [dilbert.com]

5. Pick of the Week

5 本周精选

>> Understanding, Accepting and Leveraging Optional in Java [stackify.com]