<?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 Thenuja.satheeskumar on Medium]]></title>
        <description><![CDATA[Stories by Thenuja.satheeskumar on Medium]]></description>
        <link>https://medium.com/@thenujasatheeskumar?source=rss-343de7f46df3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*3dkbNpEluAzDOjnD</url>
            <title>Stories by Thenuja.satheeskumar on Medium</title>
            <link>https://medium.com/@thenujasatheeskumar?source=rss-343de7f46df3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 15:16:46 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@thenujasatheeskumar/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[Azure Logic Apps]]></title>
            <link>https://medium.com/@thenujasatheeskumar/azure-logic-apps-f2e037561f39?source=rss-343de7f46df3------2</link>
            <guid isPermaLink="false">https://medium.com/p/f2e037561f39</guid>
            <dc:creator><![CDATA[Thenuja.satheeskumar]]></dc:creator>
            <pubDate>Thu, 13 Mar 2025 05:26:10 GMT</pubDate>
            <atom:updated>2025-03-13T05:26:10.325Z</atom:updated>
            <content:encoded><![CDATA[<p>Azure Logic Apps is a cloud service that helps you <strong>automate workflows</strong>. A workflow is a series of steps that run automatically to complete a task.</p><p>With Logic Apps, you don’t need to write a lot of code. Instead, you can <strong>connect different apps, services, and data</strong> to work together. This is useful for businesses that use many tools and need them to communicate smoothly.</p><h4>Why use Azure Logic Apps?</h4><ul><li>It <strong>saves time</strong> by automating tasks.</li><li>It <strong>connects different apps</strong> (e.g., email, databases, social media, etc.).</li><li>It <strong>works with both cloud and on-premises systems</strong> (your own servers).</li><li>It <strong>requires little or no coding</strong> (drag-and-drop tools make it easy).</li></ul><h4>How does it work?</h4><ol><li><strong>Use a Visual Designer</strong> — You can <strong>drag and drop</strong> actions instead of writing code.</li><li><strong>Use Prebuilt Actions</strong> — Azure Logic Apps comes with <strong>ready-made operations</strong> to perform tasks like sending emails, moving files, or processing data.</li><li><strong>Create Workflows</strong> — You set up a workflow that starts when something happens (like receiving an email or uploading a file).</li></ol><h3>Examples of what you can do with Azure Logic Apps:</h3><p><strong>Send email notifications :</strong> Send an email when a new file is uploaded.<br> <strong>Process customer orders </strong>: When a customer places an order, update the database and send a confirmation email.<br> <strong>Move files </strong>: Copy files from an FTP server to <strong>Azure Blob Storage</strong> automatically.<br> <strong>Monitor social media </strong>: Track brand mentions, analyze customer sentiment, and create alerts for negative reviews.</p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —</p><p>Imagine you have an <strong>order system</strong> that processes customer orders. Some orders are <strong>small</strong>, and some are <strong>expensive</strong>. You want to <strong>check the price</strong> of each order and decide what to do next.</p><h3>How does it work?</h3><ol><li>A customer <strong>places an order</strong>.</li><li>The system <strong>checks the order price</strong>.</li><li>If the price is <strong>above a certain amount</strong> (for example, $500), the order needs <strong>manual review</strong> before approval.</li><li>If the price is <strong>below $500</strong>, the order is <strong>approved automatically</strong>.</li></ol><h3>How does Azure Logic Apps help?</h3><ul><li>It <strong>automates this process</strong> using <strong>conditions and switches</strong>.</li><li>A <strong>condition</strong> checks if the order price is <strong>greater than $500</strong>.</li><li>A <strong>switch</strong> decides what happens next:</li><li>If <strong>above $500</strong> → Send the order for <strong>manual review</strong>.</li><li>If <strong>below $500</strong> → <strong>Approve the order</strong> automatically.</li></ul><p>This helps businesses save time by <strong>automating approvals</strong> while still checking <strong>high-value orders manually</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mH-ZKhKso9Q0gwqd" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f2e037561f39" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[React.js]]></title>
            <link>https://medium.com/@thenujasatheeskumar/react-js-4a6354946aba?source=rss-343de7f46df3------2</link>
            <guid isPermaLink="false">https://medium.com/p/4a6354946aba</guid>
            <dc:creator><![CDATA[Thenuja.satheeskumar]]></dc:creator>
            <pubDate>Thu, 06 Mar 2025 12:33:22 GMT</pubDate>
            <atom:updated>2025-03-10T10:55:43.572Z</atom:updated>
            <content:encoded><![CDATA[<p>This is a JavaScript library.</p><p>Why do we call it a library instead of a JavaScript framework? The difference between a JavaScript library and a framework is simple. The meaning of a framework is like a set of tools. For example, imagine a toolbox. In that toolbox, there is a hammer, a screwdriver, scissors, and other tools already available. Our work is to take and use the tools whenever we need them. Similarly, in a framework, we use the features that are already defined.</p><p>But when we talk about a library, it is just one tool. For example, only a hammer. If we need a screwdriver, we have to get it separately, maybe from another brand. So, that is what we call a library.</p><p>So, the conclusion is:</p><ul><li><strong>A framework</strong> is a <strong>set of tools</strong>.</li><li><strong>A library</strong> is <strong>a single tool</strong>.</li></ul><h3>Why Was React.js Introduced?</h3><p>In the beginning, developers faced challenges in modifying the <strong>DOM (Document Object Model)</strong> directly. Even small changes caused the entire page to reload, which was not efficient.</p><p>To improve performance, user experience, and create smooth applications, <strong>React.js was introduced</strong>. This problem was solved by <strong>Virtual DOM</strong>, which updates only the necessary parts of the page instead of reloading everything.</p><p>React is not only used to build user interfaces but also to create <strong>single-page applications (SPAs)</strong>. The main purpose is that the server does not reload everything every time a change is made. Instead, the page loads once, and React handles the updates dynamically.</p><h3>Why Does the Industry Prefer React?</h3><ul><li><strong>Developer-friendly</strong> — React allows developers to write HTML and JavaScript together, making coding easier.</li><li><strong>User-friendly</strong> — React applications provide a smooth and fast experience.</li><li><strong>Performance</strong> — React applications are faster than others due to the Virtual DOM.</li><li><strong>Reusable components</strong> — React allows developers to create reusable UI elements, saving time and effort.</li></ul><p>Because of these advantages, <strong>React.js is widely used in the industry today.</strong></p><p><strong>01. Single Page Application and Multi-Page Application</strong></p><p><strong>(I) Single Page Application</strong><br> A Single Page Application (SPA) means that when you request a website in a browser, the request is sent to the server, and the server responds with a single page. This page contains multiple components or templates. If any changes are made to the page, it does not send another request to the server; it only updates the template. The server handles the request once. This is what is called a Single Page Application.</p><p><strong>(II) Multi-Page Application</strong><br> In a Multi-Page Application (MPA), every time the content changes, a new request is sent to the server, and the server responds with a new HTML page. The server receives a request each time the page is changed. This is called a Multi-Page Application.</p><p><strong>02. Component-Based Architecture</strong><br> The meaning of Component-Based Architecture (CBA) is to create each part of the application as a component, such as a navbar, sidebar, or card, and then combine them to create the final page. This approach is useful because it promotes:</p><ul><li>Readability</li><li>Proper management</li><li>Easy identification of errors</li><li>Reusability</li></ul><p><strong>03. Virtual DOM</strong><br> React creates a virtual DOM by copying the real DOM. When you run a website, it creates a DOM in the browser. React takes a copy of that DOM.</p><p><strong>Difference between Real DOM and Virtual DOM:</strong><br> If we change any content in the real DOM, the DOM tree will be recreated, which is why the page reloads repeatedly. In the virtual DOM, once it is created, it remains aside. When the content of the page changes, a new virtual DOM is created. It then compares the previous virtual DOM with the current one and uploads only the necessary changes to the real DOM, without reloading the page.</p><p>There are two key concepts behind the Virtual DOM:</p><ol><li><strong>Reconciliation</strong> — This is the process where the previous and current virtual DOMs are compared, and the parts that need updating are updated in the UI (the DOM in the browser).</li><li><strong>Diffing Algorithm</strong> — This method in Reconciliation compares the previous virtual DOM and the current one to find the minimal, most accurate changes that need to be applied.</li></ol><p>The Virtual DOM updates the following:</p><ul><li><strong>State</strong> — The data</li><li><strong>Props</strong> — Passing data from parent to child components</li></ul><p><strong>04. JSX (JavaScript XML)</strong><br> JSX allows HTML and JavaScript to exist in the same file. It is a combination of JavaScript and XML syntax.</p><p>There are two types of programming in JavaScript:</p><ol><li><strong>Declarative Programming</strong></li><li><strong>Imperative Programming</strong></li></ol><p><strong>05. React Hooks</strong><br> There are two types of components in React: class components and function components. Initially, developers used class components for everything.</p><p>There is also something called a <strong>side effect</strong>, which refers to handling API requests and async/await operations. Class components were used to properly manage these side effects. To make these tasks easier, React introduced <strong>Hooks</strong>.</p><p><strong>06. React Router</strong><br> React Router is used for navigation purposes. It changes the content based on the path. It works by defining which component to render for a specific path. When the path changes, the UI is updated accordingly. React Router handles this change by modifying the UI without needing to send a new request to the server each time.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4a6354946aba" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sessions in ASP.NET Framework]]></title>
            <link>https://medium.com/@thenujasatheeskumar/sessions-in-asp-net-framework-46f6ab09bdd0?source=rss-343de7f46df3------2</link>
            <guid isPermaLink="false">https://medium.com/p/46f6ab09bdd0</guid>
            <dc:creator><![CDATA[Thenuja.satheeskumar]]></dc:creator>
            <pubDate>Mon, 24 Feb 2025 07:03:43 GMT</pubDate>
            <atom:updated>2025-02-24T08:04:37.294Z</atom:updated>
            <content:encoded><![CDATA[<p>A <strong>Session</strong> stores user data <strong>on the server</strong> for a certain period. It is unique for each user and is maintained as long as the user is active</p><p>When developing web applications, maintaining user-specific data across multiple pages is essential. In <strong>ASP.NET Framework</strong>, <strong>sessions</strong> provide a way to store and retrieve user data while the user interacts with the website</p><p>Stores temporary user data (e.g., login details, shopping cart).<br>Automatically expires.<br>Stored on the Server → More secure than cookies (not stored in the browser).<br>Unique for Each User → Every user gets a unique session ID.<br>Temporary Storage → Data exists until the user logs out or the session times out.<br>Works Across Pages → The stored data is accessible from any page in the application.</p><h4>How Sessions Work in ASP.NET?</h4><p>01. A <strong>user visits a website</strong>, and a <strong>session is created</strong> with a <strong>unique session ID</strong>.<br>02. This <strong>session ID is stored in a cookie</strong> (ASP.NET_SessionId) in the user’s browser.<br>03. When the user <strong>navigates to other pages</strong>, the <strong>session ID is sent to the server</strong>, allowing access to the stored data.<br>04. When the user <strong>logs out or times out</strong>, the session data is <strong>cleared</strong> from the server.</p><h3>Understanding Sessions in ASP.NET MVC (.NET Framework)</h3><p>In modern web applications, managing user-specific data across multiple pages is essential. ASP.NET MVC, a popular framework in the .NET ecosystem, provides <strong>Session Management</strong>, a robust mechanism for storing temporary user data on the <strong>server</strong>.</p><p>Sessions are particularly useful for maintaining <strong>user login states, shopping carts, preferences, and temporary data</strong> that should persist between page reloads.</p><h4><strong>How Sessions Work in ASP.NET MVC</strong></h4><ul><li>When a user accesses a web application for the first time, the server generates a unique <strong>session ID</strong>.</li><li>This session ID is stored in a <strong>cookie</strong> or passed in the <strong>URL</strong>.</li><li>The session ID is then used to retrieve the user’s session data stored on the server.</li><li>The session remains active until it <strong>expires</strong> or is <strong>explicitly cleared</strong> by the application.</li></ul><h4>Where is Session Data Stored</h4><p>ASP.NET MVC provides multiple storage options for session data:</p><ul><li><strong>In-Process Session State</strong> — Stored in the server’s memory (default method, but lost if the server restarts).</li><li><strong>State Server Session State</strong> — Stored in an external process, allowing persistence even if the web server restarts.</li><li><strong>SQL Server Session State</strong> — Stores session data in a database, making it suitable for load-balanced environments.</li><li><strong>Custom Session Storage</strong> — Developers can use <strong>Redis</strong>, <strong>NoSQL databases</strong>, or other caching solutions for scalability.</li></ul><h4>Session Lifetime and Expiration</h4><ul><li>By default, an ASP.NET session <strong>expires after 20 minutes</strong> of inactivity.</li><li>The timeout can be adjusted in the application settings (web.config).</li><li>If a session expires, the stored data is lost, requiring users to log in again or re-enter information.</li></ul><h4>Benefits of Using Sessions</h4><ul><li><strong>Maintains user data</strong> across multiple requests.</li><li><strong>Reduces database queries</strong> by storing frequently used information.</li><li><strong>Improves user experience</strong> by keeping login sessions active.</li><li><strong>Stores shopping cart data</strong> in e-commerce applications.</li></ul><h4>Challenges of Using Sessions</h4><ul><li><strong>Consumes server memory</strong> when too many sessions are active.</li><li><strong>Not scalable by default</strong> unless stored in an external database.</li><li><strong>Session loss</strong> occurs if the server restarts (for in-memory sessions).</li><li><strong>Security risks</strong> like session hijacking if not properly managed.</li></ul><h4>Best Practices for Managing Sessions</h4><ul><li><strong>Store minimal data</strong> in sessions to prevent memory overload.</li><li><strong>Use external storage</strong> like SQL Server or Redis for scalability.</li><li><strong>Implement session timeouts</strong> to enhance security.</li><li><strong>Avoid storing sensitive information</strong> unless encrypted.</li><li><strong>Use cookies securely</strong> to prevent session fixation attacks</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=46f6ab09bdd0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SOLID Principles]]></title>
            <link>https://medium.com/@thenujasatheeskumar/solid-principles-2ca42d583489?source=rss-343de7f46df3------2</link>
            <guid isPermaLink="false">https://medium.com/p/2ca42d583489</guid>
            <dc:creator><![CDATA[Thenuja.satheeskumar]]></dc:creator>
            <pubDate>Wed, 19 Feb 2025 12:16:00 GMT</pubDate>
            <atom:updated>2025-02-19T12:16:00.309Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>The Foundation of Clean Code</strong></p><p>Writing clean and flexible code is essential for every developer. The <strong>SOLID</strong> principles, introduced by <strong>Robert C. Martin </strong>help make software easier to maintain and expand without breaking existing functionality. Let’s explore these five principles with simple real-world examples.</p><h3>1. Single Responsibility Principle (SRP)</h3><blockquote>A class should have only one reason to change.</blockquote><p>In software design, a class should be responsible for only one aspect of functionality. If a class takes on multiple responsibilities, it becomes difficult to maintain and modify.</p><h4>Real-World Example: A Restaurant Staff</h4><p>A restaurant operates efficiently because each employee has a distinct role:</p><ul><li><strong>The Chef</strong> cooks food.</li><li><strong>The Waiter</strong> serves customers.</li><li><strong>The Cashier</strong> handles payments.</li></ul><p>Imagine if the <strong>Waiter</strong> also had to cook food and handle payments. The system would become inefficient and chaotic. Similarly, in software, a class should focus on a single responsibility to remain clear and maintainable.</p><h3>2. Open/Closed Principle (OCP)</h3><blockquote>Software entities should be open for extension, but closed for modification.</blockquote><p>This principle encourages designing code in a way that allows new features to be added <strong>without modifying existing code</strong>. This reduces the risk of introducing bugs when new functionality is introduced.</p><h4>Real-World Example: Payment Options in Sri Lanka</h4><p>Imagine an e-commerce app in Sri Lanka that initially supports <strong>cash payments and bank transfers</strong>. Later, we want to add <strong>mobile wallets like eZ Cash and FriMi</strong>. Instead of modifying the existing payment code, we should design an interface that allows new payment methods to be added separately. This keeps the system stable and adaptable to new payment trends.</p><h3>3. Liskov Substitution Principle (LSP)</h3><blockquote>Subtypes must be replaceable for their base types without breaking the system.</blockquote><p>A subclass should extend the behavior of its parent class <strong>without changing its intended functionality</strong>.</p><h4>Real-World Example: Vehicles</h4><p>Imagine a <strong>Vehicle</strong> class with a method move(). A <strong>Car</strong> and a <strong>Bicycle</strong> are both vehicles, but only the car has an engine. If the base Vehicle class assumes all vehicles have an engine, then the Bicycle subclass would break the system.</p><p>To follow LSP, we should design our base class so that <strong>all subclasses work seamlessly in place of their parent class without requiring special modifications</strong>.</p><h3>4. Interface Segregation Principle (ISP)</h3><blockquote>Clients should not be forced to depend on interfaces they do not use.</blockquote><p>Instead of creating large, monolithic interfaces, it’s better to design smaller, more specific interfaces tailored to the needs of different clients.</p><h4>Real-World Example: A Multifunction Printer</h4><p>A modern printer may have multiple functions:</p><ul><li><strong>Printing</strong></li><li><strong>Scanning</strong></li><li><strong>Faxing</strong></li></ul><p>A <strong>basic printer</strong> should not be forced to implement scan() and fax(), as it only needs print(). By splitting the functionalities into smaller interfaces, we avoid unnecessary dependencies and keep the system modular.</p><h3>5. Dependency Inversion Principle (DIP)</h3><blockquote>High-level modules should not depend on low-level modules. Both should depend on abstractions.</blockquote><p>Instead of hardcoding dependencies, software components should rely on <strong>interfaces or abstract classes</strong>, making them more flexible and easier to change.</p><h4>Real-World Analogy: Light Switch and Appliances</h4><p>A <strong>light switch</strong> should not be tightly coupled to a specific appliance like a light bulb. Instead, it should depend on an abstract Device interface. This way, the same switch can control a <strong>fan, a lamp, or even a smart home system</strong> without needing modifications.</p><h3>Why SOLID Matters</h3><p>Applying SOLID principles helps create code that is easier to read, simple to maintain, less error-prone, and flexible for future updates. No matter the size of your project, following SOLID makes your code cleaner and more adaptable for the long run.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2ca42d583489" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Object-oriented-Programming (OOP)]]></title>
            <link>https://medium.com/@thenujasatheeskumar/object-oriented-programming-oop-209b4a4b83bf?source=rss-343de7f46df3------2</link>
            <guid isPermaLink="false">https://medium.com/p/209b4a4b83bf</guid>
            <dc:creator><![CDATA[Thenuja.satheeskumar]]></dc:creator>
            <pubDate>Tue, 18 Feb 2025 09:11:01 GMT</pubDate>
            <atom:updated>2025-02-18T10:08:08.141Z</atom:updated>
            <content:encoded><![CDATA[<p>Object-Oriented Programming (OOP) is a way of writing programs by organizing data and behavior into objects, making code more structured, reusable, and easy to manage. OOP has four main principles: <strong>Encapsulation, Inheritance, Polymorphism, and Abstraction</strong>.</p><ol><li><strong>Encapsulation — Keeping Data Safe</strong></li></ol><p>Encapsulation is like keeping <strong>AirPods in their case</strong>. The case protects the AirPods from dust, damage, and loss, ensuring they are safe and accessible only when needed.</p><p>Similarly, in programming, encapsulation protects data by keeping it private inside a class and only allowing access through controlled methods. This prevents unauthorized modification and ensures security.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/666/1*rXPCIuJVASuREz465s-2KA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/595/1*E3tVM7dbhUO9anzpXlZuvQ.png" /></figure><p>The output:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/391/1*w8yxE-cmA0BTTkLKi_oNeQ.png" /></figure><blockquote><strong>Advanced Concepts in Encapsulation</strong></blockquote><p>Encapsulation is one of the fundamental principles of Object-Oriented Programming (OOP), which <strong>hides the internal state</strong> of an object and allows controlled access through methods</p><p>C# provides <strong>access modifiers</strong> that control the visibility of class members.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/932/1*reGPxsFuIOJXdFhkGfiQGw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ToHTb6nfl3qdAt6F0jcUwg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/977/1*LOQV1DNlNGoG71jFv7vTXQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/763/1*KpB5fQkD8RbO93WBnjqHIw.png" /></figure><p>The output:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/440/1*2ikYKyNif0DkMBXGbe2gzg.png" /></figure><p><strong>2.</strong> <strong>Inheritance — Sharing Properties</strong></p><p>Inheritance allows one class to reuse the properties and behaviors of another. It’s like <strong>your sister borrowing your clothes</strong> — she can use them without having to buy new ones.</p><p>In programming, a child class inherits attributes and methods from a parent class, reducing redundancy and improving code reusability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/1*F3dkvsmvWw5HHSWd08btxQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/455/1*EbmnJ3fNkJPrqKILRoLcPQ.png" /></figure><p>The Output :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/567/1*ebwCA1q_mNRVs_vCz99ePQ.png" /></figure><p><strong>3.</strong> <strong>Polymorphism — One Object, Multiple Behaviors</strong></p><p>Polymorphism means <strong>one thing can have multiple uses</strong>. Think of a <strong>smartwatch</strong> — it’s not just for checking the time; you can also make calls, track fitness, and receive notifications.</p><p>In programming, polymorphism allows the same method to behave differently based on the object using it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/587/1*WcUyYyH_MaBuXTYfBSDy2A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/585/1*q2RWOctmJW5nLMuBYHzKhg.png" /></figure><p>The Output :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/428/1*NzZETGgUttiZaqDwG_JhXQ.png" /></figure><p>I. Compile-time Polymorphism (Method Overloading)</p><p>This occurs <strong>when multiple methods have the same name but different parameters</strong> (number, type, or order).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/611/1*1SA2dIxHu7d8DoQHGXhXfw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/1*wa5Nr4n6vTDgDHyw5mKHYw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/726/1*HysBEjYiGJxElSZvobu0YA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/467/1*T-1J1eC3-YEq_qgk0dBJzA.png" /></figure><p><strong>4.</strong> <strong>Abstraction — Hiding Unnecessary Details</strong></p><p>Abstraction means <strong>showing only what’s necessary and hiding complex details</strong>. When you <strong>drive a car, you don’t need to know how the engine works</strong> — you just press the accelerator, and it moves.</p><p>In programming, abstraction hides implementation details and exposes only essential functionalities, making the system easier to use.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/715/1*OV4sZldy0IPPDYGGPaltgg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/430/1*lI9m2u2QUy5Fx3do1NGaVQ.png" /></figure><p>The OutPut:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/691/1*ByAcyMIThknmwK-sfZqc6A.png" /></figure><h3>Key Takeaways from OOP</h3><p><strong>01. Encapsulation (Data Hiding &amp; Protection)</strong></p><ul><li>Keeps data <strong>safe</strong> by <strong>restricting direct access</strong>.</li><li>Use <strong>private fields</strong> and <strong>public properties (getters &amp; setters)</strong>.</li><li>Example: A <strong>bank account balance</strong> should not be directly modified.</li></ul><p>02. <strong>Inheritance (Code Reusability)</strong></p><ul><li>Allows a <strong>child class</strong> to <strong>inherit</strong> properties and methods from a <strong>parent class</strong>.</li><li>Example: A <strong>PremiumAccount</strong> can inherit features from a <strong>BankAccount</strong>.</li></ul><p><strong>03. Polymorphism (One Interface, Many Forms)</strong></p><ul><li>Allows a single method or function to work differently based on the object.</li><li>Example: A <strong>Smartwatch</strong> can <strong>show time</strong>, <strong>make calls</strong>, and <strong>track fitness</strong>.</li></ul><p>04. <strong>Abstraction (Hiding Complexity &amp; Showing Essentials)</strong></p><ul><li>Hides <strong>unnecessary details</strong> and <strong>only exposes relevant features</strong>.</li><li>Example: When <strong>driving a car</strong>, you don’t need to understand the <strong>engine’s inner workings</strong>.</li></ul><h3>Why Should Use OOP?</h3><p>✔ <strong>Better Code Organization</strong> — Keeps related code together.<br>✔ <strong>Easier Maintenance</strong> — Changes in one part do not affect others.<br>✔ <strong>Reusability</strong> — Avoids code duplication using inheritance.<br>✔ <strong>Security</strong> — Protects data with encapsulation.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=209b4a4b83bf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Angular Router]]></title>
            <link>https://medium.com/@thenujasatheeskumar/angular-router-1978cabd40fd?source=rss-343de7f46df3------2</link>
            <guid isPermaLink="false">https://medium.com/p/1978cabd40fd</guid>
            <dc:creator><![CDATA[Thenuja.satheeskumar]]></dc:creator>
            <pubDate>Mon, 17 Feb 2025 10:05:01 GMT</pubDate>
            <atom:updated>2025-02-17T10:05:01.094Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Angular Router for Standalone Angular Projects (Without NgModules)</strong></p><p>Angular Router is a powerful module that allows navigation between different views or pages in an Angular application</p><p>If you created your project using ng new my-app, Angular Router is already included. Otherwise, install it using:</p><p>&gt;&gt; ng add <a href="http://twitter.com/angular/router">@angular/router</a></p><p>Define Routes in main.ts</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/706/1*hvkUaz_c0wOy489H0Nv4uw.png" /></figure><p>Add &lt;router-outlet&gt; in app.component.html</p><p>This tells Angular where to display routed components</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/476/1*INNP8TkX3_NrxuGm5xYWVg.png" /></figure><p>Navigate Programmatically</p><p>Instead of &lt;a href=&quot;&quot;&gt;, use routerLink</p><p>&gt;&gt; &lt;a routerLink=”/about”&gt;Go to About&lt;/a&gt;</p><p>In TypeScript:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/530/1*14l98oUcmJ4VYmijPqNiNw.png" /></figure><p>Add Route Parameters (Dynamic Routing)</p><p>Define a dynamic route:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/652/1*z6Z62NxQcK7zW076dcRfRA.png" /></figure><p>Retrieve the parameter in ProfileComponent:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/658/1*Mkifbh91z-aUCgYSbYBMYQ.png" /></figure><p><strong>Protect Routes with Route Guards</strong></p><p>&gt;&gt; ng generate guard auth</p><p>Modify auth.guard.ts:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/767/1*gVKFAiewShPjJVjgl4I56w.png" /></figure><p>Apply the guard in main.ts:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/806/1*r6FyvyC5pCghDHjhvWuE7w.png" /></figure><h3>Understanding Angular Router in a Standalone Angular Project</h3><p>In a <strong>standalone Angular project</strong>, routing works without NgModule, making it simpler and more efficient. Here’s the flow:</p><ol><li><strong>Install Angular Router</strong> — Add router support to your project.</li><li><strong>Create Standalone Components</strong> — Generate components that will be displayed based on the route.</li><li><strong>Define Routes</strong> — Set up route configurations in main.ts, specifying which component should load for each path.</li><li><strong>Add </strong><strong>&lt;router-outlet&gt;</strong> – Place it in your main component’s template to display routed views.</li><li><strong>Navigation</strong> — Use routerLink for template-based navigation or navigate() in TypeScript.</li><li><strong>Handle Dynamic Parameters</strong> — Extract parameters from the URL to customize the displayed content.</li><li><strong>Protect Routes with Guards</strong> — Restrict access to certain pages using authentication guards.</li></ol><p>With this approach, Angular’s routing becomes <strong>lightweight, modular, and easy to manage</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1978cabd40fd" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>