Java Weekly, Issue 217 – Java周刊》第217期

最后修改: 2018年 2月 22日

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

Here we go…

我们来了……

1. Spring and Java

1.Spring和Java

>> Monitor and troubleshoot Java applications and services with Datadog

Optimize performance with end-to-end tracing and out-of-the-box support for popular Java frameworks, application servers, and databases. Try it free.

通过端到端跟踪和对流行的Java框架、应用服务器和数据库的开箱即用支持来优化性能。免费试用

>> Package by layer for Spring project is obsolete [lkrnac.net]

In the world of Microservices and DDD, package-by-layer doesn’t seem to make much sense anymore.

在微服务和DDD的世界里,逐层打包似乎已经没有什么意义了。

>> Designing, Implementing and Using Reactive APIs [infoq.com]

Before pursuing a reactive approach, ensure that going reactive is not introducing unnecessary complexity.

在追求反应式方法之前,确保反应式不会引入不必要的复杂性。

>> Spring Data Projections [blog.sourced-bvba.be]

It turns out we can easily create custom projections with Spring Data. Very nice.

事实证明,我们可以轻松地用Spring Data创建自定义投影。非常好。

>> JUnit and Cucumber test reports based on source code and behavior [advancedweb.hu]

Detailed failure messages for Java tests and without the use of complex assertion libraries – definitely a cool addition to the JUnit and Cucumber stack.

为Java测试提供详细的失败信息,而且不需要使用复杂的断言库–这绝对是对JUnit和Cucumber栈的一个很酷的补充。

Also worth reading:

Webinars and presentations:

网络研讨会和演讲:

Time to upgrade:

升级的时间:

2. Technical

2.技术

>> The Practical Test Pyramid [martinfowler.com]

Regardless of the type of tests you’re implementing, testing the observable behavior (instead of implementation details) will save a lot of frustration later on.

无论你实现的是哪种类型的测试,测试可观察到的行为(而不是实现细节)都会在以后节省很多挫折。

>> Virtual Panel: Succeeding with Event Sourcing [infoq.com]

Event Sourcing in isolation is definitely useful, but its power and potential are amplified when it’s used to complement a CQRS architecture and Domain Driven Design – it’s important to respect the boundaries of our bounded-contexts.

孤立的事件源肯定是有用的,但当它被用来补充CQRS架构和领域驱动设计时,它的力量和潜力就会被放大–尊重我们有边界的背景是很重要的。

>> Generic Platform – The Rule of Three [scottlogic.com]

Premature genericisation can contribute to the “legacy code” you have in your system.

过早的通用化会导致你的系统中出现 “遗留代码”。

>> Model Actions, not Data [amundsen.com]

Relying on your data model as any guide for your API design is almost always a bad idea. Words of wisdom here.

依赖你的数据模型作为你的API设计的任何指导,几乎总是一个坏主意。这里的智慧之言。

Also worth reading:

还值得一读的是:

3. Musings

3.思索

>> Promoting Test Driven Development with a Remote Team [daedtech.com]

Distributed teams can highly benefit from adopting TDD – it’s well worth investing in that adoption.

分布式团队可以从采用TDD中获益良多–这非常值得投资于这种采用。

Also worth reading:

还值得一读的是:

4. Comics

4.漫画

And my favorite Dilberts of the week:

还有本周我最喜欢的Dilberts。

>> Not Morons [dilbert.com]

>> Clear Direction [dilbert.com]

>> Option One [dilbert.com]

5. Pick of the Week

5 本周精选

>> The world needs more modest, linear growth companies. Please make some. [m.signalvnoise.com]