<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Design-Principles on Java &amp; Software Architecture Knowledge Hub</title><link>https://samirsahoo.github.io/design-patterns-hub/tags/design-principles/</link><description>Recent content in Design-Principles 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/design-principles/index.xml" rel="self" type="application/rss+xml"/><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><item><title>Designing Concurrent Objects: Safety, Liveness and Locking Strategies</title><link>https://samirsahoo.github.io/design-patterns-hub/java/advanced/concurrent-object-design/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://samirsahoo.github.io/design-patterns-hub/java/advanced/concurrent-object-design/</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;thread-safe&lt;/strong&gt; class behaves correctly when its methods are called from several threads at the same time, without callers needing extra synchronization. Designing one means balancing four forces that Doug Lea describes in &lt;em&gt;Concurrent Programming in Java&lt;/em&gt;:&lt;/p&gt;</description></item></channel></rss>