Java Weekly, Issue 198 – Java周刊,第198期

最后修改: 2017年 10月 13日

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

1. Spring and Java

1.Spring和Java

>> JUnit 5 Tutorial: Writing Nested Tests [petrikainulainen.net]

Hierarchical tests were sometimes entirely missing in the old JUnit.

在旧的JUnit中,分层测试有时是完全缺失的。

>> Benchmarking JDK String.replace() vs Apache Commons StringUtils.replace() [blog.jooq.org]

It turns out that String.replace() uses the Pattern class internally – which results in a lot of unnecessary allocation 🙂

事实证明,String.replace()内部使用了Pattern–这导致了很多不必要的分配 🙂。

>> How to JOIN unrelated entities with JPA and Hibernate [vladmihalcea.com]

A quick guide to “joining” entities that do not reference each other.

一个关于 “连接 “互不相干的实体的快速指南。

>> The Java Evolution of Eclipse Collections [infoq.com]

Eclipse Collections are an interesting alternative to standard Collections API.

Eclipse集合是标准集合API的一个有趣的替代品。

Also worth reading:

Webinars and presentations:

网络研讨会和演讲:

Time to upgrade:

升级的时间:

2. Technical

2.技术

>> Truly immutable builds [blog.frankel.ch]

Ensuring that as many as possible aspects of the build are immutable – will result in more reliable builds even after a long period of time.

确保尽可能多的构建方面是不可改变的–即使在很长一段时间后,也会带来更可靠的构建。

Also worth reading:

还值得一读的是:

3. Musings

3.思索

>> How to Do Code Reviews Like a Human (Part One) [mtlynch.io]

Very interesting takeaways about doing good code reviews, but also communication in general.

关于做好代码审查,但也包括一般的沟通,这是非常有趣的收获。

Also worth reading:

还值得一读的是:

4. Comics

4.漫画

And my favorite Dilberts of the week:

还有本周我最喜欢的Dilberts。

>> Bad at Negotiating [dilbert.com]

>> Even Worse Negotiating [dilbert.com]

>> Fix it with Marketing [dilbert.com]

5. Pick of the Week

5 本周精选

>> A Step By Step Guide to Tomcat Performance Monitoring [stackify.com]