The Baeldung Weekly Review 33 – Baeldung周报》 33

最后修改: 2014年 8月 22日


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


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.


Here we go…


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.


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:


3. Technical


>> 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


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


>> Road Rage

>> Zealous Autoconfig