A Java Geek weekly 88

On PowerMock abuse

While Simon Martinelli writes about Mockito (see below), I warned about PowerMock ten years ago. The more powerful the mocking tool, the worse the code testability can be. Ergo: keep the mocking tools as simple as possible, or even better, don’t use any if you can, to design testable code from the ground up.

Spring Team on AOT Cache Handling, Null Safety with JSpecify, and Support Durations

The idea of providing AOT-code along with the app to improve start-up times is getting more and more popular. I wonder what’s the burden of creating and delivering such cache vs. the performance improvement. I guess that the easier the process to create and deliver the cache, the more companies will adopt it.

Learn CSS Subgrid in 14 minutes

I understand more or less the grid layout. With the video, I could understand subgrid. But the resizing sorcery at the end is definitely beyond my current understanding.

Strengthening Kotlin for Backend Development: A Strategic Partnership With Spring

I missed that announcement last week. Looks very promising!

15 Rust CLI tools that will make you abandon bash scripts forever
  • ripgrep grep, but make it fast
  • fd find without tears
  • bat cat but cute
  • exa ls but classy
  • procs process viewer that doesn’t suck
  • dust du with visuals
  • bottom the htop killer
  • tokei codebase stats you’ll actually use
  • andwhich see who’s hogging your internet
  • and more
Why I Don’t Use Mocking Frameworks and Why You Might Not Need Them Either

When I wrote Integration Testing from the Trenches, I described mocking a lot and in detail. However, I admit that TestContainers changed the game a lot!

How to deal with (Rust) dependencies

In the article, the author lists three "good" reasons you should include a dependency:

  • Dependencies that do something you don’t want to do yourself
  • Dependencies that act as the canonical interface to some system facility or hardware device
  • And for Rust, "Safety quarantine" crates that wrap some unsafe features in a safe wrapper

    That’s a good checklist whenever you want to add a dependency to your project. Don’t add a dependency for a single function.

Weaponizing Dependabot: Pwn Request at its finest

I’m amazed by the creativity of these attacks.

I’m using Renovate instead of Dependabot. So far, I didn’t configure it to auto-accept Pull Requests. This post is another reason not to do it.

Maximize Your Rust Enums With Strum

The GitHub repo is here: https://github.com/Peternator7/strum.

Why Senior Developers Google Basic Syntax

I feel seen. Lately, I had to pass a coding challenge on an online IDE that had no auto-completion. Instead of using the Kotlin or even the Java API, I had to fall back to muscle memories of years of managing indexes on collections. It worked, but the experience wasn’t pleasant, and I wasn’t happy with my code, even though it worked.

Frustration-Free K8S for Spring Developers

Apart from the interesting talk:

  • TIL: Service Binding for Kubernetes. I never heard of it before. It’s implemented by Spring Cloud and Quarkus.
  • Tilt: I heard about it, but I had never seen it in action. Seems like it’s pretty powerful, but also quite complex.
Nicolas Fränkel

Nicolas Fränkel

Nicolas Fränkel is a technologist focusing on cloud-native technologies, DevOps, CI/CD pipelines, and system observability. His focus revolves around creating technical content, delivering talks, and engaging with developer communities to promote the adoption of modern software practices. With a strong background in software, he has worked extensively with the JVM, applying his expertise across various industries. In addition to his technical work, he is the author of several books and regularly shares insights through his blog and open-source contributions.

Read More
A Java Geek weekly 88
Share this