Baeldung Weekly Review 44 – Baeldung每周评论 44

最后修改: 2014年 11月 7日

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

At the very beginning of 2014 I decided to start to track my reading habits and share the best stuff here, on Baeldung.

在2014年年初,我决定开始追踪我的阅读习惯,并在这里分享最好的东西,在Baeldung

Curating my reading has made it more purposeful and diverse – and I’m hopefully providing value to you as well by allowing the best content of the week to raise to the top.

策划我的阅读使其更有目的性和多样性–我希望通过让一周中最好的内容提升到顶端,也能为你提供价值。

Here we go…

我们来了……

1. Java

1.Java

>> Optional in Java SE 8

An useful guide to using the new Optional class the way it was meant to when it was introduced into the language. Like everything else, there’s a good way to use it, and then there’s all the other ways.

这是一份关于如何使用新的Optional类的有用指南,当它被引入到语言中的时候,它就是这样的方式。像其他东西一样,有一个好的使用方法,然后是所有其他的方法。

>> Better nulls in Java 10?

JDK 10 is still a long ways away – so now is the time for thought experiments. This is one of those – useful in the fact that it makes it clear that the semantics of null in Java can definitely be improved and should be.

JDK 10离我们还很远,所以现在是进行思想实验的时候了。这就是其中之一–其有用之处在于,它明确了Java中null的语义肯定可以改进,并且应该改进。

>> 10 Things You Didn’t Know About Java

Cool list of corner cases and surprises in Java – an interesting read even if you’ve been doing Java for years.

Java中的角落案例和惊喜的酷炫清单–即使你已经做了很多年的Java,也是一个有趣的阅读。

>> On Java Generics and Erasure

An quick educational foray into how type erasure works in Java.

迅速了解Java中类型清除的工作原理的教育性尝试。

>> Beyond Thread Pools: Java Concurrency is Not as Bad as You Think

A very high level plotting of the Java Concurrency ecosystem – some of the available solutions and paradigms to get you started and knowing your options.

对Java并发生态系统进行了非常高层次的规划–一些可用的解决方案和范式,让你开始并了解你的选择。

>> Hibernate collections optimistic locking

Another deep dive into Hibernate – this time showing how important the modeling of parent-child associations is for the way you’re able to concurrently and reliably access data.

另一次对Hibernate的深入研究–这次展示了父子关联的建模对于你能够并发和可靠地访问数据的方式有多重要

And a few other Releases and Announcements that I’m excited about or are just noteworthy in the broader Java ecosystem:

还有一些其他的发布和公告,我很兴奋,或者在更广泛的Java生态系统中值得注意。

2. Spring

2.Spring

>> Log Management for Spring Boot Applications with Logstash, Elasticsearch and Kibana

ELK is a beautiful thing. I’ve been using it for a while now and it rocks.

ELK是一个美丽的东西。我使用它已经有一段时间了,它很震撼。

>> Spring Caching abstraction and Google Guava Cache

It makes a lot of sense to use the Guava Cache to power the caching in a Spring app. This is how.

使用Guava Cache来支持Spring应用中的缓存是非常有意义的。这就是方法。

>> A quality @Qualifier

I’ve mainly used @Qualifier as an interview question, but from time to time it can turn a tricky situation into an elegant solution. And, as Josh points out – it’s been doing it for years.

我主要把@Qualifier作为一个面试问题,但它不时地能把一个棘手的情况变成一个优雅的解决方案。而且,正如乔希指出的那样–它已经做了很多年了。

>> Spring from the Trenches: Resetting Auto Increment Columns Before Each Test Method

An interesting deep-dive into working with a large suite of integration tests – how to make sure your results are correct and reproducible, and that your tests are idempotent.

使用大型集成测试套件的工作进行了有趣的深入研究–如何确保你的结果是正确的、可重复的,以及你的测试是同构的。

Finally – a few cool Releases and Webinars from Spring:

最后–一些很酷的Spring发布和网络研讨会

3. Technical and Musings

3.技术和思考

>> An Empty Line is a Code Smell

“A method should do one thing”. It took a long time until I really internalized this fact and started actively looking for it in my own design.

“一个方法应该做一件事”。过了很久,我才真正内化了这个事实,并开始在自己的设计中积极寻找它。

And so I read this piece in that context, with a focus on improving my own design. That’s how I’m sharing it here as well.

因此,我在这个背景下阅读这篇文章,重点是改进我自己的设计。这也是我在这里分享它的原因。

>> How to Get Your Company to Stop Killing Cats

We all have our war stories. But getting a group of people to change is one hell of a thing – that’s why I find it so very cool when it actually works out for the better.

我们都有自己的战争故事。但是,让一群人改变是一件了不起的事情–这就是为什么我发现当它真的为更好地工作时,它是如此的酷。

Doesn’t happen often though.

不过这并不经常发生。

>> Collection Pipeline

A very well put together piece on the power and the breadth collection pipelining operations. Makes me want to do some Clojure today.

这是一篇非常好的文章,介绍了流水线操作的力量和广度集合。让我今天想做一些Clojure。

4. Comics

4.漫画

And now for the part that you’re actually reading my weekly review – XKCD:

现在是你真正在读我的每周评论的部分–XKCD。

>> Star Ratings

>> goto

>> Cemetery

5. Pick of the Week

5 本周精选

I recently introduced the “Pick of the Week” section here in my “Weekly Review”. The interesting part is that it’s entirely exclusive to my email list subscribers.

我最近在我的 “每周评论 “中推出了 “每周精选 “部分。有趣的是,它是完全为我的电子邮件列表订户所独有的

So – if you came to this article from my email list, you have the pick already – hope you enjoyed it. If not – feel free to subscribe and you’ll get the next one.

所以–如果你从我的电子邮件列表中看到这篇文章,你已经有了选题–希望你喜欢它。如果没有–请随时订阅,你会得到下一篇。