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

最后修改: 2014年 7月 4日

1. Java and 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.


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


2. Technical


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


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.


3. Musings


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