<?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 Rushisalunke on Medium]]></title>
        <description><![CDATA[Stories by Rushisalunke on Medium]]></description>
        <link>https://medium.com/@rushisalunke006?source=rss-a9af28342396------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*fl0dPd9G5Ype2u0Q</url>
            <title>Stories by Rushisalunke on Medium</title>
            <link>https://medium.com/@rushisalunke006?source=rss-a9af28342396------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 19:27:14 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rushisalunke006/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Mastering JavaScript Promises: A Guide for Java Developers (with a Dash of Comedy)]]></title>
            <link>https://medium.com/@rushisalunke006/mastering-javascript-promises-a-guide-for-java-developers-with-a-dash-of-comedy-03fbee954878?source=rss-a9af28342396------2</link>
            <guid isPermaLink="false">https://medium.com/p/03fbee954878</guid>
            <category><![CDATA[promises]]></category>
            <dc:creator><![CDATA[Rushisalunke]]></dc:creator>
            <pubDate>Sat, 28 Feb 2026 17:24:08 GMT</pubDate>
            <atom:updated>2026-02-28T17:24:08.498Z</atom:updated>
            <content:encoded><![CDATA[<p>If you are a <strong>Java Developer</strong> transitioning to the frontend, you might find JavaScript’s asynchronous nature a bit like a <strong>Gokuldham Society</strong> meeting — everyone is talking at once, and you’re just trying to figure out who actually showed up.</p><p>In Java, we have CompletableFuture; in JavaScript, we have <strong>Promises</strong>. When building a modern <strong>Spring Boot and Angular</strong> application, mastering these is the difference between a smooth user experience and a frozen screen.</p><h3>1. Promise.all(): The “Naruto Team 7” Strategy</h3><p>Promise.all() is the &quot;All or Nothing&quot; method. It waits for every single task to succeed. If even one fails, the entire operation crashes immediately.</p><ul><li><strong>The Comedy Logic</strong>: Imagine <strong>Naruto, Sasuke, and Sakura</strong> are on a mission to open a massive gate. They must all push at the exact same time. If Sakura gets distracted by a butterfly and stops pushing, the gate doesn’t budge. The mission fails for everyone!</li><li><strong>Production Use Case</strong>: You are loading a <strong>Product Detail Page</strong> in your Angular app. You need the Product Info, the Price, and the Stock status from your Spring Boot APIs. If the “Price” API fails, you shouldn’t show the page at all — it’s useless to the customer.</li></ul><h3>Code Example:</h3><p>JavaScript</p><pre>const fetchProduct = fetch(&#39;/api/product/101&#39;).then(r =&gt; r.json());<br>const fetchPrice = fetch(&#39;/api/price/101&#39;).then(r =&gt; r.json());<br>const fetchStock = fetch(&#39;/api/stock/101&#39;).then(r =&gt; r.json());</pre><pre>// sab succeed hona chhiye nahi to Jethalalji gussa hojayenge!<br>Promise.all([fetchProduct, fetchPrice, fetchStock])<br>  .then((results) =&gt; {<br>    const [product, price, stock] = results;<br>    console.log(&quot;Mission Success! Displaying page for:&quot;, product.name);<br>  })<br>  .catch((err) =&gt; {<br>    // If one member fails, the catch block runs immediately<br>    console.error(&quot;Mission Failed! Someone spoiled the plan.&quot;, err);<br>  });</pre><h3>2. Promise.allSettled(): Bhide’s Society Meeting</h3><p>This is the most “patient” method. It waits for everyone to finish, whether they succeeded or failed. It just wants the final report.</p><ul><li><strong>The Comedy Logic</strong>: <strong>Atmaram Bhide</strong> calls a society meeting at 9:00 PM. Jethalal is late, Iyer is on time, and Popatlal didn’t show up because he’s on a date. Bhide doesn’t cancel the meeting; he simply records who arrived and who didn’t, then moves on.</li><li><strong>Production Use Case</strong>: You are processing your <strong>10,000 Product CSV</strong> into MongoDB. You want to know exactly which 9,990 products were saved and which 10 failed due to formatting errors. You don’t want the whole import to stop just because of a few bad rows.</li></ul><h3>Code Example:</h3><p>JavaScript</p><pre>const p1 = Promise.resolve(&quot;Jethalal Arrived&quot;);<br>const p2 = Promise.reject(&quot;Popatlal&#39;s date failed (Error)&quot;);<br>const p3 = Promise.resolve(&quot;Iyer Arrived&quot;);</pre><pre>// Bhide sabka status lene ruka hai!<br>Promise.allSettled([p1, p2, p3])<br>  .then((results) =&gt; {<br>    results.forEach((result, index) =&gt; {<br>      if (result.status === &quot;fulfilled&quot;) {<br>        console.log(`Member ${index}: Success - ${result.value}`);<br>      } else {<br>        console.log(`Member ${index}: Absent/Error - ${result.reason}`);<br>      }<br>    });<br>    console.log(&quot;Bhide: Meeting report is ready for the diary.&quot;);<br>  });</pre><h3>3. Prmise.any(): The Movie Audition</h3><p>Promise.any() is the &quot;First Winner&quot; method. It returns as soon as <strong>any</strong> task succeeds. It only fails if <em>every single one</em> fails.</p><ul><li><strong>The Comedy Logic</strong>: A Bollywood Director is holding auditions for a new “Hero”. He sees 10 actors. As soon as <strong>one</strong> actor gives a perfect performance, the Director yells “Casting Closed!” and goes home. He doesn’t wait to see the rest.</li><li><strong>Production Use Case</strong>: You have your product images stored on three different servers for high availability. You request the image from all three simultaneously. Whichever server responds <strong>fastest</strong> is the one you use.</li></ul><h3>Code Example</h3><p>JavaScript</p><pre>const serverA = fetch(&#39;http://server-a.com/product-img.jpg&#39;);<br>const serverB = fetch(&#39;http://server-b.com/product-img.jpg&#39;);<br>const serverC = fetch(&#39;http://server-c.com/product-img.jpg&#39;);<br>Promise.any([serverA, serverB, serverC])<br>  .then((firstImage) =&gt; {<br>    console.log(&quot;Casting Closed! Image loaded from fastest server:&quot;, firstImage.url);<br>  })<br>  .catch((err) =&gt; {<br>    // This only runs if ALL servers are down<br>    console.error(&quot;All clones/actors failed the search.&quot;, err);<br>  });</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=03fbee954878" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CSS Selectors: How to Actually Style the Stuff You Want]]></title>
            <link>https://medium.com/@rushisalunke006/css-selectors-how-to-actually-style-the-stuff-you-want-96bc4ca9492c?source=rss-a9af28342396------2</link>
            <guid isPermaLink="false">https://medium.com/p/96bc4ca9492c</guid>
            <dc:creator><![CDATA[Rushisalunke]]></dc:creator>
            <pubDate>Sat, 31 Jan 2026 06:25:00 GMT</pubDate>
            <atom:updated>2026-01-31T06:25:00.719Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Kx1bXgOM8PLxd5zYeGFl-Q.png" /></figure><p>So, you’ve built your HTML skeleton. It’s sitting there, looking ugly and boring. You want to make the text red, or move a box to the right. But here is the problem: <strong>How do you tell the computer <em>which</em> box you are talking about?</strong></p><p>You can’t just shout “Hey, make the title big!” The browser doesn’t speak English. It speaks CSS.</p><p>This is why we need <strong>Selectors</strong>. Think of them like pointing your finger at a specific element on the page and saying, “You. Yeah, you. Turn blue.” Without selectors, your CSS styles would just apply to nothing (or everything, which is chaos).</p><p>Let’s break down the main ones you gonna use 99% of the time.</p><h3>1. The Element Selector (The “Everyone” Rule)</h3><p>This is the broadest way to style things. You just type the name of the HTML tag.</p><p>If you write p { color: red; }, you are basically telling the browser: &quot;Find <strong>every single paragraph</strong> on this entire website and make it red.&quot;</p><p>It’s great for setting defaults, like making all images a certain width. But be careful, cause it hits everything.</p><p>CSS</p><pre>/* Targets ALL &lt;p&gt; tags */<br>p {<br>  font-size: 16px;<br>}</pre><h3>2. The Class Selector (The “Club Member” Rule)</h3><p>This is the one you will use the most. Seriously.</p><p>Imagine you have five paragraphs, but you only want <em>two</em> of them to look different. You give them a class name in your HTML, like &lt;p class=&quot;highlight&quot;&gt;.</p><p>In CSS, you target a class using a <strong>dot</strong> (.).</p><p>It’s like giving people name tags. Everyone wearing a “Staff” badge gets free coffee. Everyone else pays. Multiple elements can have the same class, so it’s perfect for reusable styles.</p><p>CSS</p><pre>/* Targets only elements with class=&quot;highlight&quot; */<br>.highlight {<br>  background-color: yellow;<br>}</pre><h3>3. The ID Selector (The “VIP” Rule)</h3><p>This one is strict. An ID is like a Social Security Number or a passport. <strong>There can only be ONE element with a specific ID on a page.</strong></p><p>In CSS, you use a <strong>hashtag</strong> (#).</p><p>Use this for things that are totally unique, like your main header or a specific footer section. But honestly? Most developers prefer classes because they are more flexible. If you use IDs too much, you’ll paint yourself into a corner later.</p><p>CSS</p><pre>/* Targets the ONE element with id=&quot;main-header&quot; */<br>#main-header {<br>  border: 1px solid black;<br>}</pre><h3>4. Group Selectors (The “Lazy” Rule)</h3><p>Programmers are lazy. It’s a fact.</p><p>If you want your h1 titles AND your p paragraphs to both be gray, you <em>could</em> write the code twice. Or, you can just group them with a <strong>comma</strong>.</p><p>It basically says: “You, and you, both listen to this.”</p><p>CSS</p><pre>/* Targets h1 AND p tags together */<br>h1, p {<br>  color: gray;<br>}</pre><h3>5. Descendant Selectors (The “Family Tree” Rule)</h3><p>This is where it gets cool. What if you only want to style a link (a) tag, but <em>only</em> if it is inside a navigation menu? You don&#39;t want to mess up the links in your paragraphs.</p><p>You use a <strong>space</strong> to show the relationship.</p><p>div a translates to: &quot;Find a div, then look inside it for an a.&quot;</p><p>CSS</p><pre>/* Targets &lt;a&gt; tags ONLY if they are inside a &lt;nav&gt; */<br>nav a {<br>  text-decoration: none;<br>}</pre><h3>A Quick Note on “Who Wins?” (Priority)</h3><p>Okay, so what happens if you have a p tag (Element selector) that says the text is Blue, but it also has a class (Class selector) that says the text is Red?</p><p>The browser has a scoring system called <strong>Specificity</strong>.</p><ul><li><strong>Element selectors</strong> are weak (1 point).</li><li><strong>Class selectors</strong> are medium strength (10 points).</li><li><strong>ID selectors</strong> are heavyweights (100 points).</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=96bc4ca9492c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Emmet for HTML: A Beginner’s Guide to Writing Faster Markup]]></title>
            <link>https://medium.com/@rushisalunke006/emmet-for-html-a-beginners-guide-to-writing-faster-markup-3ac01efc7970?source=rss-a9af28342396------2</link>
            <guid isPermaLink="false">https://medium.com/p/3ac01efc7970</guid>
            <dc:creator><![CDATA[Rushisalunke]]></dc:creator>
            <pubDate>Sat, 31 Jan 2026 06:24:39 GMT</pubDate>
            <atom:updated>2026-01-31T06:24:39.145Z</atom:updated>
            <content:encoded><![CDATA[<h3>Typing Less, Coding More: A Beginner’s Guide to Emmet in HTML</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bNWlaqUljrW1cNCx_s6Kpw.png" /></figure><p>Alright, so you’re just getting started with HTML, right? You’re probably sitting there typing &lt;div class=&quot;container&quot;&gt; then hitting enter, then typing &lt;/div&gt;, then realizing you forgot the class name and going back... it gets kinda slow, huh? All those &lt; &gt; and &lt;/ &gt; brackets. It feels like you&#39;re writing more boilerplate than actual content.</p><p>What if I told you there’s a little secret weapon that can speed up your HTML (and CSS!) typing by, like, 10x? Seriously. It’s called <strong>Emmet</strong>.</p><p>Emmet isn’t a programming language or some fancy framework. It’s basically a <strong>shorthand language</strong> for your code editor. You type a tiny abbreviation, hit Tab (or Enter in some setups), and BAM! It expands into a full block of HTML. It&#39;s like having a super-fast assistant for your keyboard.</p><h3>Why Emmet is Your New Best Friend (Especially for Beginners)</h3><ul><li><strong>Saves Time:</strong> Less typing means faster coding. More time for coffee breaks!</li><li><strong>Reduces Typos:</strong> If Emmet types the tags for you, you’re less likely to make a mistake in the closing tag or miss an attribute.</li><li><strong>Keeps You Focused:</strong> You spend less time wrestling with syntax and more time thinking about your page structure</li><li><strong>It’s Built-In:</strong> Most modern code editors (like VS Code, Sublime Text, Atom) have Emmet built right in, so you don’t even need to install anything. Pretty sweet, right?</li></ul><h3>How Emmet Works in Your Editor</h3><p>It’s super simple. You just type your Emmet abbreviation, and then you press a specific key. In VS Code, it’s usually Tab. You&#39;ll even see a little preview of what it&#39;s going to expand into as you type.</p><p>Let’s dive into some common patterns.</p><h3>Basic Emmet Magic: Elements, Classes, IDs</h3><h3>1. Creating a Simple HTML Element</h3><p>Want a paragraph tag? Just type the tag name.</p><p><strong>Abbreviation:</strong> p <strong>Hit Tab:</strong> &lt;p&gt;&lt;/p&gt;</p><p>Need a heading?</p><p><strong>Abbreviation:</strong> h1 <strong>Hit Tab:</strong> &lt;h1&gt;&lt;/h1&gt;</p><p>See? Easy peasy.</p><h3>2. Adding Classes (The Dot Notation)</h3><p>This is where Emmet starts to get really useful. You use a <strong>dot </strong><strong>.</strong> just like you do in CSS.</p><p>Want a div with a class of container?</p><p><strong>Abbreviation:</strong> div.container <strong>Hit Tab:</strong> &lt;div class=&quot;container&quot;&gt;&lt;/div&gt;</p><p>If you just type .some-class, Emmet assumes you want a div.</p><p><strong>Abbreviation:</strong> .wrapper <strong>Hit Tab:</strong> &lt;div class=&quot;wrapper&quot;&gt;&lt;/div&gt;</p><p>You can add multiple classes too!</p><p><strong>Abbreviation:</strong> p.text-center.lead <strong>Hit Tab:</strong> &lt;p class=&quot;text-center lead&quot;&gt;&lt;/p&gt;</p><h3>3. Adding IDs (The Hash Notation)</h3><p>Same idea as classes, but with a <strong>hash </strong><strong>#</strong> for IDs. Remember, IDs should be unique on a page, so use them sparingly.</p><p><strong>Abbreviation:</strong> header#main-header <strong>Hit Tab:</strong> &lt;header id=&quot;main-header&quot;&gt;&lt;/header&gt;</p><h3>4. Adding Attributes (The Square Brackets)</h3><p>Need to add src, alt, data-something, or any other attribute? Use <strong>square brackets </strong><strong>[]</strong>.</p><p><strong>Abbreviation:</strong> img[src=&quot;images/logo.png&quot; alt=&quot;My Logo&quot;] <strong>Hit Tab:</strong> &lt;img src=&quot;images/logo.png&quot; alt=&quot;My Logo&quot;&gt;</p><h3>Getting Fancy: Nesting and Repeating Elements</h3><h3>1. Creating Nested Elements (The Child Operator &gt;)</h3><p>This is a game-changer. Want a div inside a section, and <em>that</em> has a p inside it? No problem. Use the <strong>greater than sign </strong><strong>&gt;</strong>.</p><p><strong>Abbreviation:</strong> section&gt;div&gt;p <strong>Hit Tab:</strong></p><p>HTML</p><pre>&lt;section&gt;<br>  &lt;div&gt;<br>    &lt;p&gt;&lt;/p&gt;<br>  &lt;/div&gt;<br>&lt;/section&gt;</pre><h3>2. Creating Sibling Elements (The Sibling Operator +)</h3><p>Want elements next to each other, not inside each other? Use the <strong>plus sign </strong><strong>+</strong>.</p><p><strong>Abbreviation:</strong> h1+p+a <strong>Hit Tab:</strong></p><p>HTML</p><pre>&lt;h1&gt;&lt;/h1&gt;<br>&lt;p&gt;&lt;/p&gt;<br>&lt;a&gt;&lt;/a&gt;</pre><h3>3. Repeating Elements (The Multiplication Operator *)</h3><p>Need a list of 5 items? Or 3 columns? This is super handy. Use the <strong>asterisk </strong><strong>*</strong>.</p><p><strong>Abbreviation:</strong> ul&gt;li*3 <strong>Hit Tab:</strong></p><p>HTML</p><pre>&lt;ul&gt;<br>  &lt;li&gt;&lt;/li&gt;<br>  &lt;li&gt;&lt;/li&gt;<br>  &lt;li&gt;&lt;/li&gt;<br>&lt;/ul&gt;</pre><p>You can even add text content (using {}) and auto-increment numbers!</p><p><strong>Abbreviation:</strong> ul&gt;li{Item $}*3 <strong>Hit Tab:</strong></p><p>HTML</p><pre>&lt;ul&gt;<br>  &lt;li&gt;Item 1&lt;/li&gt;<br>  &lt;li&gt;Item 2&lt;/li&gt;<br>  &lt;li&gt;Item 3&lt;/li&gt;<br>&lt;/ul&gt;</pre><p><em>(Note: Sometimes the </em><em>$ increments, sometimes you need </em><em>$ for the number and </em><em>@ for the start number, depending on context or editor. Just try it!)</em></p><h3>4. Grouping (The Parenthesis ())</h3><p>What if you want to repeat a whole <em>group</em> of elements? Use <strong>parentheses </strong><strong>()</strong>.</p><p><strong>Abbreviation:</strong> (div&gt;p)+a <strong>Hit Tab:</strong></p><p>HTML</p><pre>&lt;div&gt;<br>  &lt;p&gt;&lt;/p&gt;<br>&lt;/div&gt;<br>&lt;a&gt;&lt;/a&gt;</pre><p>This ensures the p is inside the div, and the a is next to the div, not inside the p.</p><h3>The Ultimate Shortcut: HTML Boilerplate</h3><p>This one alone makes Emmet worth it. To get a full, basic HTML5 document structure:</p><p><strong>Abbreviation:</strong> ! (or html:5 if ! doesn&#39;t work) <strong>Hit Tab:</strong></p><p>HTML</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html lang=&quot;en&quot;&gt;<br>&lt;head&gt;<br>  &lt;meta charset=&quot;UTF-8&quot;&gt;<br>  &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;<br>  &lt;title&gt;Document&lt;/title&gt;<br>&lt;/head&gt;<br>&lt;body&gt;</pre><pre>&lt;/body&gt;<br>&lt;/html&gt;</pre><p>Boom! Instant starting point. The cursor even lands right in the &lt;title&gt; tag so you can type your page title immediately.</p><h3>Conclusion: Emmet is Your Speed Boost</h3><p>Don’t try to memorize every single Emmet trick right away. Just start with the basics:</p><ul><li>tag</li><li>tag.class</li><li>tag#id</li><li>tag[attr=&quot;value&quot;]</li><li>parent&gt;child</li><li>sibling+sibling</li><li>tag*number</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3ac01efc7970" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From URL to Pixels: Beginner’s Guide to How Browsers Work]]></title>
            <link>https://medium.com/@rushisalunke006/from-url-to-pixels-beginners-guide-to-how-browsers-work-e303a356648b?source=rss-a9af28342396------2</link>
            <guid isPermaLink="false">https://medium.com/p/e303a356648b</guid>
            <dc:creator><![CDATA[Rushisalunke]]></dc:creator>
            <pubDate>Wed, 28 Jan 2026 18:09:16 GMT</pubDate>
            <atom:updated>2026-01-28T18:09:16.131Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oFvuMqOLhdE47Ees0QJeIg.png" /></figure><h3>What happens after I type a URL and press Enter?</h3><p>Imagine you type <a href="https://www.example.com/">www.example.com</a> into your browser and hit Enter. Instantly, a chain of events begins inside your browser — like a team of specialists working together to fetch, understand, and display the website on your screen.</p><h3>What a Browser Actually Is</h3><p>A browser isn’t just “something that opens websites.” It’s a software system made of multiple components:</p><ul><li><strong>User Interface (UI):</strong> The part you see — address bar, tabs, buttons.</li><li><strong>Browser Engine:</strong> The coordinator that tells other parts what to do.</li><li><strong>Rendering Engine:</strong> The artist that paints the page on your screen.</li><li><strong>Networking:</strong> The messenger that fetches HTML, CSS, and JavaScript from the internet.</li><li><strong>JavaScript Engine:</strong> The brain that executes scripts.</li><li><strong>Data Storage:</strong> Cookies, cache, bookmarks.</li></ul><h3>User Interface</h3><ul><li><strong>Address Bar:</strong> Where you type the URL.</li><li><strong>Tabs:</strong> Allow multiple pages at once.</li><li><strong>Buttons:</strong> Back, forward, refresh — your navigation controls.</li></ul><p>Think of the UI as the steering wheel and dashboard of a car. It doesn’t drive the car itself, but it lets you control everything.</p><h3>Browser Engine vs Rendering Engine</h3><ul><li><strong>Browser Engine:</strong> Like a project manager, it decides which component should act.</li><li><strong>Rendering Engine:</strong> Like a painter, it takes HTML, CSS, and JavaScript instructions and turns them into pixels.</li></ul><p>Examples: Chromium (used in Chrome/Edge), Gecko (used in Firefox).</p><h3>Networking: Fetching the Ingredients</h3><p>When you press Enter:</p><ol><li>The browser sends a request to the server.</li><li>The server responds with HTML, CSS, JS files.</li><li>The networking layer delivers these files to the rendering engine.</li></ol><h3>HTML Parsing and DOM Creation</h3><ul><li><strong>Parsing:</strong> Breaking down HTML into meaningful chunks.</li><li><strong>DOM (Document Object Model):</strong> A tree-like structure representing the page.</li></ul><p>Analogy: Parsing is like breaking a sentence into subject, verb, and object. The DOM is the family tree of elements.</p><h3>CSS Parsing and CSSOM Creation</h3><ul><li>CSS is parsed into another tree called <strong>CSSOM (CSS Object Model).</strong></li><li>It describes how elements should look — colors, fonts, layouts.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xo3z2PqQn3CpwlY-W0HdUg.png" /></figure><h3>DOM + CSSOM → Render Tree</h3><p>The browser combines DOM (structure) and CSSOM (style) into a <strong>Render Tree.</strong></p><ul><li>DOM = skeleton</li><li>CSSOM = clothes</li><li>Render Tree = dressed-up figure ready for display</li></ul><h3>Layout (Reflow), Painting, and Display</h3><ol><li><strong>Layout (Reflow):</strong> Browser calculates positions and sizes of elements.</li><li><strong>Painting:</strong> Browser fills in colors, borders, text.</li><li><strong>Display:</strong> Pixels appear on your screen.</li></ol><p>Analogy: It’s like arranging furniture (layout), painting walls (paint), and finally opening the door to show the room (display).</p><h3>Very Basic Idea of Parsing</h3><p>Take a math expression: 2 + 3 * 4</p><ul><li>Parsing breaks it into parts: numbers and operators.</li><li>Then builds a tree:</li></ul><pre>       +<br>      / \<br>     2   *<br>        / \<br>       3   4</pre><p>This helps the computer understand the correct order: multiplication before addition.</p><h3>High-Level Flow Diagram</h3><pre>URL → Networking → HTML/CSS/JS<br>     ↓<br>HTML → DOM Tree<br>CSS → CSSOM Tree<br>     ↓<br>DOM + CSSOM → Render Tree<br>     ↓<br>Layout → Paint → Display</pre><h3>Reassurance for Beginners</h3><p>Don’t worry if you can’t memorize all these terms. The important part is the <strong>flow</strong>:</p><ul><li>Browser fetches content</li><li>Breaks it into structure and style</li><li>Combines them</li><li>Lays out and paints pixels</li></ul><p>Over time, these terms (DOM, CSSOM, rendering engine) will feel natural.</p><h3>Final Thought</h3><p>A browser is like a theater production:</p><ul><li><strong>Networking:</strong> brings the script.</li><li><strong>Parsing:</strong> breaks it into roles.</li><li><strong>DOM &amp; CSSOM:</strong> cast and costumes.</li><li><strong>Rendering Engine:</strong> directs the play.</li><li><strong>Display:</strong> the show on stage — your screen.</li></ul><p>That’s the magic behind typing a URL and seeing a website come alive!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e303a356648b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TCP Working: 3-Way Handshake & Reliable Communication]]></title>
            <link>https://medium.com/@rushisalunke006/tcp-working-3-way-handshake-reliable-communication-8c676245e486?source=rss-a9af28342396------2</link>
            <guid isPermaLink="false">https://medium.com/p/8c676245e486</guid>
            <dc:creator><![CDATA[Rushisalunke]]></dc:creator>
            <pubDate>Wed, 28 Jan 2026 18:00:50 GMT</pubDate>
            <atom:updated>2026-01-28T18:00:50.096Z</atom:updated>
            <content:encoded><![CDATA[<h3>The Digital Handshake: Understanding the TCP 3-Way Handshake</h3><h3>Why Do We Need TCP?</h3><p>Without rules, data sent over the internet is like a letter dropped into a windstorm. Packets of data can get lost, arrive out of order, or become corrupted. TCP was created to solve these specific problems:</p><ul><li><strong>Packet Loss:</strong> If a piece of data goes missing, TCP notices and asks for a resend.</li><li><strong>Out-of-Order Delivery:</strong> If Part B arrives before Part A, TCP holds them until the set is complete and puts them in order.</li><li><strong>Congestion:</strong> If the network is too busy, TCP slows down to prevent a total crash.</li></ul><h3>The Beginning: The TCP 3-Way Handshake</h3><p>Before two computers can exchange data, they must agree to talk. They don’t just start sending files; they perform a “handshake.” Think of it as a formal introduction between a Client and a Server.</p><h4>Step 1: SYN (Synchronize)</h4><p>The Client sends a message called a <strong>SYN</strong> packet.</p><ul><li><strong>The Message:</strong> “I want to talk to you. Here is my starting sequence number ($X$).”</li><li><strong>Analogy:</strong> You tap someone on the shoulder and say, “Hello, can you hear me?”</li></ul><h4>Step 2: SYN-ACK (Synchronize-Acknowledge)</h4><p>The Server receives the request and sends back a <strong>SYN-ACK</strong> packet.</p><ul><li><strong>The Message:</strong> “I heard you! I’m ready too. Here is my starting sequence number ($Y$), and I acknowledge yours ($X+1$).”</li><li><strong>Analogy:</strong> They turn around and say, “Yes, I can hear you! Can you hear me?”</li></ul><h4>Step 3: ACK (Acknowledge)</h4><p>The Client receives the Server’s response and sends one final <strong>ACK</strong> packet.</p><ul><li><strong>The Message:</strong> “Great! I hear you too. Let’s start.”</li><li><strong>Analogy:</strong> You reply, “Yes, I hear you. Let’s talk.”</li></ul><h3>The Middle: Reliable Data Transfer</h3><p>Once the handshake is complete, the “Virtual Circuit” is open. Now, data flows in chunks.</p><p>TCP uses <strong>Sequence Numbers</strong> to label every byte of data. When the server receives data, it sends an <strong>Acknowledgement (ACK)</strong> back. If the Client doesn’t receive an ACK within a certain time, it assumes the packet was lost and sends it again automatically. This “Stop-and-Wait” or “Sliding Window” mechanic is what makes the internet reliable.</p><h3>The End: Closing the Connection</h3><p>When the conversation is over, TCP doesn’t just “hang up.” It performs a graceful teardown to ensure no data is left “in flight.”</p><ol><li><strong>FIN:</strong> The Client sends a “Finished” message.</li><li><strong>ACK:</strong> The Server acknowledges the request.</li><li><strong>FIN:</strong> The Server sends its own “Finished” message once it’s done sending its remaining data.</li><li><strong>ACK:</strong> The Client sends a final acknowledgement, and the connection is closed.</li></ol><h3>Summary for Developers</h3><p>As a developer, you don’t usually see the SYN or ACK packets, but they impact your application’s performance. The 3-way handshake adds “latency” — a small delay before the first byte of your API data actually moves. This is why protocols like <strong>HTTP/3</strong> are now experimenting with ways to make this handshake even faster.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zCyOXbtOA6uWl6yj.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8c676245e486" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TCP vs UDP: When to Use What, and How TCP Relates to HTTP]]></title>
            <link>https://medium.com/@rushisalunke006/tcp-vs-udp-when-to-use-what-and-how-tcp-relates-to-http-eb31e7731efa?source=rss-a9af28342396------2</link>
            <guid isPermaLink="false">https://medium.com/p/eb31e7731efa</guid>
            <dc:creator><![CDATA[Rushisalunke]]></dc:creator>
            <pubDate>Fri, 23 Jan 2026 15:16:01 GMT</pubDate>
            <atom:updated>2026-01-23T15:16:01.535Z</atom:updated>
            <content:encoded><![CDATA[<h3>1. The Rules of the Road: TCP vs. UDP</h3><p>The internet is essentially a massive web of messages being sent back and forth. To ensure these messages reach their destination, we use Transport Protocols. Think of these as the “shipping methods” for your data.</p><h3>TCP: The Reliable Courier</h3><p>TCP (Transmission Control Protocol) is like a high-end courier service. Before a single piece of data is sent, TCP establishes a connection (a “handshake”). It tracks every packet, ensures they arrive in the correct order, and asks for a resend if something goes missing.</p><ul><li>Analogy: A phone call. You say “Hello,” the other person acknowledges it, and you both ensure you’re hearing every word clearly.</li></ul><h3>UDP: The Live Broadcaster</h3><p>UDP (User Datagram Protocol) is like a megaphone announcement. It sends data as fast as possible without checking if anyone is actually listening or if the message was cut off. It doesn’t care about order or missing pieces; it only cares about speed.</p><ul><li>Analogy: A live radio broadcast. If you miss a second of audio due to static, the radio station doesn’t pause the show to replay it for you — it just keeps going.</li></ul><h3>2. Key Differences at a Glance</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*xHojtvIgkKrK8A4oN-Ua_w.png" /></figure><h3>3. When to Use What?</h3><h3>When to use TCP</h3><p>You should use TCP whenever data integrity is more important than speed. If losing a single piece of information would break the system, TCP is your only choice.</p><ul><li>Websites: You don’t want half an article to go missing.</li><li>File Transfers: A corrupted byte in a .zip file makes it unopenable.</li><li>Databases: Financial transactions must be 100% accurate.</li></ul><h3>When to use UDP</h3><p>Use UDP when speed is the priority and losing a tiny bit of data is acceptable.</p><ul><li>Video Streaming: If one pixel is blurry for a millisecond, you won’t notice.</li><li>Online Gaming: You need to know where your opponent is <em>now</em>, not where they were two seconds ago.</li><li>Voice over IP (VoIP): A tiny glitch in audio is better than a 5-second delay in the conversation.</li></ul><h3>4. The Relationship: How TCP Relates to HTTP</h3><p>A common point of confusion for beginners is: <em>“I use HTTP for my APIs, so why do I need to care about TCP?”</em></p><h3>HTTP is the “What,” TCP is the “How”</h3><p>HTTP (Hypertext Transfer Protocol) is an Application Layer protocol. It defines the <em>format</em> of the message (e.g., “GET /index.html”). However, HTTP doesn’t actually know how to move that message across the wires.</p><p>TCP is the foundation. HTTP sits on top of TCP. When you send an HTTP request, it is chopped up into little pieces and handed to TCP, which ensures every piece reaches the server safely and in order.</p><h3>Why HTTP doesn’t replace TCP</h3><p>Think of it like this:</p><ul><li>TCP is the Train Tracks. It provides the infrastructure for safe travel.</li><li>HTTP is the Cargo inside the train. It’s the actual “stuff” you want to deliver.</li></ul><p>You can’t have the cargo without the tracks! This is why, for the vast majority of web history, HTTP/1.1 and HTTP/2 have relied exclusively on TCP to function.</p><h3>5. Summary</h3><ul><li>TCP is safe, ordered, and reliable (Perfect for Web/Email/Files).</li><li>UDP is fast, simple, and “lossy” (Perfect for Video/Gaming).</li><li>HTTP is the language your browser speaks, and it uses TCP as its trusted delivery man to make sure your website arrives in one piece.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1UHnu8wMfuHtOYCX.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eb31e7731efa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How DNS Resolution Works?]]></title>
            <link>https://medium.com/@rushisalunke006/how-dns-resolution-works-f6cca4a98d0d?source=rss-a9af28342396------2</link>
            <guid isPermaLink="false">https://medium.com/p/f6cca4a98d0d</guid>
            <dc:creator><![CDATA[Rushisalunke]]></dc:creator>
            <pubDate>Fri, 23 Jan 2026 15:06:53 GMT</pubDate>
            <atom:updated>2026-01-23T15:06:53.945Z</atom:updated>
            <content:encoded><![CDATA[<h3>Demystifying DNS: A Step-by-Step Journey using the dig Command</h3><p>Ever wondered how typing <a href="http://google.com/">google.com</a> into a browser magically connects you to a server thousands of miles away? The answer lies in DNS (Domain Name System).</p><p>While browsers handle DNS automatically, developers and system engineers use a powerful tool called dig (Domain Information Groper) to peek under the hood. In this post, we’ll use dig to trace a DNS request through the layers of the internet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3M9BMPlbFtbpOUV4.png" /></figure><h3>1. Why Name Resolution Exists</h3><p>Computers are great with numbers, but humans are better with names. A computer needs an IP Address (like 142.250.190.46) to find a server. DNS acts as the Internet’s Phonebook, translating the names we remember into the addresses machines need.</p><h3>2. Meet your Diagnostic Tool: dig</h3><p>dig is a command-line utility used for querying DNS name servers. It tells you exactly what is happening during a lookup, making it indispensable for debugging &quot;site not found&quot; errors or verifying domain ownership.</p><h3>3. The Hierarchy: Root, TLD, and Authoritative</h3><p>DNS isn’t one big database; it’s a hierarchy. To find <a href="http://google.com/">google.com</a>, a Recursive Resolver (the middleman) must ask three different types of servers. Let&#39;s walk through them using dig.</p><h3>Step A: The Root Name Servers (dig . NS)</h3><p>The root is the top of the hierarchy, represented by a dot (.). It doesn&#39;t know where websites are, but it knows who handles the &quot;suffixes&quot; like .com or .org.</p><p>Try this: dig . NS</p><ul><li>What it shows: A list of 13 root server clusters (<a href="http://a.root-servers.net/">a.root-servers.net</a> to <a href="http://m.root-servers.net/">m.root-servers.net</a>).</li><li>The Problem it Solves: It tells the resolver: “I don’t know where <a href="http://google.com/">google.com</a> is, but go talk to the .com TLD servers.&quot;</li></ul><h3>Step B: The TLD Name Servers (dig com NS)</h3><p>TLD stands for Top-Level Domain. These servers manage all domains under a specific extension.</p><p>Try this: dig com NS</p><ul><li>What it shows: The servers responsible for the entire .com space.</li><li>The Problem it Solves: It narrows the search from “all domains” to “only .com domains.”</li></ul><h3>Step C: Authoritative Name Servers (dig <a href="http://google.com/">google.com</a> NS)</h3><p>Now we reach the “Source of Truth.” These are the servers managed by the domain owner (Google).</p><p>Try this: dig <a href="http://google.com/">google.com</a> NS</p><ul><li>What it shows: Google’s specific name servers (e.g., <a href="http://ns1.google.com/">ns1.google.com</a>).</li><li>The Role of the NS Record: The NS record tells the world, “These specific servers are the official authority for this domain.”</li></ul><h3>4. The Grand Finale: Full Resolution (dig <a href="http://google.com/">google.com</a>)</h3><p>After navigating the layers, the resolver finally asks the authoritative server for the actual A Record (the IPv4 address).</p><p>Try this: dig <a href="http://google.com/">google.com</a></p><ul><li>The Result: In the ANSWER SECTION, you’ll finally see the IP address.</li><li>Real-world Connection: This IP address is what your browser uses to start the “Three-way Handshake” and load the website files.</li></ul><h3>Summary for System Design</h3><p>When designing scalable systems, understanding this flow is critical.</p><ol><li>Latency: Every “hop” in the diagram adds time. This is why DNS Caching is used at every level.</li><li>Redundancy: By using dig, you can ensure your domain has multiple NS records in different regions, so your site stays up even if one server fails.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f6cca4a98d0d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting Started with cURL]]></title>
            <link>https://medium.com/@rushisalunke006/getting-started-with-curl-2d5febb9ca02?source=rss-a9af28342396------2</link>
            <guid isPermaLink="false">https://medium.com/p/2d5febb9ca02</guid>
            <dc:creator><![CDATA[Rushisalunke]]></dc:creator>
            <pubDate>Tue, 20 Jan 2026 19:29:58 GMT</pubDate>
            <atom:updated>2026-01-20T19:29:58.510Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>1. The Basics: What is a Server?</strong></h3><p>Before we talk about cURL, we need to understand the <strong>Server</strong>.</p><p>Imagine a server is a librarian sitting behind a desk. If you want a specific book (data) or want to donate a book (upload data), you have to go to that desk and ask. In the digital world, “asking” is called a <strong>Request</strong>, and the librarian’s answer is called a <strong>Response</strong>.</p><h3>2. What is cURL? (In Simple Terms)</h3><p><strong>cURL</strong> (which stands for “Client URL”) is a command-line tool used to send and receive data between your computer and a server.</p><p>While a <strong>Web Browser</strong> (like Chrome or Safari) is a visual tool to talk to servers, <strong>cURL</strong> is a text-based tool. It allows you to “talk” to the internet directly from your terminal or command prompt without any buttons or images.</p><h3>3. Why Programmers Need cURL</h3><p>If a browser can talk to a server, why do we need cURL?</p><ul><li><strong>Speed:</strong> It’s faster to type a command than to navigate a UI.</li><li><strong>Automation:</strong> You can write scripts that use cURL to check if a website is down or to upload files automatically.</li><li><strong>Debugging:</strong> When an API isn’t working, cURL shows you the raw data without the browser “cleaning it up.”</li></ul><h3>4. Making Your First Request</h3><p>Let’s try the simplest cURL command possible. Open your terminal and type:</p><p>curl <a href="https://www.google.com/">https://www.google.com</a></p><p><strong>What happens?</strong> You’ll see a wall of text. That text is the <strong>HTML code</strong> of Google’s homepage. You just asked the Google server for its files, and it sent them back to your terminal!</p><h3>5. Talking to APIs: GET and POST</h3><p>When we talk to modern apps (APIs), we usually do two things:</p><h3>The “GET” Request (Asking for Data)</h3><p>By default, cURL performs a GET request. It’s like saying, “Hey server, give me the info on User #10.”</p><p>curl <a href="https://api.example.com/users/10">https://api.example.com/users/10</a></p><h3>The “POST” Request (Sending Data)</h3><p>Sometimes you want to give the server information, like creating a new account. This is a POST request.</p><p>curl -X POST -d “name=John” <a href="https://api.example.com/register">https://api.example.com/register</a></p><p>(The -d stands for “data”)</p><h3>6. Common Mistakes Beginners Make</h3><ul><li><strong>Forgetting the Protocol:</strong> If you type curl google.com, it might fail. Always include <a href="https://./">https://.</a></li><li><strong>Ignoring the Output:</strong> Sometimes a server sends back an error (like a 404). Beginners often think cURL is broken, but cURL is just reporting exactly what the server said.</li><li><strong>Copy-Pasting Bad Quotes:</strong> If you copy a cURL command from a blog, sometimes the quotation marks are “smart quotes” (curly) instead of straight ones. cURL will only recognize straight &quot; quotes.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yPOeszKRMJS3VlxT6TgOkg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2d5febb9ca02" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DNS Record Types Explained]]></title>
            <link>https://medium.com/@rushisalunke006/dns-record-types-explained-06fa1c2e8cad?source=rss-a9af28342396------2</link>
            <guid isPermaLink="false">https://medium.com/p/06fa1c2e8cad</guid>
            <dc:creator><![CDATA[Rushisalunke]]></dc:creator>
            <pubDate>Tue, 20 Jan 2026 19:21:18 GMT</pubDate>
            <atom:updated>2026-01-20T19:21:18.886Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NoRKT86AB6hLIyilQQqGhg.png" /></figure><h3>How Does a Browser Know Where a Website Lives?</h3><p>Imagine you want to visit a friend’s house for the first time. You know their name is “Alex,” but your GPS doesn’t understand names — it needs a specific latitude and longitude or a street address to get you there.</p><p>The internet works the exact same way. When you type google.com into your browser, your computer actually has no idea where that is. Computers communicate using strings of numbers called <strong>IP Addresses</strong> (like 142.250.190.46).</p><p>This is where <strong>DNS (Domain Name System)</strong> comes in. Think of DNS as the <strong>phonebook of the internet</strong>. It’s the service that translates human-friendly names (https://www.google.com/url?sa=E&amp;source=gmail&amp;q=google.com) into computer-friendly numbers (IP addresses).</p><h3>Why Do We Need DNS Records?\</h3><p>A phonebook doesn’t just list names; it might list a home number, a work number, or an office address. In the world of domains, these different “entries” are called <strong>Records</strong>. Each record tells the internet something specific about your domain.</p><p>Without these records, your website wouldn’t load, your emails would vanish, and your domain would just be an empty name with no destination.</p><h3>1. The NS Record: Who Is the Boss?</h3><p><strong>NS</strong> stands for <strong>Name Server</strong>. This record tells the rest of the internet: <em>“I am the official authority for this domain. If you want to know anything about this website, ask these specific servers.”</em></p><ul><li><strong>Real-life example:</strong> Think of this as the <strong>Receptionist</strong> at a large building. You ask them where a specific office is, and they point you to the right floor.</li><li><strong>The Problem it Solves:</strong> It identifies which company (like Cloudflare, Route 53, or GoDaddy) is actually holding your “phonebook” settings.</li></ul><h3>2. The A Record: The Direct Address (IPv4)</h3><p>The <strong>A Record</strong> (Address Record) is the most common. It maps a domain name directly to a physical IP address.</p><ul><li><strong>Real-life example:</strong> Mapping the name “The White House” to the physical address “1600 Pennsylvania Avenue.”</li><li><strong>The Problem it Solves:</strong> This is how your browser finds the actual server where your website files are stored. It uses the older, standard 4-part number system (IPv4).</li></ul><h3>3. The AAAA Record: The Modern Address (IPv6)</h3><p>This is exactly like the A record, but for the new generation of IP addresses called <strong>IPv6</strong>. These addresses are much longer and look like 2001:0db8:85a3:0000:0000:8a2e:0370:7334.</p><ul><li><strong>The Problem it Solves:</strong> We are running out of old IPv4 addresses! AAAA records ensure your site is reachable on the modern, expanded version of the internet.</li></ul><h3>4. The CNAME Record: The Nickname</h3><p><strong>CNAME</strong> stands for <strong>Canonical Name</strong>. Instead of pointing a name to a number (IP), it points one name to <em>another</em> name.</p><ul><li><strong>Real-life example:</strong> If you have a friend named Robert, but everyone calls him “Bob,” you might write in your phonebook: <em>“Bob: see Robert.”</em></li><li><strong>A vs. CNAME Confusion:</strong> Use an <strong>A record</strong> when you have a direct IP address. Use a <strong>CNAME</strong> when you want one URL to just follow whatever another URL is doing (e.g., making www.yoursite.com point to yoursite.com).</li></ul><h3>5. The MX Record: The Mail Carrier</h3><p><strong>MX</strong> stands for <strong>Mail Exchanger</strong>. This record tells the world which server is responsible for handling your email.</p><ul><li><strong>Real-life example:</strong> This is like a <strong>Post Office Box</strong>. You might live at House A, but you want your mail delivered to Post Office B.</li><li><strong>NS vs. MX Confusion:</strong> Remember: <strong>NS</strong> is for the whole domain (the boss), while <strong>MX</strong> is <em>only</em> for your inbox.</li></ul><h3>6. The TXT Record: The Sticky Note</h3><p>A <strong>TXT Record</strong> is literally just a “text” note. It doesn’t “direct” traffic anywhere, but it provides information to anyone who asks.</p><ul><li><strong>Real-life example:</strong> Like a <strong>Security Badge</strong> or a verification code.</li><li><strong>The Problem it Solves:</strong> It’s mostly used for <strong>verification</strong>. For example, if you want to prove to Google that you own a domain, they’ll say: <em>“Add this random code to your TXT record.”</em> It also helps prevent people from sending fake emails using your name.</li></ul><h3>Putting It All Together: A Real-World Setup</h3><p>When you visit www.example.com, several records work together behind the scenes:</p><p><strong>NS Records</strong> point to the “Phonebook” where all the rules are kept.</p><p><strong>A Record</strong> tells the browser: “The website files are at 12.34.56.78.&quot;</p><p><strong>CNAME Record</strong> ensures that if you type shop.example.com, it knows to redirect to your Shopify or main store link.</p><p><strong>MX Record</strong> ensures that if someone emails hello@example.com, the message goes to Gmail/Outlook, not your web server.</p><p><strong>TXT Record</strong> tells the world: “Yes, I am the real owner of this domain.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NoRKT86AB6hLIyilQQqGhg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=06fa1c2e8cad" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Navigating the Digital Highways: A Guide to Network Devices for Software Engineers]]></title>
            <link>https://medium.com/@rushisalunke006/navigating-the-digital-highways-a-guide-to-network-devices-for-software-engineers-1dca88d530c4?source=rss-a9af28342396------2</link>
            <guid isPermaLink="false">https://medium.com/p/1dca88d530c4</guid>
            <dc:creator><![CDATA[Rushisalunke]]></dc:creator>
            <pubDate>Sun, 18 Jan 2026 18:34:12 GMT</pubDate>
            <atom:updated>2026-01-18T18:34:12.440Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FcbOcOdVVZkPhNV5k3xVMQ.png" /></figure><p>The internet, a vast ocean of information and services, reaches our homes and offices through a fascinating interplay of hardware devices. For software engineers, understanding these foundational components isn’t just about networking — it’s about comprehending the very infrastructure that hosts our applications, delivers our data, and connects our users.</p><p>Let’s embark on a journey through the essential network devices, from the moment the internet enters your building to the sophisticated traffic management within data centers.</p><h3>The Internet’s Grand Entrance: From the ISP to Your Network</h3><p>Imagine the internet as an expansive postal service, carrying countless letters (data packets) to and from destinations worldwide.1 To receive your mail, you need a specific address and a way for the post office to deliver it. This is where our first crucial device comes in.</p><h4>1. The Modem: Your Gateway to the ISP</h4><p>At its core, a <strong>modem (Modulator-Demodulator)</strong> is the device that translates signals from your Internet Service Provider (ISP) into a format your local network can understand, and vice versa.2 ISPs typically deliver internet access through different technologies — fiber optics, coaxial cable (for cable internet), or DSL over telephone lines. Each of these uses distinct signal types.</p><p><strong>How it connects your network to the internet:</strong></p><ul><li><strong>ISP’s Signal to Digital:</strong> The modem takes the analog or modulated digital signal from your ISP (e.g., light pulses over fiber, electrical signals over coax) and “demodulates” it into a standard digital signal (Ethernet).3</li><li><strong>Digital to ISP’s Signal:</strong> Conversely, it “modulates” the digital signal from your home network back into the ISP’s format for transmission.</li></ul><p>Think of the modem as a <strong>translator</strong>. It speaks the language of your ISP on one side and the language of your home network (Ethernet) on the other. It’s the critical first step in getting internet service into your building.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wgtv7gEuJg39ikItsV68Vg.png" /></figure><h4>2. The Router: Your Network’s Traffic Director</h4><p>Once the internet signal is translated by the modem, it enters your local network. This is where the <strong>router</strong> takes center stage. A router is essentially the <strong>traffic police</strong> of your network, directing data packets to their correct destinations.4</p><p><strong>How it directs traffic:</strong></p><ul><li><strong>Assigns IP Addresses:</strong> The router assigns unique local IP addresses to all devices on your network (laptops, phones, smart TVs) using DHCP (Dynamic Host Configuration Protocol).</li><li><strong>Routes Packets:</strong> When you request a webpage, your computer sends a request to the router.5 The router then knows to send that request out to the internet via the modem. When the webpage data returns, the router intelligently directs it back to the specific device that made the request.</li><li><strong>Network Address Translation (NAT):</strong> Critically, the router uses NAT to allow multiple devices on your private local network to share a single public IP address assigned by your ISP.6 This conserves public IP addresses and adds a layer of security.</li><li><strong>Connects Different Networks:</strong> The term “router” itself implies routing between different networks.7 Your home router connects your private local area network (LAN) to the public wide area network (WAN — the internet).8</li></ul><h4>Modem vs. Router: A Clear Distinction</h4><p>While often combined into a single “modem-router combo” device, their functions are distinct:</p><ul><li><strong>Modem:</strong> Connects your entire network to the <em>ISP</em>. Translates signals.</li><li><strong>Router:</strong> Connects your <em>local devices</em> to each other and manages their access to the internet <em>via the modem</em>. Directs traffic within your local network.</li></ul><h3>Inside Your Local Network: How Devices Communicate</h3><p>Once data is inside your local network, how do devices talk to each other efficiently?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gY8M-2_OtWUB4sRPvZB28A.png" /></figure><h4>3. Switch vs. Hub: How Local Networks Actually Work</h4><p>These devices are responsible for connecting multiple wired devices within the same local network segment.</p><ul><li><strong>The Hub (The Loudspeaker):</strong> Imagine a hub as a simple <strong>loudspeaker</strong> in a room. When one device connected to the hub sends data, the hub broadcasts that data to <em>all other devices</em> connected to it, regardless of the intended recipient.9 Each device then has to check if the data is for them. This creates a lot of unnecessary network traffic and can lead to collisions, slowing down the network.10 Hubs operate at Layer 1 (Physical Layer) of the OSI model.11</li><li><strong>The Switch (The Smart Post Office Sorter):</strong> A switch is far more intelligent.12 Think of it as a <strong>smart post office sorter</strong>. When a device sends data, the switch learns the MAC (Media Access Control) address of each connected device and builds a table mapping these addresses to its ports.13 When data arrives, the switch reads the destination MAC address and forwards the data <em>only to the intended recipient’s port</em>. This vastly reduces unnecessary traffic and improves network performance. Switches operate at Layer 2 (Data Link Layer) of the OSI model.14</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6cNabnZxzzD2HwizC08JJw.png" /></figure><h4>4. The Firewall: Where Security Lives</h4><p>In the digital world, security is paramount. A <strong>firewall</strong> acts as your network’s <strong>security guard or bouncer</strong>, inspecting all incoming and outgoing network traffic and deciding whether to allow or block it based on a defined set of security rules.15</p><p><strong>Why security lives here:</strong></p><ul><li><strong>Protects Against Unauthorized Access:</strong> The primary role of a firewall is to prevent unauthorized access to or from a private network.16 It can block malicious traffic, hacker attempts, and unwanted connections.17</li><li><strong>Packet Filtering:</strong> Firewalls can examine source and destination IP addresses, port numbers, and even the type of protocol (e.g., HTTP, FTP) to determine if a packet should pass.18</li><li><strong>Stateful Inspection:</strong> More advanced firewalls can track the “state” of connections, meaning they remember if an outgoing request was made, and only allow incoming traffic that is a legitimate response to an established connection.19</li><li><strong>Application-Layer Filtering:</strong> Modern firewalls can inspect traffic at the application layer, understanding the context of the data and blocking specific application-level threats.20</li></ul><p>Firewalls are typically positioned at the perimeter of a network, often integrated into routers or as standalone devices, to control the flow of traffic between your internal network and the outside world (the internet).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*anjKo2MD56i6aqS-llJ9DA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1dca88d530c4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>