<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Clean Code on Spaghetti Code 🍝</title>
    <link>https://spaghetti-code.net/en/tags/clean-code/</link>
    <description>Recent content in Clean Code on Spaghetti Code 🍝</description>
    <image>
      <title>Spaghetti Code 🍝</title>
      <url>https://spaghetti-code.net/images/og-default.png</url>
      <link>https://spaghetti-code.net/images/og-default.png</link>
    </image>
    <generator>Hugo -- 0.160.0</generator>
    <language>en</language>
    <lastBuildDate>Mon, 26 Oct 2026 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://spaghetti-code.net/en/tags/clean-code/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Exceptions vs Error Values: How to Pick a Strategy</title>
      <link>https://spaghetti-code.net/en/posts/clean-code/exceptions-vs-error-values/</link>
      <pubDate>Mon, 26 Oct 2026 00:00:00 +0000</pubDate>
      <guid>https://spaghetti-code.net/en/posts/clean-code/exceptions-vs-error-values/</guid>
      <description>Exceptions and error values solve the same problem in different ways. The real tradeoffs, shown in Python, Go, and Rust, and how to pick one for your own code.</description>
    </item>
    <item>
      <title>SOLID Principles Explained With Python Examples</title>
      <link>https://spaghetti-code.net/en/posts/clean-code/solid-principles-explained/</link>
      <pubDate>Sat, 10 Oct 2026 00:00:00 +0000</pubDate>
      <guid>https://spaghetti-code.net/en/posts/clean-code/solid-principles-explained/</guid>
      <description>The SOLID principles are five rules for structuring classes so one change doesn&amp;#39;t ripple everywhere. Each one shown with before-and-after Python code.</description>
    </item>
    <item>
      <title>What Is Dependency Injection (With Examples)</title>
      <link>https://spaghetti-code.net/en/posts/clean-code/what-is-dependency-injection/</link>
      <pubDate>Thu, 01 Oct 2026 00:00:00 +0000</pubDate>
      <guid>https://spaghetti-code.net/en/posts/clean-code/what-is-dependency-injection/</guid>
      <description>Dependency injection means passing a class its dependencies instead of letting it build them. Constructor injection, ASP.NET Core lifetimes, and what breaks it.</description>
    </item>
    <item>
      <title>What Is Spaghetti Code and How to Refactor It</title>
      <link>https://spaghetti-code.net/en/posts/clean-code/what-is-spaghetti-code/</link>
      <pubDate>Fri, 25 Sep 2026 00:00:00 +0000</pubDate>
      <guid>https://spaghetti-code.net/en/posts/clean-code/what-is-spaghetti-code/</guid>
      <description>Spaghetti code means tangled control flow and hidden state, not messy formatting. How to spot it and refactor one real function safely, one commit at a time.</description>
    </item>
  </channel>
</rss>
