<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Oop on Java &amp; Software Architecture Knowledge Hub</title><link>https://samirsahoo.github.io/design-patterns-hub/tags/oop/</link><description>Recent content in Oop on Java &amp; Software Architecture Knowledge Hub</description><generator>Hugo</generator><language>en-US</language><copyright>© 2026 Samir Kumar Sahoo (https://github.com/samirsahoo). All rights reserved.</copyright><atom:link href="https://samirsahoo.github.io/design-patterns-hub/tags/oop/index.xml" rel="self" type="application/rss+xml"/><item><title>What Are Design Patterns?</title><link>https://samirsahoo.github.io/design-patterns-hub/design-patterns/what-are-design-patterns/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://samirsahoo.github.io/design-patterns-hub/design-patterns/what-are-design-patterns/</guid><description>&lt;h2 id="simple-definition"&gt;Simple definition&lt;a class="heading-anchor" href="#simple-definition" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;A &lt;strong&gt;design pattern&lt;/strong&gt; is a named, proven solution to a problem that keeps recurring in software design. It is described at the level of roles and relationships, not as finished code.&lt;/p&gt;&#10;&lt;p&gt;A pattern is not a library you download. It is closer to a recipe that experienced developers recognise: &amp;ldquo;when you face &lt;em&gt;this&lt;/em&gt; situation, arranging objects like &lt;em&gt;this&lt;/em&gt; tends to work, and here is what it costs.&amp;rdquo;&lt;/p&gt;</description></item><item><title>SOLID Principles Explained</title><link>https://samirsahoo.github.io/design-patterns-hub/design-patterns/solid-principles/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://samirsahoo.github.io/design-patterns-hub/design-patterns/solid-principles/</guid><description>&lt;h2 id="simple-definition"&gt;Simple definition&lt;a class="heading-anchor" href="#simple-definition" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;&lt;strong&gt;SOLID&lt;/strong&gt; is an acronym for five object-oriented design principles. Each one keeps code easy to change:&lt;/p&gt;&#10;&lt;div class="table-wrap" tabindex="0" role="region" aria-label="Table"&gt;&#10;&lt;table&gt;&#10; &lt;thead&gt;&#10; &lt;tr&gt;&#10; &lt;th&gt;Letter&lt;/th&gt;&#10; &lt;th&gt;Principle&lt;/th&gt;&#10; &lt;th&gt;One-line summary&lt;/th&gt;&#10; &lt;/tr&gt;&#10; &lt;/thead&gt;&#10; &lt;tbody&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;&lt;strong&gt;S&lt;/strong&gt;&lt;/td&gt;&#10; &lt;td&gt;Single Responsibility&lt;/td&gt;&#10; &lt;td&gt;A module should have one reason to change — one actor it answers to.&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;&lt;strong&gt;O&lt;/strong&gt;&lt;/td&gt;&#10; &lt;td&gt;Open/Closed&lt;/td&gt;&#10; &lt;td&gt;Add behaviour by adding code, not by editing working code.&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;&lt;strong&gt;L&lt;/strong&gt;&lt;/td&gt;&#10; &lt;td&gt;Liskov Substitution&lt;/td&gt;&#10; &lt;td&gt;A subtype must be usable anywhere its supertype is expected.&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;&lt;strong&gt;I&lt;/strong&gt;&lt;/td&gt;&#10; &lt;td&gt;Interface Segregation&lt;/td&gt;&#10; &lt;td&gt;Clients should not depend on methods they do not use.&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;&lt;strong&gt;D&lt;/strong&gt;&lt;/td&gt;&#10; &lt;td&gt;Dependency Inversion&lt;/td&gt;&#10; &lt;td&gt;Policy should not depend on details; both depend on abstractions.&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;/div&gt;&#10;&lt;p&gt;Robert C. Martin collected these principles around 2000. Michael Feathers later arranged them into the SOLID acronym.&lt;/p&gt;</description></item><item><title>OO Design Principles Behind the Patterns</title><link>https://samirsahoo.github.io/design-patterns-hub/design-patterns/oo-design-principles/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://samirsahoo.github.io/design-patterns-hub/design-patterns/oo-design-principles/</guid><description>&lt;h2 id="simple-definition"&gt;Simple definition&lt;a class="heading-anchor" href="#simple-definition" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;Design patterns are not a list of tricks to memorise. Almost all of them are &lt;strong&gt;the same handful of principles applied to a particular problem&lt;/strong&gt;. Learn the principles and you can recognise patterns, adapt them, and know when &lt;em&gt;not&lt;/em&gt; to use them.&lt;/p&gt;</description></item></channel></rss>