<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Kotlin for Java developers on Red Mug Development</title>
    <link>https://www.redmugguy.dev/topics/kotlin-for-java-developers/</link>
    <description>Recent content in Kotlin for Java developers on Red Mug Development</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Sun, 29 Nov 2026 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://www.redmugguy.dev/topics/kotlin-for-java-developers/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Kotlin Data Classes vs Java Records vs Lombok Builders</title>
      <link>https://www.redmugguy.dev/posts/kotlin-data-class-vs-java-record-vs-lombok/</link>
      <pubDate>Sun, 29 Nov 2026 00:00:00 +0000</pubDate>
      <guid>https://www.redmugguy.dev/posts/kotlin-data-class-vs-java-record-vs-lombok/</guid>
      <description>Three ways to write a value type on the JVM. Here&amp;rsquo;s the same class written all three ways, what each one generates, where Lombok still earns its place next to records, the traps they share, how they work across Kotlin and Java, and which to pick.</description>
    </item>
    <item>
      <title>Kotlin vs Java for Backend Development in 2026</title>
      <link>https://www.redmugguy.dev/posts/kotlin-vs-java-backend-2026/</link>
      <pubDate>Sun, 22 Nov 2026 00:00:00 +0000</pubDate>
      <guid>https://www.redmugguy.dev/posts/kotlin-vs-java-backend-2026/</guid>
      <description>Records, pattern matching and virtual threads have closed part of the gap. Here&amp;rsquo;s what Kotlin still does better for Spring Boot services, where Java is the better choice, and how I&amp;rsquo;d decide for a new service or an existing team.</description>
    </item>
    <item>
      <title>Writing a Kotlin DSL: One State Machine in Java, Kotlin and a DSL</title>
      <link>https://www.redmugguy.dev/posts/kotlin-dsl-state-machine/</link>
      <pubDate>Sat, 21 Nov 2026 00:00:00 +0000</pubDate>
      <guid>https://www.redmugguy.dev/posts/kotlin-dsl-state-machine/</guid>
      <description>A DSL earns its keep when the thing you&amp;rsquo;re building contains itself. This post builds a nested subscription lifecycle by hand in Java and in Kotlin, then with a Kotlin DSL, and walks through every line of the DSL, including the bug @DslMarker exists to stop.</description>
    </item>
    <item>
      <title>Kotlin Context Parameters in Spring: A Practical Guide</title>
      <link>https://www.redmugguy.dev/posts/kotlin-context-parameters-spring/</link>
      <pubDate>Tue, 14 Jul 2026 00:00:00 +0000</pubDate>
      <guid>https://www.redmugguy.dev/posts/kotlin-context-parameters-spring/</guid>
      <description>Kotlin 2.4.0 made context parameters stable. Here&amp;rsquo;s how I&amp;rsquo;d use them in a Spring service to carry one per-request snapshot through the call chain — and where constructor injection is still the right tool.</description>
    </item>
    <item>
      <title>Safer, Simpler, Stronger: Why Kotlin Data Classes Shine</title>
      <link>https://www.redmugguy.dev/posts/kotlin-data-classes/</link>
      <pubDate>Sat, 05 Apr 2025 00:00:00 +0000</pubDate>
      <guid>https://www.redmugguy.dev/posts/kotlin-data-classes/</guid>
      <description>Kotlin data classes aren’t just about cutting boilerplate — they help you write safer, more reliable, and easier-to-maintain backend code. Here&amp;rsquo;s how to use them wisely.</description>
    </item>
    <item>
      <title>Kotlin Sequences: When to Use Them, and Sequence vs Flow</title>
      <link>https://www.redmugguy.dev/posts/kotlin-sequences/</link>
      <pubDate>Sat, 15 Feb 2025 00:00:00 +0000</pubDate>
      <guid>https://www.redmugguy.dev/posts/kotlin-sequences/</guid>
      <description>Kotlin Sequences offer lazy evaluation and powerful chaining, but they aren&amp;rsquo;t always the fastest choice. Learn when they provide real benefits—and when you&amp;rsquo;re better off with regular collections.</description>
    </item>
    <item>
      <title>Kotlin: When to use apply, let, also, and run</title>
      <link>https://www.redmugguy.dev/posts/kotlin-scope-functions/</link>
      <pubDate>Sat, 01 Feb 2025 00:00:00 +0000</pubDate>
      <guid>https://www.redmugguy.dev/posts/kotlin-scope-functions/</guid>
      <description>Kotlin’s scope functions — apply, let, also, and run — can be confusing but are powerful tools for writing expressive and clean code. This post explains what they are, how they differ, and when to use each one effectively.</description>
    </item>
    <item>
      <title>Why Kotlin Beats Java for Backend Development</title>
      <link>https://www.redmugguy.dev/posts/kotlin-vs-java-backend/</link>
      <pubDate>Sat, 18 Jan 2025 00:00:00 +0000</pubDate>
      <guid>https://www.redmugguy.dev/posts/kotlin-vs-java-backend/</guid>
      <description>Kotlin isn&amp;rsquo;t just easier to write than Java — it&amp;rsquo;s better suited for building backend systems. With features like nullable parameters, data classes, cleaner dependency injection, and Spring support, Kotlin reduces boilerplate and enhances developer productivity in real-world backend services.</description>
    </item>
    <item>
      <title>Why Kotlin?</title>
      <link>https://www.redmugguy.dev/posts/why-kotlin/</link>
      <pubDate>Sat, 04 Jan 2025 00:00:00 +0000</pubDate>
      <guid>https://www.redmugguy.dev/posts/why-kotlin/</guid>
      <description>Kotlin is a modern programming language that improves on Java’s verbosity, offering a cleaner, more expressive syntax with strong null safety, type inference, and better defaults. This post shares why I chose to adopt Kotlin after years of professional Java development.</description>
    </item>
  </channel>
</rss>
