<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Nextpatch</title>
    <description>The latest articles on DEV Community by Nextpatch (@nextpatch).</description>
    <link>https://dev.to/nextpatch</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4143563%2F9b67a55f-79ba-4730-82ff-6eeb6bc6e442.png</url>
      <title>DEV Community: Nextpatch</title>
      <link>https://dev.to/nextpatch</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nextpatch"/>
    <language>en</language>
    <item>
      <title>I got tired of always being three Java versions behind, so I built a little game to fix it</title>
      <dc:creator>Nextpatch</dc:creator>
      <pubDate>Fri, 25 Sep 2026 21:48:45 +0000</pubDate>
      <link>https://dev.to/nextpatch/i-got-tired-of-always-being-three-java-versions-behind-so-i-built-a-little-game-to-fix-it-3nn</link>
      <guid>https://dev.to/nextpatch/i-got-tired-of-always-being-three-java-versions-behind-so-i-built-a-little-game-to-fix-it-3nn</guid>
      <description>&lt;p&gt;Java ships a new version every six months. I kept telling myself I'd read the release notes "someday".&lt;/p&gt;

&lt;p&gt;Then I found myself in an interview, staring at a &lt;code&gt;switch&lt;/code&gt; with pattern matching, and realised I was &lt;strong&gt;three versions behind&lt;/strong&gt; and didn't even know it.&lt;/p&gt;

&lt;p&gt;So I built &lt;a href="https://nextpatch.dev" rel="noopener noreferrer"&gt;NextPatch&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it is
&lt;/h2&gt;

&lt;p&gt;A tiny daily habit for working Java developers:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Read a ~45-second summary&lt;/strong&gt; of one change between versions, with a before/after example.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Solve a ~2-minute challenge&lt;/strong&gt;: fill the blank, fix the bug, order the lines or predict the output.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Earn XP and keep your streak.&lt;/strong&gt; Come back tomorrow.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Think language-learning app, but for not going rusty as a developer.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try one right now (no sign-up)
&lt;/h2&gt;

&lt;p&gt;Since Java 22 you can mark a variable you have to declare but won't use with a single character. Fill in the blank:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight java"&gt;&lt;code&gt;&lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;total&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;Order&lt;/span&gt; &lt;span class="err"&gt;❓&lt;/span&gt; &lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="n"&gt;orders&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;total&lt;/span&gt;&lt;span class="o"&gt;++;&lt;/span&gt;
&lt;span class="o"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Answer&lt;/p&gt;

&lt;p&gt;&lt;code&gt;_&lt;/code&gt;, the &lt;strong&gt;unnamed variable&lt;/strong&gt; (JEP 456). It says "I need the variable, not its value". It works in loops, in &lt;code&gt;catch (Exception _)&lt;/code&gt;, in lambdas and in record patterns.&lt;/p&gt;

&lt;p&gt;There are three of these on the landing page that you can solve without an account.&lt;/p&gt;

&lt;p&gt;What's included&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Paths by version jump: Java 8 → 11, 17 → 21, 21 → 25, with more to come as new versions ship&lt;/li&gt;
&lt;li&gt;Challenge types: fill the blank, multiple choice, fix the bug, order lines, predict the output&lt;/li&gt;
&lt;li&gt;XP, daily streaks, badges, and weekly + global leaderboards&lt;/li&gt;
&lt;li&gt;Content in English, Spanish and Catalan&lt;/li&gt;
&lt;li&gt;Free. No card, no ads, no trial that runs out. The free account is the full account.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A few things I learned building it&lt;/p&gt;

&lt;p&gt;Since this is dev.to, here's the part under the hood:&lt;/p&gt;

&lt;p&gt;No code sandbox, on purpose. Running untrusted user code safely is a whole product in itself. Instead, every challenge is graded deterministically on the server: token matching, string validation or option checking. The solution is never sent to the client. It keeps grading instant and the infrastructure tiny.&lt;/p&gt;

&lt;p&gt;Eating my own dog food on the stack. It runs on Java 25 + Spring Boot 4 with virtual threads turned on (spring.threads.virtual.enabled=true). The workload is almost all I/O, which is exactly where Loom pays off.&lt;/p&gt;

&lt;p&gt;Boring architecture, happily. It's a Thymeleaf monolith with server-side sessions (form login + Google OIDC + remember-me), plus a small JSON API called with fetch. No SPA, no JWT for auth. For a solo project that has been a real productivity win.&lt;/p&gt;

&lt;p&gt;It runs on a Raspberry Pi. Production sits on a Pi at home, published through a Cloudflare Tunnel. No open ports and no cloud bill so far.&lt;/p&gt;

&lt;p&gt;i18n of content is harder than i18n of UI. Translating a challenge must change the words and never its shape: same number of options, same order, same blanks. Otherwise it grades wrong without throwing any error. Lesson learned.&lt;/p&gt;

&lt;p&gt;It's in beta&lt;/p&gt;

&lt;p&gt;Things may break. If you try it, I'd genuinely love feedback:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Which Java version jump should I cover next?&lt;/li&gt;
&lt;li&gt;Is 3 minutes a day the right size, or too little?&lt;/li&gt;
&lt;li&gt;Which challenge type do you like most, and which least?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;--&amp;gt; &lt;a href="https://nextpatch.dev" rel="noopener noreferrer"&gt;NextPatch&lt;/a&gt;, free and all features included.&lt;/p&gt;

</description>
      <category>programming</category>
      <category>webdev</category>
      <category>java</category>
    </item>
  </channel>
</rss>
