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

最后修改: 2016年 6月 16日

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

>> Notes on Reactive Programming Part II: Writing Some Code [spring.io]

A reactive system is an entirely different beast, and such a good fit for a small set of scenarios.

反应式系统是一个完全不同的野兽,而且这样的系统很适合于一小部分场景。

A great writeup to go through if you want to skate where the puck is going.

如果你想在冰球要去的地方滑行,这是一篇很好的文章。

>> Java EE 8 in Crisis [xenonique.co.uk]

And since we’re talking about where we’re headed, the state and outlook of Java EE 8 is significant for the entire Java community and ecosystem.

既然我们在谈论我们的方向,那么Java EE 8的状态和前景对整个Java社区和生态系统来说是非常重要的。

>> How to implement a custom String-based sequence identifier generator with Hibernate [vladmihalcea.com]

A super practical, focused solution on generating String ids with Hibernate (which is actually something I wandered about in the past).

关于用Hibernate生成String ids的超级实用、集中的解决方案(这实际上是我过去徘徊的事情)。

And, as always, Vlad’s picking his topics with the help and involvement of the community, which is a really a solid way to go about things. A cool resource.

而且,像往常一样,弗拉德在社区的帮助和参与下挑选他的主题,这确实是一个可靠的方式。一个很酷的资源。

>> How To Implement hashCode Correctly [codefx.org]

The next back-to-basics writeup after we had a look at equals last week. I knew this one was coming.

上周我们看了等价物之后,下一篇回归基本的文章。我知道这篇文章会出现。

>> Configure Once, Run Everywhere: Decoupling Configuration and Runtime [infoq.com]

Real-world project configuration is never as easy as we might initially think.

现实世界的项目配置永远不会像我们最初想象的那样简单。

Now – I’m not sure if a standard is the answer here, but the practical approach here looks interesting.

现在–我不确定标准是否是这里的答案,但这里的实用方法看起来很有趣。

>> It’s Time to Unlearn Everything You Know About Java Exceptions [takipi.com]

A high level piece about how to actually do exceptions well. It also reads well, I think Alex had some fun writing this one.

这是一篇关于如何实际做好例外的高水平文章。这篇文章读起来也很好,我想Alex在写这篇文章时有一些乐趣。

>> Should you use JPA for your next project? [thoughts-on-java.org]

Hibernate and JPA are certainly not a good fit for every type of project out there, but they’re a solid base for a lot of them. And if you really get to know the tool well, it can be surprising how far you can go.

Hibernate和JPA当然不是适合每一种类型的项目,但它们是很多项目的坚实基础。如果你真的很了解这个工具,你能走多远是令人惊讶的。

This interactive writeup can be helpful in making the decision when you’re starting up a new project, or at least give you some context around that decision.

当你开始一个新的项目时,这个互动的写法可以帮助你做出决定,或者至少给你一些围绕这个决定的背景。

>> JDK 9 is not (yet) Feature Complete — how will we get there? [mail.openjdk.java.net]

Yeah.

是的。

Also worth reading:

还值得一读的是:

Webinars and presentations:

网络研讨会和演讲:

Time to upgrade:

升级的时间:

2. Technical

2.技术

>> Mutation Testing [cleancoder.com]

A good intro to mutation testing and also to a library that might be interesting to explore – pitest.

关于突变测试的一个很好的介绍,同时也介绍了一个可能有兴趣探索的库 – pitest

>> Serverless Architectures [martinfowler.com]

>> Serverless Reference Architectures with AWS Lambda [allthingsdistributed.com]

I don’t know much about this architectural style, and these writeups were a good way to get started.

我对这种建筑风格了解不多,这些写法是一个很好的入门方式。

Also worth reading:

还值得一读的是:

3. Musings

3.思索

>> Creating Your Code Review Checklist [daedtech.com]

Some good aspects to think about on your next code review.

在你的下一次代码审查中可以考虑一些好的方面。

>> Three Martini Open Office Plans [daedtech.com]

A fun exploration of whether or not open office plans make sense, from the POV of an outsider.

从一个局外人的角度,对开放式办公室计划是否有意义进行了有趣的探索。

For me personally it’s been long enough since I last had the experience of trying to get work done in an open office, so I can half-laugh about it. But I very distinctly remember it wasn’t easy to pull off.

对我个人来说,我已经很久没有尝试在开放式办公室里完成工作的经历了,所以我可以半开玩笑地谈论它。但我非常清楚地记得这并不容易做到。

Also worth reading:

还值得一读的是:

4. Comics

4.漫画

And my favorite Dilberts of the week:

还有本周我最喜欢的Dilberts。

>> What do you think management is? [dilbert.com]

>> He’s wearing headphones, what do I do? [dilbert.com]

>> All roads headed in this direction – I just took the shortest one [dilbert.com]