The Baeldung Weekly Review 19 – 巴尔东周报》19

最后修改: 2014年 5月 16日

1. Java and Spring

1.Java和Spring </strong

>> Too Fast, Too Megamorphic: what influences method call performance in Java?

I’m starting this weeks review with a very solid analysis of various types of method invocations in Java, and the performance characteristics of each. This is an in-depth read but very much worthwhile to get a deeper understanding of the Java runtime.

在本周的评论中,我以对Java中各种类型的方法调用以及每种方法的性能特点进行了非常扎实的分析。这是一本深入浅出的读物,但非常值得去深入了解Java运行时。

>> Java 8 Friday: Language Design is Subtle

Discussion on some of the Java 8 design decisions such as having default methods versus, for example, Scala traits. A reminder that language design is nuanced and a lot of factors play into it – overall, a great addition to the Java community.

讨论了Java 8的一些设计决定,如默认方法与Scala traits等。提醒大家,语言设计是有细微差别的,有很多因素在其中起作用–总的来说,这是对Java社区的一大补充

>> Writing Clean Tests – Naming Matters

An in depth discussion about naming in tests – it can serve as a good point of reference for choosing to name your tests artifacts, even if you don’t actually follow all the conventions the article lays out.

关于测试中的命名的深入讨论–它可以作为选择命名你的测试工件的一个很好的参考点,即使你实际上没有遵循文章中提出的所有惯例。

>> SpringOne2GX 2013 Replay: spring.io inside and out

This recording is all about Project Sagan and the new (well, new-ish) spring.io website – all very meta and all built in Spring.

这段录音是关于Project Sagan和新的(嗯,新的)spring.io网站–所有这些都是非常元的,都是用Spring构建的。

>> SpringOne2GX 2013 Replay: Getting Started with Spring Security 3.2

Yes, Spring Security 4 was announced recently, and yes – it looks very interesting. However, if you’re looking to get started with Spring Security, 3.2 is the way to go – this is a quick video that should get the ball rolling.

是的,Spring Security 4最近发布了,是的–它看起来非常有趣。然而,如果你想开始使用Spring Security,3.2是个好办法–这是一个快速的视频,应该能让你有所收获。

3. Technical

3.技术

>> ParallelChange

API design is a beautiful thing – here’s an useful process to keep in mind whenever you’re making a backwards incompatible change in an externally published interface.

API设计是一件美好的事情–这里有一个有用的过程,每当你在外部发布的接口中进行向后不兼容的改变时,都要记住。

>> Goto Fail, Heartbleed, and Unit Testing Culture

This article puts forward an important premise – the latest major security issues of 2014 – the GOTO Fail and Heartbleed – could have been easily avoided if the developers were practicing unit testing. Be warned – the article is very long and in-depth – actually going over the tests themselves and showing exactly how the bugs could have been avoided.

这篇文章提出了一个重要的前提–2014年最新的重大安全问题–GOTO故障和Heartbleed–如果开发人员进行单元测试的话,是可以轻松避免的。请注意–这篇文章非常长,而且很有深度–实际上是在讨论测试本身,并展示了这些错误是如何被避免的。

>> Is TDD Dead? (the recording)

The initial “Is TDD Dead” hangout recording and the next one (happening today, on the 16th of May).

最初的“TDD死了吗 “挂机录音和下一次(今天,5月16日发生)。

The first was OK and spurred a lot of discussion online about the value and practices of TDD, and testing in general, and I’m hoping that the second discussion is going to go a little more in depth.

第一次还不错,在网上引发了很多关于TDD以及一般测试的价值和实践的讨论,我希望第二次的讨论能更深入一些。

4. Musings

4.思索

>> The Low Quality of Scientific Code

If you’ve ever seen scientific code, you know how it looks, you know you don’t want to touch it and you know you couldn’t change it reliably if your life depended on it. If you’re interested in that area, of if you were ever frustrated working with a library such as Mahout – this is why.

如果你见过科学代码,你知道它的样子,你知道你不想去碰它,你知道如果你的生命取决于它,你就不能可靠地改变它。如果你对这个领域感兴趣,或者你曾经在使用Mahout这样的库时感到沮丧,这就是原因。