<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>CodeQuality on Marko Apfel</title><link>http://blog.marko-apfel.de/tags/codequality/</link><description>Recent content in CodeQuality on Marko Apfel</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Fri, 25 Apr 2025 20:36:46 +0200</lastBuildDate><atom:link href="http://blog.marko-apfel.de/tags/codequality/index.xml" rel="self" type="application/rss+xml"/><item><title>Worth Reading: Why You Should End Your Source Files With a Newline</title><link>http://blog.marko-apfel.de/posts/end-source-files-with-newline/</link><pubDate>Fri, 07 Feb 2025 07:58:31 +0100</pubDate><guid>http://blog.marko-apfel.de/posts/end-source-files-with-newline/</guid><description>A small habit — ending every source file with a trailing newline — that quietly avoids a surprising number of diff, tooling, and POSIX-compliance headaches.</description></item><item><title>ReSharper's 'Apply File Layout' Cleanup Setting, Explained</title><link>http://blog.marko-apfel.de/posts/resharper-apply-file-layout/</link><pubDate>Mon, 27 Jan 2025 10:53:45 +0100</pubDate><guid>http://blog.marko-apfel.de/posts/resharper-apply-file-layout/</guid><description>Apply File Layout is the ReSharper Code Cleanup setting that keeps every file in a codebase structured the same way — headers, usings, and type members in a predictable order.</description></item><item><title>ReSharper's 'Arrange Qualifiers' Cleanup Setting, Explained</title><link>http://blog.marko-apfel.de/posts/resharper-arrange-qualifiers/</link><pubDate>Mon, 27 Jan 2025 10:53:45 +0100</pubDate><guid>http://blog.marko-apfel.de/posts/resharper-arrange-qualifiers/</guid><description>Arrange Qualifiers keeps namespace and type qualifiers consistent — stripping them where a using directive already covers it, and adding them back where ambiguity demands it.</description></item><item><title>ReSharper's 'Sort Modifiers' Cleanup Setting, Explained</title><link>http://blog.marko-apfel.de/posts/resharper-sort-modifiers/</link><pubDate>Mon, 27 Jan 2025 10:53:45 +0100</pubDate><guid>http://blog.marko-apfel.de/posts/resharper-sort-modifiers/</guid><description>public static readonly, or readonly public static? ReSharper&amp;rsquo;s Sort Modifiers setting picks one consistent order and applies it everywhere.</description></item><item><title>ReSharper's Built-in Code Cleanup Profiles, Compared</title><link>http://blog.marko-apfel.de/posts/resharper-cleanup-profiles/</link><pubDate>Mon, 27 Jan 2025 10:53:45 +0100</pubDate><guid>http://blog.marko-apfel.de/posts/resharper-cleanup-profiles/</guid><description>Reformat Code, Reformat &amp;amp; Apply Syntax Style, or Full Cleanup — ReSharper&amp;rsquo;s three built-in profiles differ a lot more than their names suggest.</description></item><item><title>Local Functions vs. Private Methods in C#: When to Use Which</title><link>http://blog.marko-apfel.de/posts/local-vs-private-functions/</link><pubDate>Tue, 06 Aug 2024 10:04:10 +0200</pubDate><guid>http://blog.marko-apfel.de/posts/local-vs-private-functions/</guid><description>Local functions and private methods both encapsulate logic within a class, but they answer different questions — one about method-specific scope, the other about class-wide reuse.</description></item><item><title>The Single-Line If-Statement Debate: Arguments For and Against Braces</title><link>http://blog.marko-apfel.de/posts/single-line-if-statements-debate/</link><pubDate>Wed, 18 May 2022 20:09:47 +0200</pubDate><guid>http://blog.marko-apfel.de/posts/single-line-if-statements-debate/</guid><description>Should &lt;code&gt;if (condition) return;&lt;/code&gt; be allowed on one line, or does every if-statement need braces? It&amp;rsquo;s a smaller question than it looks, and teams genuinely disagree about the answer.</description></item></channel></rss>