Java Web Weekly, Issue 143 – Java网络周刊,第143期

最后修改: 2016年 9月 22日

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

At the very beginning of last year, I decided to track my reading habits and share the best stuff here, on Baeldung. Haven’t missed a review since.

去年年初,我决定跟踪我的阅读习惯,并在这里分享最好的东西,在Baeldung上。从那时起,我没有错过任何一篇评论。

Here we go…

我们来了……

1. Spring and Java

1.Spring和Java

>> Proposed schedule change for JDK 9 [mail.openjdk.java.net]

This had to go first.

这必须要先进行。

Not entirely unexpected, Java 9 got delayed by 4 months, which places GA in July of next year.

并非完全出乎意料,Java 9被推迟了4个月,这使得GA在明年7月就会出现。

>> Private methods in interfaces in Java 9 [joda.org]

Java 9 is adding private methods on interfaces. Yes – you read that right 🙂

Java 9正在增加接口的私有方法。是的–你没看错 🙂

>> Java EE 8 Delayed Until End of 2017, Oracle Announces at JavaOne [infoq.com]

More clarity around the schedule and timeline of Java EE 8.

更加明确的是关于Java EE 8的时间表和时间线

>> Feedback needed – Which constraints should be added? [beanvalidation.org]

A very quick survey asking for feedback on the exact constraints that should become part of the new bean validation standard.

一个非常快速的调查,要求对应该成为新的Bean验证标准一部分的确切约束条件提供反馈。

Definitely worth voting on if you’re using the standard (and you probably are).

如果你正在使用该标准(你可能正在使用),绝对值得投票。

>> How to simplify JPA and Hibernate integration testing using Java 8 lambdas [relation.to]

Cool to see some Java 8 goodness in Hibernate.

很高兴在Hibernate中看到一些Java 8的优点

>> JHipster 3.7 Tutorial Pt 3: Secure Service Communication Using OAuth2 [stytex.de]

A quick exploration of the new UAA functionality in JHipster – something I’m planning to make time to experiment with as well.

对JHipster中新的UAA功能的快速探索–我也打算腾出时间来进行实验。

>> Complete Guide: Inheritance strategies with JPA and Hibernate [thoughts-on-java.org]

A good handle on inheritance strategies is a central aspect of understanding and working with JPA and Hibernate – and this article is a good way to brush up on the fundamentals.

掌握好继承策略是理解和使用JPA和Hibernate的一个核心方面–本文是学习基础知识的一个好方法。

>> JavaOne 2016 – Audience Gets a Glimpse of the Power of JShell [infoq.com]

JShell is one of the features I’m most excited about when Java 9 is going to drop.

JShell是我对Java 9即将发布时最兴奋的功能之一。

>> Resource leakages: command pattern to the rescue [plumbr.eu]

Look – this isn’t new by any stretch of the imagination. Read it anyways – it might lead to code that behaves better.

听着–这并不是什么新的想象力。无论如何,请阅读它–它可能会导致代码表现得更好。

>> Oracle Gives NetBeans to the Apache Foundation [infoq.com]

>> Oracle将NetBeans交给了Apache基金会[infoq.com]

An unexpected move from Oracle, with hopefully positive consequences for the project.

来自甲骨文的意外之举,希望能对项目产生积极影响。

That being said, that may also mean that the current Oracle team will slowly but surely be pulled from the project, which will definitely also have an impact.

也就是说,这也可能意味着目前的甲骨文团队将缓慢但肯定地从该项目中撤出,这肯定也会产生影响。

Also worth reading:

还值得一读的是:

Webinars and presentations:

网络研讨会和演讲:

Time to upgrade:

升级的时间:

2. Musings

2.思索

>> Are you guilty of over-engineering? [frankel.ch]

This write-up is a good example of why TDD is so very useful. Design is the primary reason to do TDD – a design that almost always leads to fewer unnecessary abstractions like the one described here.

这篇报道是一个很好的例子,说明了为什么TDD非常有用。设计是做TDD的主要原因–这种设计几乎总是会导致更少的不必要的抽象,就像这里描述的那样。

>> Old Geek [tbray.org]

It’s always baffling and sad to realize just how different the tech landscape looks over a certain age. It’s really a shame and easy to forget if you’re not there yet.

意识到科技领域在某个年龄段看起来有多么不同,总是令人困惑和悲伤。这真的是一种耻辱,如果你还没有到那个时候,就很容易忘记。

>> Here’s how broken today’s web will feel in Chrome’s secure-by-default future [troyhunt.com]

These changes are coming to Chrome (first) sooner rather than later. A bold step in the right direction – and one that’s especially interesting if you own a site.

这些变化早晚都会出现在Chrome浏览器上(首先)。在正确的方向上迈出了大胆的一步–如果你拥有一个网站,那就特别有意思。

>> Wherefore Art Thou, Tech Debt? [daedtech.com]

A insightful read about how different shops operate and about common patterns across the industry. Clearly a post born out of experience – and a hint of serenity that comes with that experience.

一篇关于不同商店如何运作以及整个行业的共同模式的有见地的读物。显然,这是一篇源于经验的文章–还有一丝经验带来的宁静。

If you’re not doing consulting you’ve definitely seen some of these yourself but likely not all.

如果你不做咨询,你肯定见过其中一些,但很可能不是全部。

>> What 60,000 Customer Searches Taught Us about Logging in JSON [loggly.com]

It’s always fun to read up on how the industry doing logging, and “start logging in JSON now” is a message I fully agree with.

阅读行业如何做日志总是很有趣,”现在开始用JSON做日志“是我完全赞同的信息。

Also worth reading:

还值得一读的是:

3. Comics

3.漫畫

And my favorite Dilberts of the week:

还有本周我最喜欢的Dilberts。

>> Is that sarcasm? [dilbert.com]

>> When our CEO visits [dilbert.com]

>> Productivity went down [dilbert.com]

4. Pick of the Week

4.本周精选

Petri’s course on testing is 30% off for a few more days, until the first package goes live.

Petri的测试课程再打7折,持续几天,直到第一个套餐上线。

So, right now is a great opportunity to get it, as it’s going to go up in price soon:

因此,现在是一个获得它的好机会,因为它很快就会涨价。

>> Get 30% off the “Test with Spring” Course