DEV Community

Cover image for balalaika IT newsletter #4
Andrey Goncharov for balalaika IT

Posted on • Updated on • Originally published at blog.balalaikait.com

balalaika IT newsletter #4

Frontend

Node.js

  • Sad to say it, but it looks like hapi.js project is reaching its end. If you happen to use hapi.js, you should consider switching to another web framework in the nearest future.
  • As of v7 npm support both yarn.lock and package-lock.json. Here is a great read on npm v7 treats them and about the future of npm dependency resolution algorithms.

Java

  • HotSpot JVM has tons of optimizations all over the place. For instance, even the default hashCode() hides some secrets. Learn more about this optimization here.
  • As an interesting follow-up, you might want to take a look at the j.l.String#hashCode() implementation which caches the hash code in a non-volatile hash field. This optimization was described in the Java Concurrency in Practice book here and here. Do not do it at home!
  • If you are not familiar with the history behind Generics, which have a controversial reputation in Java community, you should read this post from Brian Goetz.

General

  • Jepsen team recently did an analysis of RedisRaft, a new module that provides strict serializability for Redis. As usual, some issues were found. As usual, some promises of fixes were made.

Top comments (0)