<?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 Poorni Denipitiya on Medium]]></title>
        <description><![CDATA[Stories by Poorni Denipitiya on Medium]]></description>
        <link>https://medium.com/@uthpala9931?source=rss-b908abcea679------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*_WZAn9MDWs8bfT1P</url>
            <title>Stories by Poorni Denipitiya on Medium</title>
            <link>https://medium.com/@uthpala9931?source=rss-b908abcea679------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 00:01:29 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@uthpala9931/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[Mastering Programming Models: Choosing the Right Paradigm for Your Project]]></title>
            <link>https://medium.com/@uthpala9931/mastering-programming-models-choosing-the-right-paradigm-for-your-project-82cd7bd048bf?source=rss-b908abcea679------2</link>
            <guid isPermaLink="false">https://medium.com/p/82cd7bd048bf</guid>
            <category><![CDATA[programming-paradigms]]></category>
            <category><![CDATA[objectorientedprogramming]]></category>
            <category><![CDATA[programming-model]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Poorni Denipitiya]]></dc:creator>
            <pubDate>Wed, 23 Oct 2024 06:38:56 GMT</pubDate>
            <atom:updated>2024-10-23T06:38:56.668Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1wYFYZPCxOiSGRttBCu6Gg.png" /></figure><p>A programming model, or programming paradigm, is like a roadmap for how we think about problems and their solutions when writing code. It defines how software developers structure and execute code to build applications. These models offer guidelines that help manage the complexity of software development, ensuring your code is maintainable, scalable, and efficient.</p><p>But why should you care about programming models? What’s the importance of knowing them? Well, understanding programming models is essential for successful software development. Choosing the right model helps you solve problems efficiently. On the flip side, picking the wrong one can lead to long debugging sessions. The model you choose affects how easily you can maintain and organize your code, improve performance, speed up development, and even save costs.</p><p>Let’s dive into the main types of programming models. Here are a few key ones, though there are many more out there!</p><ul><li><strong>Imperative Programming Model</strong><br>This model involves giving explicit instructions to the computer, and changing the program’s state step by step. It focuses on how tasks are done, much like following detailed cooking instructions. <strong>Examples:</strong> C, C++, Java, Pascal</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sJeXybnD_MXLZ8qIhF7cDw.png" /><figcaption>Example Code in C</figcaption></figure><ul><li><strong>Declarative Programming Model</strong><br>Rather than focusing on how things are done, declarative programming emphasizes what the outcome should be. Think of it like ordering food at a restaurant, you just say what you want without specifying how to cook it. <strong>Examples:</strong> SQL, HTML, Prolog, Haskell</li></ul><figure><img alt="Example code in SQL" src="https://cdn-images-1.medium.com/max/1024/1*nsIcJnoLWoy4PWPYvBsppw.png" /><figcaption>Example code in SQL</figcaption></figure><ul><li><strong>Object-Oriented Programming (OOP) Model</strong><br>OOP organizes software design around objects (data) and methods (functions) that operate on that data. It’s especially useful for modeling real-world objects and their interactions. <strong>Examples:</strong> Java, Python, C++, Ruby</li></ul><figure><img alt="Example code in Java" src="https://cdn-images-1.medium.com/max/1024/1*BE1v_hTFwXxMZWYMcl8PEQ.png" /><figcaption>Example code in Java</figcaption></figure><ul><li><strong>Functional Programming Model</strong><br>Functional programming focuses on evaluating functions and avoiding mutable data or changing states. It’s like solving mathematical problems — concise, predictable, and often bug-free. <strong>Examples:</strong> Haskell, Scala, JavaScript</li></ul><figure><img alt="Example code in JS" src="https://cdn-images-1.medium.com/max/1024/1*6I3TFX3mlOy-7zNGDFN-EQ.png" /><figcaption>Example code in JS</figcaption></figure><ul><li><strong>Event-Driven Programming Model</strong><br>This model is all about responding to events (like user clicks, messages, etc.). The flow of the program depends on these interactions. It’s commonly used in user interfaces and web applications. <strong>Examples:</strong> JavaScript, C#</li></ul><figure><img alt="Example code in JS" src="https://cdn-images-1.medium.com/max/1024/1*63fRnCuypQRecJYswRtupA.png" /><figcaption>Example code in JS</figcaption></figure><p>Now that you’re familiar with some of the main programming models, how do you choose the right one for your needs?</p><p><strong>Choosing the Best Programming Model:</strong></p><ul><li>Web applications: Use event-driven or object-oriented programming models because these models are excellent for handling user interactions and keeping code easily maintainable.</li><li>Data processing: Opt for functional programming because it’s great for handling large datasets with fewer bugs thanks to immutable data.</li><li>System programming: Go with the imperative programming model because it offers more control over hardware resources and typically delivers better performance.</li></ul><p><strong>Conclusion:</strong></p><p>A programming model (or paradigm) is essentially an abstraction that defines how programs are structured and how computations are performed. Programming models provide the rules, patterns, and best practices for designing and implementing software systems. Understanding these models will help you write better code, solve problems efficiently, and build applications that stand the test of time!</p><p>By now, you should have a solid idea of the main programming models and their contributions. So go ahead, choose the one that suits your project, and code away!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=82cd7bd048bf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Enhancing Agility and Scalability in Software Development with Microservices Architecture]]></title>
            <link>https://medium.com/@uthpala9931/enhancing-agility-and-scalability-in-software-development-with-microservices-architecture-101c5993f456?source=rss-b908abcea679------2</link>
            <guid isPermaLink="false">https://medium.com/p/101c5993f456</guid>
            <category><![CDATA[microservice-architecture]]></category>
            <category><![CDATA[monolithic-architecture]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[monolithicvsmicroservice]]></category>
            <dc:creator><![CDATA[Poorni Denipitiya]]></dc:creator>
            <pubDate>Wed, 17 Jul 2024 17:51:57 GMT</pubDate>
            <atom:updated>2024-07-17T17:51:57.772Z</atom:updated>
            <content:encoded><![CDATA[<p>A monolithic architecture can present significant challenges when your software project is large and scaling. In today’s IT industry, the agile approach is highly favored, and relying on a monolithic architecture can hinder your ability to make quick, iterative changes. For instance, a small change in a single function within a monolithic application requires recompiling and testing the entire application, which is time-consuming and inefficient.</p><p>This is where microservices architecture shines. Unlike monolithic architectures, microservices allow you to break down your application into smaller, independent services. Each microservice has its business logic and database, focusing on a specific goal. This means that when you need to update, test, deploy, or scale a microservice, you can do so without affecting other services.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*VPHYZ8KzHaYJ362Sj77rBg.jpeg" /><figcaption>Monolithic vs Microservices</figcaption></figure><p>It’s important to note that microservices do not reduce complexity but make it more visible and manageable. By separating tasks into smaller parts, each functioning independently, you can handle complexities more effectively.</p><p>When designing microservices for a project, focus on business functions. Each service should perform a single business function and be isolated from the others. This isolation allows for independent updates and deployments, aligning with agile methodologies.</p><p>Understanding Microservices with an Example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/474/1*AeckE109a10vpUpkrQKKJw.jpeg" /><figcaption>The shattered window</figcaption></figure><p>Imagine a massive castle as your software application. One day, a worker notices a broken window and informs the King. The King wants the window fixed, so he calls the two best workers in the area. After analyzing the shattered window, one worker suggests that fixing it requires demolishing and rebuilding the entire castle. This represents the monolithic approach, which isn’t suitable for agile processes. The other worker, however, proposes simply replacing the window without disturbing the rest of the castle. This is similar to the microservices approach, which supports agility and efficient problem-solving.</p><p>By adopting microservices architecture, you enable your project to evolve and scale more efficiently, embracing the principles of agility and independent functionality.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=101c5993f456" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>