<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Design Patterns on PBiernat.space</title>
		<link>https://pbiernat.space/tags/design-patterns/</link>
		<description>Recent content in Design Patterns on PBiernat.space</description>
		<generator>Hugo</generator>
		<language>en-us</language>
		
		
		
			<copyright>&lt;a href=&#34;https://creativecommons.org/licenses/by-nc/4.0/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;CC BY-NC 4.0&lt;/a&gt;</copyright>
		
		
			<lastBuildDate>Wed, 23 Sep 2026 15:00:00 +0200</lastBuildDate>
		
			<atom:link href="https://pbiernat.space/tags/design-patterns/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Specification pattern</title>
				<link>https://pbiernat.space/posts/specification-pattern/</link>
				<pubDate>Wed, 23 Sep 2026 15:00:00 +0200</pubDate>
				<guid>https://pbiernat.space/posts/specification-pattern/</guid>
				<description>&lt;p&gt;Hi. Today, we&amp;rsquo;re going to take a look at the Specification pattern. Without further ado, let&amp;rsquo;s dive in.&lt;/p&gt;&#xA;&lt;p&gt;Specification is an architectural design pattern introduced by Eric Evans. It is most commonly found in Domain-Driven Design (DDD).&lt;/p&gt;&#xA;&lt;p&gt;It is mainly based on the mechanisms of composition and Boolean algebra.&lt;/p&gt;&#xA;&lt;p&gt;The main element of this pattern is the &lt;strong&gt;CompositeSpecification&lt;/strong&gt; class, which implements an interface declaring methods that allow &lt;strong&gt;business rules to be nested (And, Or, Not)&lt;/strong&gt;, as well as the &lt;strong&gt;IsSatisfiedBy&lt;/strong&gt; method, which validates all the business rules.&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
