The Baeldung Weekly Review 26 – Baeldung周报》 26

最后修改: 2014年 7月 4日

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

1. Java and Spring

1.Java和Spring

>> Project Jigsaw: Phase Two

Mark Reinhold has just announced what’s next for the JDK 9 Java module system. Looks like a more decent plan than the first go-round – taking bite sized chunks and integrating them into the platform one after the other, rather than one big change. Fingers crossed.

Mark Reinhold刚刚宣布了JDK 9 Java模块系统的下一步计划。看起来比第一轮的计划要好得多–采取一口大小的块状物,一个接一个地把它们集成到平台中,而不是一个大的变化。祈祷吧。

>> Hibernate and UUID identifiers

Really useful and detailed look at Hibernate UUIDs – although I’ve been working with these little identifiers for years and years, I still learned a lot from this one. I also like the crowd sourced way to double check info and get advice.

非常有用和详细的对Hibernate UUIDs的看法–虽然我已经用这些小标识符工作了很多年,但我还是从这本书中学到了很多。我也很喜欢这种从众的方式来仔细检查信息和获得建议。

>> Spring 4: CGLIB-based proxy classes with no default constructor

This is how Spring becomes easier – beans that are proxied with CGLIB used to require a default constructor – after Spring 4 they don’t any more. So – construction injection is now possible for these beans as well – which makes testing them a lot easier.

这就是Spring变得更容易的原因–用CGLIB代理的Bean过去需要一个默认的构造函数–在Spring 4之后,它们不再需要了。所以–这些Bean现在也可以进行构造注入了–这使得测试它们变得更加容易。

>> Flexibility with Spring’s cache abstraction

Practical illustration of the Caching in Spring – cool use of @Profile to transparently switch between two different cache providers (in this case Hazelcast and Ehcache). Cool beans.

关于Spring中的缓存的实际说明–很酷地使用@Profile在两个不同的缓存提供者(本例中为Hazelcast和Ehcache)之间透明地切换。酷酷的Bean。

And finally – some official Spring stuff that I took note of this week:

最后–本周我注意到的一些官方的Spring活动。

2. Technical

2.技术

>> You Probably Don’t Need a Message Queue

I couldn’t agree more, both with this specifically but also with the broader statement: “You Probably Don’t Need X“, where X can be any number of things. Complexity is a sneaky thing and you need to be ruthless when architecting your systems. And adding in a MQ is probably – nine times out of ten – a premature optimization and the wrong move.

我非常同意这一点,无论是具体的还是更广泛的说法。”你可能不需要X“,其中X可以是任何数量的东西。复杂性是一个阴险的东西,在构建系统时你需要无情地对待。添加一个MQ可能–十有八九–是一种不成熟的优化,是错误的做法。

And so we have our article of the week – go read this one – twice.

因此,我们有了本周的文章–去读这篇文章–两次。

>> Microservices Are SOLID

An interesting read about microservices from the point of view of the SOLID principles.

从SOLID原则的角度,对微服务进行了一次有趣的阅读。

3. Musings

3.思索

>> Personal Meditations on Software

Good food for thought – it’s a quick read, so you have no excuse 🙂

很好的思考素材–这是一本快速阅读的书,所以你没有任何借口 🙂。

>> What not to do during an interview

A good guide for interviewing – a few interesting tidbits in there that I wish I read (and internalized) 8 years ago 🙂

一个很好的面试指南–里面有一些有趣的花絮,我希望我在8年前就能读到(并内化)。 🙂

>> StranglerApplication

This one struck a chord with me – as I was involved in two “Big Rewrites” until now and both times we should have at least tried to leverage this approach rather than actually re-writing the system. Save yourself the hassle of going down that particular rabbit hole and go read this one.

这篇文章引起了我的共鸣–因为到现在为止,我参与了两次 “大改写”,这两次我们至少应该尝试利用这种方法,而不是真的重写系统。为自己省去进入那个特别的兔子洞的麻烦,去读这本书吧。

>> P, NP And Decision Problems (Really, It’s Not that Bad)

An off the cuff intro to algorithmic complexity and P vs NP. Nice read – brings back fun memories of school.

一个关于算法复杂性和P与NP的不经意的介绍。读起来不错–勾起了我对学校的有趣回忆。