<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Guillaume Laforge on foojay.io - Friends Of OpenJDK</title><link>https://foojay.io/today/author/guillaume-laforge/</link><description>Articles written by Guillaume Laforge on foojay.io - Friends Of OpenJDK</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Tue, 17 Nov 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://foojay.io/today/author/guillaume-laforge/index.xml" rel="self" type="application/rss+xml"/><item><title>Comparing Java Formatters: Why Open Java Format Is My New Favorite</title><link>https://foojay.io/today/comparing-java-formatters-why-open-java-format-is-my-new-favorite/</link><pubDate>Tue, 17 Nov 2026 00:00:00 +0000</pubDate><guid>https://foojay.io/today/comparing-java-formatters-why-open-java-format-is-my-new-favorite/</guid><description>&lt;p&gt;Recently, I read Alex Abashev&amp;rsquo;s article on Foojay.io, &lt;a href="https://foojay.io/today/my-love-hate-relationship-with-java-formatters/"&gt;My love-hate relationship with Java formatters&lt;/a&gt;.&#10;Unlike Go with &lt;code&gt;gofmt&lt;/code&gt; or Rust with &lt;code&gt;rustfmt&lt;/code&gt;, Java has never shipped a built-in source code formatter in the JDK, leaving teams to argue in pull requests over Checkstyle rules, IntelliJ XML exports, or where the dot goes in a stream pipeline.&#10;In his post, Alex made two points that immediately resonated with me:&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;Once you experience an opinionated, zero-configuration formatter as a CI gate, you never want to go back to bikeshedding over indentation in code reviews.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;AI coding agents make deterministic formatters matter more than ever.&lt;/strong&gt; Every model and every session has its own idea of code style, regardless of what you write in your &lt;a href="https://glaforge.dev/posts/2026/11/02/automating-monday-morning-sdk-updates-with-antigravity/" target="_blank" rel="noopener noreferrer"&gt;&lt;code&gt;AGENTS.md&lt;/code&gt; or &lt;code&gt;GEMINI.md&lt;/code&gt; files&lt;/a&gt;. One agent puts every method parameter on its own line, another crams a whole stream pipeline into a 200-character line, and a third reformats untouched methods, turning a two-line bug fix into a 400-line whitespace diff.&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;p&gt;In his article, Alex also introduced &lt;a href="https://openjavaformat.dev/" target="_blank" rel="noopener noreferrer"&gt;open-java-format&lt;/a&gt; (&lt;a href="https://github.com/openjavaformat/open-java-format" target="_blank" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt;), an open-source fork of &lt;code&gt;palantir-java-format&lt;/code&gt; that he created to fix long-standing bugs, modernize the build and IDE tooling, and keep pace with recent JDK releases.&lt;/p&gt;</description></item><item><title>Calling Gemma with Ollama, TestContainers, and LangChain4j</title><link>https://foojay.io/today/calling-gemma-with-ollama-testcontainers-and-langchain4j/</link><pubDate>Fri, 12 Apr 2024 13:55:38 +0000</pubDate><guid>https://foojay.io/today/calling-gemma-with-ollama-testcontainers-and-langchain4j/</guid><description>&lt;p&gt;&lt;strong&gt;Lately, for my Generative AI powered Java apps, I&amp;rsquo;ve used the &lt;a href="https://deepmind.google/technologies/gemini/#introduction" target="_blank" rel="noopener noreferrer"&gt;Gemini&lt;/a&gt; multimodal large language model from Google. But there&amp;rsquo;s also &lt;a href="https://blog.google/technology/developers/gemma-open-models/" target="_blank" rel="noopener noreferrer"&gt;Gemma&lt;/a&gt;, its little sister model.&lt;/strong&gt;&lt;/p&gt;&#10;&lt;p&gt;Gemma is a family of lightweight, state-of-the-art open models built from the same research and technology used to create the Gemini models.&lt;/p&gt;&#10;&lt;p&gt;Gemma is available in two sizes: 2B and 7B. Its weights are freely available, and its small size means you can run it on your own, even on your laptop. So I was curious to give it a run with &lt;a href="https://docs.langchain4j.dev/" target="_blank" rel="noopener noreferrer"&gt;LangChain4j&lt;/a&gt;.&lt;/p&gt;</description></item></channel></rss>