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

最后修改: 2016年 7月 21日

中文/混合/英文(键盘快捷键: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

>> Zero Turnaround releases RebelLabs Developer Productivity Report [infoq.com]

Let’s start with the yearly report from RebelLabs, providing some very interesting insights into the trends of our ecosystem.

让我们从RebelLabs的年度报告开始,对我们生态系统的趋势提供一些非常有趣的见解。

>> How we fixed all database connection leaks [in.relation.to]

Very cool, to the point walk-through how the connection leaks in the large Hibernate test suite were handled.

非常酷,直截了当地介绍了如何处理大型Hibernate测试套件中的连接泄漏问题

>> JUnit 5 – An Early Test Drive – Part 1 [infoq.com]

An early look at the upcoming JUnit 5.

对即将到来的JUnit 5的早期展望。

>> Notes on Reactive Programming Part III: A Simple HTTP Server Application [spring.io]

Reactive programing is coming to Spring with version 5 – we know that by now.

响应式编程将在Spring的第5版中出现–我们现在已经知道了。

The question is – what are the scenarios where it’s going to make a significant difference and how can we use it before Spring 5 comes out.

问题是–在哪些情况下它会产生重大影响,以及在Spring 5出来之前我们如何使用它。

And this new installment does a good job answering both of these questions.

而这部新的作品很好地回答了这两个问题。

>> Custom Audit Log With Spring And Hibernate [bozho.net]

There are projects where you can use some of the nicer ways of doing audit. And then there are some codebases where that’s not possible without major and painful refactoring. Luckily, there’s a clean, manual way of doing audit as well.

在一些项目中,你可以使用一些更好的审计方法。还有一些代码库,如果不进行重大和痛苦的重构,这是不可能的。幸运的是,也有一种干净的、手动的审计方式。

Also worth reading:

还值得一读的是:

Webinars and presentations:

网络研讨会和演讲:

Time to upgrade:

升级的时间:

2. Technical

2.技术

>> The Hardest Part About Microservices: Your Data [christianposta.com]

Data is of course the most complex part of doing Microservices well, and in my experience, the number one reason teams fail during these kinds of implementations.

当然,数据是做好微服务最复杂的部分,根据我的经验,这也是团队在此类实施中失败的首要原因。

It turns out that, for example – getting transactional boundaries right across multiple systems is a hard problem to solve, especially without a very good understanding of the semantics to achieve in the system and a clear set of self-imposed limitations at the start.

事实证明,例如–在多个系统中获得正确的交易边界是一个很难解决的问题,尤其是在没有对系统中要实现的语义有非常好的理解,并且在开始时有一套明确的自我限制的情况下。

>> An approach to test your user interface more efficiently [ontestautomation.com]

A quick, interesting read using a pattern I knew very little about – Model-View-ViewModel.

这是一本快速、有趣的读物,使用了我知之甚少的模式–模型-视图-视图模型。

Also worth reading:

还值得一读的是:

3. Musings

3.思索

>> How to De-Brilliant Your Code [daedtech.com]

I enjoy reading through these listener questions, as they’re a nice change of pace.

我喜欢阅读这些听众问题,因为它们是一种很好的节奏变化。

And, just as a quick side-note, writing a feature without using the if keyword anywhere is certainly a nice way to spend the weekend 🙂

而且,作为一个简短的旁注,写一个功能,而不在任何地方使用if关键字肯定是一个不错的方式来度过周末 🙂。

>> How to Add Static Analysis to Your Process [daedtech.com]

An intro to the thinking, expectations and how-to of dipping your toe into the deep waters of static analysis.

关于思维、期望和如何进行静态分析的介绍将你的脚趾伸入静态分析的深水区。

>> Managing rapid growth [dandreamsofcoding.com]

During the last couple of years, the company I’m working for has grown from 2 to more than 600-700 (last time I checked).

在过去的几年里,我所在的公司已经从2个发展到600-700多个(我最后一次检查)。

It’s definitely quite a ride to go through that kind of growth, and this writeup makes some good points about how to do that well.

经历这样的成长绝对是一个相当大的过程,这篇报道对如何做好这一点提出了一些好的观点。

>> Sources of Inspiration [daedtech.com]

A quick read, a solid reading list and some inspiration.

快速阅读,一个坚实的阅读清单和一些灵感。

Also worth reading:

还值得一读的是:

4. Comics

4.漫画

And my favorite Dilberts of the week:

还有本周我最喜欢的Dilberts。

>> Why did you reject my friend request on Facebook? [dilbert.com]

>> I trust them like I trust you [dilbert.com]

>> Stop saying what you’re thinking [dilbert.com]

5. Pick of the Week

5 本周精选

>> The Locust Economy [ribbonfarm.com]