Java Weekly, Issue 186 – Java周刊》第186期

最后修改: 2017年 7月 20日

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

Lots of interesting write-ups on Java 9 this week.

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

Here we go…

我们来了……

1. Spring and Java

1.Spring和Java

>> Painlessly Migrating do Java Jigsaw Modules – a Case Study [infoq.com]

Modularity is the next big thing in the upcoming Java version. Let’s have a look at options for modularizing existing applications.

模块化是即将到来的Java版本中的下一件大事。让我们看一下模块化现有应用程序的选项

>> A JDeps Primer – Analyzing Your Project’s Dependencies [blog.codefx.org]

A quick and practical overview of JDeps – a tool for analyzing project’s dependencies.

对JDeps–一种分析项目依赖关系的工具进行了快速而实用的概述。

>> Don’t Extract Everything Into a Method [blog.jooq.org]

We can use labels in Java – which is something many developers don’t necessarily remember. These can be beneficial in a few particular scenarios – and might help us avoid artificial extraction of short, locally used methods.

我们可以在Java中使用标签–这是许多开发者不一定记得的东西。这些在一些特殊情况下是有好处的–可能会帮助我们避免人为地提取短的、局部使用的方法。

>> Basic Spring web application in Java, Kotlin, and Scala – comparison [rskupnik.github.io]

A very interesting comparison of the same simple Spring application written in 3 different JVM languages.

用3种不同的JVM语言编写的同一个简单的Spring应用程序进行了非常有趣的比较。

Also worth reading:

Time to upgrade:

升级的时间:

2. Technical

2.技术

>> Basic API Rate-Limiting [techblog.bozho.net]

If we want to apply client-specific rate limiting, a standard load balancer might be not enough – especially when there’s no uniform way of identifying clients. Guava RateLimiter can be a good choice here.

如果我们想应用针对客户的速率限制,标准的负载均衡器可能是不够的–特别是当没有统一的方法来识别客户时。Guava RateLimiter在这里可以是一个不错的选择。

>> TestContainers: making Java integration tests easy [zeroturnaround.com]

TestContainers is definitely a very interesting library for quick setup and management of test environments. We can quickly run and manage database instances or anything that can run inside Docker containers.

TestContainers绝对是一个非常有趣的库,用于快速设置和管理测试环境。我们可以快速运行和管理数据库实例或任何可以在Docker容器内运行的东西。

Also worth reading:

还值得一读的是:

3. Musings

3.思索

>> Blockchain, the next big thing? [blog.codecentric.de]

Blockchain technologies are getting more and more popular.

区块链技术正变得越来越流行。

Also worth reading:

还值得一读的是:

4. Comics

4.漫画

And my favorite Dilberts of the week:

还有本周我最喜欢的Dilberts。

>> I don’t like confrontation [dilbert.com]

>> Some sort of Feng Shui [dilbert.com]

>> That’s not fair [dilbert.com]

5. Pick of the Week

5 本周精选

>> Focus: The Ultimate Guide on How to Improve Focus and Concentration [jamesclear.com]