A Java Geek weekly 70

Lambdas and Clean Code

As software developers, we behave like children. When we see shiny new things, we just have to play with them. That’s normal, accepted, and in general, even beneficial to our job…​ up to a point.

When Java started to provide annotations with version 5, there was a huge move toward using them. Anywhere. Everywhere. Even when it was not a good idea to. But it was new, hence it had to be good. Of course, when something is abused, there’s a strong movement against it. So that even when the usage of annotations may make sense, some developers might strongly be against it. There’s even a site about that (warning, trolling inside).

hashify

hashify is a Rust procedural macro crate designed to create perfect hashing maps and sets without any runtime dependencies. By combining traditional and modern hashing techniques, hashify ensures exceptional speed and efficiency, making it a great tool for developers seeking optimal performance in their projects.

How to Generate Random RPG Character Names with an LLM

In this blog post, we’ll explore how to improve name generation quality in terms of originality and achieve more random results. We’ll use small (and very small) LLMs for these experiments.

Understanding the .github Repository

A long time ago, I created a .github/profile/README.adoc for my AJavaGeek GitHub organization, and quickly forgot about it.

But there are many more magic files to put in the .github repo.

Securing Vaadin Applications with One-Time Token

One-Time Token is a new Spring Security feature that I didn’t know about. It’s even better when it’s integrated with Vaadin.

managed-k8s-comparison

This project aims to compare the cloud providers providing managed Kubernetes services.

  • Google Cloud Platform
  • AWS
  • Azure
  • OVHCloud
  • Scaleway
  • Digital Ocean
  • Civo Cloud
  • Exoscale
  • Linode/Akamai Connected Cloud
But what is 'a lifetime?
2024 year in review of CNCF and top 30 open source project velocity

Be sure to click on the interactive charts!

FullStack or Fully Stretched? How the Tech Industry Turned Developers into Coding Chimeras

A sane piece!

I chuckle every time I read a job offer for a Full Stack™ position for this exact reason: it’s all about saving money the wrong way!

7 things a developer should know about databases

TL;DR:

  • pg_stat_activity view shows executing queries, pg_stat_statements shows executed queries, queries can be logged;
  • use a connection pool; make sure when scaling you do not reach max_connections;
  • activate default_transaction_read_only and statement_timeout in your sql client in production;
  • never login to production directly in the database OS/container: use a sql client instead;
  • if pg_stat_activity shows queries waiting for lock, use the lock view to find which ones got them;
  • when a SQL query has started, it will run until completion - doesn’t matter if the client is gone;
  • use pg_terminate_backend to stop a query, and be ready for AUTOVACUUM.
Everyone knows your location: tracking myself down through in-app ads

Enlightening post. And quite frightening too!

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 70
Share this