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

最后修改: 2016年 3月 24日

中文/混合/英文(键盘快捷键: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

>> JEP 286 Survey Results for Local Variable Type Inference [infoq.com]

A quick followup to the survey Brian Goetz ran to take the pulse of the community on the best way to implement type inference in Java. Looks like a pretty decisive yes.

在Brian Goetz所做的调查中,我们对在Java中实现类型推理的最佳方式进行了快速跟进。看起来很有决定性的

>> Simplifying Database Queries with Jinq [infoq.com]

Jing looks like a clean, nice way to access your SQL data – here’s just a quick example to show you what the library can do.

Jing看起来是一种干净、漂亮的方式来访问你的SQL数据–这里只是一个快速的例子,向你展示该库可以做什么。

>> Improve Your JUnit Experience with this Annotation [jooq.org]

Very quick and to the point way to run your tests in a more predictable order – which makes a lot of sense.

非常快速和直接的方式来以更可预测的顺序运行你的测试 – 这有很大的意义。

I personally actually like the unpredictable nature of tests – it’s a quick and nice way to flush out any unforeseen connections between them – but I can certainly see the appeal of running them in a clear order.

我个人其实很喜欢测试的不可预测性–这是一种快速而不错的方式,可以冲掉它们之间任何不可预见的联系–但我当然可以看到按明确顺序运行它们的吸引力。

>> How to call Oracle stored procedures and functions from Hibernate [vladmihalcea.com]

A very practical and useful guide to using stored procedures with Hibernate. A bit annotation-heavy, but if you’re using JPA, you’re already used to that.

一本关于使用Hibernate的存储过程的非常实用的指南。有点重注,但如果你在使用JPA,你已经习惯了。

Also worth reading:

也值得一读。

Webinars and presentations:

网络研讨会和演讲。

Time to upgrade:

是时候升级了。

2. Technical

2.技术

>> Understanding CSRF, the video tutorial edition [troyhunt.com]

Having a solid understanding of CSRF attacks well beyond the basics – can save your bacon when taking your system to production. Definitely have a look at this one.

对CSRF攻击有一个扎实的了解,不仅仅是基础知识–当把你的系统带到生产中时,可以挽救你的性命。一定要看一下这个。

>> Uber Bug Bounty: Turning Self-XSS into Good-XSS [fin1te.net]

I enjoy reading through the details of these attacks. I’m saving this one for the weekend but it looks promising, so I’m including it here as well.

我喜欢通读这些攻击的细节。我把这个留到周末,但它看起来很有希望,所以我也把它放在这里。

>> Writing OpenAPI (Swagger) Specification Tutorial – Part 3 – Simplifying specification file [apihandyman.io]

API documentation is the new hotness, yes, but it’s also necessary. And while I’m using Swagger myself, I’m keeping a close eye on the other tools available out there.

API文档是新的热点,没错,但它也是必要的。虽然我自己正在使用Swagger,但我也在密切关注其他可用的工具。

>> Event Sourcing vs CRUD [alexecollins.com]

A very quick and to the point set of questions to ask yourself before deciding if Event Sourcing makes sense for the architecture of your system.

决定事件源是否对您的系统架构有意义之前,要问自己一组非常快速和直接的问题。

Also worth reading:

也值得一读。

3. Musings

3.思索

>> That Code’s Not Dead — It Went To a Farm Upstate… And You’re Paying For It [daedtech.com]

Removing “dead” code is critical to keep the sanity of your system (and your own while you work on that system).

删除 “死 “代码是至关重要的,以保持系统的理智(以及你在该系统上工作时自己的理智)。

One of the cleanest and easiest to work with codebases that I ever touched early on in my career – was one where the team lead was ruthless with cutting code that wasn’t used immediately.

在我职业生涯的早期,我接触过的最干净、最容易操作的代码库之一,是一个团队领导无情地削减了不立即使用的代码。

>> My Passion Was My Weak Spot [jacquesmattheij.com]

Passion is one thing, and allowing it to put you in unhealthy, one-side type of work is another.

激情是一回事,而让它把你放在不健康的、单边类型的工作中是另一回事。

This piece is definitely worth the read, especially if you’re relatively new to working as a developer.

这篇文章绝对值得一读,特别是如果你是作为一个开发者工作的相对新手。

>> Take a Step Back [techblog.bozho.net]

Some solid advice if there ever was any – think through those little, day to day decisions to keep your system and your codebase clean and nimble.

一些可靠的建议,如果有的话–考虑那些小小的、日常的决定,以保持你的系统和你的代码库的清洁和灵活

>> AppDynamics vs Dynatrace: Battle of the Enterprise Monitoring Giants [takipi.com]

If you ever asked the monitoring question for the system you’re working on, you’ve asked yourself this exact question more than once.

如果你曾经问过你正在工作的系统的监控问题,你已经不止一次地问过自己这个确切的问题。

My only gripe about this one is that it doesn’t include the other major player in the space – New Relic. Other than that – some solid information over here.

我对这份报告的唯一不满是,它没有包括该领域的另一个主要参与者–New Relic。除此以外,这里还有一些可靠的信息。

Also worth reading:

也值得一读。

4. Comics

4.漫画

And my favorite Dilberts of the week:

还有本周我最喜欢的Dilberts。

>> My PowerPoint slides have a little something for everyone [dilbert.com]

>> I’m in the mood to tweet [dilbert.com]

>> You’re exactly what I’m trying to avoid [dilbert.com]

 

5. Pick of the Week

5 本周精选

Every year I run a survey to find out how the adoption of new technologies is going. Here are the new numbers for Spring and Spring Boot:

我每年都会做一个调查,了解新技术的采用情况。下面是Spring和Spring Boot的新数字。

>> Spring and Spring Boot Adoption in March 2016 [baeldung.com]