Thursday, 19 November 2026

J-Fall 2026 - Writeup

So, I decided to just write some thoughts on some of the sessions I attended, as well as some bookmarks below.

Modernizing a 2M+ LOC Java Monolith with Agentic AI: What Worked, What Failed, and How We Recovered - Marek Dominiak
An interesting high-level talk (without code or demos). They used AI to provide a new implementation of an existing feature that was showing its age, without some of the disadvantages of the old implementation. It also showcases what can go wrong when trying to use AI, even with proper tests. They tried different AIs and they all provided very different solutions. They used Agentic AI in the end (see [6])
Why am I here? - Jeroen van der Wal (Keynote)
What if AI writes code for me. What is there for me? Because writing code is a thing every software designer has somewhere in their top three. They tried to have AI compete in the ICPC(See [7]) with pretty good results. If AI makes it easier to write software, we will write more software. See Jevons paradox8.
From Specification to Production: Engineering in the Age of AI - Venkat Subramanian
No matter how hard we try, we cannot get it right on the first try. Software development is an iterative process. Feedback is needed to iterate the software. Consequences are not always visible, until you try. AI makes it easier to iterate.
Hack Your Brain: Smarter Learning for Devs - Simone de Gijt
one of the best talks. It gave me some pointers on what's important to keep my mind concentrated and my body in a better condition. The slides are at [3].
Java over Markdown: Specs That Compile - Adam Bien

It turns out that the API Specs of Java and assorted technologies are very good for AI, because of the structure. Getting AI to generate an application based on APIs instead of implementations is likely to lead to good results.

Also specifying BCE (Boundary-Control-Entity (of Entity-Control_boundary ECB) Ivar Jacobson Object-Oriented Sotware Engineering: A Use Cae Driven Approach) seems to help a lot.

Let's get Physical - Iulia Feroli

An amazing and fun talk about Physical AI, which is a new buzzword for using AI in Robotics. An optimistic and engaging talk!

A colleague mentioned [1] as well.

Java 26 and 27 are boring, and that's a good thing - Lutske van der Meer, Johannes Bechberger
It's a boring talk, but has some highlights about things that I didn't know about Java 26 en 27. See [2]. But I'm waiting for Valhalla in Java 28 hopefully March 2027.
Java in 5 Microseconds: Inside a Crypto Trading Engine - Oleg Lobanov
Interesting talk. Basically, single-threaded application (it makes it easier to process orders in sequence which is a requirement in orderbook processing) that's optimised for speed can help a lot.
Conquest, time travel and explosions using Git - Alexander Chatzizacharias
An engaging and fun talk about how Git works, how you can use it to rescue Game Save Files, and how you can visualize git commits in a game. The demo was in fact a game.

I also took a look at the stands, and it appears JetBrains Kotlin has a new Mascot5 and I managed to pick up a fluffy toy of it.

Some sessions I would have liked to attend (hopefully I can watch them later on the youtube or some such).

  • Level Up Your Java Streams with Gatherers - Hinse ter Schuur
  • 6000 tests, 25 times a day, 365 days a year - All for quality - Sven Haster
  • Finding and Fixing Issues with Legacy Code using AI - Venkat Subramaniam
  • Apache Camel as integration framework - Ferrie Bank
  • Analytical Java with DuckDB - Geertjan Wielenga
  • Evolving Language Defaults in Kotlin and Other Languages - Michail Zarečenskij
  • 7 Ways You Can Build an Amazing Dev Career in the AI Era - Bruno Souza

References

[1] Robots that bring AI to life.
https://pollen-robotics.com
[2] Java 26 and 27 are boring and this is a good thing (talk)
https://github.com/parttimenerd/java26-27-are-boring
[3] 50m_HackYourBrain_DevoxxPoland_19062026.pptx
https://www.slideshare.net/slideshow/50m_hackyourbrain_devoxxpoland_19062026-pptx/288133705
[4] Code reading club
https://github.com/CodeReadingClubs/Resources
[5] JetBrains Blog - The Kotlin Mascot Returns – Say Hello to Kodee!
https://blog.jetbrains.com/kotlin/2023/04/the-kotlin-mascot-returns/
[6] Agentic AI
https://captainstory.gocaptain.ai
[7] International Collegiate Programming Contest (ICPC)
https://worldfinals.icpc.global/2026/about/
[8] Wikipedia - Jevons paradox
https://en.wikipedia.org/wiki/Jevons_paradox
The Big Blue Book - Domain Driven Design by Eric Evans
https://www.domainlanguage.com/ddd/blue-book/
Apache Camel – Enterprise Integration op zijn best
https://nljug.org/java-magazine/apache-camel-enterprise-integration-op-zijn-best/

Wednesday, 11 November 2026

J-Fall 2026

Yes, tomorrow, Thursday, November 12th 2026, J-Fall Java conference takes place.

Hopefully, I'll see you there.

References

NLJUG - JFall
https://jfall.nl/

Wednesday, 4 November 2026

Lambda expression vs method reference

Found this insightful remark at [1] on the difference between the two (spoiler: there's no difference when using it) from Brian Goetz. Slightly old, but probably still relevant.

References

[1] StackOverflow - Lambda expression vs method reference
https://stackoverflow.com/questions/24487805/lambda-expression-vs-method-reference

Thursday, 22 October 2026

Using grep, awk, sed, sort, and uniq in combination

So I was trying to retrieve some information out of a log, and just for funsies, I thought I'd write it down here, so I remember what I did.

In short:

So I was trying to get a list of UUIDs of messages that failed to be parsed.

The serverlog I had contained for example the following:

Error during processing of message 8748 (225abd00-a806-455e-b3ef-a991c163fd41).
grep "Error during processing of" server.log | awk '{print $7}' | sed 's/(// ; s/)// ; s/\.//' | sort | uniq

Short explanation:

  • grep - only pick the lines containing that string
  • awk - print the 7th column with a standard delimiter of white space (" ")
  • sed - replace opening brackets ("("), closing brackets (")") and periods (".") from the output
  • sort - sort all alphabetically
  • uniq - make sure there are no duplicates

The result should be a list of UUIDs.

Footnote 1: the sort is essential, as uniq only works on adjacent lines

Footnote 2: yes, I know I can grep inside of an awk commando, but I am more familiar with grep and this is more fun.

Footnote 3: I've tested this on my MacBook. Linux might in some cases have different syntax.

Sunday, 20 September 2026

11 Laws

Found some laws in [1]. I thought I should write them down.

Parkinson's Law
Working spans to fill the time you give it. Shrink the deadline, shrink the task.
Hofstadter's Law
Everything takes longer than you expect, even when you account for Hofstadter's law.
Hanlon's Razor
Never attribute to malice what can be adequately explained by carelessness or stupidity.
The Pareto Principle (80/20)
Roughly 80% of the result comes from 20% of the effort.
The Peter Principle
People get promoted until they reach a job they're bad at. Then they stay there.
Hick's Law
More options mean slower decisions. Cut the menu, decide fast.
Goodhart's Law
When a measure becomes a target, it stops being a good measure.
The Dunning-Kruger Effect
The less you know the more you overestimate how much you know.
Occam's Razor
The simplest explanation is usually the right one.
Chesterton's Fence
Don't tear something down, until you understand why it was built in the first place.
Brooks's Law
If you add more people to a project that is already late, it's going to be more late. Because we underestimate coordination efforts.

Addendum: Parkinson's Law of Triviality is a different well-known one (of the same Mr. Parkinson, see [2]) regarding a bicyle shed and a nuclear power plant.

References

[1] Youtube - 11 Laws of the Universe
https://www.youtube.com/shorts/DRX5JpyX0B8
[2] Wikipedia - Law of triviality
https://en.wikipedia.org/wiki/Law_of_triviality

Thursday, 13 August 2026

Eclipse Jakarta EE Starter

Apparently the starterkit for getting started with Jakarta has been updated to Jakarta 11 and can be found at https://start.jakarta.ee/.

Thursday, 30 July 2026

Adding snippets of code in JavaDoc

Recently saw a short of the always impressive [1] José Paumard.

It shows how to add snippets of code to your javadoc, and also add those snippets of code to your test suite.

I didn't know how to add them in Maven, but the reference [2] was be helpful.

So, first of all, we need, like, "production code" that refers to code snippets in the JavaDoc. In the example below there are both an inline snippet as well as a reference to a snippet elsewhere.

Then we have to define our external snippet for getAddress() as referred to above, inside AddressTest with appropriate zones.

Now this AddressTest is part of a Maven project, and is available in the src/test/java directory, as you would expect. So we need to provide this directory in the pom.xml via --snippet-path, as follows:

In the javadoc, when you generate it using "mvn javadoc:javadoc" it will look as follows:

The great part is that the Unit test also is regularly run.

I like it a lot!

P.S. the @snippet and assorted JavaDoc tags have a plethora of different options. For example for highlighting code.

References

[1] How can you add a snippet of code in your JavaDoc? - Cracking the Java Coding Interview
https://www.youtube.com/shorts/ZNe_-Z1qxp8
[2] Configuring Maven For Compiled And Tested Code In Javadoc
https://nipafx.dev/javadoc-snippets-maven/
[3] Oracle Java - 3 Programmer's Guide to Snippets
https://docs.oracle.com/en/java/javase/22/javadoc/programmers-guide-snippets.html
Baeldung - Code Snippets in Java API Documentation
https://www.baeldung.com/java-doc-code-snippets

Tuesday, 21 July 2026

GraalVM 25.1 Innovation

In short for those of us who want to stay on the lts, there's GraalVM 25.

And for those who want new things in incremental releases for testing, there's GraalVM 25.1 Innovation.

References

Medium.com - GraalVM 25.1 is here! 🎉
https://medium.com/graalvm/graalvm-25-1-is-here-13829606982e

Thursday, 4 June 2026

Angular Signals

Angular introduced Signals1 in Angular 17. You can find a mention of it in the release notes3 along with other fantastic goodies. From what I hear it's a big thing that solves some of the problems with updating two-way data-bindings without having to go through the entire tree of components and examining all the state (wich zone.js used to do.)

However, it's not a one-size-fits-all. Observables are still highly relevant, it's just that sometimes you use Signals and sometimes you use Observables2.

From what I gather, Signals can be used for highly synchronous code and one of those is to use them in the UI. Where Observables are convenient if the value is not immediately available (so time-based) like with REST calls.

You can learn about it all and try it out at [4], apparently.

There's plenty of youtube videos out there that introduce the concept too, apparently.

References

[1] Angular - Angular Signals
https://angular.dev/guide/signals
[2] Medium - Angular Signals: Best Practices
https://medium.com/@eugeniyoz/angular-signals-best-practices-9ac837ab1cec
[3] Angular Blog - Introducing Angular v17
https://blog.angular.dev/introducing-angular-v17-4d7033312e4b
[4] Angular Home
https://angular.dev/

Monday, 25 May 2026

Azul completed its acquisition of Payara in December 2025

Azul, the guys from the Zulu JDK, has aquired Payara.

I thought I'd mention it here, as I am using Payara in my hobby project.

There's a message on what it means for the Community version of Payara at [1] on https://foojay.io.

References

[1] foojay.io - A New Chapter for the Payara Community
https://foojay.io/today/a-new-chapter-for-the-payara-community/

Saturday, 11 April 2026

Desktop Icons on GNOME

GNOME has traditionally always been one to prefer the benefits of a clean Desktop.

But I'm not one for traditions.

GNOME Extensions

There's an GNOME extention available called Desktop Icons NG (DIN)1.

If you have installed it, you can see if you properly have it by "gnome-extensions show ding@rastersoft.com".

Once you install it, you can query to see if it is enabled using "gnome-extensions list --enabled", it should contain at least ding@rastersoft.com

Enabling it would probably help: "gnome-extensions enable ding@rastersoft.com" if it's not there.

You're likely to have to logout and log back in, to load extensions.

Extra steps

What I needed to do was:

  • copy the application file (thingy.desktop) from /usr/share/applications somewhere and then drag it onto my Desktop.
  • Make it Executable
  • Set it to "Allow launching"

References

[1] Desktop Icons NG (DING) by rastersoft
https://extensions.gnome.org/extension/2087/desktop-icons-ng-ding/

Wednesday, 8 April 2026

VoxxedDays 2026

So, I went to VoxxedDays on April 1st and 2nd.1

Some of it was very interesting, and I've retained some notes and links written below.

Spec-driven development2
It seems to be a way to specify the wanted behaviour of your software in such a way that AI can successfully create your software based on your spec. Not entirely convinced of this.
Lion3
Lion is a set of highly performant, accessible and flexible Web Components.
PicNic4

PicNic is a online greengrocer/supermarket which is running a Blog on the challenges on scaling up. Quite interesting.

Some interesting things for example are providing fresh products (bread for instance) within a certain timeframe.

Programming Rules your IDE can tell you about.
https://github.com/jborgers/PMD-jPinpoint-rules
Compressed OOPs in the JVM
https://www.baeldung.com/jvm-compressed-oops
A good explanation of generics
https://bramjanssens.nl/generics/
Reduce Object Header Size and Save Memory in Java 25
https://www.baeldung.com/java-object-header-reduced-size-save-memory

The sessions are online now at YouTube. See [5].

References

[1] VoxxedDays Amsterdam
https://amsterdam.voxxeddays.com/
[2] What Is Spec-Driven Development? A Complete Guide
https://www.augmentcode.com/guides/what-is-spec-driven-development
[3] Github - Ing/Lion
https://github.com/ing-bank/lion
[4] PicNic - Blog
https://blog.picnic.nl/
[5] YouTube - VoxxedDays 2026 Sessions
https://youtube.com/playlist?list=PLRsbF2sD7JVoK114W2u9HTK4ftHn_taT1&si=WmiCtfuhEyTtu0lg

Monday, 16 March 2026

Kotlin: lots of functions

I like Kotlin (sometimes) as it has a large and rich number of convenient functions to use.

In Java, we tend to reach for our Guava1 or Apache Commons Lang2 to get the same functionality.

But it does tend to make it a bit hard to decide which to use, especially as I (as most people I hope) do not know the entire dictionary of available functions in Kotlin.

Luckily there's of course colleagues who can help, and my IDE also does a pretty good task of suggesting better ways.

Case in point:

val items : List<Items> = getItems()
val coupon: Coupon? = items.map { it.coupon }.filter { it != null }.firstOrNull()

I do know the code above can be made simpler.

val items : List<Items> = getItems()
val coupon: Coupon? = items.mapNotNull { it.coupon }.firstOrNull()

There, the mapNotNull() is a very convenient function that I use all the time.

But this time my IDE complained again and told me to use .firstNotNullOfOrNull

val items : List<Items> = getItems()
val coupon: Coupon? = items.firstNotNullOfOrNull { it.coupon }

It's fine by me, to use this, but I didn't know this function exists.

Also, the name seems a bit long and it took a minute to understand the meaning.

References

[1] GitHub - Google Guava
https://github.com/google/guava
[2] Maven Repository - Apache Commons Lang (3)
https://mvnrepository.com/artifact/org.apache.commons/commons-lang3

Thursday, 12 February 2026

AssertJ + AutoCloseableSoftAssertions + Kotlin

I've been playing around with AutoCloseableSoftAssertions, as I don't want to have to remind myself to call .assertAll()

But I also wanted to see if I can replace entire rows of assertThat statements in a simple manner, without many changes.

And I think I have found a way in Kotlin.

Let's start with the basics:

Let's try some SoftAssertions, so we can have many asserts that are all evaluated, instead of the Test stopping upon the first failed assert.

Okay, now AutoCloseableSoftAssertions is a convenient class that calls the .assertAll() as part of the final block in a try-with-resources:

Now, in the case above, we have to prefix our assertThat() calls with "it.". There's one more step that we can use to remove this.

Wrapping all this in a function for easy use will end up in:

Now, a stack of assertThat() statements can be encompassed with assertAll{} without any other changes to get the full advantages of SoftAssertions.

Might be overkill, but this was a fun example in Kotlin.

Try-with-resources

So you might have noticed that AutoClosableSoftAssertions is used in a try-with-resources block.

The small advantage you have, is that if there is an unexpected Exception thrown during your asserts, the ".assertAll()" will still be called, because it's part of the "AutoCloseable.close()".

I don't know how much this advantage is, as the unexpected Exception breaks the test anyways, but there it is.

Thursday, 5 February 2026

Retrieving Bookmarks from your Firefox - The Hard Way

Yeah, so I turned my old workstation into a server and no longer have access using a graphical interface.

Normally, this is fine, as I am using it as a server.

But I forgot to export my Firefox bookmarks.

Hopefully I can examine the sqllite database using reference [1] to retrieve my bookmarks.

I open the file /home/mrbear/.mozilla/firefox/xvosm5y9.default/places.sqlite and selecting the tab "Browse data" found the table moz_bookmarks.

It contains all bookmarks and folders and contains references to the moz_places table (using the moz_bookmarks.fk).

The moz_places table contains the actual urls.

References

[1] DB Browser for SQLLite
https://sqlitebrowser.org

Monday, 26 January 2026

Git: Cleaning up

Sometimes, our IDE can make a mess of things (mostly because we did something wrong, though).

And in order to fix it, sometimes we have to get rid of all unversioned files, so that we have a clean git repository and then create a new Project in our IDE.

This helps as it forces the IDE to recreate its config files from scratch.

This blog is just a small note on how to clean your git repository of all unversioned files.

A dry run would look like this:

git clean -n -x -d

A proper clean would look like this:

git clean -d -x

Options:

-n
dry run
-d
also recursively delete unversioned directories.
-x
ignore .git-ignore rules (convenient for cleaning up buildproducts and IDE config files)

Output of a dry run would look something like this:

% git clean -n -x -d
Would remove .DS_Store
Would remove .idea/
Would remove mrbear-parent/mrbear-app/target/
Would remove mrbear-stubs/.gradle/
Would remove mrbear-stubs/.kotlin/
Would remove mrbear-stubs/build/

See also "git restore" or "git reset".

References

git-clean - Remove untracked files from the working tree
https://git-scm.com/docs/git-clean

Thursday, 15 January 2026

Kotlin : NullSafety + Defaults

So, I had a discussion with my colleague about null safety and how it can be non-intuitive if you're not yet used to it.

So we had the following code:

In a lot of REST applications, an Exception may be thrown when a resource does not exist. But it's important to differentiate between "no resource" and "oh no! An exception occurred! We're in trouble!".

That's what this example code does.

So, what did the "getStatus" method do exactly?

This causes the test to fail.

The code should have been "?: false", but doing that does look weird.

A clearer solution would be:

The problem with Kotlin might be that there's alot of "?." and "?:" and "!!" and quite frankly it makes it hard to read.

What do you think?

Sunday, 11 January 2026

Trying out the Github Command Line

So it's possible and quite convenient to use hardcode git commands to checkout Github repositories. It works fine, once you get the SSH keys sorted out and all that.

I tend to use IntelliJ to checkout new github repositories, as it is soo much easier to point and click.

This always happens to me, when I find myself having to do things I don't do often. Because once you have a repo checked out, that's basically the end of all the complicated stuff and you just get to work.

Checking out using Git

I still prefer using Git to checkout a new repository for now4.

The way this works is just do "git clone git@github.com:username/repo.git". You can find this url in the repository on the GitHub website.

However, an ssh key must be available on your GitHub account for the computer/client you're using.

First generate such an ssh key on your computer, using reference [5].

For example: "ssh-keygen -t ed25519 -C "mrbear@mrbear.com"".

Add your ssh key to the ssh-useragent, using "ssh-add ~/.ssh/id_ed25519".

You should see:

$ ssh-add ~/.ssh/id_ed25519
Enter passphrase for /home/mmrbear/.ssh/id_ed25519:
Identity added: /home/mrbear/.ssh/id_ed25519 (mrbear@mrbear.com)

Then you can add the generated key to your Github account using the website, using reference [6].

After that, you can finally just clone your repo as mentioned above.

Installation

GitHub has a command line interface nowadays1. It's easy to install2.

I'm using Fedora, so all it takes on my end is to "sudo dnf install gh".

There used to be a tool called "hub", apparently, which is basically a git wrapper for GitHub. It was an unofficial tool. You can find the differences discusses in [3].

Using the CLI

Logging in using "gh auth login".

$ gh auth login
? Where do you use GitHub? GitHub.com
? What is your preferred protocol for Git operations on this host? SSH
? Upload your SSH public key to your GitHub account? Skip
? How would you like to authenticate GitHub CLI? Login with a web browser

! First copy your one-time code: DFGF-JFDB
Press Enter to open https://github.com/login/device in your browser...
✓ Authentication complete.
- gh config set -h github.com git_protocol ssh
✓ Configured git protocol
✓ Logged in as mrbear

Then the command "gh issue list" shows me open issues.

Works! Quite nice!

References

[1] GitHub - Take GitHub to the command line
https://cli.github.com/
[2] Installing gh on Linux and BSD
https://github.com/cli/cli/blob/trunk/docs/install_linux.md
[3] GitHub - GitHub CLI & hub
https://github.com/cli/cli/blob/trunk/docs/gh-vs-hub.md
[4] GitHub - Cloning a repository
https://docs.github.com/en/repositories/creating-and-managing-repositories/cloning-a-repository
[5] GitHub - Generating a new SSH key and adding it to the ssh-agent
https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent
[6] GitHub - Adding a new SSH key to your account
https://docs.github.com/en/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account