<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Cohesion on Artur Rios Lab</title><link>https://lab.artur-rios.tech/tags/cohesion/</link><description>Recent content in Cohesion on Artur Rios Lab</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Wed, 21 Oct 2026 00:01:00 +0000</lastBuildDate><atom:link href="https://lab.artur-rios.tech/tags/cohesion/index.xml" rel="self" type="application/rss+xml"/><item><title>What Is the Single Responsibility Principle? Reasons to Change, Actors and Cohesion</title><link>https://lab.artur-rios.tech/concepts/single-responsibility-principle/</link><pubDate>Wed, 21 Oct 2026 00:01:00 +0000</pubDate><guid>https://lab.artur-rios.tech/concepts/single-responsibility-principle/</guid><description>&lt;p&gt;An online shop has an &lt;code&gt;Order&lt;/code&gt; class. Finance uses it to book revenue, the&#10;storefront uses it to print receipts, and the platform team uses it to store&#10;orders in the database. One day the storefront asks for receipts to show prices&#10;with VAT, a developer makes the change in the obvious place, every test the&#10;storefront cares about passes, and at the end of the month finance&amp;rsquo;s revenue is&#10;twenty per cent too high. Nobody touched finance&amp;rsquo;s code. They touched code that&#10;finance &lt;em&gt;shared&lt;/em&gt;. The &lt;strong&gt;single responsibility principle&lt;/strong&gt; is the rule that&#10;would have kept those two apart, and it is the most quoted and least understood&#10;of the five SOLID principles. This is the first part of a series on SOLID: it&#10;explains what the principle says, where it came from, how the acronym itself&#10;was born, what it looks like in running code, and how far to take it. Every&#10;output shown here was produced by running the code on Windows 11, with Python&#10;3.14.6, not written by hand.&lt;/p&gt;</description></item></channel></rss>