<?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 ByteCrafted</title>
    <link>https://bytecrafted.dev/tags/clean-code/</link>
    <description>Recent content in Clean-Code on ByteCrafted</description>
    <image>
      <title>ByteCrafted</title>
      <url>https://bytecrafted.dev/favicons/android-chrome-512x512.png</url>
      <link>https://bytecrafted.dev/favicons/android-chrome-512x512.png</link>
    </image>
    <generator>Hugo -- 0.155.2</generator>
    <language>en</language>
    <lastBuildDate>Mon, 12 Jan 2026 00:00:00 +0530</lastBuildDate>
    <atom:link href="https://bytecrafted.dev/tags/clean-code/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Delete-Driven Design: How to Write Code You Can Remove</title>
      <link>https://bytecrafted.dev/delete-driven-design-how-to-write-code-you-can-remove/</link>
      <pubDate>Mon, 12 Jan 2026 00:00:00 +0530</pubDate>
      <guid>https://bytecrafted.dev/delete-driven-design-how-to-write-code-you-can-remove/</guid>
      <description>A senior-engineer perspective on designing software for safe deletion. Why delete-ability exposes bad boundaries, premature abstractions, brittle tests, and what to optimize for instead.</description>
    </item>
    <item>
      <title>What Senior Developers Should Care About in 2026</title>
      <link>https://bytecrafted.dev/what-senior-developers-should-care-about-2026/</link>
      <pubDate>Wed, 31 Dec 2025 00:00:00 +0530</pubDate>
      <guid>https://bytecrafted.dev/what-senior-developers-should-care-about-2026/</guid>
      <description>A senior-engineer perspective on what truly compounds in software development - judgment, boundaries, domain modeling, performance, testing, and communication - beyond framework hype in 2026.</description>
    </item>
    <item>
      <title>The Engineering Trade-offs I Got Wrong</title>
      <link>https://bytecrafted.dev/engineering-trade-offs-i-got-wrong/</link>
      <pubDate>Thu, 25 Dec 2025 00:00:00 +0530</pubDate>
      <guid>https://bytecrafted.dev/engineering-trade-offs-i-got-wrong/</guid>
      <description>Real-world lessons from engineering trade-offs that looked right on paper but failed in practice. Abstractions, service layers, Clean Architecture, testing, and what experience taught me instead.</description>
    </item>
    <item>
      <title>C# 14 Extension Members: Cleaner Code</title>
      <link>https://bytecrafted.dev/csharp-14-extension-members-cleaner-code/</link>
      <pubDate>Sun, 07 Dec 2025 00:00:00 +0530</pubDate>
      <guid>https://bytecrafted.dev/csharp-14-extension-members-cleaner-code/</guid>
      <description>C# 14 changes everything with explicit extension members. Stop writing messy static helper classes and start using properties, operators, and static extensions on types you don&amp;#39;t own.</description>
    </item>
    <item>
      <title>Stop Asking Your Objects Questions. Just Tell Them What to Do</title>
      <link>https://bytecrafted.dev/clean-code-csharp-beyond-solid/tell-dont-ask-principle/</link>
      <pubDate>Tue, 18 Nov 2025 00:00:00 +0000</pubDate>
      <guid>https://bytecrafted.dev/clean-code-csharp-beyond-solid/tell-dont-ask-principle/</guid>
      <description>Learn how the &amp;#39;Tell, Don&amp;#39;t Ask&amp;#39; principle eliminates behavioral dependencies in C# applications. Discover practical examples, common pitfalls, and refactoring techniques for cleaner code.</description>
    </item>
    <item>
      <title>Why Copy-Paste Coding Is Worse Than You Think</title>
      <link>https://bytecrafted.dev/copy-paste-coding-worse-than-you-think/</link>
      <pubDate>Tue, 07 Oct 2025 00:00:00 +0530</pubDate>
      <guid>https://bytecrafted.dev/copy-paste-coding-worse-than-you-think/</guid>
      <description>Learn why copy-paste coding creates subtle bugs and technical debt. Explore safer alternatives like generics, helpers, and proper inheritance in C#.</description>
    </item>
    <item>
      <title>SaaS Middleware Anti-Patterns: What *Not* to Do in ASP.NET Core</title>
      <link>https://bytecrafted.dev/aspnet-core-saas-middleware-anti-patterns/</link>
      <pubDate>Fri, 19 Sep 2025 00:00:00 +0530</pubDate>
      <guid>https://bytecrafted.dev/aspnet-core-saas-middleware-anti-patterns/</guid>
      <description>Avoid the most dangerous middleware mistakes in your ASP.NET Core SaaS apps. Learn what *not* to do with singleton lifetimes, database calls, tenant logic, and more.</description>
    </item>
    <item>
      <title>Code Reviews That Grow Developers</title>
      <link>https://bytecrafted.dev/code-reviews-grow-developers/</link>
      <pubDate>Tue, 16 Sep 2025 00:00:00 +0530</pubDate>
      <guid>https://bytecrafted.dev/code-reviews-grow-developers/</guid>
      <description>&lt;section class=&#34;tl-dr&#34; aria-labelledby=&#34;tldr-heading&#34;&gt;
  &lt;h3 id=&#34;tldr-heading&#34;&gt;TL;DR&lt;/h3&gt;
  &lt;div&gt;
    &lt;p&gt;Code reviews should teach, not just catch bugs. Stop nitpicking syntax and start building autonomous developers. Focus on architectural patterns, ask guiding questions instead of giving orders, and eliminate multi-team approval bottlenecks that delay delivery.&lt;/p&gt;
&lt;p&gt;Good reviews create learning opportunities that scale your team&amp;rsquo;s expertise.&lt;/p&gt;

  &lt;/div&gt;
&lt;/section&gt;


&lt;p&gt;Code reviews shouldn&amp;rsquo;t be about catching syntax errors or enforcing personal preferences. They&amp;rsquo;re your best tool for spreading architectural knowledge and building stronger development teams. But most teams get this wrong, creating bureaucratic bottlenecks instead of learning opportunities.&lt;/p&gt;</description>
    </item>
    <item>
      <title>SOLID Principles Cheatsheet</title>
      <link>https://bytecrafted.dev/solid-principles-cheatsheet/</link>
      <pubDate>Tue, 12 Aug 2025 00:00:00 +0000</pubDate>
      <guid>https://bytecrafted.dev/solid-principles-cheatsheet/</guid>
      <description>A real-world SOLID principles cheatsheet for C# developers.</description>
    </item>
    <item>
      <title>Refactoring Code for Better Coupling and Cohesion
</title>
      <link>https://bytecrafted.dev/refactoring-coupling-cohesion/</link>
      <pubDate>Mon, 04 Aug 2025 00:00:00 +0530</pubDate>
      <guid>https://bytecrafted.dev/refactoring-coupling-cohesion/</guid>
      <description>My approach to refactoring messy code emphasizes coupling and cohesion to create cleaner, more maintainable, and scalable software.</description>
    </item>
    <item>
      <title>Dependency Inversion: Boost C# Code Quality</title>
      <link>https://bytecrafted.dev/series/solid/dependency-inversion-csharp-testable-maintainable-code/</link>
      <pubDate>Fri, 25 Jul 2025 00:00:00 +0000</pubDate>
      <guid>https://bytecrafted.dev/series/solid/dependency-inversion-csharp-testable-maintainable-code/</guid>
      <description>Master Dependency Inversion in C# to improve code quality, reduce coupling, and build flexible, maintainable, and scalable applications</description>
    </item>
    <item>
      <title>Interface Segregation Principle: No Unused Methods</title>
      <link>https://bytecrafted.dev/series/solid/interface-segregation-principle-unused-methods/</link>
      <pubDate>Fri, 18 Jul 2025 00:00:00 +0000</pubDate>
      <guid>https://bytecrafted.dev/series/solid/interface-segregation-principle-unused-methods/</guid>
      <description>ISP explained: Avoid unused methods in C# interfaces to create cleaner, more modular, and maintainable applications that follow solid design principles.
</description>
    </item>
    <item>
      <title>Prefer Interfaces Over Abstract Classes in C#</title>
      <link>https://bytecrafted.dev/posts/c-sharp/prefer-interfaces-over-abstract-classes/</link>
      <pubDate>Wed, 16 Jul 2025 00:00:00 +0000</pubDate>
      <guid>https://bytecrafted.dev/posts/c-sharp/prefer-interfaces-over-abstract-classes/</guid>
      <description>Learn why preferring interfaces over abstract classes in C# improves code flexibility, testability, and maintainability for robust .NET applications.</description>
    </item>
    <item>
      <title>Square-Rectangle Problem: Lessons on Liskov Substitution</title>
      <link>https://bytecrafted.dev/series/solid/rectangle-square-problem-liskov-substitution-principle/</link>
      <pubDate>Mon, 14 Jul 2025 00:00:00 +0000</pubDate>
      <guid>https://bytecrafted.dev/series/solid/rectangle-square-problem-liskov-substitution-principle/</guid>
      <description>Understand the Rectangle-Square problem in C# and how it reveals common violations of the Liskov Substitution Principle (LSP) in object-oriented design.</description>
    </item>
    <item>
      <title>Dependency Inversion in C#: Flexible Code with ASP.NET Core</title>
      <link>https://bytecrafted.dev/posts/aspnet-core/dependency-inversion-principle-aspnet-core-di/</link>
      <pubDate>Sun, 13 Jul 2025 00:00:00 +0530</pubDate>
      <guid>https://bytecrafted.dev/posts/aspnet-core/dependency-inversion-principle-aspnet-core-di/</guid>
      <description>Learn the Dependency Inversion Principle in C# with ASP.NET Core DI to write flexible, maintainable, and testable code for real-world applications.</description>
    </item>
    <item>
      <title>Encapsulation Best Practices in C#: Controlled Setters vs Backing Fields</title>
      <link>https://bytecrafted.dev/posts/c-sharp/encapsulation-best-practices/</link>
      <pubDate>Sat, 12 Jul 2025 00:00:00 +0530</pubDate>
      <guid>https://bytecrafted.dev/posts/c-sharp/encapsulation-best-practices/</guid>
      <description>Learn when to use auto-properties vs backing fields in C#. See best practices for encapsulation, validation, and business logic in property setters, with real-world code examples and a quick comparison table.</description>
    </item>
    <item>
      <title>Open-Closed Principle: Smart Use, No Overkill
</title>
      <link>https://bytecrafted.dev/series/solid/open-closed-principle-without-overengineering/</link>
      <pubDate>Fri, 11 Jul 2025 00:00:00 +0000</pubDate>
      <guid>https://bytecrafted.dev/series/solid/open-closed-principle-without-overengineering/</guid>
      <description>OCP guide: Use the Open-Closed Principle smartly in C# to create flexible, maintainable code without overcomplicating with plugins.
</description>
    </item>
    <item>
      <title>Violating SOLID for Performance: When It&#39;s Okay and How to Isolate It</title>
      <link>https://bytecrafted.dev/posts/system-design/violating-solid-for-performance/</link>
      <pubDate>Thu, 10 Jul 2025 00:00:00 +0530</pubDate>
      <guid>https://bytecrafted.dev/posts/system-design/violating-solid-for-performance/</guid>
      <description>Learn when and how to break SOLID principles in C# for performance-critical code. See real-world examples, trade-off tables, and practical guidelines for measuring, isolating, and documenting exceptions while keeping your codebase maintainable.</description>
    </item>
    <item>
      <title>Single Responsibility Principle: One Reason to Change
</title>
      <link>https://bytecrafted.dev/series/solid/single-responsibility-principle-single-reason-to-change/</link>
      <pubDate>Mon, 07 Jul 2025 00:00:00 +0000</pubDate>
      <guid>https://bytecrafted.dev/series/solid/single-responsibility-principle-single-reason-to-change/</guid>
      <description>Discover the true meaning of “One Reason to Change” in SRP to write cleaner, more maintainable, and flexible C# applications.</description>
    </item>
    <item>
      <title>Guard Clauses in C#: Cleaner Validation and Fail-Fast Code</title>
      <link>https://bytecrafted.dev/posts/c-sharp/guard-clauses-csharp-clean-validation/</link>
      <pubDate>Sun, 06 Jul 2025 00:00:00 +0000</pubDate>
      <guid>https://bytecrafted.dev/posts/c-sharp/guard-clauses-csharp-clean-validation/</guid>
      <description>Learn how to use guard clauses in C# for cleaner validation and error handling. See practical examples, reusable helpers, and best practices for writing fail-fast, maintainable code.</description>
    </item>
    <item>
      <title>How Does Composition Support the SOLID Principles? (C# Examples &amp; Best Practices)</title>
      <link>https://bytecrafted.dev/posts/software-design/composition-supports-solid-principles/</link>
      <pubDate>Mon, 30 Jun 2025 00:00:00 +0530</pubDate>
      <guid>https://bytecrafted.dev/posts/software-design/composition-supports-solid-principles/</guid>
      <description>Learn how composition naturally enforces the SOLID principles in C#. This guide explains each SOLID principle with real-world code examples, showing why composition leads to cleaner, more maintainable, and testable code than inheritance.</description>
    </item>
    <item>
      <title>Composition Over Inheritance in C#</title>
      <link>https://bytecrafted.dev/posts/software-design/composition-over-inheritance/</link>
      <pubDate>Sun, 29 Jun 2025 00:00:00 +0530</pubDate>
      <guid>https://bytecrafted.dev/posts/software-design/composition-over-inheritance/</guid>
      <description>Learn why composition is preferred over inheritance in C# to write flexible, maintainable, and scalable code that follows clean design principles.</description>
    </item>
    <item>
      <title>DRY API Responses in ASP.NET Core</title>
      <link>https://bytecrafted.dev/posts/aspnet-core/clean-aspnet-core-api-response-patterns/</link>
      <pubDate>Thu, 26 Jun 2025 00:00:00 +0000</pubDate>
      <guid>https://bytecrafted.dev/posts/aspnet-core/clean-aspnet-core-api-response-patterns/</guid>
      <description>Create cleaner, DRY API responses in ASP.NET Core to enhance code maintainability, readability, and overall application quality.</description>
    </item>
  </channel>
</rss>
