The Baeldung Weekly Review 9 – Baeldung周报》9

最后修改: 2014年 3月 6日

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

The Weekly Review on Baeldung is a curated list of the best stuff I read each week – a handful of articles that are well worth reading (in no particular order).

Baeldung上的每周评论是我每周读到的最好的东西的策划清单–少数几篇非常值得阅读的文章(没有特定顺序)。

With the final weekly review of February – hold on to your hat!

2月的最后一次周评–请抓紧时间。

On Spring

关于Spring

We’ll start strong with a lot of Spring official resources:

我们将以大量的Spring官方资源强势启动。

=> Session Timeout and Concurrent Session Control with Spring Security and Spring-MVC

Good look into the Spring Security options for managing sessions.

好好研究一下管理会话的Spring Security选项。

=> Tracking Application Exceptions With Spring

An interesting discussion about monitoring an application – and building a quick and custom tool to proactively monitor logs. Funny to.

关于监控应用程序的有趣讨论–以及建立一个快速和定制的工具来主动监控日志。有趣的是。

On Java

关于Java

=> Java 8 Friday Goodies: Easy-as-Pie Local Caching

A look into how Map can be used as a local cache in Java 8 – using the new computeIfAbsent atomic operation and the lambda support.

看看Map如何在Java 8中用作本地缓存 – 使用新的computeIfAbsent原子操作和lambda支持。

=> Caching best practices

Inspired by the previous article – Vlad talks through some great insights about caching. I wish I would have read the first part of this post 8 years ago when I was starting out – it would have saved me a bit of time.

受上一篇文章的启发–Vlad谈了一些关于缓存的伟大见解。我希望我在8年前刚开始工作时就能读到这篇文章的第一部分–它能为我节省一些时间。

=> JUnit ExpectedException rule: beyond basics

If you’ve been dealing with exceptions in JUnit tests manually – using rules is a good step forward, as it eliminates a long of cruft and unnecessary code.

如果你一直在手动处理JUnit测试中的异常–使用规则是一个很好的进步,因为它消除了大量的杂物和不必要的代码。

=> How to Eliminate Bugs Through High Cohesion

Example driven discussion about growing and evolving an API – as opposed to trying to get it right from the get go. Read this if you’re building any kind of API (you probably are even if you don’t know it).

关于成长和进化的API的例子驱动的讨论–而不是试图从一开始就把它弄好。如果你正在构建任何类型的API(即使你不知道,你也可能是),请阅读这个。

=> HOW-TO: Test dependencies in a Maven project (JUnit, Mocito, Hamcrest, AssertJ)

A nice short introduction to going beyond JUnit with additional testing libraries (and Maven).

一个很好的简短介绍,介绍了如何利用额外的测试库(和Maven)超越JUnit。

Technical

技术

=> Increase mobile performances by implementing transparent redirects

The concept of a transparent redirect – and the interesting idea of potentially extending the HTTP spec with a new redirect status.

透明重定向的概念–以及可能用新的重定向状态来扩展HTTP规范的有趣想法。

=> 10 lsof command usages with example – Unix/Linux

Useful to have it your back pocket.

带在身上很有用。

General Musings

一般思考

=> We Need More Foremen

A great answer to a well intentioned but somewhat limited perspective on teams and good software development. This cuts right to the heart of the problem – on a healthy team, everyone should take responsibility.

关于团队和良好的软件开发的一个用心良苦但有些局限的观点的一个很好的回答。这直接切中了问题的核心–在一个健康的团队中,每个人都应该承担起责任。

Keeping with tradition, if you read one single article out of this weeks review – this is the one you should read!

秉承传统,如果你在本周的评论中只读一篇文章–这就是你应该读的文章!

=> Choosing Secure Passwords

A good in-depth discussion about choosing and administering your passwords – a lot to learn from this article.

关于选择和管理你的密码的一个很好的深入讨论–从这篇文章中可以学到很多东西。

=> Define An API By Consuming It

Thinking your way correctly through the decisions you’re building and growing an API is a very useful skill to have. TDD will get you half way there – but ultimately the right frame of mind is very useful when deciding the abstractions and the responsibilities of your own API.

在构建和发展API的过程中,正确思考你的决定是一项非常有用的技能。TDD会让你做到一半–但最终在决定你自己的API的抽象和责任时,正确的思维框架是非常有用的。

I’ve been picking a lot of API articles lately – mainly because it’s so important to get yours right – which is, I think – a good way to end this one.

我最近一直在挑选很多API文章–主要是因为把你的文章写好是非常重要的–我认为这是结束这篇文章的一个好方法。