<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Hashan Lakruwan on Medium]]></title>
        <description><![CDATA[Stories by Hashan Lakruwan on Medium]]></description>
        <link>https://medium.com/@hashan.lakruwan2020?source=rss-a9b9fdc00ea5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*1dWvDJzRNkg7jWMCtsJJEA.jpeg</url>
            <title>Stories by Hashan Lakruwan on Medium</title>
            <link>https://medium.com/@hashan.lakruwan2020?source=rss-a9b9fdc00ea5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 19:39:11 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hashan.lakruwan2020/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[12 Design Patterns]]></title>
            <link>https://medium.com/@hashan.lakruwan2020/12-design-patterns-652bc6736b72?source=rss-a9b9fdc00ea5------2</link>
            <guid isPermaLink="false">https://medium.com/p/652bc6736b72</guid>
            <dc:creator><![CDATA[Hashan Lakruwan]]></dc:creator>
            <pubDate>Fri, 01 Sep 2023 03:16:51 GMT</pubDate>
            <atom:updated>2023-09-01T03:16:51.438Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*TcDXL5f1R20qKWYy7AKvQw.jpeg" /></figure><p>Design patterns are a fundamental part of software engineering, and they can help you write better, more maintainable code.</p><p>In this post, I’ll introduce you to the 12 most important design patterns, and I’ll explain how they can be used in your own projects.</p><p>🖼️ The <strong>12 design patterns</strong> in the infographic are:</p><p><strong>🏭 Factory<br>🔨 Builder<br>🚀 Prototype<br>☝️ Singleton<br>🔌 Adapter<br>🎨 Decorator<br>🏢 Facade<br>🔐 Proxy<br>📨 Command<br>👀 Observer<br>🔁 Iterator<br>🎭 State</strong></p><p>I’ll explain each of these patterns in more detail in my blog next week, but for now, here’s a brief overview:</p><p>🏭 <strong>Factory</strong>: Enables creation of objects without revealing the creation logic.</p><p>🔨 <strong>Builder</strong>: Allows construction of complex objects step-by-step.</p><p>🚀 <strong>Prototype</strong>: Facilitates cloning of objects.</p><p>☝️ <strong>Singleton</strong>: Ensures a class has only one instance.</p><p>🔌 <strong>Adapter</strong>: Lets two incompatible interfaces collaborate.</p><p>🎨 <strong>Decorator</strong>: Adds new functionality to an object dynamically.</p><p>🏢 <strong>Facade</strong>: Simplifies a complex system with a unified interface.</p><p>🔐 <strong>Proxy</strong>: Controls access to another object via a surrogate or placeholder.</p><p>📨 <strong>Command</strong>: Wraps up a request as an object.</p><p>👀 <strong>Observer</strong>: Implements one-to-many dependency so when one object changes state, its dependents are notified.</p><p>🔁 <strong>Iterator</strong>: Accesses elements of a collection object sequentially without exposing its underlying representation.</p><p>🎭 State: Lets an object alter its behavior based on its internal state.</p><p>— — — — — — — — — — — — — — — —</p><p>I hope this exploration enhances your understanding of design patterns and their significance in your projects. 🙏</p><p>Questions are always welcome in the comments section.👇</p><p>Follow me on <a href="https://www.linkedin.com/in/hashan-lakruwan/">LinkedIn</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=652bc6736b72" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>