Java Weekly, Issue 461 – Java周刊,第461期

最后修改: 2022年 10月 28日

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

1. Spring and Java

1.Spring和Java

>> Pre-Allocated Methods for HashMap and HashSet – Sip of Java [inside.java]

>> HashMap和HashSet的预分配方法 – Sip of Java [inside.java]

Let’s have a look at how Java 19 factory methods for pre-allocated maps and sets can prevent costly reallocations.

让我们来看看Java 19 工厂方法对预分配的映射和集合如何防止昂贵的重新分配。

>> JEP 433: Pattern Matching for switch (Fourth Preview) [openjdk.org]

>> JEP 433: switch的模式匹配(第四次预览) [openjdk.org]

Yet another preview for pattern matching in Java: more expressive, safer when dealing with all possible inputs, and backward compatibility.

然而,在Java中进行模式匹配的另一个预览:更具表现力,在处理所有可能的输入时更安全,并且向后兼容。

>> Introducing Spring Modulith [spring.io]

>> 介绍Spring Modulith [spring.io]

And a new, experimental project for expressing logical application modules in code to build well-structured, domain-aligned applications.

还有一个新的、实验性的项目,用于在代码中表达逻辑应用模块,以建立结构良好、领域一致的应用程序。

Also worth reading:

Webinars and presentations:

网络研讨会和演讲:

Time to upgrade:

升级的时间:

2. Technical & Musings

2.技术& 思考

>> Apache Kafka 3.3 Replaces ZooKeeper with the New KRaft Consensus Protocol [infoq.com]

>> Apache Kafka 3.3用新的KRaft共识协议替换了ZooKeeper [infoq.com]

The first Kafka release with a production-ready KRaft implementation: much less ops overhead with better performance. Good stuff.

第一个带有生产就绪的KRaft实现的Kafka版本:更少的操作开销和更好的性能。好东西。

>> Discuss the problem, not the solution [blog.frankel.ch]

>> 讨论问题,而不是解决方案 [blog.frankel.ch]

And a good take on why investing more into understanding the problem is more valuable than quickly discussing solutions.

还有一个很好的观点,即为什么在理解问题上投入更多比快速讨论解决方案更有价值。

Also worth reading:

还值得一读的是:

3. Comics

3.漫畫

>> Approved By A Mean Guy [dilbert.com]

>> Approved By A Mean Guy[dilbert.com]

>> Wally Top 10% Employee [dilbert.com]

>> Wally前10%员工 [dilbert.com]

>> Dilbert Quiet Quits [dilbert.com]

>> Dilbert Quiet Quits [dilbert.com]

4. Pick of the Week

4.本周精选

And a quick guide to exploring 5 critical elements of technical debt:

以及探索技术债务的5个关键要素的快速指南。

>>Download: Technical Debt – A Guide for Frustrated Software Architects and CIOs [vfunction.com]

>>下载。技术债务–沮丧的软件架构师和CIO指南 [vfunction.com]

Next »

Java Weekly, Issue 462

« Previous

Java Weekly, Issue 460