The Baeldung Weekly Review 33 – Baeldung周报》 33

最后修改: 2014年 8月 22日

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

At the very beginning of 2014 I decided to start better documenting my reading habits and sharing them here with all of you.

在2014年年初,我决定开始更好地记录我的阅读习惯,并在这里与你们所有人分享

The point is two fold – by curating and documenting, my reading has become more purposeful and diverse. Also – I believe that curation of good content brings a lot of value, helps people explore and allows the best stuff to raise to the top.

这有两层意思–通过策划和记录,我的阅读变得更有目的性和多样性。另外–我相信对好内容的策划会带来很多价值,帮助人们探索,并让最好的东西提升到顶端。

Hopefully you’ll enjoy these as we move in the latter half of 2014.

希望在我们进入2014年下半年时,你会喜欢这些。

Here we go…

我们来了……

1. Java

1.Java

>> First batch of JEPs proposed to target JDK 9

Maybe you saw this email by now – it’s the first few JEPs targeted to be part of JDK 9 – with modularity being, of course, the big one.

也许你现在已经看到了这封邮件–它是首批JEP,目标是成为JDK 9的一部分–当然,模块化是最重要的一个。

>> Writing Tests for Data Access Code – Data Matters

Another solid piece in the “Clean Testing” series from Petri. This one is discussing best practices of using DBUnit, in the context of an actual project with sufficient complexity. Don’t worry – once the problems are out of the way, there are solutions to be had.

Petri的 “清洁测试 “系列的另一篇文章。这篇文章是在一个具有足够复杂性的实际项目的背景下,讨论使用DBUnit的最佳实践。别担心–一旦问题解决了,就会有解决方案。

>> The anatomy of Hibernate dirty checking

The saga continues – a deep dive into Hibernate, this time going over the default mechanism for dirty checking (and the bytecode instrumentation alternative). I can see a book or a course coming out of this track.

传奇仍在继续–对Hibernate的深入研究,这次是对dirty checking的默认机制(以及字节码工具化的替代方案)的研究。我可以看到这条赛道上会出现一本书或一门课程。

>> eclipse-pmd – New PMD plugin for Eclipse

If you ever struggled to get the same static analysis engine (such as PMD) working and using the exact same configuration file in both Eclipse and in your Maven build – this comes as a nice surprise. Cool beans.

如果你曾为让同一个静态分析引擎(如PMD)工作并在Eclipse和Maven构建中使用完全相同的配置文件而苦恼,那么这将是一个不错的惊喜。Cool beans。

>> Understanding JUnit’s Runner architecture

An interesting, in-depth look at how Runners work in JUnit and how you can implement your own. Not necessarily something you do every day, but still very cool.

JUnit中Runners的工作原理以及如何实现自己的Runners进行了有趣的深入探讨。这不一定是你每天都要做的事情,但仍然非常酷。

2. Spring

2.Spring

>> Building a RESTful quotation service with Spring

A practical guide on building a simple REST API for quotations – for one of the Spring guides nonetheless. There are a few guides like this out already, but seeing how this is Spring eating their own dogfood – it’s a cool exercise and a solid resource.

关于构建简单的REST API的实用指南–尽管是Spring的指南之一。已经有一些这样的指南了,但看到这是Spring在吃自己的狗粮–这是一个很酷的练习和一个可靠的资源。

Finally a few interesting Spring releases:

最后是一些有趣的Spring发布

3. Technical

3.技术

>> Route 53 Benchmark: The New AWS Geolocation’s Surprising Results

Testing and real-world numbers on Route 53 – Geolocation vs latency based routing.

测试和真实世界的53号公路的数字 – 地理定位与基于延迟的路由。

>> In Defense of Test Setup Methods

Whichever way you lean – creating fixtures before the test or inside – this is a piece that takes the time to sit down and think through the arguments. Be ruthless with code duplication, mosey on over and read this one.

无论你倾向于哪种方式–在测试前或在测试中创建固定装置–这都是一篇花时间坐下来思考论点的文章。对代码重复要无情,请过来阅读这篇文章。

4. Comics

4.漫画

Continuing this recently introduced section in the review – my next favorite XKCDs after the ones from last week. Brilliant? I’d say so:

继续这个最近在评论中引入的部分–继上周的那些之后,我最喜欢的XKCDs。辉煌?我想说的是

>> Road Rage

>> Zealous Autoconfig