Lots of interesting writeups on Java 9 this week.
本周有很多关于Java 9的有趣文章。
Here we go…
我们来了……。
1. Spring and Java
1.Spring和Java
>> Spring Tips: Season 2 Recap [spring.io]
A summary of the Spring Tips series, including integrations with jOOQ, Couchbase, MyBatis, and a lot more.
Spring提示系列的总结,包括与jOOQ、Couchbase、MyBatis等的整合,还有很多。
>> Light at the End of the Long Tunnel for Java EE 8 [infoq.com]
Looks like that waiting for Java EE 8 finally comes to an end.
看来,对Java EE 8的等待终于要结束了。
>> Custom collectors in Java 8 [frankel.ch]
Java 8 comes with an overwhelming set of collectors for the Stream API but sometimes even this is not enough and you need to create your own collectors – which might be more complicated than you thought.
Java 8为Stream API提供了大量的收集器,但有时即使这样也是不够的,你需要创建自己的收集器–这可能比你想象的更复杂。
>> Java 9 modules – JPMS basics [joda.org]
Another solid guide to modularity in Java 9.
另一份关于Java 9中的模块化的可靠指南。
>> Critical Deficiencies in Jigsaw (JSR-376, Java Platform Module System) [developer.jboss.org]
Redhat team raised multiple issues regarding the current implementation of the Jigsaw Project. It looks like there were multiple compromises made when developing the new modular system for Java.
Redhat团队提出了关于Jigsaw项目的当前实施的多个问题。看起来在为Java开发新的模块化系统时,出现了多种妥协。
>> 8 Ways to use the features of your database with Hibernate [thoughts-on-java.org]
There are quite a few common misconceptions about Hibernate – one of which is that it can only be used for simple mapping. It turns out you can call database functions, stored procedures, map views, and quite a bit more.
关于Hibernate,有不少常见的误解–其中之一是它只能用于简单的映射。事实证明,你可以调用数据库函数、存储过程、映射视图,以及相当多的东西。
>> Want to Know What’s in a GC Pause? Go Look at the GC Log! [infoq.com]
GC logs can be a source of crucial information if you know how to read it – which can be tricky because GC logging is not thread-safe (prior to Java 9).
如果你知道如何阅读GC日志,它可以成为关键信息的来源–这可能很棘手,因为GC日志不是线程安全的(在Java 9之前)。
Also worth reading:
还值得一读的是:。
-
>> Java Bean Validation’s validateProperty() and validateValue() in Three Minutes [sitepoint.com]
-
>> Faster Spring Boot Startup [dolszewski.com]
-
>> StringBuffer, and how hard it is to get rid of legacy code [vanilla-java.github.io]
-
>> Spring – your next Java microframework [blog.alexnesterov.com]
-
>> Deprecation of Object.finalize() [stuartmarks.com]
-
>> Javaslang Changes Name to Vavr [vavr.io]
-
>> How does a JPA Proxy work and how to unproxy it with Hibernate [vladmihalcea.com]
-
>> Use Cases for Java Enhanced Enums [marxsoftware.blogspot.com]
Webinars and presentations:
网络研讨会和演讲:。
-
>> Straggler Free Data Processing in Cloud Dataflow [infoq.com]
-
>> Jean Barmarsh on Binary RPC with gRPC and Thrift, and Constraint Theory in Product Design [infoq.com]
Time to upgrade:
升级的时间:。
-
>> Spring Cloud Dalston Released [spring.io]
-
>> Spring Cloud Stream Chelsea goes GA! [spring.io]
-
>> Spring Vault 1.0 goes GA [spring.io]
-
>> Spring Data Kay M2 released [spring.io]
-
>> Spring Cloud Task 1.2.0.RC1 is now available [spring.io]
-
>> Tenth bug-fix release for ORM 5.2 [in.relation.to]
-
>> Hibernate Search now speaking Elasticsearch 5 [in.relation.to]
-
>> Spring Framework 4.3.8 released [spring.io]
-
>> Oracle JDK 9 Early Access Documentation Updated [marxsoftware.blogspot.com]
2. Technical
2.技术
>> Stop sweeping your failing tests under the RUG [ontestautomation.com]
Instead of retrying your tests till they green out, it might be a better move to invest into fixing problems with the system, or with the test itself.
与其重试你的测试直到它们变绿,不如投资于修复系统或测试本身的问题。
Also worth reading:
还值得一读的是:。
3. Musings
3.思索
>> Elements of Helpful Code Documentation [daedtech.com]
Discovering APIs by experimenting with them is fun but not very efficient (especially from the customer side of things). By taking care of documentation, we can get a lot more productive in the long term.
通过实验来发现API是很有趣的,但是效率并不高(尤其是从客户方面来说)。通过对文档的处理,从长远来看,我们可以获得更多的生产力。
>> Alternatives to Lines of Code [daedtech.com]
>> 代码行的替代品[daedtech.com]
It’s not a secret that measuring productivity using LoC/day is less than ideal and can be hacked easily, although it still appears quite attractive to some managers.
使用LoC/day来衡量生产力并不理想,而且很容易被黑掉,这并不是什么秘密,尽管它对一些管理者来说仍然显得相当有吸引力。
Also worth reading:
还值得一读的是:。
-
>> Eliminating the Job Interview via Partnership [daedtech.com]
4. Comics
4.漫画
And my favorite Dilberts of the week:
还有本周我最喜欢的Dilberts。