<?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 Reemaaali  on Medium]]></title>
        <description><![CDATA[Stories by Reemaaali  on Medium]]></description>
        <link>https://medium.com/@reema-ali-alshahrani?source=rss-7afc377fec1b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*nk1IWVbRYbU1ChkH</url>
            <title>Stories by Reemaaali  on Medium</title>
            <link>https://medium.com/@reema-ali-alshahrani?source=rss-7afc377fec1b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 14:25:41 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@reema-ali-alshahrani/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[What Happens When You Type [https://www.google.com](https://www.google.com)]]></title>
            <link>https://reema-ali-alshahrani.medium.com/what-happens-when-you-type-https-www-google-com-https-www-google-com-15d30048e355?source=rss-7afc377fec1b------2</link>
            <guid isPermaLink="false">https://medium.com/p/15d30048e355</guid>
            <dc:creator><![CDATA[Reemaaali ]]></dc:creator>
            <pubDate>Sat, 24 Oct 2026 18:33:23 GMT</pubDate>
            <atom:updated>2026-10-24T18:33:23.299Z</atom:updated>
            <content:encoded><![CDATA[<h3>What Happens When You Type [https://www.google.com](https://www.google.com) in Your Browser and Press Enter?</h3><h3>Introduction</h3><p>Have you ever wondered what happens in the milliseconds between typing a URL in your browser and seeing a webpage load? Behind that simple keypress lies a complex journey involving global networks, security protocols, distributed systems, and databases.</p><p>Whether you are a web enthusiast or preparing for technical software engineering interviews, understanding this full-stack flow is essential. Here is a step-by-step breakdown of the web infrastructure stack.</p><h3>1. DNS Request: Translating Names to IP Addresses</h3><p>Computers do not communicate using human-readable domain names like [www.google.com](https://www.google.com); they use numerical IP addresses (such as 142.250.190.46).</p><ul><li><strong>Browser &amp; OS Cache:</strong> The browser checks if it already knows the IP address from a recent visit. If not, it asks the Operating System.</li><li><strong>Resolver (ISP):</strong> If un-cached, a query is sent to the DNS Recursive Resolver (usually provided by your ISP or public services like 8.8.8.8).</li><li><strong>Root, TLD, and Authoritative Servers:</strong> The resolver queries the Root DNS server, then the .com TLD (Top-Level Domain) server, and finally Google&#39;s Authoritative Name Server, which returns the exact IP address.</li></ul><h3>2. TCP/IP: Establishing the Network Connection</h3><p>Once the browser receives the IP address, it must establish a reliable network connection with the destination server using the TCP/IP (Transmission Control Protocol / Internet Protocol) suite. To open this connection, a <strong>TCP Three-Way Handshake</strong> occurs:</p><ul><li><strong>SYN:</strong> The client browser sends a Synchronize packet to request a connection.</li><li><strong>SYN-ACK:</strong> The server responds with a Synchronize-Acknowledge packet.</li><li><strong>ACK:</strong> The client sends an Acknowledge packet back.</li></ul><p>The connection is now open for data exchange.</p><h3>3. Firewall: The Security Gatekeeper</h3><p>Before packets enter the host network, they pass through Firewalls (both hardware and software).</p><ul><li>The firewall analyzes incoming and outgoing traffic based on predefined security rules.</li><li>It blocks unauthorized access, prevents DDoS attacks, and filters out malicious packets while allowing secure traffic on standard web ports (such as Port 443 for HTTPS).</li></ul><h3>4. HTTPS / SSL / TLS: Encrypting the Communication</h3><p>Because the request uses https://, the traffic must be encrypted to ensure privacy and data integrity.</p><ul><li><strong>TLS Handshake:</strong> The browser and server negotiate encryption keys using asymmetric cryptography.</li><li><strong>SSL Certificate Validation:</strong> The browser verifies Google’s SSL/TLS certificate issued by a trusted Certificate Authority (CA).</li><li><strong>Symmetric Encryption:</strong> Once validated, a shared secret key is generated to encrypt all subsequent HTTP data transmitted between the client and server.</li></ul><h3>5. Load Balancer: Distributing Incoming Traffic</h3><p>Google handles billions of requests every day. A single server would crash immediately under this volume.</p><ul><li>The request arrives at a Load Balancer (e.g., HAProxy, Nginx, or hardware load balancers).</li><li>The load balancer distributes incoming network traffic across multiple backend servers using algorithms like Round Robin, Least Connections, or IP Hash.</li><li>This ensures high availability, redundancy, and fault tolerance.</li></ul><h3>6. Web Server: Serving Static Content</h3><p>The load balancer routes the encrypted request to an available Web Server (such as Nginx or Apache).</p><ul><li><strong>Role:</strong> The Web Server handles direct HTTP requests.</li><li><strong>Tasks:</strong> It serves static files (HTML, CSS, images, client-side scripts) and forwards dynamic requests further down the pipeline to the Application Server.</li></ul><h3>7. Application Server: Processing Business Logic</h3><p>For dynamic web applications, the Application Server handles the core business logic.</p><ul><li>It processes user input, handles user sessions, applies business rules, and determines what data needs to be retrieved or modified.</li><li>It acts as the bridge between the Web Server and the underlying Database.</li></ul><h3>8. Database: Data Storage and Retrieval</h3><p>To render personal preferences, search history, or dynamic results, the Application Server queries the Database (e.g., MySQL, PostgreSQL, or NoSQL databases like MongoDB).</p><ul><li>The database executes queries to fetch or update records.</li><li>The retrieved data is passed back to the Application Server.</li><li>The Application Server compiles the response into a dynamic format (like JSON or rendered HTML) and passes it back up the stack to the Web Server, Load Balancer, and back to your browser.</li></ul><h3>Conclusion</h3><p>Once the browser receives the complete HTTP response, its rendering engine parses the HTML to build the DOM tree, processes the CSS for styles, and executes JavaScript. Finally, Google’s homepage is fully rendered on your screen — all completed in a fraction of a second!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=15d30048e355" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Everything is an Object, Mutability, and Memory Management]]></title>
            <link>https://reema-ali-alshahrani.medium.com/everything-is-an-object-mutability-and-memory-management-9303a4efa448?source=rss-7afc377fec1b------2</link>
            <guid isPermaLink="false">https://medium.com/p/9303a4efa448</guid>
            <dc:creator><![CDATA[Reemaaali ]]></dc:creator>
            <pubDate>Sat, 22 Aug 2026 13:59:21 GMT</pubDate>
            <atom:updated>2026-08-22T13:59:21.532Z</atom:updated>
            <content:encoded><![CDATA[<p>Python is a remarkably powerful and versatile programming language. At the core of its design philosophy is a fundamental principle: <strong>everything in Python is an object</strong>. Whether you are dealing with a simple number, a complex string, a list, or even a function, Python treats them all as first-class objects. This means every entity has an identity, a type, and a value, shaping how the language manages memory and executes code under the hood. Every object created in Python has a unique identifier and a specific data type. The built-in id() function returns an integer representing the object’s unique memory address, while the type() function reveals what class or category the object belongs to. For instance, when we assign an integer to a variable:</p><p>Python</p><pre>x = 42<br>print(id(x))    # Example output: 140721245122152<br>print(type(x))  # Output: &lt;class &#39;int&#39;&gt;</pre><p>Here, x points to an integer object stored at a specific location in memory. Building upon this, a <strong>mutable</strong> object is one whose internal state or contents can be modified <em>after</em> it is created, without changing its identity or memory address. Common mutable data types in Python include lists, dictionaries, and sets. When we modify a list in place, its memory address remains identical:</p><p>Python</p><pre>my_list = [1, 2, 3]<br>print(id(my_list))  # Address A<br>my_list.append(4)<br>print(id(my_list))  # Address A (remains the exact same!)<br>print(my_list)      # Output: [1, 2, 3, 4]</pre><p>Conversely, <strong>immutable</strong> objects cannot be changed once they are created. Any operation that appears to modify an immutable object actually creates a <em>new</em> object in memory. Examples include integers, floats, strings, booleans, and tuples. If we attempt to change a string:</p><p>Python</p><pre>name = &quot;Holberton&quot;<br>print(id(name))  # Address X<br>name = name + &quot; School&quot;<br>print(id(name))  # Address Y (a completely new object is created!)</pre><p>Understanding mutability is crucial for writing bug-free and efficient Python code. Python optimizes memory for small integers and empty immutable structures (like empty tuples) through caching and Singleton patterns, meaning multiple variables can safely reference the exact same memory location. On the other hand, mutable objects can introduce unintended side effects when shared across multiple variables or functions because changing the object in one place affects all references pointing to it. Finally, Python uses a mechanism known as <strong>“Call by Object Reference”</strong> (or assignment). When you pass a variable to a function, Python passes a reference to the object, not the variable name itself. If you pass a mutable object (like a list) and modify it inside the function using in-place methods, the changes reflect outside the function. If you pass an immutable object, reassigning it inside the function creates a local object, leaving the original variable outside untouched:</p><p>Python</p><pre>def modify_list(lst):<br>    lst.append(99)</pre><pre>my_list = [1, 2]<br>modify_list(my_list)<br>print(my_list)  # Output: [1, 2, 99] - Modified globally!</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9303a4efa448" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>