The Baeldung Weekly Review 14 – Baeldung周报》14

最后修改: 2014年 4月 11日

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

Java

Java

>> Java 8 Friday: No More Need for ORMs

This joins the old discussion (do I need an ORM?) with new and promising tools – have a look at the code samples and be surprised that this is indeed Java code. Very cool.

这是将旧的讨论(我需要一个ORM吗?)与新的、有前途的工具结合起来–看看代码样本,你会惊讶地发现这确实是Java代码。非常酷。

>> Yet another way to handle exceptions in JUnit: catch-exception

A solid way of handling exceptions in JUnit tests – the BDD catch-exception library. I’m giving it a try now – as it indeed looks very cool.

在JUnit测试中处理异常的可靠方法 – BDD catch-exception库。我现在正在试一试 – 因为它确实看起来非常酷。

>> Garbage Collection Optimization for High-Throughput and Low-Latency Java Applications

Good brush up on tuning Java Garbage Collection for a real-world production environment. Goes over most GC concepts, but does so in a pragmatic, optimization-focused manner, which is a nice change from the standard GC articles out there.

在现实世界的生产环境中,对调整Java垃圾回收进行了很好的梳理。本书介绍了大多数GC的概念,但以一种务实的、注重优化的方式进行介绍,这与外面的标准GC文章相比是一个很好的变化。

>> Maven Git Flow Plugin for Better Releases

Interesting take on the established Maven Release Plugin, making all the goodies of git flow first class citizen.

对既定的Maven发布插件进行了有趣的处理,使git流的所有优点成为一流的公民。

>> Java 8 language changes

>> JVM concurrency: Java 8 concurrency basics

IBM Developerworks has two new articles on Java 8 – language changes and concurrency.

IBM Developerworks有两篇关于Java 8的新文章–语言变化和并发性。

>> Apache Tomcat 8 Preview

And finally, a nice webinar introducing the upcoming Tomcat 8 server. If you’re working with Tomcat, this is a good resource to keep up to date with what’s coming down the pipe.

最后,一个很好的网络研讨会介绍了即将推出的Tomcat 8服务器。如果你正在使用Tomcat,这是一个很好的资源,可以及时了解即将到来的信息。

Spring

Spring

>> Project Sagan: zero-downtime deployments

Project Sagan – the new reference Spring app – looks more and more interesting, especially considering that it’s powering spring.io. This article illustrate how the code is deployed – very nice series that I’ll be following closely.

Project Sagan–新的参考Spring应用–看起来越来越有趣,特别是考虑到它正在为spring.io提供动力。这篇文章说明了代码是如何部署的–非常好的系列,我将密切关注。

>> Tracking Exceptions – Part 4 – Spring’s Mail Sender

If you’ve read any of my last few weekly reviews, you will have seen earlier articles in this series. This kind of application – making sense of log file data – is something that, one way or another, any decent sized project should solve.

如果你读过我过去的几篇周评,你会看到这个系列的早期文章。这种应用–使日志文件数据有意义–是任何像样的项目都应该以某种方式解决的问题。

>> CSRF protection in Spring MVC, Thymeleaf, Spring Security application

Short and to the point illustration of how a CSRF attack works and how to protect against it with Spring Security (3.2+). Very nice.

简短而直接地说明了CSRF攻击的工作原理,以及如何使用Spring Security(3.2以上)来保护它。非常好。

Technical

技术

>> TDD Chess Game Part 3: Stumbling and Refactoring

>> TDD棋局第三部分:绊脚石和重构

I have talked about this series before – but, perhaps not surprisingly – it is again the read (or watch) of the week. Why do I keep picking it? Simple – it’s one of the few things that has a good shot of getting you over the initial resistance of doing TDD. That took a few years for me, so I know it’s not easy – but the results are huge.

我以前谈到过这个系列–但是,也许并不奇怪–它又是本周的阅读(或观看)。为什么我一直选它?很简单–它是为数不多的能让你克服做TDD的最初阻力的东西之一。这对我来说花了几年时间,所以我知道这并不容易 – 但结果是巨大的。

So – straight to the point – if you’re going to only read one article this week, go read this one (actually, reading the first two parts would be better).

因此–直奔主题–如果你本周只打算读一篇文章,就去读这篇文章(实际上,读第一篇两篇部分会更好)。

>> MongoDB 2.6 is $out

Vlad has a useful overview of the new functionality that came out in MongoDB 2.6.

Vlad对MongoDB 2.6中出现的新功能有一个有用的概述。

>> Web APIs and n+1 problem

The infamous n+1 problem exists in Web APIs as well. This article has a lot of information to digest – so take your time with it.

臭名昭著的n+1问题在Web API中也存在。这篇文章有很多信息需要消化–所以请慢慢看吧。

>> Security: Heartbleed vulnerability

Yes, Heartbleed was disclosed this week, and yes, there are a host of articles covering it, but I’m assuming you already read some of them, so I’m including a single one out of many – the github report.

是的,Heartbleed在本周被披露,是的,有一大堆文章在报道它,但我假设你已经读了其中的一些,所以我在众多文章中只包括一篇–github的报告。

Musings

杂谈

>> The Cost of Context Switching

I think that we all overestimate our ability to context switch – and the sooner we accept that switches are developer kryptonite – the sooner we can do something about it. This article is a great reminder of that fact.

我认为我们都高估了自己的上下文切换能力–而且我们越早接受切换是开发者的氪石–我们就能越早对此有所作为。这篇文章很好地提醒了这个事实。