Java Web Weekly, Issue 108 – Java网络周刊》第108期

最后修改: 2016年 1月 22日

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

At the very beginning of last year, I decided to track my reading habits and share the best stuff here, on Baeldung. Haven’t missed a review since.

去年年初,我决定跟踪我的阅读习惯,并在这里分享最好的东西,在Baeldung上。从那时起,我没有错过任何一篇评论。

Here we go…

我们来了……

1. Spring and Java

1.Spring和Java

>> Programming with modularity and Project Jigsaw. A Tutorial Using the Latest Early Access Build [infoq.com]

A solid and quite exhaustive writeup about the new modularity work coming to Java 9.

一篇扎实的、相当详尽的文章关于Java 9的新模块化工作

>> Spring Batch Tutorial: Introduction [petrikainulainen.net]

A quick, solid intro to what Spring Batch is and what it’s super useful for.

快速、扎实的介绍了什么是Spring Batch以及它的超级用途。

>> How does JPA and Hibernate define the AUTO flush mode [vladmihalcea.com]

Very cool and to the point guide to how flushing – and in particular auto-flushing – behaves differently between Hibernate and JPA.

非常棒的指南,说明了冲洗–特别是自动冲洗–在Hibernate和JPA之间的不同行为

>> Using Exceptions to Write Robust Software for Stable Production [codecentric.de]

A high level writeup about using exception to control execution flow and actually having an disciplined approach to how logging is done and how these exceptions flow through the system.

一篇关于使用异常来控制执行流程的高水平文章,实际上对如何进行日志记录以及这些异常如何在系统中流动有一个规范的方法。

>> Use JUnit’s expected exceptions sparingly [jooq.org]

An look at using annotations for flow control. And an entertaining peek into Lukas’ “love” for Java annotations.

看一下使用注解进行流程控制。以及对Lukas对Java注解的 “爱 “的有趣窥探。

>> Redefining java.lang.System With Byte Buddy [tersesystems.com]

A super cool look into JVM level security.

JVM级别的安全的超酷观察。

>> Introduction to CompletableFutures [kennethjorgensen.com]

A straightforward introduction to using the new(ish) CompletableFuture in Java 8.

直接介绍如何使用Java 8中的新(ish)CompletableFuture

Also worth reading:

也值得一读。

Webinars and presentations:

网络研讨会和演讲。

Time to upgrade:

是时候升级了。

2. Technical

2.技术

>> Feature Toggles [martinfowler.com] and >> Categories of toggles [martinfowler.com]

The feature toggle is such a powerful technique done right. It can save you oh-so much merging time, testing work and just general sanity that it’s not even funny.

功能切换是一个非常强大的技术,如果做得好的话。它可以为你节省大量的合并时间、测试工作和一般的理智,这一点都不好笑。

This article will be one to follow (because it’s getting published in installments) and come back to.

这篇文章将是一篇值得关注的文章(因为它将被分批发表),并回来看。

>> How a Smell in the Tests Points to a Risk in the Design [thecodewhisperer.com]

As always, a solid deep dive into the nuances of testing and maintainable code, and as always – a good read.

像往常一样,对测试的细微差别进行了扎实的深入研究和可维护的代码,并且像往常一样–是一本好书。

Also worth reading:

也值得一读。

3. Musings

3.思索

>> Enough with the IoT Naysaying Already [daedtech.com]

It’s sometimes easier to be negative about new technology that you don’t fully understand. But after being wrong a few times, it’s a good idea to re-evaluate that approach.

有时,对你不完全了解的新技术持否定态度比较容易。但在错了几次之后,重新评估这种做法是个好主意。

On a personal note – I didn’t get Twitter in the early years and it really took a while until I came around, so now I tend to twink twice before making any decision on something new (Spapchat?).

就个人而言–我早年没有得到Twitter,真的花了一段时间才回过神来,所以现在我倾向于在对新事物做出任何决定之前先扭两下(Spapchat?)

>> What To Avoid When Doing Code Reviews [daedtech.com]

Very insightful thoughts on doing code review in a way that is genuinely helpful and helps the developer receiving that feedback grow. Which is very hard to do, but also very worthwhile to strive for.

关于以真正有帮助的方式进行代码审查,并帮助接受反馈的开发人员成长的想法非常有见地。这是很难做到的,但也是非常值得努力的。

>> Microservices Use Cases [techblog.bozho.net]

The “microservice craze of 2015” (as it will be referred to by historians) is dissipating as sobering, experience-anchored tales are being published.

2015年的 “微服务热”(将被历史学家称为 “微服务热”)正随着清醒的、以经验为基础的故事的发表而消散。

Here are some valid usecases for microservices. On a personal note, I do think that there are a good few more valid usecases where it’s worth paying the complexity cost.

以下是微服务的一些有效用例。从个人角度来看,我确实认为还有一些有效用例值得付出复杂性的代价。

But generally speaking, I wholeheartedly agree with the sentiment of – don’t jump into microservices because you think it would be cool, as that rarely works out.

但总的来说,我完全同意这样的观点–不要因为你认为会很酷就跳进微服务,因为这很少会成功。

Also worth reading:

也值得一读。

 

4. Comics

4.漫画

And my favorite Dilberts of the week:

还有本周我最喜欢的Dilberts。

>> You did a good job on the high notes [dilbert.com]

>> My phone took care of it [dilbert.com]

>> A newly discovered stone age tribe that has never used skype [dilbert.com]

 

5. Pick of the Week

5 本周精选

>> What’s in a Story? [dannorth.net]