The Baeldung Weekly Review 27 – Baeldung周报》27

最后修改: 2014年 7月 11日

中文/混合/英文(键盘快捷键: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 and Spring

1.Java和Spring

>> Writing Tests for Data Access Code – Unit Tests Are Waste

Overusing unit tests is a common trait after a developer discovers TDD – due to the enthusiasm and mindset shift that comes out of that discovery.

过度使用单元测试是开发人员发现TDD后的一个常见特征–由于这种发现带来的热情和思维方式的转变。

After a few years of diligent practice and with a ongoing re-evaluation of assumptions, that same developer starts leaning towards integration tests.

经过几年的勤奋实践和对假设的不断重新评估,同一个开发人员开始倾向于集成测试

Another chunk of time and unit tests are used as they’re meant to – a design tool, not a check on the correctness of the system.

另一大块时间和单元测试的用途是–设计工具,而不是对系统正确性的检查。

Does it stop here? I have no idea – but I hope not. Wherever your are on that path – this article is a good read – so get with the clicky-clicky and read it.

它是否到此为止?我不知道 – 但我希望不会。无论你在这条道路上的位置如何–这篇文章都是一篇好文章–所以赶紧点击阅读吧。

>> 6 Reasons Not to Switch to Java 8 Just Yet

Some Java 8 caveats. I think we can all agree that Java 8 has been a solid step forward for the platform, especially after so long a stagnation, but nothing is perfect – and it’s worth knowing what to expect right off the bat.

一些Java 8的注意事项。我想我们都同意,Java 8是该平台向前迈出的坚实一步,尤其是在经历了这么长时间的停滞不前之后,但没有什么是完美的–而且值得了解的是,在一开始就应该有所期待。

>> JUnit: testing exception with Java 8 and Lambda Expressions

A DSL for exception checking built with Java 8 – yeah, JUnit is becoming cool again.

用于异常检查的DSL用Java 8构建–是的,JUnit又变得很酷。

>> Hibernate Identity, Sequence and Table (Sequence) generator

Vlad is on a roll with his Hibernate series – this piece is a good primary on primary key strategies.

Vlad在他的Hibernate系列中大展拳脚–这篇文章是关于主键策略的一个很好的主要内容。

And finally, a slew of new Spring releases:

最后,还有一系列新的Spring发布

2. Musings

2.思索

>> The Secret to Avoiding Paralysis by Analysis

Getting bogged down in the weeds and in the “what ifs” and not delivering because of that is a real shame.

陷入杂草丛生和 “如果 “之中,并因此而不交付,是一种真正的耻辱。

TDD is one technique that can get you out of that mindset and into an incremental and organic frame of thinking about your system and your options. A high degree of pragmatism works as well.

TDD是一种技术,可以让你摆脱这种心态,进入一个渐进和有机的框架来思考你的系统和你的选择。高度的实用主义也很有效。

>> What’s Your Greatest Weakness: The Employer-Candidate Impedance Mismatch

Further thoughts on the hiring practices and the sub-optimal way our whole industry leaves this oh so important task to chance.

关于招聘做法的进一步思考,以及我们整个行业将这一哦如此重要的任务留给机会的次优方式。

>> The Sean Wes Podcast

>> The Sean Wes Podcast

Let’s end on a strong note – this podcast is absolutely fantastic.

让我们以一个强烈的音符结束–这个播客绝对是太棒了。

If you’re not yet listening to podcasts – do yourself a big favor, install a podcast app on your phone and start binge listening to this one. If you don’t already listen – make this your first – pick any (and I do mean any) of the episodes, have a listen and I guarantee that you won’t stop any time soon (I’m still half way through).

如果你还没有听播客–帮你自己一个大忙,在你的手机上安装一个播客应用程序,开始狂听这一集。如果你还没有听–把它作为你的第一篇–选择任何一集(我是说任何一集),听一听,我保证你不会很快停下来(我还在听一半)。