Lots of interesting writeups on Java 9 this week.
本周有很多关于Java 9的有趣文章。
Here we go…
我们来了……。
1. Spring and Java
1.Spring和Java
>> How To Map The Date And Time API with JPA 2.2 [thoughts-on-java.org]
Support for the new Date/Time API for Java finally comes along with the JPA 2.2.
对新的Java日期/时间API的支持终于伴随着JPA 2.2的到来。
>> @Contended @since 9 [javaspecialists.eu]
Java 9 will be trying to encapsulate internal system classes that we should not be using (but we often are).
Java 9将试图封装我们不应该使用的内部系统类(但我们经常使用)。
The @Contended annotation is one of those tools – let’s see how we can access it in Java 9.
@Contended 注解就是这些工具之一–让我们看看如何在Java 9中访问它。
>> You’re not a compiler! [frankel.ch]
Programming quizzes are cool, but obviously, they do test a very thin slice of developer’s skills.
编程测验很酷,但很明显,它们确实测试了开发人员的一个非常薄的技能。
All in all, not that useful.
总而言之,不是那么有用。
>> Planning Your Java 9 Update [codefx.org]
Java 9 is coming soon (hopefully) and brings a host of new APIs and language features, modules among them.
Java 9即将到来(希望如此),它带来了大量新的API和语言功能,模块就是其中之一。
Modularizing an application should be well thought and carefully planned.
应用程序的模块化应该经过深思熟虑和精心策划。
>> Java API for RESTful Web Services 2.1 Released [infoq.com]
JAX-RS 2.1 finally got released and has a bunch of cool new features.
JAX-RS 2.1终于发布了,并且有一堆很酷的新功能。
>> Code Smells: Mutation [blog.jetbrains.com]
Simply put – it’s a bad idea to mutate something you’re directly iterating over 🙂
简单地说–对你直接迭代的东西进行突变是个坏主意 🙂。
>> JUnit 5 Tutorial: Running Unit Tests With Gradle [petrikainulainen.net]
Running JUnit 5 tests might be slightly tricky in certain scenarios – it’s important to remember that JUnit 5 is split into a few different artifacts you can leverage separately.
在某些情况下,运行JUnit 5测试可能略显棘手–必须记住,JUnit 5被分成几个不同的工件,你可以分别利用。
>> Cost Reduction Strategies on Java Cloud Hosting Services [infoq.com]
Cloud resources can be expensive, especially when you’re forced to pay for resources that you don’t need.
云资源可能很昂贵,特别是当你被迫为你不需要的资源付费时。
Here are a few techniques to make sure you’re paying only for what you actually use.
这里有几个技巧,可以确保你只为你实际使用的东西付费。
>> Idiomatic Peeking with Java Stream API [4comprehension.com]
Multiple controversies are surrounding the peek() method from the Java Stream API – here you can see what those are and how to use the method properly.
围绕着Java Stream API中的peek()方法存在多种争议–在这里你可以看到这些争议是什么以及如何正确使用该方法。
Also worth reading:
-
>> Dynamically adding an interceptor to a built-in CDI bean [arjan-tijms.omnifaces.org]
-
>> JUnit 5 Tutorial: Running Unit Tests With Maven [petrikainulainen.net]
-
>> Hibernate Tips: How to delete child entities from a many-to-one association [thoughts-on-java.org]
-
>> The best way to map a projection query to a DTO (Data Transfer Object) with JPA and Hibernate [vladmihalcea.com]
-
>> Localization of Spring Security Error Messages in Spring Boot [codecentric.de]
-
>> First Vavr Tutorial [blog.vavr.io]
Webinars and presentations:
网络研讨会和演讲:。
-
>> Spring Cloud Data Flow Tips & Tricks: Interacting with the Shell [spring.io]
-
>> What Does Speed Mean in Software Product Delivery? [infoq.com]
Time to upgrade:
升级的时间:。
-
>> Bugfix releases for Hibernate Search 5.5, 5.6 and 5.7 [in.relation.to]
-
>> jOOQ 3.10 Supports JPA AttributeConverter [jooq.org]
-
>> IntelliJ IDEA 2017.2: Smarter, Neater, and Faster [infoq.com]
-
>> IntelliJ IDEA 2017.2: Spring Boot Improvements [jetbrains.com]
-
>> Spring Cloud Edgware M1 Is Now Available [spring.io]
2. Technical
2.技术
>> Stability in a Chaotic World: How Postgres Makes Transactions Atomic [brandur.org]
A super deep-dive into the internal of Postgres.
对Postgres的内部进行了一次超级深入的探讨。
Also worth reading:
还值得一读的是:。
-
>> Selecting an Event Architecture [infoq.com]
3. Musings
3.思索
>> Scale Your Freelancing: Hiring Others [daedtech.com]
Well, you should probably start by finding a good lawyer and an accountant – that holds true for pretty much every country 🙂
好吧,你也许应该先找一个好的律师和会计师–这对几乎每个国家都是如此🙂。
Also worth reading:
还值得一读的是:。
-
>> Reinforcement Learning Overview [horicky.blogspot.com]
-
>> How To Handle Business Rules in Domain Driven Design [blog.sapiensworks.com]
-
>> When do you cut your Losses? [offbeattesting.com]
-
>> The Web in 2050 [jacquesmattheij.com]
-
>> Just Following Orders [blog.cleancoder.com]
-
>> Spring Cleaning Your Code Review [daedtech.com]
4. Comics
4.漫画
And my favorite Dilberts of the week:
还有本周我最喜欢的Dilberts。
>> Small Talk [dilbert.com]
>> Complaining pill [dilbert.com]
>> Fool-proof plan for success [dilbert.com]
5. Pick of the Week
5 本周精选
The last day (Friday) of the REST With Spring 2.0 launch:
REST With Spring 2.0发布会的最后一天(星期五)。