<?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 Dinusha N Bandara on Medium]]></title>
        <description><![CDATA[Stories by Dinusha N Bandara on Medium]]></description>
        <link>https://medium.com/@dinushaneranjana81?source=rss-b5aa0a896d65------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*6MqgAugbWsTcS3pF8CASaA.jpeg</url>
            <title>Stories by Dinusha N Bandara on Medium</title>
            <link>https://medium.com/@dinushaneranjana81?source=rss-b5aa0a896d65------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 10:32:25 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dinushaneranjana81/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[Your Degree Is a Starting Point, Not a Destination: Why Passion Should Drive Your Career]]></title>
            <link>https://medium.com/@dinushaneranjana81/your-degree-is-a-starting-point-not-a-destination-why-passion-should-drive-your-career-5b571e4860c9?source=rss-b5aa0a896d65------2</link>
            <guid isPermaLink="false">https://medium.com/p/5b571e4860c9</guid>
            <dc:creator><![CDATA[Dinusha N Bandara]]></dc:creator>
            <pubDate>Mon, 10 Nov 2025 05:09:24 GMT</pubDate>
            <atom:updated>2025-11-10T05:10:09.442Z</atom:updated>
            <content:encoded><![CDATA[<h4>The Pressure Cooker of Graduation</h4><p>For many of us, graduation feels like being pushed onto a fast-moving train. You have a ticket — your degree — that says “IT,” “Marketing,” “Management &quot;or “Engineering,” and it seems like there’s only one track to follow. The pressure is immense: apply for jobs in your field, secure a position, and start climbing the prescribed ladder. Many graduates send out dozens of applications out of desperation, hoping to land <em>any</em> job that fits their qualifications.</p><p>But what if you don’t want to go where that train is heading? What if your passion lies in a completely different direction?</p><p>The idea that we must pursue a career directly related to our field of study is one of the most limiting beliefs in the professional world. In reality, a significant number of graduates work in jobs unrelated to their degrees. A 2024 report highlighted that over half of four-year college graduates in the U.S. work in jobs where their degrees aren’t required just one year after graduating.[<a href="https://www.google.com/url?sa=E&amp;q=https%3A%2F%2Fvertexaisearch.cloud.google.com%2Fgrounding-api-redirect%2FAUZIYQEULHwhq5Piz0P4PqW2l_lIcPfgqRYr0N0xZIpVvNv8W8xPsLp_9hmNTtLrVyf2Zsyuc3EYi3d0jtwj1QGhhxriJm2r4tT3Zydiosc0Mi6dsrxjSO5FEmWKLSYkDs04-PjIgyXtT-_zd5vIvXBU9EKp5dnPwaU775xreAmiATrUbSesmQSJUBiWnP9e76ZfrOJUufmR6g09pxubPyMVcrQ08NlCLMoghI5Lhxz9">1</a>] This isn’t a sign of failure; it’s a sign that skills and interests are more fluid than we think.</p><h4>Passion: The Ultimate Career Compass</h4><p>Think of your degree as your initial training, not your life sentence. It equipped you with critical thinking, problem-solving, and discipline. Now, your passion should be the compass that guides where you apply those skills.</p><p>When you are genuinely passionate about your work, it ignites a different kind of drive.[<a href="https://www.google.com/url?sa=E&amp;q=https%3A%2F%2Fvertexaisearch.cloud.google.com%2Fgrounding-api-redirect%2FAUZIYQHM-EKESXVJtVnyFajszCHsm4w-g2Hun87awJJEe-0hGDpajnlcL54XtmHkuxPQDCFyvTHFsGKKeA-c01DsXTLHU1uhg2ZgiYJV41c-J2SElryI-TxTVSv-SGA7dcHbUkYcYpd-pVfwsrqw-19HFkc44vwS9stO">2</a>][<a href="https://www.google.com/url?sa=E&amp;q=https%3A%2F%2Fvertexaisearch.cloud.google.com%2Fgrounding-api-redirect%2FAUZIYQGrLFX8F2Av2LFdOAAtZEeI4bafh7Db4SxQJIstE16lA5rKRgpepp5w_nogw7KGmLUnhNV5H7-OzNQtmv9fRFqdGTH9v3VZh0cuL0jn_j7-P7GxWKdJC0l4sPLRBEPzRiunsCthHiK3kaq0AJsTyuk0pVzXIMaOimW7-211W3z3jZ1xE6Gk0YPf0h-g1jKhN_aPIClXwqgm">3</a>] This enthusiasm helps you overcome challenges and pushes you to continuously learn and improve.[<a href="https://www.google.com/url?sa=E&amp;q=https%3A%2F%2Fvertexaisearch.cloud.google.com%2Fgrounding-api-redirect%2FAUZIYQGc4pmRCK6HJmlLQBnD4LwA_SS5BMx8RQq7n1bd2Qq5dh_sQsUEzAdqlLhWh6-pUvThqSI2pdmWfdpNMasmJNNtmQdmJ2r6Z3n6yW95tMnlEdRTuJeWeo7k5FqT7-kHFx4IfdsNs1PQK0nusk49DEOX9j8ulaK5yCtH3g%3D%3D">4</a>] For example, an IT graduate with a passion for human resources will be more motivated to learn about talent acquisition and employee relations than someone who is just there for a paycheck. A person who loves marketing will naturally excel at understanding customer psychology, regardless of their academic background.</p><p>This isn’t just a feel-good idea; it has practical benefits:</p><ul><li><strong>Increased Job Satisfaction:</strong> Aligning your career with your passions leads to greater fulfillment and happiness both in and out of the office.[<a href="https://www.google.com/url?sa=E&amp;q=https%3A%2F%2Fvertexaisearch.cloud.google.com%2Fgrounding-api-redirect%2FAUZIYQEBQYl7LFC3lWH6iEnjn2qGQITFdx8pg4-M1oIFZEsKhCITK2_3fECprhJVWLk1Ilw4Z2CS2b06Xm29TvaUA36dQFE199VZ1O9qxtnWFxgHLKd9JJKAtGUJgRE0qAQGsT2HCCDlLcSaVd7fGpA0nlslMaxiG5Rds0bwL5YlfFRzWhJbm7OuwYWkPxzOGFNj8nLiqVobpNKqJg%3D%3D">5</a>][<a href="https://www.google.com/url?sa=E&amp;q=https%3A%2F%2Fvertexaisearch.cloud.google.com%2Fgrounding-api-redirect%2FAUZIYQGCRd8rtMEIbY49Buw-gV-pdUGT7vxsTpj_oQkn-Dfe_oGQMg-BT8X3ROvi8hv9YkL6gUn8Awgtm-JmcVW5EcTgXQfd6TlMsWA-x2QaTQqfxCnTRRyZ19fL1Vi0XAzC2QsneoOoy_WuNuAhCqpXovXzq10lQErDLEvGePmGIdc%3D">6</a>]</li><li><strong>Higher Performance:</strong> People who are passionate about what they do are more engaged, innovative, and productive.[<a href="https://www.google.com/url?sa=E&amp;q=https%3A%2F%2Fvertexaisearch.cloud.google.com%2Fgrounding-api-redirect%2FAUZIYQE8UbHkPU0a8Sn8JbxXI9y-6ugwhAIvL7ljLj5gMGzaR64f4nq3pyqUxcxg0tZu3sEgXLF3_khdRBbKuRRJchM0vTwFBn1sOGY7Ax6gCkJcZ7ArAvR__fICa8YwXW69B3uv7UB1VyfhIcEAy66eV7aMAGX5Kpgombe7IiFoy5iQyB8FD1eSrJF1ezSfd98bV8UTBSyBd5gAnKSUZL2caTgpv-nOJmnJEje_DOg%3D">7</a>]</li><li><strong>Resilience:</strong> When you love what you do, you’re more likely to persevere through the tough times that every career faces.[<a href="https://www.google.com/url?sa=E&amp;q=https%3A%2F%2Fvertexaisearch.cloud.google.com%2Fgrounding-api-redirect%2FAUZIYQGc4pmRCK6HJmlLQBnD4LwA_SS5BMx8RQq7n1bd2Qq5dh_sQsUEzAdqlLhWh6-pUvThqSI2pdmWfdpNMasmJNNtmQdmJ2r6Z3n6yW95tMnlEdRTuJeWeo7k5FqT7-kHFx4IfdsNs1PQK0nusk49DEOX9j8ulaK5yCtH3g%3D%3D">4</a>]</li></ul><h4>My Story: IT Degree, Management Ambition</h4><p>I’m a perfect example of this mindset. I hold a degree in Information Technology, and while I value the analytical skills it gave me, my true professional interest lies in the banking and management sectors. For a long time, I felt I had to suppress one interest to pursue the other.</p><p>But I realized my IT skills — problem-solving, logical thinking, and data analysis — are incredibly valuable in a management role. The key is to build on that foundation with skills specific to my desired field. Instead of applying for software development roles that don’t excite me, I am focusing my energy on opportunities where I can combine my technical background with my passion for leadership and management &amp; finance.</p><h4>How to Follow Your Passion, Not Just Your Diploma</h4><p>It’s one thing to say “follow your passion,” but how do you do it?</p><ol><li><strong>Identify Your True Interests:</strong> Forget what your degree says for a moment. What do you enjoy doing? What topics do you love learning about? What problems do you want to solve?</li><li><strong>Build Relevant Skills:</strong> Once you’ve identified your desired field, find ways to build experience. This could be through online courses, volunteering, freelance projects, or internships.</li><li><strong>Reframe Your Narrative:</strong> In interviews and on your resume, don’t hide your different background. Frame it as a unique strength. Explain how your degree gives you a different perspective and a valuable, transferable skillset.</li></ol><p>Your career is a long journey. Don’t start it by walking down a path you don’t want to be on. Don’t apply for a job just because it seems like the “right thing to do.” Apply for the job you are genuinely excited about. Choose the field that sparks your curiosity.</p><p>Your degree opened a door, but it’s up to you to decide which room you want to walk into. Choose wisely, choose passionately, and build a career that truly belongs to you.</p><p>Sources help</p><ol><li><a href="https://www.google.com/url?sa=E&amp;q=https%3A%2F%2Fvertexaisearch.cloud.google.com%2Fgrounding-api-redirect%2FAUZIYQEULHwhq5Piz0P4PqW2l_lIcPfgqRYr0N0xZIpVvNv8W8xPsLp_9hmNTtLrVyf2Zsyuc3EYi3d0jtwj1QGhhxriJm2r4tT3Zydiosc0Mi6dsrxjSO5FEmWKLSYkDs04-PjIgyXtT-_zd5vIvXBU9EKp5dnPwaU775xreAmiATrUbSesmQSJUBiWnP9e76ZfrOJUufmR6g09pxubPyMVcrQ08NlCLMoghI5Lhxz9">erudera.com</a></li><li><a href="https://www.google.com/url?sa=E&amp;q=https%3A%2F%2Fvertexaisearch.cloud.google.com%2Fgrounding-api-redirect%2FAUZIYQHM-EKESXVJtVnyFajszCHsm4w-g2Hun87awJJEe-0hGDpajnlcL54XtmHkuxPQDCFyvTHFsGKKeA-c01DsXTLHU1uhg2ZgiYJV41c-J2SElryI-TxTVSv-SGA7dcHbUkYcYpd-pVfwsrqw-19HFkc44vwS9stO">vunela.com</a></li><li><a href="https://www.google.com/url?sa=E&amp;q=https%3A%2F%2Fvertexaisearch.cloud.google.com%2Fgrounding-api-redirect%2FAUZIYQGrLFX8F2Av2LFdOAAtZEeI4bafh7Db4SxQJIstE16lA5rKRgpepp5w_nogw7KGmLUnhNV5H7-OzNQtmv9fRFqdGTH9v3VZh0cuL0jn_j7-P7GxWKdJC0l4sPLRBEPzRiunsCthHiK3kaq0AJsTyuk0pVzXIMaOimW7-211W3z3jZ1xE6Gk0YPf0h-g1jKhN_aPIClXwqgm">pcitraining.edu</a></li><li><a href="https://www.google.com/url?sa=E&amp;q=https%3A%2F%2Fvertexaisearch.cloud.google.com%2Fgrounding-api-redirect%2FAUZIYQGc4pmRCK6HJmlLQBnD4LwA_SS5BMx8RQq7n1bd2Qq5dh_sQsUEzAdqlLhWh6-pUvThqSI2pdmWfdpNMasmJNNtmQdmJ2r6Z3n6yW95tMnlEdRTuJeWeo7k5FqT7-kHFx4IfdsNs1PQK0nusk49DEOX9j8ulaK5yCtH3g%3D%3D">investopedia.com</a></li><li><a href="https://www.google.com/url?sa=E&amp;q=https%3A%2F%2Fvertexaisearch.cloud.google.com%2Fgrounding-api-redirect%2FAUZIYQEBQYl7LFC3lWH6iEnjn2qGQITFdx8pg4-M1oIFZEsKhCITK2_3fECprhJVWLk1Ilw4Z2CS2b06Xm29TvaUA36dQFE199VZ1O9qxtnWFxgHLKd9JJKAtGUJgRE0qAQGsT2HCCDlLcSaVd7fGpA0nlslMaxiG5Rds0bwL5YlfFRzWhJbm7OuwYWkPxzOGFNj8nLiqVobpNKqJg%3D%3D">careerguidanceadvice.com</a></li><li><a href="https://www.google.com/url?sa=E&amp;q=https%3A%2F%2Fvertexaisearch.cloud.google.com%2Fgrounding-api-redirect%2FAUZIYQGCRd8rtMEIbY49Buw-gV-pdUGT7vxsTpj_oQkn-Dfe_oGQMg-BT8X3ROvi8hv9YkL6gUn8Awgtm-JmcVW5EcTgXQfd6TlMsWA-x2QaTQqfxCnTRRyZ19fL1Vi0XAzC2QsneoOoy_WuNuAhCqpXovXzq10lQErDLEvGePmGIdc%3D">flexjobs.com</a></li><li><a href="https://www.google.com/url?sa=E&amp;q=https%3A%2F%2Fvertexaisearch.cloud.google.com%2Fgrounding-api-redirect%2FAUZIYQE8UbHkPU0a8Sn8JbxXI9y-6ugwhAIvL7ljLj5gMGzaR64f4nq3pyqUxcxg0tZu3sEgXLF3_khdRBbKuRRJchM0vTwFBn1sOGY7Ax6gCkJcZ7ArAvR__fICa8YwXW69B3uv7UB1VyfhIcEAy66eV7aMAGX5Kpgombe7IiFoy5iQyB8FD1eSrJF1ezSfd98bV8UTBSyBd5gAnKSUZL2caTgpv-nOJmnJEje_DOg%3D">forbes.com</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5b571e4860c9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bridging Technology and Compliance: My Journey from IT to HR and Beyond]]></title>
            <link>https://medium.com/@dinushaneranjana81/bridging-technology-and-compliance-my-journey-from-it-to-hr-and-beyond-a9ebf40801d1?source=rss-b5aa0a896d65------2</link>
            <guid isPermaLink="false">https://medium.com/p/a9ebf40801d1</guid>
            <dc:creator><![CDATA[Dinusha N Bandara]]></dc:creator>
            <pubDate>Fri, 07 Nov 2025 04:40:39 GMT</pubDate>
            <atom:updated>2025-11-07T04:40:39.705Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GFPedk08yEOArcIwn3nW9A.jpeg" /></figure><p>I am a Bachelor of Information and Communication Technology (Honor&#39;s) graduate with a deep passion for technology, systems thinking, and continuous learning. My career has been a journey of connecting the dots between technical precision and organizational compliance — two areas that, when aligned, drive real efficiency and integrity within any business.</p><h3>💻 The Beginning: Building a Foundation in IT</h3><p>My professional journey began as a <strong>Support and Implementation Engineer</strong> at <strong><em>Soft Gallery, Ja-Ela</em></strong>. This role gave me the opportunity to dive into the world of software deployment, client support, and system optimization.</p><p>I worked closely with HR systems and developed custom scenarios to address unique business challenges. Whether it was crafting JSON configurations, managing databases (MySQL, SQL Server), or collaborating with cross-functional teams, I learned how technology could be shaped to fit the exact needs of a business — not the other way around.</p><p>One of the most rewarding aspects of this role was providing <strong>end-to-end deployment support</strong> and <strong>client training</strong>. Seeing a system I helped configure being successfully used to improve someone’s workflow was a powerful motivator to keep growing in this field.</p><h3>🧩 Transitioning into Compliance</h3><p>Later, I joined <strong>MAS Holdings</strong> as an <strong>HR &amp; Compliance Intern</strong> at <em>MAS Intimates Casualline</em>. This experience expanded my perspective on how technology and compliance intersect.</p><p>At MAS, I conducted internal audits and risk assessments, ensuring that operations aligned with both <strong>local regulations</strong> and <strong>international standards</strong>. I also supported compliance initiatives for new constructions and plant expansions — a process that required deep coordination and meticulous documentation.</p><p>Organizing safety meetings, training sessions on fire safety, first aid, PPE usage, and other campaigns gave me a new appreciation for how compliance isn’t just about ticking boxes — it’s about protecting people and fostering a culture of responsibility.</p><h3>🚀 Where I Am Now</h3><p>Today, I work as a <strong>Project Coordinator</strong> in an IT company — a role that perfectly combines my technical background and compliance mindset. Every project demands both efficiency and accountability, and I’ve found that my past experiences in both IT and HR compliance help me navigate challenges with balance and clarity.</p><p>Beyond work, I’m also an active sportsperson. Sports have taught me the value of <strong>discipline, teamwork, and perseverance</strong> — traits that continue to shape how I approach my career and personal growth.</p><h3>Advantages of Combining IT and Compliance</h3><p>In today’s digital-driven world, the connection between <strong>Information Technology</strong> and <strong>Compliance</strong> is stronger than ever. Organizations rely on technology to manage data, automate processes, and ensure transparency — all of which directly support compliance goals.</p><p>Here are some key advantages of integrating both fields:</p><blockquote><strong><em>Improved Data Accuracy and Transparency</em></strong><em> — IT systems ensure accurate, traceable data collection and reporting, reducing errors and increasing accountability.</em></blockquote><blockquote><strong><em>Efficient Compliance Monitoring</em></strong><em> — Real-time dashboards and reports help identify risks and ensure compliance standards are met consistently.</em></blockquote><blockquote><strong><em>Better Risk Management</em></strong><em> — Data analytics and automation help predict and prevent compliance breaches before they occur.</em></blockquote><blockquote><strong><em>Enhanced Security and Data Protection</em></strong><em> — IT safeguards sensitive data while compliance ensures alignment with privacy and legal standards.</em></blockquote><blockquote><strong><em>Streamlined Processes and Cost Savings</em></strong><em> — Automation reduces manual work and increases operational efficiency.</em></blockquote><blockquote><strong><em>Stronger Organizational Reputation</em></strong><em> — Integrating IT and compliance reflects reliability, transparency, and ethical operations.</em></blockquote><blockquote><strong><em>Career Growth and Flexibility</em></strong><em> — Professionals skilled in both areas are highly sought after, opening diverse global career paths.</em></blockquote><h3>Looking Ahead</h3><p>My journey so far has shown me that the most impactful professionals are those who can <strong>connect technology with people</strong>, and <strong>efficiency with ethics</strong>. As I continue to grow, my goal is to strengthen this bridge — using my skills to create systems that are not only smart but also sustainable and compliant.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a9ebf40801d1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Types Of Virtualizations]]></title>
            <link>https://medium.com/@dinushaneranjana81/types-of-virtualizations-24f852e2f320?source=rss-b5aa0a896d65------2</link>
            <guid isPermaLink="false">https://medium.com/p/24f852e2f320</guid>
            <category><![CDATA[virtualization-technology]]></category>
            <category><![CDATA[visualization]]></category>
            <category><![CDATA[education]]></category>
            <dc:creator><![CDATA[Dinusha N Bandara]]></dc:creator>
            <pubDate>Fri, 13 Oct 2023 07:18:55 GMT</pubDate>
            <atom:updated>2023-10-20T18:20:20.861Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/289/1*n9vHaMBBVRbMQRKruGdyhA.jpeg" /></figure><h4><strong>What Is Virtualization</strong></h4><p><strong>Virtualization</strong> is a process that allows a computer to share its hardware resources with multiple digitally separated environments. Each virtualized environment runs within its allocated resources, such as memory, processing power, and storage.</p><p><strong>Virtualization</strong> is a technology that allows you to create and run multiple virtual instances of a computer system or operating system on a single physical machine. This process involves abstracting the hardware and creating a virtual representation of it, enabling multiple operating systems and applications to run independently on a single physical server or computer.</p><p>Virtualization provides benefits such as increased hardware utilization, cost savings, improved efficiency, enhanced disaster recovery, simplified management, and easier testing and development. It plays a crucial role in modern data centers and computing environments by maximizing resource utilization and optimizing performance.</p><h3>Why is virtualization important</h3><p>By using virtualization, you can interact with any hardware resource with greater flexibility. Physical servers consume electricity, take up storage space, and need maintenance. You are often limited by physical proximity and network design if you want to access them. Virtualization removes all these limitations by abstracting physical hardware functionality into software. You can manage, maintain, and use your hardware infrastructure like an application on the web.</p><h4>There are several types of virtualization</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/302/1*T8QzncWNWCKywj-I-3r-qQ.png" /></figure><p>Virtualization can be categorized into several types based on what is being virtualized and how it is being used. Here are the main types of virtualization:</p><p><strong>1. Server Virtualization:</strong></p><p><strong>2. Desktop Virtualization:</strong></p><p><strong>3. Application Virtualization:</strong></p><p><strong>4. Network Virtualization:</strong></p><p><strong>5. Storage Virtualization:</strong></p><p><strong>6. Data Virtualization:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/395/1*Mx6MABMkYn3_PN9vnqS_MA.png" /></figure><h3><strong>Server Virtualization</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/306/1*vuI6Up8xPWAXys_pHdbOOg.png" /></figure><p>Server virtualization involves partitioning a physical server into multiple isolated virtual servers. Each virtual server can run its own operating system and applications, independently of the others. This maximizes the utilization of server resources and allows for easier management and scaling.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/257/1*Spvpg7vdLCXJakcdV8wjPA.png" /></figure><p>Server virtualization is a process that creates and abstracts multiple virtual instances on a single server. Server virtualization also masks server resources, including the number and identity of individual physical servers, processors and operating systems</p><h4>Why is server virtualization important</h4><p>Server virtualization is important for a variety of reasons, and its adoption has transformed the way businesses manage their IT infrastructure. Here are some key reasons highlighting its importance:</p><blockquote>1. Improved Resource Utilization and Efficiency:</blockquote><ul><li>Server virtualization allows multiple virtual machines to run on a single physical server, effectively utilizing the full capacity of the hardware. This consolidation of resources optimizes server efficiency and reduces underutilized hardware.</li></ul><blockquote>2. Cost Savings:</blockquote><ul><li>By consolidating multiple servers into a smaller number of physical machines, organizations can significantly reduce hardware, maintenance, and operational costs, leading to substantial cost savings in terms of hardware procurement, power consumption, cooling, and space.</li></ul><blockquote>3. Flexibility and Scalability:</blockquote><ul><li>Virtualization enables easy scaling of resources to meet changing demands. New virtual machines can be provisioned quickly, and resources can be dynamically allocated or de-allocated based on workload requirements.</li></ul><blockquote>4. Enhanced Disaster Recovery and High Availability:</blockquote><ul><li>Virtualization allows for rapid backup, replication, and recovery of virtual machines, ensuring business continuity and minimizing downtime in case of hardware failures or disasters. Live migration capabilities enhance high availability by enabling the movement of VMs between physical servers without downtime.</li></ul><blockquote>5. Simplified Management and Administration:</blockquote><ul><li>Virtualization provides centralized management tools that simplify the administration of the entire IT infrastructure. IT administrators can manage and monitor multiple VMs from a single interface, streamlining operations and improving efficiency.</li></ul><blockquote>6. Isolation and Security:</blockquote><ul><li>Virtualization enables the isolation of applications and workloads, enhancing security by preventing one virtual machine from affecting others. Security policies can be implemented at the virtualization layer to further protect data and applications.</li></ul><p>In summary, server virtualization offers a host of benefits, including cost efficiency, resource optimization, agility, improved disaster recovery, and a more streamlined and secure IT infrastructure. It has become an indispensable tool for modern organizations striving to enhance operational efficiency and meet evolving business needs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/330/1*3qjPUicA9yky26PH6Wg2Ow.png" /></figure><h3><strong>Desktop Virtualization</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/233/1*90gaz0iGxN-DbRhFbF3oMA.jpeg" /></figure><p>Desktop virtualization, also known as VDI (Virtual Desktop Infrastructure), is a technology that separates a user’s desktop environment and applications from the physical device and centralizes them in a data center. Users can access their virtual desktops and applications from various devices, including PCs, laptops, tablets, and thin clients, over a network connection.</p><p><strong>What is desktop virtualization and its benefits</strong></p><p>Desktop virtualization is one of the best ways to improve resource utilization and secure your organization’s assets while reducing costs. The tool offers other benefits like centralized management, workplace flexibility, reduced downtime, and improved efficiency and productivity.</p><p><strong>Who uses desktop virtualization</strong></p><p>See how organizations across industries use virtual desktops to address a range of challenges.</p><ul><li>Insurance.</li><li>BPOs.</li><li>Financial Services.</li><li>Healthcare.</li><li>Legal Services.</li><li>Service Providers.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/263/1*6X27V58tOQW5exVwIPAN9Q.jpeg" /></figure><p><strong>What is a real life example of desktop virtualization</strong></p><p>One of the most common examples of using desktop virtualization is implementing it for the mega-popular hybrid work policy called Bring your own device (BYOD), which is about letting employees use any devices, not just corporate-provided ones</p><p>Here are the key components and aspects of desktop virtualization:</p><blockquote>1. Virtual Desktops (VDs):</blockquote><p>Virtual desktops are instances of an operating system and associated applications running on a centralized server or data center. Each user is provided with a unique, personalized virtual desktop experience.</p><blockquote>2. Hypervisor or VDI Broker:</blockquote><p>A hypervisor or VDI broker manages and allocates virtual desktops to users. It ensures the efficient utilization of server resources and handles connections between users and their respective virtual desktops.</p><blockquote>3. Types of Desktop Virtualization:</blockquote><ul><li>Hosted Virtual Desktops (HVDs): The entire desktop environment is hosted and managed on a server or cloud infrastructure.</li><li>Virtualized Applications (Application Virtualization): Individual applications are virtualized and delivered to the user’s device without presenting a full desktop interface.</li></ul><blockquote>4. Pooling and Personalization:</blockquote><p>Desktop virtualization allows for pooled or shared virtual desktops, where multiple users access a common virtual desktop. Alternatively, personalized virtual desktops provide each user with a dedicated, customized desktop experience.</p><blockquote>5. Remote Display Protocols:</blockquote><p>Remote display protocols enable the transmission of the virtual desktop’s display and user interactions over a network to the user’s endpoint device. Examples include VMware PCoIP, Microsoft Remote Desktop Protocol (RDP), and Citrix HDX.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/318/1*uAiXYwlQ_zgSkCGkUAidZQ.png" /></figure><h3><strong>Application Virtualization</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/279/1*NLm9CALtLRozGAIQpFeG0w.png" /></figure><p>Application virtualization is a technology that allows applications to be isolated from the underlying operating system and hardware, enabling them to run in an encapsulated environment, separate from other applications and the host system. This approach abstracts the application and its dependencies, allowing it to be executed on various systems without traditional installation processes.</p><p>Application virtualization separates the OS, and the hardware that it runs on, from the app. This separation makes it possible to run applications from data center hardware, rather than having to have individual instances stored on and run from individual devices.</p><h4>Why is application virtualization important</h4><p>With application virtualization, all apps can be accessed from all workstations. This means that employees won’t need to access a specific machine, or students won’t need to access a specific computer lab, in order to use an application. Users can also work remotely much more easily.</p><h4>What are the two types of application virtualization</h4><p>There are two types of app virtualization: <strong>remote and streaming</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/263/1*jo1r_7QtDP08u4dhrQVEeA.jpeg" /></figure><p>Application virtualization is a technology that allows applications to run in isolated environments separate from the underlying operating system. This isolation helps to eliminate many of the compatibility and conflict issues that can arise when multiple applications share a single OS environment. Here are some key points about application virtualization</p><ol><li><strong>Isolation</strong>: With application virtualization, each application runs in its own virtual environment, isolated from other applications and the underlying operating system. This isolation prevents conflicts that can occur when applications share the same OS.</li><li><strong>Compatibility</strong>: Application virtualization can be used to run older applications on newer operating systems. This is particularly useful when legacy applications are not compatible with the latest OS version.</li><li><strong>Sandboxing</strong>: Applications are sandboxed, meaning they cannot interfere with one another or with the core operating system. This enhances system stability and security.</li><li><strong>Portability</strong>: Virtualized applications are often encapsulated in a single package, making them highly portable. These packages can be moved from one system to another without the need for complex installation or configuration.</li><li><strong>Version Control:</strong> IT administrators can maintain multiple versions of the same application on a single system, allowing users to choose the version they need. This is especially useful for organizations that rely on specific software versions for their operations.</li><li><strong>Security</strong>: Application virtualization can enhance security by isolating potentially vulnerable or risky applications. If a virtualized application is compromised, it has limited access to the system and can be easily removed without affecting the host OS.</li><li><strong>Resource Efficiency</strong>: Virtualized applications consume fewer system resources compared to traditional installations. They use only the resources required for their specific needs, which can lead to more efficient resource allocation.</li><li><strong>Centralized Management:</strong> In enterprise environments, IT administrators can centrally manage and deploy virtualized applications. This simplifies software distribution, updates, and maintenance.</li><li><strong>User Experience:</strong> Virtualized applications provide a consistent user experience, regardless of the underlying OS or system configuration. This is important for organizations that need to maintain a uniform user environment.</li><li><strong>Conflict Resolution:</strong> Application conflicts, which can arise from software dependencies or configurations, are minimized through isolation. This makes it easier to run multiple applications side by side without compatibility issues.</li></ol><p>Popular application virtualization solutions include VMware ThinApp, Microsoft App-V (Application Virtualization), and Citrix XenApp. These solutions use various techniques to create a virtualized environment for applications, such as encapsulating the application and its dependencies, intercepting file system and registry calls, and providing a layer for managing these virtual environments.</p><p>Application virtualization is commonly used in enterprise settings, especially in scenarios where multiple applications need to coexist, be managed centrally, and remain secure and isolated from one another.</p><h3><strong>Network Virtualization</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/318/1*Cd2SDo3P7TZprLZiTQ9dkQ.jpeg" /></figure><p>Network virtualization is a technology that allows you to create multiple virtual network instances on top of a physical network infrastructure. It enables the abstraction of network resources, such as switches, routers, and firewalls, from the underlying hardware, making it possible to run multiple isolated network environments on a single physical network.</p><p><strong>What are network virtualization types</strong></p><p>There are two kinds of network virtualization: external virtualization and internal virtualization. External network virtualization can combine systems physically attached to the same local area network (LAN) into separate virtual local area networks (VLANs), or conversely divide separate LANs into the same VLAN.</p><p><strong>What is network virtualization Cisco</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/285/0*5xNKppBt7U1IFR47" /></figure><p>Virtualization enables new network services to be created and deployed in minutes, instead of in days. These services can be scaled up or down quickly to match demand. Organizations of all sizes can benefit from automation. You can save time, eliminate manual work, and reduce OpEx.</p><p><strong>What is network virtualization and automation</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/308/0*VhcxZBfsW42G0jAf" /></figure><p>Network automation with network virtualization is key to SDN and NFV technologies. It reduces costs and speed up the delivery of network-based services by abstracting configuration information for network services from the physical infrastructure. Thus services may be set up with automated software orchestration tools</p><p><strong>Why is network virtualization important</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/229/0*IuM0rwLlUkxfJ_l1" /></figure><p>Because network virtualization doesn’t require admins to manually configure hardware to instantiate the virtual networks, teams can spin up logical networks more quickly in response to business requirements. This flexibility enables faster service delivery, operational efficiency and improved control.</p><h4>How does network virtualization work</h4><p>Network virtualization abstracts network services from the physical hardware and infrastructure. To do this, a network hypervisor creates an abstraction layer that hosts and supports different virtual networks, according to Stephen J. Bigelow, senior technology editor at TechTarget.</p><p>The abstraction layer provides a simplified representation of the nodes and links making up the virtual networks. The hypervisor is not only responsible for abstraction, but also controls the resources, bandwidth and capacity for each logical network. While the virtual networks share the hypervisor platform, they remain independent of each other and have their own security rules.</p><p>Elements within a virtual network — such as VM workloads — can communicate with each other and with nodes on a separate virtual network using encapsulated host protocols, virtual switches and virtual routers. The messages do not travel through the physical networking devices, which helps reduce latency.</p><p>Network virtualization typically encompasses the following components:</p><ul><li>a network hypervisor;</li><li>controller software;</li><li>host protocols, such as Virtual Extensible LAN (VXLAN);</li><li>virtual switching and routing; and</li><li>management tools.</li></ul><p>Key aspects of network virtualization include:</p><blockquote><strong>Isolation</strong>: Virtual networks are logically isolated from each other, meaning that the traffic and configuration of one virtual network do not affect others. This is essential for security and resource management.</blockquote><blockquote><strong>Resource Pooling</strong>: Network resources, such as bandwidth, can be pooled and allocated dynamically to virtual networks based on their requirements. This optimizes resource utilization.</blockquote><blockquote><strong>Software-Defined Networking (SDN):</strong> Network virtualization often relies on SDN principles, allowing administrators to control and configure networks through software rather than relying on manual configuration of hardware devices</blockquote><blockquote><strong>Overlay Networks</strong>: One common approach to network virtualization is to create overlay networks. In this approach, virtual networks are built on top of the existing physical network, and traffic is encapsulated and tunneled between virtual switches and routers.</blockquote><p>Network virtualization is especially valuable in data centers, cloud computing environments, and other situations where flexibility, resource efficiency, and isolation are important. It can improve the overall agility and efficiency of network operations and is closely related to technologies like virtual LANs (VLANs), virtual private networks (VPNs), and software-defined networking (SDN).</p><h3>Storage Virtualization</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/186/1*QErygKnQAxdYMSSg7WDo7w.jpeg" /></figure><p>Storage virtualization is a technology that abstracts and pools physical storage resources from multiple storage devices into a single virtualized storage layer. This virtualized layer enables more efficient and flexible storage management, making it easier to allocate, manage, and scale storage capacity. Here are key aspects of storage virtualization</p><p><strong>What is storage virtualization</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/228/0*vSFDiKcP86m72Hjz" /></figure><p>Storage virtualization is the pooling of physical storage from multiple storage devices into what appears to be a single storage device — or pool of available storage capacity. A central console manages the storage.</p><p><strong>What is storage virtualization with example</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/159/0*Mv3zvYfRYGeZtkqQ" /></figure><p>In storage virtualization, multiple physical disks are combined into a group and from that group of physical disks, virtual storage or logical storage blocks are assigned to a server for use. The simplest examples of storage virtualization object are LUN’s (Logical unit number), Logical volume (LV), RAID groups, etc.</p><p><strong>What is storage virtualization and types</strong></p><p>The term storage virtualization usually refers to the abstraction of physical storage so it can be presented in a way that differs from reality. For example, multiple physical disks might be presented by the abstraction layer as a single disk rather than as a collection of smaller disks.</p><p><strong>What is the role of storage virtualization</strong></p><p>Storage virtualization separates software from the hardware infrastructure to provide flexibility and scalability of storage resources. More and more companies are adopting this technology because storage virtualization helps them consolidate and manage their scattered data under a single console.</p><p><strong>What are the benefits of storage virtualization</strong></p><p><strong>The key benefits of storage virtualization are as follows:</strong></p><ul><li>Presents better space virtualization and storage options for unorganized data and resources.</li><li>Offers easy management of huge data enabling proper location and compiling.</li><li>Enhances the data backup by enabling snapshots of storage resources.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/321/1*T4hwhgQdK9zyRgw5wThvIg.jpeg" /></figure><p>Storage virtualization is particularly beneficial in large enterprise environments with diverse storage hardware, as it helps streamline storage management, improve resource utilization, enhance data protection, and adapt to changing storage requirements</p><h3><strong>Data Virtualization</strong></h3><p>Data virtualization is an umbrella term used to describe an approach to data management that allows an application to retrieve and manipulate data without requiring technical details about the data. This can include how the data is formatted or where it is physically located.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/274/1*BxYeVmEHJq3bGM3vkfW9AQ.png" /></figure><p><strong>Why is data virtualization used</strong></p><p>Data virtualization enables business users to consume data through reports, dashboards, portals, mobile apps, and Web applications. The Consume layer enables a single point of access and interaction with the underlying data sources, as well as abstracted data views in a standard delivery format.</p><p><strong>Benefits of data virtualization</strong></p><p><strong>Speed-</strong>Data virtualization enables data consumers to access data, wherever it resides (including traditional databases, the cloud, or IoT systems) in seconds.</p><p><strong>Efficiency-</strong>Data virtualization doesn’t replicate data, so enterprises can save on governance and hardware, while enhancing the utilization of server and storage resources.</p><p><strong>Cost savings-</strong>Data virtualization software requires fewer resources, and costs a lot less than building a separate repository for consolidating and storing data.</p><p><strong>Security and governance-</strong>Data virtualization enables a centralized approach to data security and governance, ensuring that all data is consistent, protected, and high-quality.</p><p><strong>Access-</strong>Data virtualization allows for a self-service approach to accessing data, enabling quick access to data by any authorized data consumer</p><p><strong>Analytics-</strong>Data virtualization lets business users apply visualized, predictive, and streaming analytics across many different data sources</p><h3>Benefits of virtualization</h3><p><strong>Server Consolidation </strong>Virtualization allows multiple virtual machines (VMs) to run on a single physical server. This reduces the number of physical servers needed, leading to cost savings in terms of hardware, power, and cooling.</p><p><strong>Resource Optimization</strong> Virtualization optimizes resource utilization by dynamically allocating resources to VMs based on demand. This results in improved efficiency and reduced resource wastage.</p><p><strong>Cost Savings</strong> Consolidation and resource optimization lead to significant cost savings in terms of hardware, data center space, power consumption, and maintenance.</p><p><strong>Flexibility and Scalability</strong> Virtualization provides the flexibility to scale resources up or down as needed, making it easier to adapt to changing workloads and business requirements.</p><p><strong>Improved Disaster Recovery</strong> Virtual machine snapshots and replication make disaster recovery planning and execution more efficient. VMs can be easily backed up, moved, and restored to different physical hosts in the event of a failure.</p><p><strong>Isolation and Security</strong> Virtualization provides isolation between virtual machines, enhancing security by preventing one VM from affecting others. Security policies can be enforced at the virtualization layer.</p><p><strong>Energy Efficiency</strong> By consolidating physical servers, virtualization reduces power consumption and heat generation, contributing to a more energy-efficient data center.</p><p><strong>Space Savings </strong>Fewer physical servers mean reduced rack space requirements, which can be particularly valuable in data centers with limited space.</p><p><strong>Consistency</strong> Virtualization helps ensure a consistent computing environment, making it easier to manage and troubleshoot issues.</p><p>I<strong>mproved Backup and Recovery</strong> Virtualization simplifies backup processes, and VMs can be restored more quickly than physical servers.</p><p><strong>Conclusion</strong></p><p>In conclusion, virtualization is a transformative technology that has revolutionized the way IT resources are managed, leading to numerous benefits across various aspects of technology infrastructure and management. Whether it’s server virtualization, network virtualization, application virtualization, or storage virtualization, this approach offers a multitude of advantages for businesses and organizations:</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=24f852e2f320" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Software design Pattern]]></title>
            <link>https://medium.com/@dinushaneranjana81/software-design-pattern-9208aaf71e03?source=rss-b5aa0a896d65------2</link>
            <guid isPermaLink="false">https://medium.com/p/9208aaf71e03</guid>
            <dc:creator><![CDATA[Dinusha N Bandara]]></dc:creator>
            <pubDate>Mon, 28 Aug 2023 18:33:36 GMT</pubDate>
            <atom:updated>2023-08-28T18:33:36.055Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/327/1*3wqoWzE-S-v7aL8vOsXgxA.jpeg" /></figure><h3><strong>Introduction to Software Design Patterns</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/310/1*zuAEhhQwAkJw5rKQDVI3fg.jpeg" /></figure><p>In the world of software development, where complexity and innovation often dance hand in hand, there arises a timeless need for structure and order. Just as a masterful weaver crafts intricate tapestries from a multitude of threads, software engineers wield a toolkit of design patterns to create elegant, efficient, and maintainable code.</p><p>Imagine embarking on a journey where every step taken, every challenge encountered, is met with a solution that has been refined and proven over time. This is the essence of software design patterns — a collection of battle-tested blueprints that empower developers to address recurring problems in a consistent and effective manner.</p><h4>Unraveling the Mystery of Patterns</h4><p>Software design patterns are not mere lines of code, but rather a language that transcends programming languages and platforms. They offer solutions to common design problems, guiding developers through the tumultuous seas of ambiguity. These patterns are like time-honored recipes, handed down through generations of programmers, each one meticulously crafted to encapsulate best practices and wisdom accumulated over decades.</p><h3>What are Design Patterns?</h3><blockquote><em>overview</em></blockquote><p>A Design pattern is a walkthrough of a well-tested approach that can be used to solve a generally occurring and recurring problem in object-oriented software design.</p><p>It helps the developer community to collaborate and develop software with the help of a common vocabulary. There are a total of 23 design patterns that are categorized into 3 groups : creational, structural, and behavioral design patterns.</p><h4>What Are Design Patterns</h4><p>While developing a software solution, various discussions take place to plan and determine the best possible procedure for the product development process. In this process, the group of developers may be unable to come up with a commonly accepted approach to solve a specified real-world problem. Due to differences in their problem-solving approach, software developers provide various unique ways of building object-oriented software applications that solve a particular problem.</p><p>This uniqueness can lead to developer-favored variations in source code that can make the software difficult to distribute, extend, reuse, and manage by fellow developers. Hence, there is a need for standardization in the case of object-oriented software.</p><p>This problem of standardization was solved with the introduction of Design Patterns in 1995 in the <em>Design Patterns: Elements of Reusable Object-Oriented Software</em> book (also called the <strong>Gang of Four</strong>) which was written by Erich Gamma, John Glissades, Ralph Johnson, and Richard Helm.</p><p>The Gang of Four authors observed some commonly occurring problems in object-oriented software design and came up with some descriptive solutions to those recurring problems. These solutions to repeating problems in software design are known as Design Patterns. Each design pattern is a template or a description that provides a way to structure the classes and objects in object-oriented software.</p><p>These design patterns were a result of well-tested and proven object-oriented design techniques that can be used to solve a particular design problem. As a result, the design patterns are considered a standard in object-oriented software design i.e., if you want to build an object-oriented software using best practices, then you should follow the Software Design Patterns.</p><p>A Design Pattern is identified by how it solves an object-oriented problem or issue. For example, the Bridge Pattern eradicates the dependency between the Abstraction and its Implementation by creating an object-composition link (bridge) between them.</p><h3>Types of Design Patterns</h3><blockquote><em>Overview</em></blockquote><p>Before discussing the types of patterns in design, let’s briefly discuss design patterns themselves.</p><p>Essentially, software design patterns are solutions of the design level of a software that are created for repetitive problems that software engineers come across often. Design patterns are not code, but instead are like descriptions on tackling certain software problems and designing a solution. Design patterns are, in layman terms, walkthroughs of <strong>recurring problems</strong> that were worth writing down. They do not suggest a direct solution implementation for the software problem at hand, but are an outline of a structure that could be used as per the needs of the problem.</p><p>Our goal will be to comprehend the usage, and the purpose of each of the design patterns and pick the most suitable one and implement it as a solution to the software problem at hand.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/999/1*r6T6FDZuKJYMmlVttkcP9Q.png" /></figure><h3>Creational Design Patterns</h3><blockquote>Overview</blockquote><p>Creational design patterns are design patterns which focus on creating objects effectively. They bring flexibility to the software design and help in the reusability of existing code. There are mainly 6 types of creational design patterns: Factory Method, Abstract Factory, Singleton, Prototype, Builder and Object Pool pattern.</p><h4>What are Creational Design Patterns</h4><p>A design pattern refers to a generalized, reusable solution to commonly occurring scenarios in software design. Creational design patterns are design patterns that focus on creating objects effectively. In the simplest terms, an object is created by instantiating its corresponding class. But there are some scenarios where the nature of the object changes according to the nature of the problem at hand.</p><p>This is where creational design patterns come to the rescue. Creational design patterns provide object creation mechanisms that reduce the level of complexity in our design. They help in creating objects in a more generalized way that increases flexibility and enables the reuse of existing code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/405/1*SDAnPbnhdNmjGyKyxzm2wQ.gif" /></figure><p>There are 6 types of creational design patterns: Factory Method, Abstract Factory, Singleton, Prototype, Builder, and Object Pool pattern. Let us learn about these in detail in the further subsections.</p><h4>Factory Method Pattern</h4><p>Factory Method creates an instance of several derived classes belonging to a single family of objects. It helps to create objects in a superclass but also allows the subclasses to modify the type of objects that are created. We can hide the existence of classes from the end user using the Factory Method pattern. Usually, a software design starts with a Factory Method which is comparatively simpler and more customizable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7gPIpmMwGRmG3mUSYUirvg.jpeg" /></figure><p>Suppose we go to an ice cream factory and order a chocolate ice cream. When we place an order, the shopkeeper sends the order to the kitchen and we get it in a few minutes when the ice cream is ready. We are not concerned with what happens inside the kitchen and what ingredients are used to make the ice cream. The internal call by the shopkeeper to create a vanilla, chocolate, or strawberry ice cream is hidden from the user.</p><h4>Abstract Factory Pattern</h4><p>Abstract Factory pattern creates an object of several families of classes. It lets us produce families of related objects without specifying their concrete classes. While a Factory Method can produce only one type of object <em>(only icecreams)</em>, an Abstract Factory can produce a family of different kinds of objects <em>(multi-course and multi-cuisine meals)</em>. One generalized factory can consist of multiple specialized factories, each producing a different kind of object.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ztsfKwQ_MeaJyiqx9usThQ.jpeg" /></figure><p>Let’s take an example of a multi-cuisine restaurant that serves Chinese, Indian, and Continental food and you opt for Chinese. There might be different specialized chefs for the different items and for different cuisines but you don’t need to get into the details. In fact, you would not even know which kitchen or chef is involved in preparing your food.</p><h4>Singleton Pattern</h4><p>Private Constructor: To prevent external instantiation, the Singleton class’s constructor is made private. This prevents other classes from creating instances of the Singleton class using the <strong>new </strong>keyword.</p><p>Here’s how the Singleton pattern works:</p><ol><li>Private Constructor: To prevent external instantiation, the Singleton class’s constructor is made private. This prevents other classes from creating instances of the Singleton class using the <strong>new </strong>keyword.</li><li>Static Instance: The Singleton class provides a static method that returns the instance of the class. This method checks whether an instance has already been created. If an instance exists, it returns that instance; otherwise, it creates a new instance and returns it.</li><li>Lazy Initialization: The Singleton instance is typically created lazily, which means it’s only created when the<strong> getInstance </strong>method is called for the first time. This conserves resources and ensures that the instance is created only when it&#39;s actually needed.</li></ol><p>Here’s a basic example of the Singleton pattern in Java:</p><pre>public class Singleton {<br>    private static Singleton instance;<br><br>    private Singleton() {<br>        // Private constructor to prevent instantiation from outside<br>    }<br><br>    public static Singleton getInstance() {<br>        if (instance == null) {<br>            instance = new Singleton();<br>        }<br>        return instance;<br>    }<br>}</pre><p><strong>Usage of the Singleton pattern</strong></p><pre>Singleton singleton1 = Singleton.getInstance();<br>Singleton singleton2 = Singleton.getInstance();<br><br>System.out.println(singleton1 == singleton2); // Outputs: true</pre><p>Key points about the Singleton pattern:</p><ul><li>It ensures a single instance of the class exists throughout the application’s lifetime.</li><li>It provides global access to that instance, making it easy to share data or resources.</li><li>It supports lazy initialization, which means the instance is created only when needed.</li><li>It’s important to consider thread safety when implementing the Singleton pattern, especially in multithreaded environments, to prevent multiple instances from being created inadvertently.</li><li>Overusing the Singleton pattern can lead to global state and make the code harder to test and maintain. It’s recommended to use it judiciously and consider alternatives when appropriate.</li></ul><p>Remember that with the introduction of dependency injection frameworks and modern programming practices, the need for the Singleton pattern has reduced in some cases. Instead, using dependency injection to manage the lifecycle and sharing of objects is often preferred.</p><h4>Prototype Pattern</h4><p>The Prototype pattern is a creational design pattern that involves creating copies or clones of existing objects, serving as prototypes for creating new objects. This pattern is useful when creating new objects is expensive or complex, and you want to save resources by cloning existing instances rather than creating new ones from scratch.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cIkXgQd5uarRIiE95rbjiw.jpeg" /></figure><p>Here’s how the Prototype pattern works:</p><ol><li>Prototype Interface or Base Class: The Prototype pattern requires defining a common interface or base class for all concrete prototypes. This interface typically includes a method for cloning the object.</li><li>Concrete Prototypes: Concrete classes implement the prototype interface or extend the prototype base class. These classes override the cloning method to provide their own implementation of object copying.</li><li>Cloning Method: The cloning method creates a new instance of the concrete class and copies the state from the existing object to the new instance. The copying can be shallow (copying references to objects) or deep (copying nested objects as well).</li></ol><p>Here’s a basic example of the Prototype pattern in Java:</p><pre>// Prototype interface<br>interface Prototype {<br>    Prototype clone();<br>}<br><br>// Concrete prototype class<br>class ConcretePrototype implements Prototype {<br>    private int value;<br><br>    public ConcretePrototype(int value) {<br>        this.value = value;<br>    }<br><br>    @Override<br>    public Prototype clone() {<br>        return new ConcretePrototype(this.value);<br>    }<br><br>    public int getValue() {<br>        return value;<br>    }<br>}<br><br>public class Main {<br>    public static void main(String[] args) {<br>        ConcretePrototype prototype = new ConcretePrototype(10);<br>        ConcretePrototype clonedPrototype = (ConcretePrototype) prototype.clone();<br><br>        System.out.println(prototype.getValue());           // Outputs: 10<br>        System.out.println(clonedPrototype.getValue());     // Outputs: 10<br>    }<br>}</pre><p>Key points about the Prototype pattern:</p><ul><li>It allows you to create new objects by copying the state of existing objects, providing an efficient way to create similar instances.</li><li>It’s especially useful when the process of creating new objects is resource-intensive or complex.</li><li>The Prototype pattern can be used to create deep copies (copies of all objects within the object hierarchy) or shallow copies (copies of references to objects).</li><li>In languages like Java, you need to implement the clone() method in your concrete prototype classes to enable cloning. You might also want to override this method to adjust the cloning behavior as needed.</li><li>The Prototype pattern is closely related to the concept of cloning and is often used in scenarios where object composition and hierarchy play a role.</li></ul><p>Remember that when using the Prototype pattern, it’s important to consider how the object’s state is copied. Depending on your requirements, you might need to perform a shallow or deep copy of the object’s data and nested objects.</p><h4>Builder Pattern</h4><p>The Builder pattern is a creational design pattern that separates the construction of a complex object from its representation, allowing the same construction process to create different representations. This pattern is useful when creating objects with multiple components or options, and it provides a step-by-step approach to constructing objects while allowing for variations in their configuration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JZC-9jdhoFziUTMUnszQTQ.jpeg" /></figure><p>Here’s how the Builder pattern works:</p><ol><li>Product: The product is the complex object that you want to create. It may have various attributes and components that need to be configured during its construction.</li><li>Builder Interface: The builder interface defines the methods for building the various parts of the product. Each method corresponds to setting a specific attribute or adding a component to the product.</li><li>Concrete Builders: Concrete builder classes implement the builder interface. These classes provide specific implementations for constructing the product. Different concrete builders can be created to produce different variations of the product.</li><li>Director (Optional): The director class orchestrates the construction process. It might not be present in all implementations of the Builder pattern. The director works with a builder to construct the final product step by step.</li></ol><pre>// Product<br>class Computer {<br>    private String processor;<br>    private String memory;<br>    private String storage;<br><br>    public void setProcessor(String processor) {<br>        this.processor = processor;<br>    }<br><br>    public void setMemory(String memory) {<br>        this.memory = memory;<br>    }<br><br>    public void setStorage(String storage) {<br>        this.storage = storage;<br>    }<br><br>    @Override<br>    public String toString() {<br>        return &quot;Computer{&quot; +<br>                &quot;processor=&#39;&quot; + processor + &#39;\&#39;&#39; +<br>                &quot;, memory=&#39;&quot; + memory + &#39;\&#39;&#39; +<br>                &quot;, storage=&#39;&quot; + storage + &#39;\&#39;&#39; +<br>                &#39;}&#39;;<br>    }<br>}<br><br>// Builder interface<br>interface ComputerBuilder {<br>    void buildProcessor();<br>    void buildMemory();<br>    void buildStorage();<br>    Computer getResult();<br>}<br><br>// Concrete builder<br>class StandardComputerBuilder implements ComputerBuilder {<br>    private Computer computer = new Computer();<br><br>    @Override<br>    public void buildProcessor() {<br>        computer.setProcessor(&quot;Standard Processor&quot;);<br>    }<br><br>    @Override<br>    public void buildMemory() {<br>        computer.setMemory(&quot;8 GB&quot;);<br>    }<br><br>    @Override<br>    public void buildStorage() {<br>        computer.setStorage(&quot;256 GB SSD&quot;);<br>    }<br><br>    @Override<br>    public Computer getResult() {<br>        return computer;<br>    }<br>}<br><br>// Director<br>class Director {<br>    private ComputerBuilder builder;<br><br>    public Director(ComputerBuilder builder) {<br>        this.builder = builder;<br>    }<br><br>    public void constructComputer() {<br>        builder.buildProcessor();<br>        builder.buildMemory();<br>        builder.buildStorage();<br>    }<br>}<br><br>public class Main {<br>    public static void main(String[] args) {<br>        ComputerBuilder builder = new StandardComputerBuilder();<br>        Director director = new Director(builder);<br><br>        director.constructComputer();<br>        Computer computer = builder.getResult();<br><br>        System.out.println(computer);<br>    }<br>}</pre><p>Key points about the Builder pattern:</p><ul><li>It separates the construction process from the representation, allowing for flexible and controlled creation of complex objects.</li><li>It’s useful when the product has multiple configuration options or components, and the creation process needs to be customized.</li><li>The Director class is optional. It can help simplify the construction process by handling the order in which the builder’s methods are called.</li><li>The Builder pattern is especially useful when dealing with objects that have many optional or variable parts, such as configuration objects, documents, or GUI components.</li></ul><p>Overall, the Builder pattern promotes cleaner and more readable code by encapsulating the construction logic and allowing for easy creation of objects with different configurations.</p><h4>Problems Solved by Creational Design Patterns</h4><p>Creational design patterns separate a system from how its objects are created and represented. They increase the system’s flexibility and help in creating objects effectively. They reduce the complexity in our design and enable the reuse of existing code.</p><p>Creational design patterns can be complementary in nature, i.e. they may consist of more than one type of design pattern. Abstract Factory might consist of a set of Prototypes from which to clone. Similarly, the Abstract Factory, Builder and Prototype patterns can use Singleton in their implementation.</p><h3>Behavioral Design Patterns</h3><blockquote>Introduction</blockquote><p>Behavioral design patterns deal with the interaction of objects in an object-oriented software application. This article discusses various behavioral design patterns that help objects cooperate and interact with each other. Behavioral Design Patterns provides a set of guidelines formulated by software pioneers that identify common communication patterns among objects and provide a way to solve commonly occurring object-interaction-related problems in software design.</p><h4>What is a behavioral design pattern?</h4><p>Behavior is how someone acts i.e., it consists of the tasks that one executes to interact in an environment. In object-oriented software development, the behavior of different objects determines the relationship between them and also determines their ability to perform a certain task.</p><p>The ability of an object-oriented software application to accomplish a task depends upon the interaction of various objects and classes. To build efficient object-oriented software, we should follow some guidelines that describes how different objects and classes send messages to each other to make things happen. This is where Behavioral Design Patterns come into the picture. It is a collection of templates that revolve around designing the interaction between objects and classes.</p><p>Behavioral patterns follow the principle that the objects in an object-oriented application should be interconnected in such a way that hard coding can be avoided and the user input can be well handled. For this principle, the behavioral design patterns make use of loose coupling techniques to ensure a flexible and effective flow of information.</p><p>Loosely coupled object-oriented software systems are those in which the components (classes and objects) are weakly associated with each other. Due to this weak association between the components, the object interactions in loosely coupled systems are not as effective as that in tightly coupled systems. But, objects in a loosely coupled system are more independent and reusable as any changes made in one component have minimal effect on the existence or the performance of another component.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o6RsrZjTOm5ouAmv-q8a5g.png" /></figure><p>Hence, to take benefit from this extensibility of a loosely-coupled system, behavioral design patterns are used which can help objects cooperate and communicate with each other while they are loosely coupled. This effect can be noticed in the above figure where the two objects <strong>O1</strong> and <strong>O2</strong> are able to interact with each other (<strong>O1</strong> and <strong>O2</strong> sends messages <strong>msg</strong> and <strong>MSG</strong> to each other respectively), even in a loosely coupled configuration using Behavioral Design Patterns. This provides the flexibility and independence of objects in an application and also maintains the interactions between them. Making use of behavioral patterns can reduce complicated software design structures into a simpler cluster of interconnections between several objects.</p><h4>Types of Behavioral Design Patterns</h4><p>There are 12 different types of behavioral patterns as described in the <a href="https://www.oreilly.com/library/view/design-patterns-elements/0201633612/">Design Patterns: Elements of Reusable Object-Oriented Software</a> book (also called the Gang of Four). Behavioral design patterns include:</p><h4>Chain of Responsibility Pattern</h4><p>It is a behavioral design pattern that allows us to pass a request between a chain of objects. Each object in the chain contains its processing logic that performs some action and decides the next object from the chain to delegate the work. It is used in decoupling the sender from the receiver.</p><p><strong>When to use Chain of Responsibility Pattern</strong></p><ul><li>When we wish to decouple the request’s sender from its receiver.</li><li>When the request provided to the application can be handled by passing it to a series of objects.</li><li>When we need to enhance the flexibility of the duties assigned to objects.</li></ul><h4>Command Pattern</h4><p>It is a data-driven behavioral pattern that turns a request into a stand-alone object known as a <strong>command</strong>. It encapsulates all the information that is required to act i.e., it wraps the action and its required parameters together in an object. It is used to separate the object that invokes the operation from the object that operates.</p><p><strong>When to use Command Pattern</strong></p><ul><li>When we need to attach operations with objects using which we can queue operations, schedule their execution, or execute them remotely.</li><li>When we wish to implement reversible operations like undo and redo operations. Since the command pattern allows us to create objects that represent the actions that are to be performed in the application, we can create a list of tasks performed (list of command objects) and can undo or redo the task just by searching and executing the undo method of the last command object from the task list.</li></ul><h4>Interpreter Pattern</h4><p>It is a behavioral pattern that is used to incorporate specialized computer language elements in programs to solve a specific set of problems. It is used to write simple programs that understand human-like syntax.</p><p><strong>When to use Interpreter Pattern</strong></p><ul><li>When we wish to provide human-like syntax to the clients and hide the application’s structure complexity from the clients.</li><li>When we wish to define a grammatical representation for a domain-specific language and provide an interpreter to deal with this grammar.</li></ul><h4>Iterator Pattern</h4><p>An iterator pattern is a type of behavioral pattern that is used to sequentially access the elements of a collection without exposing its underlying or internal representation.</p><p><strong>When to use Iterator Pattern</strong></p><ul><li>When we wish to provide a way to access and traverse the elements of a collection without revealing the internal data structures to the clients.</li><li>When we want the application to traverse different data structures.</li></ul><h4>Mediator Pattern</h4><p>The mediator pattern is used to simplify the communication between multiple objects or classes. It provides a <strong>mediator class</strong> that handles all the interactions going on between different objects or classes. This pattern also promotes loose coupling by keeping objects from referring to each other explicitly.</p><p><strong>When to use Mediator Pattern</strong></p><ul><li>When the application consists of such a large number of objects that it becomes difficult to manage their references.</li><li>When it is difficult to change some classes because of the presence of tight coupling.</li></ul><h4>Memento Pattern</h4><p>The memento pattern is used to implement the undo operation i.e., it allows us to save and restore an object to its previous state. It wraps the entire object state in a single object known as the <strong>Memento</strong> that allows the entire state to be saved and restored in a single action.</p><p><strong>When to use Memento Pattern</strong></p><ul><li>When we wish to produce the snapshots of the object’s state to get the ability to restore the previous states of an object. The snapshot of an object represents its state at a particular instance in time in an object-oriented application.</li></ul><h4>Observer Pattern</h4><p>An observer pattern is a behavioral pattern that is used to monitor the state of multiple objects or classes. It acts as a notifier of change to multiple classes. Using the observer pattern, the change in the state of an object is reflected among other objects in the application.</p><p><strong>When to use Observer Pattern</strong></p><ul><li>When modifications in the state of one object require a change in other objects.</li><li>When some objects must observe other objects only for a limited time or in specific cases.</li></ul><h4>State Pattern</h4><p>A state pattern is a behavioral design pattern that is used when a specific object needs to change its behaviour based on its internal state. It provides a way for an object to partially change its type at runtime. It appears as if the object changed its class at runtime.</p><p><strong>When to use State Pattern</strong></p><ul><li>When we have an object that behaves differently depending on its current state.</li><li>When we wish to implement different class behaviours according to the current values of the class’s fields.</li></ul><h4>Strategy Pattern</h4><p>A strategy pattern or Policy pattern is a behavioral design pattern that helps us to write a generic code that gives us specific behaviour needed for given use cases. It allows us to select both the behaviour and the algorithm at runtime, based on the input of the client.</p><p><strong>When to use Strategy Pattern</strong></p><ul><li>When we have a use case of deciding how the objects will behave dynamically.</li><li>When we want to use different variants of an algorithm within an object and be able to switch from one algorithm to another during runtime.</li></ul><h4>Template Pattern</h4><p>A template pattern is used to define the framework of an algorithm in the superclass and lets the subclasses redefine certain steps of an algorithm without changing the overall algorithm’s structure.</p><p><strong>When to use Template Pattern</strong></p><ul><li>When several classes contain almost identical algorithms and we need to modify all the classes when there is a change in the algorithm.</li><li>When we want to allow the clients to extend only particular steps of an algorithm, but not the whole algorithm or its structure.</li></ul><h4>Visitor Pattern</h4><p>The visitor design pattern is used to separate an algorithm from the object structure on which it operates. It allows us to define and add new operations to the existing classes without affecting the existing structure.</p><p><strong>When to use Visitor Pattern</strong></p><ul><li>When we wish to perform an operation on all the elements of a complex object structure.</li><li>When we wish to extend the interface of the primary type by creating a separate class hierarchy.</li></ul><h4>Null Object Pattern</h4><p>A null object pattern is used to design a null object that conveys the absence of an object or acts as the default value of an object. It is used to minimize the null-checks in an application.</p><p><strong>When to use Null Object Pattern</strong></p><ul><li>When we want to minimize the null-checks in an application.</li><li>When we want to perform a null-check to skip the execution or perform a default action.</li></ul><h4>What are the Problems Solved by Behavioral Design Patterns?</h4><ul><li>It reduces the complexity of communication between the objects.</li><li>It provides the best object interaction principles of software development.</li><li>It reduces the coupling between the senders and the receivers and enables better communication flexibility in the application.</li><li>It is used to save the number of resources being used by an application as better object interaction leads to better task execution.</li></ul><h3>Structural Design Pattern</h3><blockquote>Abstract</blockquote><p>This article discusses various <strong>structural patterns</strong> which use composition for merging both <strong>classes</strong> and <strong>objects</strong> into the bigger structure, Which helps us to solve many real-life problems that a developer is most likely to encounter.</p><h4>What is Structural Design Pattern?</h4><p>Structural design pattern is a blueprint of how different <strong>objects</strong> and <strong>classes</strong> are combined together to form a bigger structure for achieving multiple goals altogether. The patterns in structural designs show how unique pieces of a system can be combined together in an extensible and flexible manner. So, with the help <strong>structural design pattern</strong> we can target and change a specific parts of the structure without changing the entire structure.</p><h4>Types of structural design patterns</h4><p>When it comes to types of design patterns we have several design patterns, the ones that developers use more often are:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/274/1*iKymL-p8HBz7GXkO4tDO4w.png" /></figure><ul><li>Adapter Pattern</li><li>Bridge Pattern</li><li>Composite Pattern</li><li>Decorator Pattern</li><li>Facade Pattern</li><li>Flyweight Pattern</li><li>Proxy Pattern</li></ul><p><strong>Adapter Pattern</strong></p><p>The Adapter pattern is a structural design pattern that allows objects with incompatible interfaces to work together. It acts as a bridge between two incompatible interfaces, enabling them to collaborate without modifying their source code. The Adapter pattern is particularly useful when integrating third-party libraries, reusing existing components, or ensuring the compatibility of different systems.</p><p>Here’s how the Adapter pattern works:</p><ol><li>Target Interface: The target interface defines the operations or methods that the client code expects to use. This is the interface that the client code interacts with.</li><li>Adaptee: The adaptee is the existing class or component that has an incompatible interface. It’s the class you want to make use of, but its interface doesn’t match the target interface.</li><li>Adapter: The adapter is a class that implements the target interface and internally delegates the requests to the methods of the adaptee. It serves as a translator between the client code and the adaptee.</li></ol><p><strong>There are two main types of adapters:</strong></p><ol><li>Class Adapter: In a class adapter, the adapter class extends both the target interface and the adaptee. This allows the adapter to inherit the behavior of the adaptee and also provide the expected interface to the client.</li><li>Object Adapter: In an object adapter, the adapter class contains an instance of the adaptee. It implements the target interface and delegates the calls to the methods of the adaptee instance.</li></ol><p>Here’s a basic example of the Object Adapter pattern in Java:</p><pre>javaCopy code</pre><pre>// Target interface<br>interface MediaPlayer {<br>    void play(String audioType, String fileName);<br>}</pre><pre>// Adaptee<br>class Mp3Player {<br>    public void playMp3(String fileName) {<br>        System.out.println(&quot;Playing MP3: &quot; + fileName);<br>    }<br>}</pre><pre>// Adapter<br>class Mp3Adapter implements MediaPlayer {<br>    private Mp3Player mp3Player;</pre><pre>    public Mp3Adapter(Mp3Player mp3Player) {<br>        this.mp3Player = mp3Player;<br>    }</pre><pre>    @Override<br>    public void play(String audioType, String fileName) {<br>        if (audioType.equalsIgnoreCase(&quot;MP3&quot;)) {<br>            mp3Player.playMp3(fileName);<br>        }<br>    }<br>}</pre><pre>public class Main {<br>    public static void main(String[] args) {<br>        Mp3Player mp3Player = new Mp3Player();<br>        Mp3Adapter mp3Adapter = new Mp3Adapter(mp3Player);</pre><pre>        mp3Adapter.play(&quot;MP3&quot;, &quot;song.mp3&quot;);<br>    }<br>}</pre><p>Key points about the Adapter pattern:</p><ul><li>It allows objects with different interfaces to collaborate seamlessly.</li><li>The Adapter pattern is useful when you need to reuse existing classes, especially those from third-party libraries, without modifying their code.</li><li>It helps achieve better separation of concerns by isolating the code that deals with interface conversion.</li><li>The Adapter pattern promotes flexibility and code maintainability by decoupling the client code from the adaptee’s implementation.</li><li>Be cautious when using the Adapter pattern excessively, as it can introduce unnecessary complexity to the codebase. It’s best suited for situations where interfaces cannot be changed or when integrating legacy code.</li><li>The Adapter pattern is related to concepts like wrapping and translating, as it wraps an existing interface and translates it to another.</li></ul><h4>Bridge Pattern</h4><p>The Bridge pattern is a structural design pattern that decouples an abstraction from its implementation, allowing both to evolve independently. It is used to separate the high-level abstraction of a system from the low-level implementation details, enabling them to vary independently without affecting each other. This pattern is particularly useful when there are multiple dimensions of variability in a system.</p><p>Here’s how the Bridge pattern works:</p><ol><li>Abstraction: The abstraction represents the high-level interface or concept that clients interact with. It contains a reference to the implementation object but delegates most of the work to it.</li><li>Refined Abstraction: Refined abstractions are subclasses of the abstraction that provide additional features or specialization. They build on the basic abstraction and might add extra methods or behavior.</li><li>Implementation: The implementation represents the low-level interface or concrete implementation details. It provides the actual implementation of the methods declared in the abstraction.</li><li>Concrete Implementations: Concrete implementations are subclasses of the implementation interface that provide specific implementations for different platforms or scenarios.</li></ol><p>By using the Bridge pattern, you can change both the abstraction and implementation independently, without requiring changes to the other part. This helps in maintaining a clear separation of concerns and promoting code flexibility and reusability.</p><pre>// Abstraction<br>abstract class Shape {<br>    protected DrawingAPI drawingAPI;<br><br>    protected Shape(DrawingAPI drawingAPI) {<br>        this.drawingAPI = drawingAPI;<br>    }<br><br>    abstract void draw();<br>}<br><br>// Implementation<br>interface DrawingAPI {<br>    void drawCircle(double x, double y, double radius);<br>}<br><br>// Concrete Implementations<br>class DrawingAPI1 implements DrawingAPI {<br>    @Override<br>    public void drawCircle(double x, double y, double radius) {<br>        System.out.printf(&quot;API1.circle at %f:%f radius %f%n&quot;, x, y, radius);<br>    }<br>}<br><br>class DrawingAPI2 implements DrawingAPI {<br>    @Override<br>    public void drawCircle(double x, double y, double radius) {<br>        System.out.printf(&quot;API2.circle at %f:%f radius %f%n&quot;, x, y, radius);<br>    }<br>}<br><br>// Refined Abstraction<br>class CircleShape extends Shape {<br>    private double x, y, radius;<br><br>    public CircleShape(double x, double y, double radius, DrawingAPI drawingAPI) {<br>        super(drawingAPI);<br>        this.x = x;<br>        this.y = y;<br>        this.radius = radius;<br>    }<br><br>    @Override<br>    void draw() {<br>        drawingAPI.drawCircle(x, y, radius);<br>    }<br>}<br><br>public class Main {<br>    public static void main(String[] args) {<br>        Shape[] shapes = {<br>            new CircleShape(1, 2, 3, new DrawingAPI1()),<br>            new CircleShape(5, 7, 11, new DrawingAPI2())<br>        };<br><br>        for (Shape shape : shapes) {<br>            shape.draw();<br>        }<br>    }<br>}</pre><p>Key points about the Bridge pattern:</p><ul><li>It promotes loose coupling between abstraction and implementation, allowing them to evolve independently.</li><li>The Bridge pattern is particularly useful when dealing with multiple dimensions of variability or when you want to avoid a “cartesian product” of classes (when each combination of different implementations and abstractions results in a separate class).</li><li>It can lead to a more complex class hierarchy, but this is often a trade-off for improved flexibility and maintainability.</li><li>The Bridge pattern is related to the concept of composition over inheritance, as it favors composition of objects with different interfaces rather than relying solely on class inheritance.</li><li>It’s important to carefully design the abstraction and the implementation interfaces to ensure that the system’s flexibility is preserved.</li></ul><h4>Composite Pattern</h4><p>n a composite pattern, the client is able to operate objects which may or may not represent its hierarchy. In simple terms composite pattern allows you to create <strong>hierarchical tree</strong> of unique complexities which allows treating every object individually.</p><p>Now, let us discuss</p><p><strong>When to use Composite Pattern</strong></p><ul><li>when you want to add new kinds of components to specific objects</li><li>It provides manageable interfaces and flexibility in its structure.</li><li>It helps to define hierarchies containing complex and primitive objects.</li></ul><ol><li>Component: The Component is an abstract class or interface that defines the common interface for all concrete objects in the composition. It declares methods that are common to both leaf and composite nodes.</li><li>Leaf: A Leaf is a concrete class that represents individual objects in the composition. It implements the methods defined in the Component interface. Since leaves have no children, their implementation of certain methods might be simpler.</li><li>Composite: A Composite is a concrete class that represents a composition of objects. It contains child components, which can be either leaf nodes or other composite nodes. Composite objects implement the methods of the Component interface by delegating the work to their children.</li></ol><h4>Decorator Pattern</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/224/1*-BcjxY1r28SleLO9SrFZ0g.png" /></figure><p>The Decorator pattern is a structural design pattern that allows you to add new behavior to objects dynamically by placing them inside special wrapper objects called decorators. This pattern is useful when you want to extend the functionality of individual objects without modifying their original class. It promotes the principle of open-closed design, which states that classes should be open for extension but closed for modification.</p><p>In essence, the Decorator pattern involves creating a series of decorator classes that wrap around the core component, adding new behaviors incrementally.</p><ol><li>Component: The Component is an interface or an abstract class that defines the basic interface for objects that can be decorated. It represents the core functionality that decorators will enhance.</li><li>Concrete Component: The Concrete Component is a class that implements the Component interface. It provides the basic functionality that decorators can enhance.</li><li>Decorator: The Decorator is an abstract class that implements the Component interface and maintains a reference to a Component object. It acts as a base for concrete decorators.</li><li>Concrete Decorator: Concrete Decorators are subclasses of the Decorator class. They add specific behaviors or features to the wrapped Component object. Concrete decorators can be stacked to provide multiple layers of decoration.</li></ol><p>By using the Decorator pattern, you can achieve flexible and reusable code without changing the core classes.</p><pre>// Component<br>interface Coffee {<br>    double cost();<br>    String description();<br>}<br><br>// Concrete Component<br>class SimpleCoffee implements Coffee {<br>    @Override<br>    public double cost() {<br>        return 2.0;<br>    }<br><br>    @Override<br>    public String description() {<br>        return &quot;Simple Coffee&quot;;<br>    }<br>}<br><br>// Decorator<br>abstract class CoffeeDecorator implements Coffee {<br>    private Coffee decoratedCoffee;<br><br>    public CoffeeDecorator(Coffee coffee) {<br>        this.decoratedCoffee = coffee;<br>    }<br><br>    @Override<br>    public double cost() {<br>        return decoratedCoffee.cost();<br>    }<br><br>    @Override<br>    public String description() {<br>        return decoratedCoffee.description();<br>    }<br>}<br><br>// Concrete Decorators<br>class MilkDecorator extends CoffeeDecorator {<br>    public MilkDecorator(Coffee coffee) {<br>        super(coffee);<br>    }<br><br>    @Override<br>    public double cost() {<br>        return super.cost() + 1.0;<br>    }<br><br>    @Override<br>    public String description() {<br>        return super.description() + &quot;, Milk&quot;;<br>    }<br>}<br><br>class SugarDecorator extends CoffeeDecorator {<br>    public SugarDecorator(Coffee coffee) {<br>        super(coffee);<br>    }<br><br>    @Override<br>    public double cost() {<br>        return super.cost() + 0.5;<br>    }<br><br>    @Override<br>    public String description() {<br>        return super.description() + &quot;, Sugar&quot;;<br>    }<br>}<br><br>public class Main {<br>    public static void main(String[] args) {<br>        Coffee simpleCoffee = new SimpleCoffee();<br>        Coffee milkCoffee = new MilkDecorator(simpleCoffee);<br>        Coffee sweetMilkCoffee = new SugarDecorator(milkCoffee);<br><br>        System.out.println(simpleCoffee.description() + &quot; - Cost: &quot; + simpleCoffee.cost());<br>        System.out.println(milkCoffee.description() + &quot; - Cost: &quot; + milkCoffee.cost());<br>        System.out.println(sweetMilkCoffee.description() + &quot; - Cost: &quot; + sweetMilkCoffee.cost());<br>    }<br>}</pre><h4>Facade Pattern</h4><p>In Facade Pattern, we provide a simplified interface to a set of interfaces of a subsystem for hiding its complexity of subsystem from the client. In simple words with the help of facade pattern, we make sub-systems easier to use by describing a higher-level interface.</p><p>Now, let us discuss</p><p><strong>When to use Facade Pattern</strong></p><ul><li>When there are many dependencies between implementation classes of abstraction and client requirements.</li><li>When you want to have layers in your subsystems.</li><li>When you want to provide a simple interface instead of a complex subsystem.</li></ul><ol><li>Facade: The Facade class provides a simple and unified interface that clients can use to access a complex subsystem. It knows which subsystem classes to instantiate and how to delegate client requests to them.</li><li>Subsystem Classes: Subsystem classes are the individual classes or components that form the complex system. Clients can access these classes directly, but the Facade provides a more convenient and straightforward way to interact with them.</li></ol><pre>// Subsystem classes<br>class CPU {<br>    public void start() {<br>        System.out.println(&quot;CPU is starting&quot;);<br>    }<br>}<br><br>class Memory {<br>    public void load() {<br>        System.out.println(&quot;Memory is loading data&quot;);<br>    }<br>}<br><br>class HardDrive {<br>    public void read() {<br>        System.out.println(&quot;Hard Drive is reading data&quot;);<br>    }<br>}<br><br>// Facade<br>class ComputerFacade {<br>    private CPU cpu;<br>    private Memory memory;<br>    private HardDrive hardDrive;<br><br>    public ComputerFacade() {<br>        cpu = new CPU();<br>        memory = new Memory();<br>        hardDrive = new HardDrive();<br>    }<br><br>    public void startComputer() {<br>        cpu.start();<br>        memory.load();<br>        hardDrive.read();<br>        System.out.println(&quot;Computer is ready to use&quot;);<br>    }<br>}<br><br>public class Main {<br>    public static void main(String[] args) {<br>        ComputerFacade computerFacade = new ComputerFacade();<br>        computerFacade.startComputer();<br>    }<br>}</pre><p>Key points about the Facade pattern:</p><ul><li>It provides a simplified interface to a complex subsystem, making the system easier to use and reducing the learning curve for clients.</li><li>The Facade class doesn’t encapsulate the subsystem classes; it merely provides a convenient interface for accessing them.</li><li>The Facade pattern promotes the principle of “don’t repeat yourself” (DRY) by consolidating common interactions with subsystem classes into a single place.</li><li>It’s particularly useful when dealing with legacy code, complex libraries, or systems with intricate relationships between components.</li><li>The Facade pattern improves maintainability by reducing dependencies between clients and the subsystem classes. Changes to the subsystem won’t affect clients as long as the Facade’s interface remains stable.</li><li>It’s important to strike a balance between providing a simplified interface and ensuring that the Facade doesn’t become too bloated with methods.</li></ul><h4>Flyweight Pattern</h4><p>The Flyweight pattern is a structural design pattern that focuses on conserving memory by sharing objects with similar state instead of creating new instances for each occurrence of that state. It’s particularly useful when dealing with a large number of objects that have overlapping characteristics, allowing you to minimize memory usage by reusing common parts.</p><p>The Flyweight pattern involves separating an object’s intrinsic (shared) state from its extrinsic (unique) state. Intrinsic state is stored in shared objects, while extrinsic state is passed in as needed. This way, many instances of an object with the same intrinsic state can be replaced by a single shared instance.</p><ol><li><strong>Flyweight Interface:</strong> The Flyweight interface defines the methods that the concrete flyweight objects must implement. This interface often includes methods to manipulate the extrinsic state.</li><li><strong>Concrete Flyweight:</strong> Concrete flyweight objects implement the Flyweight interface and represent the shared objects that can be reused. These objects store intrinsic state.</li><li><strong>Flyweight Factory:</strong> The Flyweight factory is responsible for managing and creating flyweight objects. It maintains a pool of existing flyweights and provides methods for clients to retrieve them. If a requested flyweight doesn’t exist, the factory creates and stores a new instance.</li><li><strong>Client:</strong> Clients use the flyweight factory to obtain flyweight objects. They also provide the unique extrinsic state as needed to manipulate the shared flyweight.</li></ol><p>By using the Flyweight pattern, you can achieve significant memory savings when dealing with a large number of objects with shared characteristics.</p><pre>import java.util.HashMap;<br>import java.util.Map;<br><br>// Flyweight interface<br>interface Shape {<br>    void draw(int x, int y);<br>}<br><br>// Concrete Flyweight<br>class Circle implements Shape {<br>    private String color;<br><br>    public Circle(String color) {<br>        this.color = color;<br>    }<br><br>    @Override<br>    public void draw(int x, int y) {<br>        System.out.println(&quot;Drawing a &quot; + color + &quot; circle at (&quot; + x + &quot;,&quot; + y + &quot;)&quot;);<br>    }<br>}<br><br>// Flyweight Factory<br>class ShapeFactory {<br>    private static final Map&lt;String, Shape&gt; circleMap = new HashMap&lt;&gt;();<br><br>    public static Shape getCircle(String color) {<br>        Shape circle = circleMap.get(color);<br><br>        if (circle == null) {<br>            circle = new Circle(color);<br>            circleMap.put(color, circle);<br>        }<br><br>        return circle;<br>    }<br>}<br><br>public class Main {<br>    public static void main(String[] args) {<br>        Shape redCircle = ShapeFactory.getCircle(&quot;red&quot;);<br>        Shape blueCircle = ShapeFactory.getCircle(&quot;blue&quot;);<br>        Shape greenCircle = ShapeFactory.getCircle(&quot;green&quot;);<br><br>        redCircle.draw(10, 20);<br>        blueCircle.draw(30, 40);<br>        greenCircle.draw(50, 60);<br><br>        // The color is the intrinsic state, and the position (x, y) is the extrinsic state<br>    }<br>}</pre><p>Key points about the Flyweight pattern:</p><ul><li>It’s best suited for situations where a large number of objects with similar characteristics need to be managed efficiently.</li><li>The pattern can reduce memory consumption by sharing common intrinsic state among multiple objects.</li><li>The extrinsic state is managed externally, and clients must supply it as needed when using flyweight objects.</li><li>The Flyweight pattern works well when the shared state is immutable, as it ensures that objects don’t interfere with each other.</li><li>The Flyweight pattern is often used in graphical applications, text editors, and simulations, where multiple instances of similar objects are used simultaneously.</li><li>Care must be taken to ensure thread safety if flyweights are accessed concurrently by multiple threads. Synchronization mechanisms might be needed to prevent race conditions.</li></ul><h4>Proxy Pattern</h4><p>The Proxy pattern is a structural design pattern that provides a surrogate or placeholder for another object to control access to it. It acts as an intermediary between the client and the real object, allowing you to add extra functionality or control without altering the core logic of the real object. The Proxy pattern is useful when you want to control or manage access to an object, postpone the creation of an expensive object, or add security checks before allowing access.</p><p>There are different types of proxies, each serving a specific purpose:</p><ol><li><strong>Virtual Proxy</strong>: A virtual proxy postpones the creation and initialization of an object until it’s actually needed. This is useful for optimizing performance by loading or initializing the real object only when necessary.</li><li><strong>Remote Proxy</strong>: A remote proxy provides a local representation of an object that exists in a different address space, such as on a remote server. It can handle communication, serialization, and deserialization between the client and the remote object.</li><li><strong>Protection Proxy</strong>: A protection proxy controls access to the real object by adding authorization checks. It allows you to implement access control mechanisms without modifying the real object.</li><li><strong>Cache Proxy</strong>: A cache proxy stores the results of expensive operations and returns them when the same operation is requested again. It can significantly improve performance for frequently used operations.</li><li><strong>Smart Proxy:</strong> A smart proxy adds additional functionality to the real object, such as reference counting, logging, or lazy loading.</li></ol><p>Here’s how the Proxy pattern works:</p><ol><li><strong>Subject Interface</strong>: The Subject interface defines the common interface for both the real object and the proxy. It declares the methods that clients can call on the proxy.</li><li><strong>Real Subject</strong>: The Real Subject is the actual object that the proxy represents. It implements the methods declared in the Subject interface.</li><li><strong>Proxy:</strong> The Proxy class implements the Subject interface and holds a reference to the real subject. It can provide additional functionality before or after delegating to the real subject’s methods.</li></ol><p>By using the Proxy pattern, you can control access, optimize performance, and add extra behavior to objects without modifying their core functionality.</p><pre>// Subject Interface<br>interface Image {<br>    void display();<br>}<br><br>// Real Subject<br>class RealImage implements Image {<br>    private String filename;<br><br>    public RealImage(String filename) {<br>        this.filename = filename;<br>        loadFromDisk();<br>    }<br><br>    private void loadFromDisk() {<br>        System.out.println(&quot;Loading image: &quot; + filename);<br>    }<br><br>    @Override<br>    public void display() {<br>        System.out.println(&quot;Displaying image: &quot; + filename);<br>    }<br>}<br><br>// Proxy<br>class ProxyImage implements Image {<br>    private RealImage realImage;<br>    private String filename;<br><br>    public ProxyImage(String filename) {<br>        this.filename = filename;<br>    }<br><br>    @Override<br>    public void display() {<br>        if (realImage == null) {<br>            realImage = new RealImage(filename);<br>        }<br>        realImage.display();<br>    }<br>}<br><br>public class Main {<br>    public static void main(String[] args) {<br>        Image image1 = new ProxyImage(&quot;image1.jpg&quot;);<br>        Image image2 = new ProxyImage(&quot;image2.jpg&quot;);<br><br>        // Images are not loaded until display() is called<br>        image1.display();<br>        image1.display();<br><br>        image2.display();<br>    }<br>}</pre><p>Key points about the Proxy pattern:</p><ul><li>It allows you to control access to objects, add extra behavior, or optimize resource usage without modifying the real objects.</li><li>Proxies can be useful for managing the creation and destruction of expensive resources, such as database connections or network connections.</li><li>The Proxy pattern is used in various scenarios, including remote method invocation, caching, access control, and lazy initialization.</li><li>Depending on the type of proxy, there might be additional overhead introduced due to the additional layers of indirection.</li><li>Care should be taken when designing proxies, as they should adhere to the same interface as the real object to ensure seamless substitution.</li></ul><h4>What Are the Problems Solved by Structural Design Patterns?</h4><ul><li>The structure of the application becomes simplier and clean.</li><li>The efficiency of the application increases.</li><li>Reusability of code increases.</li></ul><h4><strong>Conclusion</strong></h4><p>In the realm of software design, where complexity is the norm and innovation is relentless, design patterns emerge as steadfast guides, illuminating the path toward effective and sustainable solutions. These patterns, cultivated through the collective wisdom of experienced developers, transcend the ephemeral nature of technology and offer timeless principles for crafting software systems that endure the test of time.</p><p>In the journey through the landscape of design patterns, we’ve explored their significance, categories, and the fundamental role they play in shaping software architecture. These patterns, categorized into creational, structural, and behavioral groups, serve as blueprints for tackling recurring challenges. They empower developers to create systems that are not just functional, but also intelligently organized, easily maintainable, and ready to adapt to the evolving needs of users and businesses.</p><p>The beauty of design patterns lies in their universality. Regardless of programming languages or frameworks, these patterns provide a common language for developers to communicate, collaborate, and innovate. They encapsulate distilled knowledge, allowing us to leverage the experiences of those who have grappled with similar problems before.</p><p>As we conclude our exploration, it’s essential to recognize that while design patterns offer invaluable guidance, they are tools, not rules. Applying them judiciously, considering the context and the problem at hand, is crucial. Overusing or misapplying patterns can lead to unnecessary complexity, defeating the very purpose they serve.</p><p>In essence, design patterns are the bridge between creative ingenuity and structured discipline. They enable us to take abstract ideas and translate them into concrete, well-architected systems. By embracing design patterns, we transcend the limitations of ad hoc solutions, embarking on a journey toward excellence in software craftsmanship.</p><p>In this dynamic realm of technology, where change is inevitable, the wisdom embedded in design patterns remains a constant. As we continue to innovate and build the future, these patterns stand as beacons, guiding us toward creating software solutions that are as elegant as they are enduring.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9208aaf71e03" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Amazon Web Services]]></title>
            <link>https://medium.com/@dinushaneranjana81/amazon-web-services-56e07a424e40?source=rss-b5aa0a896d65------2</link>
            <guid isPermaLink="false">https://medium.com/p/56e07a424e40</guid>
            <dc:creator><![CDATA[Dinusha N Bandara]]></dc:creator>
            <pubDate>Fri, 16 Sep 2022 18:03:37 GMT</pubDate>
            <atom:updated>2022-09-16T18:03:37.374Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/367/1*raZaa9LK7rvi_RRVA9pDCA.png" /></figure><h4>What is AWS</h4><p><strong>Amazon Web Services</strong> (AWS) is the world’s most comprehensive and broadly adopted cloud platform, offering over 200 fully featured services from data centers globally.</p><p>Amazon Web Services (AWS) is the world’s most comprehensive and broadly adopted cloud platform, offering over 200 fully featured services from data centers globally. Millions of customers — including the fastest-growing startups, largest enterprises, and leading government agencies — are using AWS to lower costs, become more agile, and innovate faster.</p><h4>What is AWS used for</h4><p>AWS is designed <strong>to allow application providers, ISVs, and vendors to quickly and securely host your applications</strong> — whether an existing application or a new SaaS-based application. You can use the AWS Management Console or well-documented web services APIs to access AWS’s application hosting platform</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*hHu_lPoBXupHYJqQuBEz3g.png" /></figure><h4>What is AWS an example of</h4><p>AWS (Amazon Web Services) is a comprehensive, evolving <strong>cloud computing platform</strong> provided by Amazon that includes a mixture of infrastructure as a service (IaaS), platform as a service (PaaS) and packaged software as a service (SaaS) offerings.</p><h4>What is difference between AWS and cloud</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/601/1*ESM1aZHo8ENwOPzU0GicTQ.png" /></figure><p><strong>Google Cloud is a suite of Google’s public cloud computing resources &amp; services whereas AWS is a secure cloud service developed and managed by Amazon</strong>. Google Cloud offers Google Cloud Storage, while AWS offers Amazon Simple Storage Services</p><h4>Is IT easy to learn AWS</h4><p>Is AWS difficult to learn? <strong>It’s a steep learning curve</strong> and you’ll need to understand some technology fundamentals before undertaking AWS training: Client-server technology: the relationship between a client (your laptop browser) and the server (the machine sitting on the back end receiving your browser requests)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tOuKEKsO6EoGVuBF" /></figure><h4><strong>What are the pre-requisites to learn AWS</strong></h4><ul><li>Fundamental knowledge of operating systems like Windows, Linux, etc.</li><li>Fundamental knowledge of Networking and Virtualization.</li><li>Knowledge of any programming language.</li><li>Fundamental command on coding (because certain auxiliary software may need it)</li><li>Overview of Public and Private cloud.</li></ul><h3>What is Cloud Computing</h3><p>Cloud computing is a term referred to storing and accessing data over the internet. It doesn’t store any data on the hard disk of your personal computer. In cloud computing, you can access data from a remote server.</p><h3>Applications of AWS services</h3><p>Amazon Web services are widely used for various computing purposes like</p><ul><li>Web site hosting</li><li>Application hosting/SaaS hosting</li><li>Media Sharing (Image/ Video)</li><li>Mobile and Social Applications</li><li>Content delivery and Media Distribution</li><li>Storage, backup, and disaster recovery</li><li>Development and test environments</li><li>Academic Computing</li><li>Search Engines</li><li>Social Networking</li></ul><h3>Companies using AWS</h3><ul><li>Instagram</li><li>Netflix</li><li>Twitch</li><li>LinkedIn</li><li>Facebook</li><li>Turner Broadcasting: $10 million</li><li>Zoopla</li><li>Smugmug</li><li>Pinterest</li><li>Dropbox</li></ul><h4>Advantages of AWS</h4><ul><li>You will not require to spend money on running and maintaining data centers.</li><li>Offers fast deployments</li><li>You can easily add or remove capacity.</li><li>You are allowed cloud access quickly with limitless capacity.</li><li>Total Cost of Ownership is very low compared to any private/dedicated servers.</li><li>Offers Centralized Billing and management</li><li>Offers Hybrid Capabilities</li></ul><h4>Disadvantages of AWS</h4><ul><li>If you need more immediate or intensive assistance, you’ll have to opt for paid support packages.</li><li>Amazon Web Services may have some common cloud computing issues when you move to a cloud. For example, downtime, limited control, and backup protection.</li><li>AWS sets default limits on resources which differ from region to region. These resources consist of images, volumes, and snapshots.</li><li>Hardware-level changes happen to your application which may not offer the best performance and usage of your applications.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/318/1*LDIFC6bv7BIRRRZtFuIatA.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=56e07a424e40" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[KEYS in DBMS]]></title>
            <link>https://medium.com/@dinushaneranjana81/keys-in-dbms-5b7c5e6628d9?source=rss-b5aa0a896d65------2</link>
            <guid isPermaLink="false">https://medium.com/p/5b7c5e6628d9</guid>
            <category><![CDATA[education]]></category>
            <category><![CDATA[dbms]]></category>
            <dc:creator><![CDATA[Dinusha N Bandara]]></dc:creator>
            <pubDate>Fri, 02 Sep 2022 17:12:38 GMT</pubDate>
            <atom:updated>2022-09-02T17:49:25.500Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*E1ESREviAx5OwW1G0gdfBQ.png" /></figure><h4><strong>What are the keys in DBMS</strong></h4><p><strong>A key refers to an attribute/a set of attributes that help us identify a row (or tuple) uniquely in a table (or relation)</strong>. A key is also used when we want to establish relationships between the different columns and tables of a relational database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NOzmG3EsiwXprmsAqa5sew.png" /></figure><h4><strong>What is a key and its types</strong></h4><p>A key refers to <strong>an attribute/a set of attributes that help us identify a row (or tuple) uniquely in a table (or relation)</strong>. A key is also used when we want to establish relationships between the different columns and tables of a relational database.</p><h4><strong>What is primary key SQL</strong></h4><p>A primary key is <strong>a field in a table which uniquely identifies each row/record in a database table</strong>. Primary keys must contain unique values. A primary key column cannot have NULL values. A table can have only one primary key, which may consist of single or multiple fields.</p><h4><strong>Types of keys:</strong></h4><ul><li>Primary key. It is the first key used to identify one and only one instance of an entity uniquely. …</li><li>Candidate key. A candidate key is an attribute or set of attributes that can uniquely identify a tuple. …</li><li>Super Key. …</li><li>Foreign key. …</li><li>Alternate key. …</li><li>Composite key. …</li><li>Artificial key</li></ul><h4><strong>What is primary key and foreign key</strong></h4><p>A primary key generally focuses on the uniqueness of the table. It assures the value in the specific column is unique. A foreign key is generally used to build a relationship between the two tables. Table allows only one primary key.</p><h4><strong>What is a primary key example</strong></h4><p>A primary key is a column — or a group of columns — in a table that uniquely identifies the rows of data in that table. For example, in the table below, <strong>CustomerNo, which displays the ID number assigned to different customers</strong>, is the primary key</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/229/0*FYQs7yNd092_aTMr" /></figure><h4><strong>Can a primary key be NULL</strong></h4><p>The PRIMARY KEY constraint uniquely identifies each record in a table. Primary keys must contain UNIQUE values, and <strong>cannot contain NULL values</strong>.</p><h4><strong>What is alternate key</strong></h4><p>An alternate key (Alt key) is <strong>a key that is present on most computer keyboards and is considered a modifier key that can used similarly to the shift or control keys</strong>. In other words, the alternate key provides alternate input and operations when pressed in combination with other keys</p><h4><strong>What is Super key</strong></h4><p>A superkey is <strong>a combination of columns that uniquely identifies any row within a relational database management system (RDBMS) table</strong>. A candidate key is a closely related concept where the superkey is reduced to the minimum number of columns required to uniquely identify each row.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*XfMNQ8wKKkK1070rSo98Zw.jpeg" /></figure><h4><strong>What is Composite key</strong></h4><p>A composite key is <strong>the DBMS key having two or more attributes that together can uniquely identify a tuple in a table</strong>. Such a key is also known as Compound Key, where each attribute creating a key is a foreign key in its own right.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*BtAIWqpG4IetNhCa.png" /></figure><h4><strong>Can primary key be duplicated</strong></h4><p>You can define keys which allow duplicate values. However, <strong>do not allow duplicates on primary keys as the value of a record’s primary key must be unique</strong>. When you use duplicate keys, be aware that there is a limit on the number of times you can specify the same value for an individual key.</p><h4><strong>What is key in database</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/767/0*tKPcuTpXe2Z-oVbf.jpg" /></figure><p>A key is a field, or combination of fields, in a database table used to retrieve and sort rows in the table based on certain requirements. Keys are defined to speed up access to data and, in many cases, to create links between different tables.</p><h4><strong>What is an key</strong></h4><p><strong>usually metal instrument by which the bolt of a lock is turned</strong>. b : any of various devices having the form or function of such a key a key for winding a clock. 2a : a means of gaining or preventing entrance, possession, or control. b : an instrumental or deciding factor the key to her success.</p><h4><strong>What are relational keys</strong></h4><p>What is Key in a relational database? Key in a Relational Database is <strong>a column (attribute) or group of columns (attributes) used to uniquely identify records in a table of a relational database</strong> such as those created and managed by Microsoft SQL Server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*DA_W3DwTMYnHDDYQ.jpg" /></figure><h4><strong>What is Artificial Keys</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/0*-qqTBhBKeyWpzyRJ.png" /></figure><p>An artificial key is <strong>an extra attribute added to the table that is seen by the user</strong>. It does not exist in the external reality but can be verified for syntax or check digits inside itself. Example: the open codes in the UPC/EAN scheme that a user can assign to his own stuff.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5b7c5e6628d9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[“Evaluation of DBMS “]]></title>
            <link>https://medium.com/@dinushaneranjana81/evaluation-of-dbms-65a83918d33b?source=rss-b5aa0a896d65------2</link>
            <guid isPermaLink="false">https://medium.com/p/65a83918d33b</guid>
            <category><![CDATA[of]]></category>
            <category><![CDATA[jaffna]]></category>
            <category><![CDATA[education]]></category>
            <category><![CDATA[dbms]]></category>
            <category><![CDATA[university]]></category>
            <dc:creator><![CDATA[Dinusha N Bandara]]></dc:creator>
            <pubDate>Thu, 21 Jul 2022 10:08:07 GMT</pubDate>
            <atom:updated>2022-07-21T10:08:07.025Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*78Ma7HWlb1LuYoe0" /></figure><p><strong>Data modeling and databases evolved together, and their history dates back to the 1960&#39;s</strong>. The database evolution happened in five “waves”: The first wave consisted of network, hierarchical, inverted list, and (in the 1990’s) object-oriented DBMSs; it took place from roughly 1960 to 1999.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/326/1*zBFS0gyU455HpryJ4TZD1Q.jpeg" /></figure><p><strong>DBMS is a structured system of collection of programs that enable users to create and maintain a data base and interfaces with the various users as data base administrator, online users, application programmers and naïve users.</strong></p><p>The DBMS is <strong>the interface between the user of application programs on one hand and the data base on the other</strong>. The objective of a database management system is to facilitate the creation of data structures and relieve the programmer of the problems of setting up complicated files.</p><blockquote><strong>How to Evaluate Databases: Content and Interface</strong></blockquote><ol><li>Help screens. …</li><li>Look at several database records. …</li><li>Broad searches and post-limiting. …</li><li>Publication lists. …</li><li>Specialized subsets of a database like that.</li></ol><blockquote><strong>The major components of DBMS are</strong></blockquote><ol><li>Data Manager</li><li>Disk Manager</li><li>Data Dictionary</li><li>Query Processor</li><li>File Manager</li><li>Data Definitions Language Compiler</li><li>Telecommunication System</li><li>Data Files</li><li>Access Aids.</li></ol><blockquote><strong>How do we evaluate and select a DBMS</strong></blockquote><ol><li>Usability. Consider how user-friendly the system will be for all those members of staff required to use it</li><li>Visualisation &amp; Reporting</li><li>Security</li><li>Functionality</li><li>Support &amp; Develpment.</li><li>Integration</li><li>Scalability</li><li>Cost and Suitability.</li></ol><blockquote><strong>Why is it important to understand the evolution of database systems</strong></blockquote><p>Understanding the evolution history of a complex software system <strong>can significantly aid and inform current and future development initiatives of that system</strong>. Software repositories such as version management systems and issue trackers provide excellent opportunities for historical analyses of system evolution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/259/1*fPxbJHTcV31rqdaHm8ATfg.jpeg" /></figure><h3><strong>What are the evolution of data models</strong></h3><p>A variety of theoretical data models were proposed during the 60s, including three, which became a reality. <strong>The first two are “the hierarchical data model” and “the network data model.” The third theoretical model, the relational model, was proposed by Edgar F.</strong> <strong>Codd in the late 1960s.</strong></p><h3><strong>Evaluating DBMS</strong></h3><p>There are various database management systems available in the market. Each type has its features and can be used for varied purposes. The large number of DBMS makes it difficult to choose the DBMS that should be implemented to solve our problem. To choose the most suitable DBMS, we need to evaluate from various systems. We perform a structured approach to evaluate the database systems.</p><h3>Evaluation Methodology</h3><p>This step involves two analyses; both these analyses should be performed to determine the most suited DBMS.<br><strong>These two analyses are:</strong></p><ol><li><strong>Feature analysis:</strong> In this phase, we determine whether the DBMS provides all the features required for the operations that are to be performed on the data and shortlist the DBMS.</li><li><strong>Performance Analysis:</strong> In this phase, we analyse only those shortlisted DBMS, evaluate the systems’ efficiency, and choose one with maximum efficiency.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=65a83918d33b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[File System vs Data Base Management System]]></title>
            <link>https://medium.com/@dinushaneranjana81/file-system-vs-data-base-management-system-58130995978c?source=rss-b5aa0a896d65------2</link>
            <guid isPermaLink="false">https://medium.com/p/58130995978c</guid>
            <category><![CDATA[education]]></category>
            <category><![CDATA[schools]]></category>
            <category><![CDATA[teaching]]></category>
            <category><![CDATA[students]]></category>
            <category><![CDATA[learning]]></category>
            <dc:creator><![CDATA[Dinusha N Bandara]]></dc:creator>
            <pubDate>Thu, 07 Jul 2022 06:47:24 GMT</pubDate>
            <atom:updated>2022-07-07T06:47:24.307Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7oEIPd88fAM5DGiO" /><figcaption>Photo by <a href="https://unsplash.com/@goumbik?utm_source=medium&amp;utm_medium=referral">Lukas Blazek</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><blockquote><strong>What is File System?</strong></blockquote><p>:features of file system <br>:advantages of file system<br>:disadvantages of file system</p><blockquote><strong>What is DBMS?</strong></blockquote><p>:features of dbms<br>:advantages of dbms<br>:disadvantages of dbms</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Gg3kpdXxN_PLq0K9YGkv3g.png" /></figure><h4>What is File System</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*clgBPlloPlpZS2p2.png" /></figure><ul><li>A file system is a technique of arranging the files in a storage medium like a hard disk, pen drive, DVD, etc. It helps you to organizes the data and allows easy retrieval of files when they are required. It mostly consists of different types of files like mp3, mp4, txt, doc, etc. that are grouped into directories.</li><li>A file system enables you to handle the way of reading and writing data to the storage medium. It is directly installed into the computer with the Operating systems such as Windows and Linux.</li></ul><p><strong>Advantages of File System</strong></p><p>*Enforcement of development and maintenance standards.<br>*It is more efficient and cost less than a DBMS in certain situations.<br>*The design of file processing is simpler than designing Database.<br>*File Sharing</p><p><strong>Disadvantages of File System<br></strong>*disadvantages of file system<br>*The problem with security.<br>*Time-consuming.</p><h4><strong>What is DBMS</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pVnHMD3yOd21-ppD.jpg" /></figure><p>Database Management System (DBMS) is a software for storing and retrieving user’s data while considering appropriate security measures. It consists of a group of programs that manipulate the database. The DBMS accepts the request for data from an application and instructs the DBMS engine to provide the specific data. In large systems, a DBMS helps users and other third-party software to store and retrieve data.</p><p><strong>Advantages of DBMS<br></strong>*Consume lesser space<br>*Reduction of redundancy.<br>*Data independence.<br>*Better Data Transfer<strong><br></strong>*Better decision-making<strong><br></strong>*Faster data access</p><p><strong>Disadvantages of File System<br></strong>*The database can fail because or power failure or the whole system stops.<br>*The cost of DBMS is depended on the environment, function, or recurrent annual maintenance cost.<br>*The use of the same program at a time by many users sometimes lead to the loss of some data.</p><h3>Features of a File system</h3><p>Here are important elements of the file system:</p><ul><li>It helps you to store data in a group of files.</li><li>Files data are dependent on each other.</li><li>C/C++ and COBOL languages were used to design the files.</li><li>Shared File System Support</li><li>Fast File System Recovery.</li></ul><h3>Features of DBMS</h3><p>Here, are essential features of DBMS:</p><ul><li>A user-accessible catalog of data</li><li>Transaction support</li><li>Concurrency control with Recovery services</li><li>Authorization services</li><li>The value of data is the same at all places.</li><li>Offers support for data communication</li><li>Independent utility services</li><li>Allows multiple users to share a file at the same time</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=58130995978c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>