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

最后修改: 2016年 10月 13日

1. Spring and Java

1.Spring和Java</strong

>> Securing JAX-RS Endpoints with JWT [antoniogoncalves.org]

JWT is becoming the de facto standard in web security yesterday. And JJWT is certainly a good way to go for an implementation.

JWT昨天正在成为网络安全领域事实上的标准。而JJWT无疑是实现的一个好方法

>> Introducing Hibernate Search Sort DSL [in.relation.to]

The ElasticSearch support coming to Hibernate looks intelligently designed. Plus it’s a fluid API, which gives it some extra points.

对Hibernate的ElasticSearch支持看起来设计得很聪明。加上它是一个流畅的API,这给它带来了一些额外的分数。

>> How to update only a subset of entity attributes using JPA and Hibernate [vladmihalcea.com]

Who said Hibernate is a blunt instrument? You can get surgical with it, Training-Day style.

谁说Hibernate是一个钝器?你可以用它来做手术,训练-戴风格。

>> How to persist creation and update timestamps with Hibernate [thoughts-on-java.org]

Keeping track of create/update times is usually the first step towards building out audit logic – here’s a good, simple way of doing that in Hibernate.

跟踪创建/更新时间通常是建立审计逻辑的第一步–这里有一个在Hibernate中做这个的简单好方法。

Also worth reading:

还值得一读的是:

Webinars and presentations:

网络研讨会和演讲:

Time to upgrade:

升级的时间:

2. Technical

2.技术

>> Evolving Distributed Systems [olivergierke.de]

This one’s first for a reason. It’s a step back and a real look at architecting a distributed system.

这部作品成为第一部是有原因的。它是一个退步,真正看待分布式系统的架构问题。

It talks about boundaries between systems, the essential question of inter-communication, all in the scope of achieving a good cadence of actually pushing out real work.

它谈到了系统之间的界限,相互沟通的基本问题,所有这些都是在实现实际推动实际工作的良好节奏的范围内进行的。

>> No More Boilerplate Code [thecodewhisperer.com]

Better code design? Why not.

更好的代码设计?为什么不呢。

>> API Simulation + Contact Testing = Happiness [alexecollins.com]

API contract testing is definitely an underused practice.

API合约测试绝对是一种未被充分利用的做法。

This is a very quick and to the point writeup introducing the concept and giving you some basic tools to get it going.

这是一篇非常快速和直截了当的文章,介绍了这个概念,并给你一些基本的工具,让你开始行动。

Also worth reading:

还值得一读的是:

3. Musings

3.思索

>> On the limits of TDD, and the limits of studies of TDD [virtuouscode.com]

The results of an interesting (albeit not super scientific) test about the results of doing TDD.

一个关于做TDD的结果的有趣(尽管不是超级科学的)测试的结果

Of course measuring only a few of the concerns may not be very representative – TDD touches so many aspects of development that it’s tough to really quantify the impact it has.

当然,只测量几个关注点可能不太具有代表性–TDD涉及到开发的许多方面,要真正量化它的影响是很困难的。

>> Making sure inter-teams communication doesn’t work [frankel.ch]

Some common sense advice about good communication, which is unfortunately glossed over by so many organizations out there.

一些关于良好沟通的常识建议,不幸的是,这被外面的许多组织所掩盖了。

>> You don’t need tests [swizec.com]

I chuckled my way through this one. You should do the same.

我笑着看完了这篇报道。你也应该这样做。

>> Undercover Testability Killers [daedtech.com]

Unit testing is markedly difficult when you’re starting out.

当你刚开始的时候,单元测试是明显困难的。

Before even considering the correctness of the system, the first significant advantage of weaving tests into a system has is design. Good design doesn’t necessarily come from unit tests, but it’s a whole lot easier with these as a positive constraint on the system.

在考虑系统的正确性之前,将测试织入系统的第一个重要优势是设计。好的设计不一定来自于单元测试,但有了这些单元测试作为系统的积极约束,设计就容易多了。

Also worth reading:

还值得一读的是:

4. Comics

4.漫画

And my favorite Dilberts of the week:

还有本周我最喜欢的Dilberts。

>> My idea-shredding gloves [dilbert.com]

>> Smart people like it [dilbert.com]

>> What makes you think you can do my job better? [dilbert.com]

5. Pick of the Week

5。本周精选</strong

>> How To Ask Questions The Smart Way [catb.org]