The Baeldung Weekly Review 34 – Baeldung周报》34

最后修改: 2014年 8月 28日

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

At the very beginning of 2014 I decided to start better documenting my reading habits and sharing them here with all of you.

在2014年年初,我决定开始更好地记录我的阅读习惯,并在这里与你们所有人分享

The point is two fold – by curating and documenting, my reading has become more purposeful and diverse. Also – I believe that curation of good content brings a lot of value, helps people explore and allows the best stuff to raise to the top.

这有两层意思–通过策划和记录,我的阅读变得更有目的性和多样性。另外–我相信对好内容的策划会带来很多价值,帮助人们探索,并让最好的东西提升到顶端。

Hopefully you’ll enjoy these as we move in the latter half of 2014.

希望在我们进入2014年下半年时,你会喜欢这些。

Here we go…

我们来了……

1. Java and Spring

1.Java和Spring

>> How to customize Hibernate dirty checking mechanism

Last week the series went into the dirty checking mechanism that Hibernate provides; this week it’s an even deeper look into that – performing the check manually or using other custom approaches.

上周,该系列深入探讨了Hibernate提供的脏器检查机制;本周则是更深入的探讨–手动执行检查或使用其他自定义方法。

>> How to Inject Objects Into Spring MVC Controller Using HandlerMethodArgumentResolver

An advanced but very useful usecase – injecting a custom object into your Controller layer methods. I’ve been doing this whenever I find that I regularly need to access something and it’s quite convenient.

一个高级但非常有用的用例–在你的控制器层方法中注入一个自定义对象。每当我发现我经常需要访问一些东西时,我都会这样做,而且相当方便。

>> URL shortener service in 42 lines of code in… Java (?!) Spring Boot + Redis

This quick exercise is a cool Fizz Buzz test – an URL shortener in various languages. This one is done with Java, Spring Boot and Redis; there’s a cool Clojure example linked from there as well – check that out if you’re into Clojure.

这个快速练习是一个很酷的Fizz Buzz测试 – 各种语言的URL缩短器。这个练习是用Java、Spring Boot和Redis完成的;那里还有一个很酷的Clojure例子,如果你喜欢Clojure,可以去看看。

>> Spring MVC endpoint documentation with Spring Boot

REST API documentation (there’s a contradiction in terms for you) – is a topic that’s near and dear to me, so I’ve been doing some reading on the topic. Here’s a way to do it via Spring Boot – no longer with a third party tool like I talked about in previous weekly reviews.

REST API文档(对你来说有一个矛盾的说法)–是一个离我很近的话题,所以我一直在做一些关于这个话题的阅读。这里有一个通过Spring Boot实现的方法–不再像我在以前的周评中谈到的那样使用第三方工具。

Finally, the usual suspects – Spring releases:

最后,通常的嫌疑人–Spring发布。

2. Technical

2.技术

>> MaturityModel

Maturity Models have gotten a bad name – here’s a positive outlook on how they can help you learn and grow.

成熟度模型得到了一个不好的名声–这里是对它们如何帮助你学习和成长的一个积极展望。

>> MicroservicePrerequisites

Microservices are all the rage right now – everybody and their mother are jumping on and implementing a microservice. Sometimes that’s a good way to go and – like everything else – sometimes it’s not. A couple of weeks ago I linked to this really good and honest review of a team that has failed doing microservices – and learned a bunch of things along the way.

微服务现在很流行–每个人和他们的母亲都在跃跃欲试,实施微服务。有时这是个好办法,但就像其他事情一样,有时却不是这样。几周前,我链接了这个非常好的、诚实的评论,这个团队在做微服务时失败了–并且在这一过程中学到了很多东西。

So – if you’re planning to use this pattern in your next project, or perhaps you’re in the middle of implementation right now (like I am) – do yourself a favor and read these pieces from people that have actually done this and learned from the experience.

所以–如果你打算在你的下一个项目中使用这种模式,或者你现在正在实施中(就像我一样)–帮你自己一个忙,读一读这些来自真正做过并从经验中学习的人的文章。

I thought this series was mostly wrapped up – it isn’t (I’m still catching up):

我以为这个系列已经大部分结束了–其实不然(我还在追赶)。

3. Musings

3.思索

>> Breaking Free of the Golden Handcuffs

Another one from Erik about leaving a high paying job. The passive income track is definitely something that will hit home with a lot of people and it’s the part that I found the most interesting bit of the article.

埃里克的另一篇关于离开高薪工作的文章。被动收入的轨道肯定会让很多人感到意外,这也是我觉得这篇文章中最有趣的部分。

>> 5 Things I Do to Stay Relevant

We’re all getting older – even if you may not really believe that 🙂 – and keeping your skills sharp is probably the most important thing you can do, period.

我们都在变老–即使你可能并不真正相信这一点🙂–保持你的技能可能是你能做的最重要的事情,期间。

As engineers, we love to learn and keep on learning. At the end of the day, it’s natural curiosity and the willingness to learn and experiment that got us into engineering in the first place.

作为工程师,我们热爱学习并不断学习。说到底,是天生的好奇心和学习与实验的意愿让我们一开始就进入了工程领域。

This article is a good reference for staying up to date and keeping the learning fire alive.

这篇文章是保持最新和保持学习之火的良好参考。

>> Let Code Flow Towards Better Design

Insights into design from someone I have a lot of respect for – go read this one.

对设计的见解,来自我非常尊敬的人–去读这个人。

4. Comics

4.漫画

Next batch of XKCD genius coming up:

下一批XKCD天才即将登场。

>> Kilobyte

>> Academia vs. Business

>> Compiler Complaint