<?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 Avumile Ndlovu on Medium]]></title>
        <description><![CDATA[Stories by Avumile Ndlovu on Medium]]></description>
        <link>https://medium.com/@avumilendlovu?source=rss-eaa919f758a2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*FuwaCGstNgb-tpZm</url>
            <title>Stories by Avumile Ndlovu on Medium</title>
            <link>https://medium.com/@avumilendlovu?source=rss-eaa919f758a2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 13:13:59 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@avumilendlovu/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[Title: Understanding Pascal’s Triangle and writting code  CODE]]></title>
            <link>https://medium.com/@avumilendlovu/title-understanding-pascals-triangle-and-writting-code-code-6aa7d70770b4?source=rss-eaa919f758a2------2</link>
            <guid isPermaLink="false">https://medium.com/p/6aa7d70770b4</guid>
            <dc:creator><![CDATA[Avumile Ndlovu]]></dc:creator>
            <pubDate>Thu, 30 May 2024 01:22:45 GMT</pubDate>
            <atom:updated>2024-05-30T01:22:45.556Z</atom:updated>
            <content:encoded><![CDATA[<h3>Title: Understanding Pascal’s Triangle and writting code CODE</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yJnAZ1Jd9IhPlACi0w0Elg.png" /><figcaption>Pascal triangle illustration</figcaption></figure><p>Pascal’s triangle is a fascinating mathematical(ooh scary )concept named after the French mathematician Blaise Pascal. it is like a simple pyramid of numbers. Imagine starting with the number one at the top. Then, as you go down each level, every new number you see is just the sum of the two numbers directly above it to the left and right. If there’s only one number or no number directly above, you just use the number that’s there (or if there’s none, you pretend there’s a zero). This way, each level has one more number than the level above it, forming a neat triangle. It is a triangular array of <em>binomial</em> (<strong><em>The binomial coefficient represents the number of ways to choose ( k ) elements from a set of ( n ) elements without considering the order of selection)</em></strong>coefficients, where each number in the triangle represents the sum of the two numbers directly above it in the previous row.</p><h4>A NONE Math loving Girl approach to constructing a Pascal triangle:</h4><p>1. <strong>Define Function</strong>: Start by Constructing/defining a function that generates Pascal’s triangle up to the nth row. This function will serve as the foundation for your code.</p><p>2. <strong>Parameters and Return</strong>: Understand the parameters the function will take, such as the number of rows for Pascal’s triangle, and what it will return, which is a list of lists representing the triangle.</p><p>3. <strong>Pascal Triangle</strong>: Acknowledge the fundamental concept of Pascal’s triangle as a triangular array of binomial coefficients. This understanding is crucial for implementing the logic to generate the triangle.</p><p>4. <strong>Logic(short pseudocode while drawing on piece of paper what l really want to create given the defination of pascal triangle </strong>: Follow a systematic approach to construct the Pascal triangle:</p><p>- <strong>Outer Loop (Rows):</strong> Iterate over each row of the triangle. Use a loop that goes from 0 to the desired number of rows.<br> <br> - <strong>Inner Loop (Columns)</strong>: Within each row, iterate over each column. The number of columns in each row is equal to the row number plus one.<br> <br> - <strong>Calculating Values</strong>: Calculate the value for each cell in the triangle. Each cell’s value is the sum of the value directly above it and the value diagonally above and to the left of it.<br> <br> - <strong>Printing Values</strong>: Print the values of each cell in the triangle, or store them in a list for later use.<br> - <strong>Repeat</strong>: Repeat the process for each row, updating the values accordingly.<br> <br>5. <strong>Conditionals</strong>: Incorporate conditionals to handle specific requirements or constraints. This could involve checking for valid inputs or adjusting the triangle’s appearance based on certain conditions</p><p>By following this structured approach, you can effectively implement Pascal&#39;s triangle generation in Python or any other programming language. This understanding not only helps in coding but also enhances mathematical comprehension and problem-solving skills.</p><pre>#!/usr/bin/env python3<br><br>&quot;&quot;&quot;<br>This script defines a function to generate Pascal&#39;s triangle up to the nth row.<br>&quot;&quot;&quot;<br><br>def pascal_triangle(n):<br>    &quot;&quot;&quot;<br>    Generate Pascal&#39;s triangle up to the nth row.<br><br>    Args:<br>        n (int): Number of rows for Pascal&#39;s triangle.<br><br>    Returns:<br>        list of lists: Pascal&#39;s triangle up to the nth row.<br><br>    Raises:<br>        ValueError: If n is less than or equal to 0.<br>    &quot;&quot;&quot;<br>    if n &lt;= 0:<br>        return []<br><br>    triangle = [[1]]<br><br>    for i in range(1, n):<br>        row = [1]<br>        for j in range(1, i):<br>            row.append(triangle[i-1][j-1] + triangle[i-1][j])<br>        row.append(1)<br>        triangle.append(row)<br><br>    return triangle<br><br></pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6aa7d70770b4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[INTRODUCTION TO BYTE-SERENITY]]></title>
            <link>https://medium.com/@avumilendlovu/introduction-to-byte-serenity-af1206326205?source=rss-eaa919f758a2------2</link>
            <guid isPermaLink="false">https://medium.com/p/af1206326205</guid>
            <dc:creator><![CDATA[Avumile Ndlovu]]></dc:creator>
            <pubDate>Wed, 15 May 2024 06:44:53 GMT</pubDate>
            <atom:updated>2024-05-15T07:03:37.141Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/798/1*22ED6qvkOw4N5U_RwpUnyQ.jpeg" /><figcaption>BYTE-SERENITY LOGO</figcaption></figure><p>Byteserenity is a blogging website that helps individuals reconnect with the world around them. In a time dominated by technology and its revolution, we understand the importance of maintaining a balance between the virtual and the real. Through our platform, we aim to guide you on this quest for reconnection, offering insights, tips, and inspiration for embracing activities beyond the tech realm. Whether it’s exploring nature, pursuing hobbies, we believe in the power of disconnecting to truly connect. Led by Avumile Ndlovu and Taurai Masaire, our team is dedicated to fostering a community that celebrates the beauty of life beyond screens. 2 things we aim to deliver : creating an experience that would be both web and mobile-friendly, and also sourcing a reliable and sophisticated API. l(Avumile Ndlovu), worked on frontend, and Taurai worked on backend .</p><h4><strong>THE INSPIRATION FOR THE PROJECT:</strong></h4><p>One Valentine’s Day, I stumbled upon a hilarious yet thought-provoking tweet from one of my peers who declared his laptop as his one true valentine. As the online conversation unfolded, with some proudly boasting about balancing their tech passion with rrelationships, others were intrigued by how one could manage such an unconventional love story. It was in that moment of curiosity that an idea struck me: what if there was a platform where people like him could share their experiences, and where those deeply immersed in the tech realm could find tips to navigate life beyond screens ?</p><p>fueling a desire to create a blogging website dedicated to helping individuals in the tech community break free from the confines of their devices and rediscover the joys of life beyond the digital world. It became clear that there was a need for a space where tech enthusiasts could find inspiration, share their stories, and learn to live a more balanced lifestyle. And so, with that Valentine’s Day tweet as my muse, I embarked on the journey of bringing this vision to life.</p><h4>TALES OF THE INTRESTING FEATURES BYTE-SERENITY HAS TO OFFER</h4><p>Content creation is not just about generating new material; it’s about empowering users to be in complete control of their data. Imagine a scenario where you’ve poured your heart and soul into crafting a piece of content, only to realize it’s not quite ready for the world to see. With our platform, you have the power to keep your content in <strong>draft mode,</strong> ensuring it remains safely stored until you’re ready to unveil it to the world.</p><p>But what if you’ve already shared your content, only to realize there are mistakes or it’s incomplete? Don’t worry; we’ve got you covered. Our platform allows you to reclaim your content, giving you the opportunity to refurbish or edit it to perfection. Whether it’s fixing typos, adding new insights, or completely reimagining your message, you have the flexibility to make the necessary adjustments.</p><p>And before you hit the publish button, you want to ensure your content looks its best. That’s why we offer a preview option, allowing you to see exactly how your content will appear to your audience before it goes live. This ensures you can make any final tweaks or adjustments to ensure a polished presentation.</p><p>Once you’re satisfied with your content, it’s time to share it with the world a. With just a click of a button, you can publish your content, making it accessible to your audience.</p><p>In essence, our content creation process puts you in the driver’s seat, giving you the freedom and flexibility to create, edit, preview, and publish your content with ease</p><h4><strong>THE ARCHITECTURE AND DEVELOPMENT PROCESS :</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CmJUYxIFdK_SidJoJnIezg.jpeg" /><figcaption>TECHNOLOGY AND LANGUAGES USED</figcaption></figure><p>In design a carefully selection of technologies and languages that would best suit our needs and streamline the development process from the best variations on the internet through vigorous research and (trial and error ) was done . For the Front-End, we opted for a combination of CSS Tailwind, HTML, vanilla JavaScript, Jinja, and jQuery. Tailwind stood out as the preferred choice over Bootstrap due to its automation capabilities and ability to create responsive design without needs to specify ratios , which helped us save time and achieve a visually appealing interface. HTML provided flexibility compared to pre-made templates on platforms like WordPress, allowing us to customize and personalize various aspects of the blog site. Jinja templates further aided in reducing repetition of code, aligning with the engineering principle of automation to streamline development tasks.</p><p>On the backend, we considered several options but ultimately chose technologies based on familiarity and ease of integration. MySQL was selected as the database management system, Linux as the operating system, and Nginx as the web server for its high performance in serving static content and acting as a reverse proxy for various protocols. Python with Flask framework emerged as the backend solution due to its familiarity from previous projects and seamless integration with other technologies, ultimately saving us valuable time during development.</p><h4><strong>Navigating Template Chaos: Lessons Learned from a Rushed Design Process:</strong></h4><p>Even with the great masters atleast one mistake is bound to happen what of a beginner? . My one chaos that stood out would be while l was tasked with designing and styling templates, I faced a challenging rush to completion, leading to a tangled mess of HTML tags and CSS rules.My goal was to create cohesive templates with interactive elements, but the rushed process hindered progress and caused frustration.</p><p>Despite the challenges, I attempted to address styling issues and add interactivity to buttons, navigating through conflicting styles and complexities.Unfortunately, the rushed approach led to inefficient code structure and difficulties in adding event listeners to buttons, resulting in stress and exhaustion.Even thou all this was solved trough the use off CSS(tailwind), Upon reflection l recognized the importance of careful planning and utilizing tools like trello board to design stages and track development and manage the whole project effectively by setting realistic deadlines , attempt to meet the schedule creating layout and monitor progress to overcome technical challenges effectively and achieve better outcomes in future projects.</p><p>In conclusion, developing this project was not a solitary endeavor; it was a collaborative effort that highlighted the unique strengths and talents of each team member. The lessons learned underscored the importance of teamwork and collaboration in achieving success. Just as a rough diamond must endure both fire and ice to reveal its brilliance, our journey taught us the value of dedication, talent, and the time-saving benefits of working together.</p><p>On a personal level, I learned the significance of understanding and the fact that It’s okay to pause, ask questions, and seek clarity before forging ahead.</p><p>Technically, I discovered the versatility of technology and the importance of choosing the right tools for the job. While familiarity with certain technologies is valuable, it&#39;s essential to remain open to exploring new options that may better suit the project&#39;s requirements.</p><p>In general, as a future Front-End developer, I gained confidence in my ability to bring visualizations to life. The journey reinforced the notion that as long as I can envision it, I have the capability to create it. This project served as a testament to the limitless possibilities that await with determination, collaboration, and an open mind.</p><h4><strong>IMPORTANT LINKS TO PROJECT:</strong></h4><p><strong>Link to the GitHub link for the project</strong></p><p>https://github.com/Tau-rai/ByteSerenity.git</p><p><strong>Link to the deployed project page</strong></p><p>https://www.byteserenity.social</p><p><strong>Link to the project’s landing page</strong></p><p>https://aevy21.github.io/Byteserenity-landing-page/</p><h4><strong>IMPORTANT LINKS TO MY PERSONAL PROFILE:</strong></h4><p><strong>Link to my LinkedIn profile</strong></p><p>https://www.linkedin.com/in/aevy21</p><p>https://github.com/</p><p><strong>Link to my Github profile</strong></p><p>https://github.com/Aevy21</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=af1206326205" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning from Chaos: A Postmortem on Aevy Creations' Online Schooling Platform Outage]]></title>
            <link>https://medium.com/@avumilendlovu/learning-from-chaos-a-postmortem-on-aevy-creations-online-schooling-platform-outage-00c923c3480f?source=rss-eaa919f758a2------2</link>
            <guid isPermaLink="false">https://medium.com/p/00c923c3480f</guid>
            <dc:creator><![CDATA[Avumile Ndlovu]]></dc:creator>
            <pubDate>Sat, 13 Apr 2024 22:22:11 GMT</pubDate>
            <atom:updated>2024-04-13T22:23:58.268Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QOlqBHjEeT5MmsgW6gSkDA.jpeg" /><figcaption>..........</figcaption></figure><p>In the fast-paced world of online education, even the smallest glitch can disrupt the learning journey of countless students. At Aevy Creations, we recently experienced such a disruption—an outage that left 70% of our users unable to access course materials and submit assignments for two and a half crucial hours on April 12, 2024. In this postmortem, we’ll delve into the root cause of the issue, the steps taken for resolution, and the valuable lessons learned from this incident.</p><p>Issue Summary:<br>- Duration: The outage occurred from 9:00 AM to 11:30 AM CAT on April 12, 2024.<br>- Impact: Aevy Creations&#39; online schooling platform experienced downtime, affecting 70% of users. Users were unable to access course materials and submit assignments, disrupting their learning process.<br>- Root Cause:The outage was caused by a misconfiguration in the load balancer settings, leading to an overload on one of the web servers.</p><p>Timeline:<br>- 9:00 AM CAT: Issue detected through monitoring alerts Frim Datadog metrics and student complaints.<br>- 9:15 AM CAT: Engineers began investigating server logs and network traffic.<br>- 9:45 AM CAT: Initial assumption of a database bottleneck.<br>- 10:30 AM CAT: Load balancer misconfiguration identified.<br>- 10:45 AM CAT: Incident escalated to DevOps team.<br>- 11:00 AM CAT: Load balancer settings adjusted to correct the misconfiguration, and the decision was made to transition the distribution algorithm from round robin to weighted.<br>- 11:30 AM CAT: After thorough testing, the new load balancer configuration and distribution algorithm were implemented, restoring normal service.</p><p>Root Cause:<br>The root cause of the outage was identified as a combination of factors, including a misconfiguration in the load balancer settings and a miscalculation in algorithm creation. This resulted in uneven distribution of traffic, overwhelming one of the web servers.</p><p>Resolution:<br>To address these issues comprehensively, the load balancer settings were meticulously adjusted, and the distribution algorithm was transitioned from round robin to weighted. This comprehensive solution effectively prevented overload and ensured sustained system stability.</p><ul><li>Adjustments to Load Balancer:<br>-Load balancer settings were fine-tuned to evenly distribute traffic among servers based on their capacity and current load.<br>- Timeout thresholds were adjusted to handle peak loads without affecting service stability.<br>- Health check intervals were optimized to ensure rapid detection and removal of unhealthy servers from the pool.</li><li>Distribution Algorithm:<br>- The transition from round robin to weighted algorithm involved recalculating server weights based on their capacity and performance metrics.<br>- Weighted routing ensured that servers with higher capacity received a proportionally higher share of incoming traffic, reducing the risk of overload.</li></ul><p>Lessons Learned:<br>- Importance of regular load balancer configuration audits to prevent misconfigurations.<br>- Need for comprehensive testing of distribution algorithms before deployment.<br>- Prompt escalation and collaboration between teams to expedite issue resolution.</p><p>Follow-up Actions:<br>- Implement automated load balancer configuration checks to detect and prevent misconfigurations.<br>- Conduct periodic load testing to validate the effectiveness of distribution algorithms under varying traffic conditions.<br>- Enhance incident response procedures to streamline communication and collaboration between teams during outages.</p><p>Corrective and Preventative Measures:<br>- **Improvements/Fixes:** Enhance load balancer monitoring and alerting, implement automated load testing to identify configuration issues proactively.<br>- **Thorough Testing:** Conduct thorough testing of any changes to load balancer settings or algorithms before deploying them in production. This includes comprehensive testing of different traffic scenarios to ensure stability and performance.<br>- **Automated Remediation:** Implement automated remediation processes where possible to address common issues quickly and efficiently. This can help reduce the time to resolution and minimize the impact on users.</p><p>Conclusion:<br>The outage on April 12, 2024, served as a wake-up call for Aevy Creations, highlighting the critical need for robust infrastructure and proactive measures to maintain uninterrupted service for our users. By dissecting the incident, implementing corrective actions, and embracing a culture of continuous improvement, we are better equipped to navigate future challenges and deliver an exceptional online learning experience for all.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=00c923c3480f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[jQuery Basics]]></title>
            <link>https://medium.com/@avumilendlovu/jquery-basics-bbdbd428761a?source=rss-eaa919f758a2------2</link>
            <guid isPermaLink="false">https://medium.com/p/bbdbd428761a</guid>
            <dc:creator><![CDATA[Avumile Ndlovu]]></dc:creator>
            <pubDate>Wed, 03 Apr 2024 10:42:30 GMT</pubDate>
            <atom:updated>2024-04-03T10:43:22.128Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/848/1*5BFXS2cLpbF7k_zi_I9t4A.jpeg" /><figcaption>....</figcaption></figure><h3>Introduction</h3><p>jQuery is a powerful JavaScript library that simplifies HTML document traversal and manipulation, event handling, animation, and more. This blog aims to provide a comprehensive understanding of jQuery concepts and best practices for efficient usage.</p><h4><strong>Getting Started</strong></h4><h4>1. **Include jQuery**</h4><p>- Include the jQuery library in your HTML file using a CDN or local file reference.<br> ```html<br> &lt;script src=&quot;https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js&quot;&gt;&lt;/script&gt;<br> ```</p><h4>2. **Document Ready**</h4><p>- Use `$(document).ready()` or `$(function() { ... })` to ensure your jQuery code runs after the DOM is fully loaded.</p><h4><strong>##Selectors</strong></h4><p>Selectors in jQuery are used to target and manipulate HTML elements on a webpage. They are based on CSS selectors and allow you to select elements by their IDs, classes, attributes, element types, and more.</p><p>jQuery selectors allow you to target and manipulate HTML elements. Common selectors include:<br>- **Element Selector:** `$(&quot;p&quot;)` targets all `&lt;p&gt;` elements.<br>- **ID Selector:** `$(&quot;#myId&quot;)` targets an element with `id=&quot;myId&quot;`.<br>- **Class Selector:** `$(&quot;.myClass&quot;)` targets elements with `class=&quot;myClass&quot;`.<br>- **Attribute Selector:** `$(&quot;[href]&quot;)` targets elements with a specific attribute.</p><p>### Example with Explanation<br>```javascript<br>$(document).ready(function() {<br> // Select and manipulate elements<br> $(&quot;#myButton&quot;).click(function() {<br> // Change text and color on button click<br> $(this).text(&quot;Clicked!&quot;).css(&quot;background-color&quot;, &quot;green&quot;);<br> });<br>});<br>```</p><h4><strong>#Events</strong></h4><p>Events in jQuery allow you to respond to user interactions such as clicks, keypresses, mouse movements, and more. You can attach event handlers to elements and define actions to be executed when events occur.</p><p>jQuery simplifies event handling with methods like `.click()`, `.hover()`, `.submit()`, etc.</p><p>### Example with Interactive Demo<br>```html<br>&lt;button id=&quot;myButton&quot;&gt;Click Me&lt;/button&gt;<br>&lt;script&gt;<br> $(document).ready(function() {<br> $(&quot;#myButton&quot;).click(function() {<br> $(this).text(&quot;Clicked!&quot;).css(&quot;background-color&quot;, &quot;green&quot;);<br> });<br> });<br>&lt;/script&gt;<br>```<br>[Click here for interactive demo](https://codepen.io/pen/?template=oNbLwJg)</p><p>## Methods<br>jQuery provides numerous methods for DOM manipulation, animations, AJAX requests, etc.</p><p>### Example with Explanation<br>```javascript<br>$(document).ready(function() {<br> // DOM manipulation methods<br> $(&quot;#myElement&quot;).html(&quot;Hello, World!&quot;); // Sets HTML content of element<br> $(&quot;#myElement&quot;).addClass(&quot;highlight&quot;); // Adds CSS class to element<br>});<br>```</p><h4>#Animations</h4><p>jQuery provides built-in methods for creating animations and transitions on HTML elements. You can animate properties such as width, height, opacity, and more to create interactive and visually appealing effects.</p><p>### Example Animation with Interactive Demo<br>```html<br>&lt;div id=&quot;animateBox&quot; style=&quot;width: 100px; height: 100px; background-color: red;&quot;&gt;&lt;/div&gt;<br>&lt;script&gt;<br> $(document).ready(function() {<br> $(&quot;#animateBox&quot;).click(function() {<br> $(this).animate({ width: &quot;200px&quot;, height: &quot;200px&quot;, opacity: 0.5 }, 1000);<br> });<br> });<br>&lt;/script&gt;<br>```<br>[Click here for interactive demo](https://codepen.io/pen/?template=mdmzvXY)</p><p>## Resources<br>- [jQuery Documentation](https://api.jquery.com/)<br>- [jQuery Selectors](https://api.jquery.com/category/selectors/)<br>- [jQuery Events](https://api.jquery.com/category/events/)<br>- [jQuery Methods](https://api.jquery.com/category/manipulation/)</p><h4>#Conclusion</h4><p>jQuery is a valuable tool for web developers, simplifying complex JavaScript tasks and enhancing user interactions. By mastering jQuery&#39;s concepts and best practices, you can create dynamic and engaging web experiences effortlessly.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bbdbd428761a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Web Frameworks: A Brief Overview]]></title>
            <link>https://medium.com/@avumilendlovu/understanding-web-frameworks-a-brief-overview-0b3c5c8c753f?source=rss-eaa919f758a2------2</link>
            <guid isPermaLink="false">https://medium.com/p/0b3c5c8c753f</guid>
            <dc:creator><![CDATA[Avumile Ndlovu]]></dc:creator>
            <pubDate>Thu, 21 Mar 2024 13:21:22 GMT</pubDate>
            <atom:updated>2024-03-21T13:21:22.392Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/626/1*-XcL1fL-W4DjRRVv0LR2eA.jpeg" /></figure><h4>1. What is a Framework?</h4><p>In software development, a framework acts as a structured foundation providing developers with pre-built tools, libraries, and guidelines for building applications. By abstracting common functionalities and implementation details, frameworks enhance code reusability, consistency, and productivity.</p><h4><strong>2. What is a Web Framework?</strong></h4><p>Web frameworks are specifically designed for developing web applications. They include essential components for handling HTTP requests, managing data flow, rendering dynamic content, and ensuring a smooth user experience. Web frameworks streamline development with features like routing, templating, authentication, and database interactions.</p><h4><strong>3. Server-Side Web Frameworks(Back-End):</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*aFuzwxxulX3FJng0OawFgQ.jpeg" /></figure><p>Server-side web frameworks focus on processing requests from clients, managing data, and generating dynamic content for browsers. Examples such as Django for user authentication and booking, Ruby on Rails for rental listings and payments, and Express.js for routing and session management showcase their versatility in real-world applications.</p><p>4. <strong>Client-Side Web Frameworks(Front-End):</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*YNG0EwZKqw1JRIfxNR4rEw.jpeg" /></figure><p>Client-side web frameworks concentrate on building interactive user interfaces and managing client logic within web browsers. React, Angular, and Vue.js excel in creating dynamic UIs, handling user interactions, and providing real-time updates, enhancing user experiences without full-page reloads.</p><p><strong>5. Full-Stack Web Frameworks(Back-end + Front-end):</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*VzQfXrOxg1RRe4qXyUfPDg.jpeg" /></figure><p>Full-stack web frameworks combine server-side and client-side capabilities, empowering developers to create end-to-end web applications seamlessly. Meteor, Laravel, and Spring Boot offer comprehensive tools for managing real-time updates, user authentication, session data, and integrating with external services like payment gateways.</p><p><strong>Web Frameworks Architecture:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*CC53RyzztDDyj2tLz4da7g.jpeg" /></figure><p>The structure of a web framework generally follows a well-defined pattern to organize code, manage dependencies, and facilitate the development process. While specific frameworks may have their own unique structures, they often share common elements. Let&#39;s break down the typical structure of a web framework:</p><p>1. <strong>Routing:</strong><br> - Most web frameworks include a routing system to map incoming HTTP requests to specific endpoints or handlers within the application.<br> - Routes are defined based on URL patterns and HTTP methods (GET, POST, PUT, DELETE), directing requests to appropriate controller functions or views.</p><p>2. <strong>Controllers/Handlers:</strong><br> - Controllers or handlers contain the business logic of the application. They receive requests from the routing system, process data, interact with models or services, and prepare responses to be sent back to the client.<br> - Controllers are responsible for handling user input, validating data, performing CRUD operations, and orchestrating the application’s workflow.</p><p>3. <strong>Models/Services:</strong><br> - Models represent the data structure of the application, often corresponding to database tables or external data sources.<br> - Services encapsulate business logic and operations that are not tied to specific controllers, promoting code reuse and modularity.</p><p>4. <strong>Views/Templates:</strong><br> - Views or templates are responsible for rendering the user interface and presenting data to clients. They often use templating engines or libraries to generate dynamic HTML, CSS, and client-side scripts.<br> - Views are typically separated from controllers to maintain the MVC (Model-View-Controller) or similar architectural patterns.</p><p>5. <strong>Middleware:</strong><br> - Middleware components intercept incoming requests and responses, allowing developers to perform pre-processing, post-processing, authentication, logging, error handling, and other cross-cutting concerns.<br> - Middleware functions can be chained together to create a pipeline that processes requests in a specific order.</p><p>6. <strong>Static Files Handling:</strong><br> - Web frameworks often include mechanisms for serving static files such as HTML, CSS, JavaScript, images, and other assets to clients efficiently.<br> - They may have built-in features or configurations to manage static file caching, compression, and versioning for improved performance.</p><p>7. <strong>Configuration:</strong><br> - Frameworks provide configuration files or settings to customize application behavior, define routes, database connections, logging levels, security settings, and more.<br> - Configuration helps developers manage environment-specific variables and options without modifying code directly.</p><p>8. <strong>Testing and Debugging:</strong><br> - Many frameworks offer built-in testing frameworks or integration with popular testing libraries for unit testing, integration testing, and end-to-end testing of applications.<br> - Debugging tools, logging mechanisms, and error handling features aid developers in identifying and resolving issues during development and production phases.</p><p>In conclusion, web frameworks are indispensable tools in modern web development, empowering developers to create robust, scalable, and user-friendly web applications across diverse industries. Choosing the right framework depends on project requirements, development expertise, scalability needs, and long-term maintenance considerations, ensuring successful and sustainable web application development.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0b3c5c8c753f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What happens when you type google.com in your browser and press Enter]]></title>
            <link>https://medium.com/@avumilendlovu/what-happens-when-you-type-google-com-in-your-browser-and-press-enter-348b1c7f9ae2?source=rss-eaa919f758a2------2</link>
            <guid isPermaLink="false">https://medium.com/p/348b1c7f9ae2</guid>
            <dc:creator><![CDATA[Avumile Ndlovu]]></dc:creator>
            <pubDate>Tue, 12 Mar 2024 17:26:28 GMT</pubDate>
            <atom:updated>2024-03-13T15:38:53.214Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*81ZcXWQug3qWX7GDW6DPGA.jpeg" /><figcaption>https://www.google.com</figcaption></figure><p>Have you ever wondered what happens behind the scenes when you type &quot;https://www.google.com&quot; in your browser and hit Enter? Let’s delve into the intricate workings that make this seamless experience possible.</p><h4>The Foundation: Internet, IP, and TCP/IP</h4><h4>-The Internet :</h4><p>is akin to a bustling village, with interconnected devices forming a vast web of communication. At its core, the Internet relies on foundational rules such as TCP/IP for seamless and effective communication, necessary for establishing back-and-forth conversations among villagers.</p><p>- <strong>IP Address</strong>:</p><p>An IP address, or Internet Protocol address, is an algorithmic combination of numerals serving as the identity over network connections. It uniquely identifies devices within the interconnected network, much like addresses in a village uniquely identify households and there foolow a format of (IPv4 (e.g., 192.168.1.1) or IPv6 (e.g., 2001:0db8:85a3:0000:0000:8a2e:0370:7334)</p><p><strong>- TCP/IP Protocol:</strong></p><p>TCP/IP, short for Transmission Control Protocol/Internet Protocol, represents a crucial set of networking rules/guidelines enabling devices to communicate and exchange data across the Internet. It acts as the &quot;common language&quot; or set of rules governing communication among devices, similar to villagers needing a shared language for effective interaction.</p><p>These foundational concepts play a vital role in our understanding of how devices connect, transmit data reliably, and ensure seamless communication across the global network.</p><h4>DNS (Domain Name System)</h4><p>The rules of communication between humans and computers rely on a common language, which in this case is numerical. Due to the difficulty humans face in remembering numbers as efficiently as computers do, inventors and computer scientists created an intermediary called the DNS resolver. The DNS resolver’s role is to translate human-readable language (words) into computer-readable language (numerical), as in the case of converting &quot;http://www.google.com&quot; into numerical format for transmission to a web server.<br>When a DNS resolver translates a domain name (e.g., &quot;www.google.com&quot;) into an IP address (e.g., 192.168.1.1), it sends a request to the authoritative DNS server responsible for that domain. The authoritative DNS server then responds with the correct IP address associated with that domain, and this IP address is sent back to the DNS resolver. The DNS resolver then uses this IP address to establish a connection with the servers, Upon receiving the encrypted response, your browser decrypts(human readable) the data and it then renders the HTML, CSS, JavaScript, and other resources to display the Google search page or any other content requested from &quot;https://www.google.com&quot;.</p><h4>HOW DNS Translates (www.google.com) into IP addresses can be IPv4 (e.g., 192.168.1.1) or IPv6 (e.g., 2001:0db8:85a3:0000:0000:8a2e:0370:7334)</h4><p>When a DNS resolver processes a domain name like &quot;www.google.com,&quot; it parses these components to find the corresponding IP address. The resolver first checks its cache; if the IP address is not cached, it queries authoritative DNS servers to obtain the correct IP address associated with the domain. This IP address is then used to establish connections and retrieve content from the desired web server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*D402k-jiKHPHiF56EFLfYw.png" /></figure><p><strong>HTTPS</strong>:</p><p>Understanding the Protocols Behind Secure Communication*</p><p>HTTPS (Hypertext Transfer Protocol Secure) plays a crucial role in ensuring secure communication over the internet, especially when sensitive data is involved. The &quot;https://&quot; prefix in a URL signifies the use of HTTPS protocol, which employs encryption to safeguard data during transmission.</p><p>HTTPS operates within the framework of TCP/IP protocols, specifically utilizing the Transport Layer of the TCP/IP model for reliable data transmission. Within this protocol, HTTPS incorporates two crucial protection layers: Transport Layer Security (TLS) and its predecessor, Secure Sockets Layer (SSL). These layers encrypt data, ensuring that it remains confidential and integral during transmission between the client (your device) and the server.</p><p>By using SSL encryption, HTTPS protects data transmitted both to and from the web server, making it unreadable to unauthorized entities attempting to intercept the communication. This encryption process ensures the security and privacy of sensitive information, such as login credentials, credit card details, and personal data, providing users with a secure browsing experience across the internet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/514/1*YGtvFtzq6vOdbfeim9skjA.jpeg" /><figcaption>GOOGLE ICON THAT SHOWS YOUR CONNECTION IS SECURE</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/1*PT8DKIzVTjxt8n31kUz5yg.png" /><figcaption>SSL CONFIGURATIONS</figcaption></figure><p><strong>FIREWALLS:</strong></p><p>The use of verification is essential in ensuring the integrity and safety of data exchanges. Without verifying the authenticity of connections, such as when you mask your IP address, the effectiveness of protocols like HTTPS would be compromised, rendering them potentially useless. To address this challenge, firewall features were integrated to enhance security measures. When you type &quot;https://www.google.com&quot; into your browser, your data navigates through a complex network akin to a bustling village, encountering a firewall standing guard like a vigilant gatekeeper. This firewall, acting as the village&#39;s security checkpoint, inspects and filters incoming and outgoing data traffic, ensuring that only authorized and safe communications pass through to and from destinations like &quot;https://www.google.com.&quot; Just as a village relies on its gatekeepers to maintain safety and order, firewalls play a crucial role in safeguarding network connections and data exchanges in the digital landscape.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/474/1*lwi5sePW2EljXQ9INQDVOA.jpeg" /><figcaption>FIREWALL</figcaption></figure><p>2. <strong>Subdomain</strong>:</p><p>&quot;www&quot; is often used as a subdomain and can represent a specific service or section of a website. It’s the prefix before the domain name.<br>3. <strong>Domain name</strong>:</p><p>&quot;google&quot; is the second-level domain, which usually represents the organization or entity associated with the website.<br>4. <strong>Top-Level Domain</strong>:</p><p>&quot;.com&quot; is the top-level domain (TLD) and indicates the domain’s purpose or geographic location (.com for commercial entities).<br>When a DNS resolver processes a domain name like &quot;www.google.com,&quot; it parses these components to find the corresponding IP address. The resolver first checks its cache; if the IP address is not cached, it queries authoritative DNS servers to obtain the correct IP address associated with the domain. This IP address is then used to establish connections and retrieve content from the desired web server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jk8tCdchjVPC8RO8HAg4gQ.png" /><figcaption>LOAD BALANCER</figcaption></figure><h4>LOAD BALANCER</h4><p>In terms of &quot;https://www.google.com,&quot; let’s understand how a load balancer works in this scenario. A load balancer is a tool that distributes the workload or traffic going to the website &quot;www.google.com&quot; across different web servers, such as web server 1 or web server 2.<br><br>Let’s use an example to explain further: Imagine ALX_SE needs to send emails to all 10,227 students, and a competitor needs to send 2500 emails to its students. Without a load balancer, this simultaneous sending of emails could overwhelm servers or cause delays. The load balancer steps in to ensure efficient distribution of this workload. It analyses factors such as server capacity and current workload using a weighted algorithm to determine which server can handle which portion of the emails.<br><br>For instance, the load balancer may direct more emails to a powerful server capable of handling 10,227 emails while routing fewer emails to another server that can handle 2500 emails. This dynamic load distribution ensures optimal performance and prevents servers from becoming overloaded or slowing down. This process improves efficiency and maintains smooth operations, crucial for services like Gmail on a large scale.</p><h4>SERVERS AND DATABASES</h4><p><strong>DATABASES:</strong></p><p>In case you ever wonder about a database in relation to a website like www.google.com, a database efficiently stores, organizes, and retrieves vast amounts of data such as web pages in our particular search however it is not limited , it can also retrieve user information, search queries, and more. Databases help Google manage and deliver relevant search results quickly by indexing and querying data effectively. They also support data consistency, security, and scalability for a seamless user experience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/783/1*xeiexzjzkOBYpAV3OUQlFw.png" /><figcaption>WEB SERVER</figcaption></figure><p><strong>Web Servers</strong>: These servers host websites and web applications, serving web pages and other content to users who access them through web browsers.<br>&quot;www.google.com,&quot; GWS would serve static content such as the search page layout, images, and other resources from the static database</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*q_CidWD_WITWFZ6LNGAzVw.png" /><figcaption>APPLICATION SERVER</figcaption></figure><p><strong>Application Server</strong>: An application server is a software framework or platform responsible for executing and managing dynamic web applications and services</p><p><strong>IN SUMMARY:</strong></p><p>When you type &quot;https://www.google.com&quot; into your web browser, think of it as sending a message to a bustling village named &quot;Internet.&quot; The village has a special building called DNS (Domain Name System) that translates your message (&quot;www.google.com&quot;) into a specific location address (IP address) within the village. Once your browser knows where to go, it knocks on a secure door marked &quot;https://&quot; to enter the village securely. This secure entrance, like a secret code, ensures that your messages and interactions within the village are kept safe from prying eyes.</p><p>Inside the village, your browser and the village&#39;s servers exchange secret codes (SSL/TLS encryption) to speak in a language only they understand. This ensures that your conversations and the information you share remain private and intact during your stay in the village. Your browser then requests specific information from the village, like asking for directions or the latest news (webpage content).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=348b1c7f9ae2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>