<?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 Sailab Banik on Medium]]></title>
        <description><![CDATA[Stories by Sailab Banik on Medium]]></description>
        <link>https://medium.com/@sailabbanik24?source=rss-2e5a8d9b8846------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*S0Nv1JqvLCZJ6SzMFEuzuQ.jpeg</url>
            <title>Stories by Sailab Banik on Medium</title>
            <link>https://medium.com/@sailabbanik24?source=rss-2e5a8d9b8846------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 23:48:49 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sailabbanik24/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[Build Your First CI/CD Pipeline in Azure DevOps]]></title>
            <link>https://blog.devops.dev/build-your-first-ci-cd-pipeline-in-azure-devops-509f8a7d26d9?source=rss-2e5a8d9b8846------2</link>
            <guid isPermaLink="false">https://medium.com/p/509f8a7d26d9</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <category><![CDATA[azure-devops]]></category>
            <category><![CDATA[sdlc]]></category>
            <dc:creator><![CDATA[Sailab Banik]]></dc:creator>
            <pubDate>Thu, 05 Feb 2026 05:16:14 GMT</pubDate>
            <atom:updated>2026-02-06T11:22:45.352Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2hfspxCDRIOaUIe6-3p7qw.png" /></figure><p>Are you a developer working on a project and want to set up a basic CI/CD pipeline with Azure DevOps? Then this article is for you.</p><blockquote>Note: There are several ways to build a CI/CD pipeline, but in this article, we will see how to design a basic one for beginners.</blockquote><h3>What is Azure DevOps?</h3><p>Azure DevOps is a Microsoft product (SaaS application) that provides the entire <strong><em>software development lifecycle</em></strong> (SDLC).</p><p>The main components of it are as follows,</p><ul><li><strong>Broads:</strong> Works on an agile system of planning and working across teams.</li><li><strong>Repos:</strong> A version control environment with git support.</li><li><strong>Pipelines:</strong> The CI/CD service that works with multiple languages and platforms to automate builds and deployments.</li><li><strong>Test Plans:</strong> Provides testing tools to ensure quality.</li><li><strong>Artifacts:</strong> Enables developers to share Maven, npm, NuGet, and Python package feeds from public and private sources.</li></ul><p>In this article, we will focus only on the Repos and Pipelines tools.</p><h3>What is a CI/CD Pipeline?</h3><p>CI/CD is an acronym for <strong>Continuous Integration and Continuous Deployment, </strong>which basically automates the software development process. As the name suggests, it has two parts,</p><p><strong>Continuous Integration:</strong> Automates builds and tests for the code that is pushed to the repository.</p><p><strong>Continuous Deployment:</strong> Deploys the code automatically to the production environment.</p><p><em>The Pipelines feature in Azure DevOps helps us to continuously integrate and deploy our code in the production environment.</em></p><p>Now that we know what Azure DevOps is and what it means by a CI/CD pipeline, let’s perform this operation with a React application, where in the CI part, we will create a build of it, and in the CD part, we will see how to deploy the build to the remote machine as an artifact.</p><h3>Permission Required for CI/CD</h3><p>There are certain permissions required to create and run a CI/CD pipeline. These permissions are typically split across project-level and organization-level scopes.</p><h4><strong>Project Contributor</strong></h4><p>The <strong>Project Contributor</strong> role provides access to contribute to the project.<br> This generally includes:</p><ul><li>Read and write access to repositories.</li><li>Ability to create and modify CI/CD pipelines</li><li>Permission to queue and monitor pipeline runs</li></ul><p>In most cases, <strong>Contributor access is sufficient to author and manage CI/CD pipelines</strong>, assuming the required infrastructure permissions are already in place.</p><h4><strong>Agent Pool Creation</strong></h4><p>Agent pools are <strong>organization-level resources</strong>. These are the logical groupings of the agents, and an agent is nothing but the process that we are going to run on our server machine.</p><p>To create a self-hosted agent pool, a user must have:</p><ul><li>The <strong>Organization Administrator</strong> role, or</li><li>Explicit <strong>Create / Manage Agent Pools</strong> permission at the organization level</li></ul><p>In practice, <strong>Organization Administrators or a central DevOps/platform team</strong> usually manage agent pools. Project teams typically consume an existing pool rather than creating their own.</p><h4><strong>Agent Pool Usage</strong></h4><p>To run pipelines on a <strong>self-hosted agent pool</strong>, the user must have permission on the pool itself.</p><p>You can verify this by navigating to:</p><p><strong><em>Organization Settings → Agent Pools → &lt;Your Agent Pool&gt; → Security</em></strong></p><p>The required permissions are:</p><ul><li><strong>Reader</strong> — to see the agent pool</li><li><strong>User</strong> — to execute pipelines on the pool</li></ul><p>These permissions can be assigned directly to users or groups. If access is missing, you can request the organization administrator to delegate the required authorization.</p><blockquote>Note: Some Permissions may differ from org-to-org settings.</blockquote><h3>Repository in Azure DevOps</h3><p>Click on the Repos Section, then click on the plus icon, then create a repository if not exist in your Azure DevOps.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/1*avmmi2TxVl37QMLsdm-NGw.png" /></figure><p>Once created, you can clone or take a remote of your local working directory to get the files.</p><blockquote>If you’re new to git checkout my article on <a href="https://medium.com/javascript-in-plain-english/git-for-beginners-basics-and-essential-commands-b055b9c1d288">Git Essentials</a>.</blockquote><p>Once done, your Azure repository should look like the one below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kIyfgfUPqnf9YzxZb0QdAQ.png" /></figure><h3>Set Up Continuous Integration</h3><p>To set up continuous integration on Azure DevOps, we need to create a build pipeline.</p><p>There are two ways of doing it,</p><ul><li>Click on the <strong>Set Up Build</strong> button from your repository.</li><li>Or go to the Pipelines section and click on the <strong>New Pipeline</strong> button.</li></ul><p>If you choose the second option, click <strong>Azure Repos Git </strong>in the <strong>Connect</strong> tab, then choose the repository in the <strong>Select </strong>tab.</p><p>Now, in the <strong>Configure</strong> tab, Azure will automatically detect the language and provide you with some predefined templates.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1017/1*ElxtlDc7iRpSNKlPN8X-4Q.png" /></figure><p>You can select the template as per the use case, or you can start with a basic Starter Pipeline.</p><p>In this case, I will go with <strong>Node.js with a React</strong> template, which will provide me with the base YAML file for a React Project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pvl9RIGedq3hllq6b06kAg.png" /></figure><p>In the Review section, we can modify the pipeline as per our requirements, including test cases and other specifications. Once done, we can click on the <strong>Save and Run</strong> button.</p><p>And, wolla, your base Continuous Integration Pipeline is running. Whenever you make a change in your specified branch (main in our case), it will trigger this pipeline and create a build.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BqTt4FC5LPBqKLIKSiCGAw.png" /></figure><p>You can see the results of this by clicking on the Pipeline name in the Pipelines section. You can view the logs by clicking on the jobs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N9y2jPcyu70rz_-mGX_U7w.png" /></figure><p>Now that we know how to set up and run the CI pipeline, let’s dive into the deployment pipeline.</p><h3>Continuous Deployment Pipeline</h3><p>In this section, we will go step by step to deploy our React application build to a dedicated system.</p><h4>Creating Artifact in the Build Pipeline</h4><p>In our previous setup, we were creating the build using Azure Pipelines, but not storing it anywhere. To deploy the build, we need to create an artifact and publish it as an artifact.</p><blockquote>An artifact in Azure Pipelines is the deployable output generated by build or CI jobs, such as compiled binaries, executable files, or packaged code (e.g., ZIP, JAR, WAR files). These files are stored and published to be consumed by later stages (e.g., testing or deployment) to ensure consistent, traceable, and reusable results.</blockquote><p>Click on your Pipeline and go to Edit, and add the following lines of code to publish the build as an artifact.</p><pre>- task: PublishBuildArtifacts@1<br>  inputs:<br>    PathtoPublish: &#39;dist&#39;<br>    ArtifactName: &#39;dist&#39;<br>    publishLocation: &#39;Container&#39;</pre><p>Now, when the pipeline run is completed, it will publish an artifact that we will be able to use in our deploy/release pipeline.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T5T5Gksm6I-tOkUkDIuMqQ.png" /></figure><p>In the above image, you can see that 1 published is indicating that the artifact is created and stored and on clicking on it, you can see your build files inside it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hw1PnrQs585FhAq-zA2UBQ.png" /></figure><blockquote>In Azure Terminologies, CI pipeline is called Build Pipelines, and CD pipelines are called Release Pipelines.</blockquote><h4>Setup Agent</h4><p>Now, to deploy continuously in your dedicated system, go to the Agent Pools and click on your agent.</p><p>Now, click on <strong>New Agent </strong>and follow the instructions to download and set up the agent based on your platform.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*a1_ZCfwV-biQI9fDFk4gPQ.png" /></figure><p>In the process of config, it will ask for PAT (Personal Access Token), which you can generate in the user-settings section on the top right corner.</p><p>You need to generate the token with a few sets of permissions,</p><ul><li>Code (Read and Write)</li><li>Packaging (Read)</li><li>Agent Pools (Read and Manage)</li></ul><p>When you’re done with your setup and hit the command <strong>.\run.cmd, </strong>it will start running the agent in your system, and you can see the machine details in your Agent Pools’ <strong>Agents</strong> section. The machine name will appear with an online flag.</p><h4>Deploy Artifact using Agent.</h4><p>Now that we have our artifact and the agent setup is completed, let’s move into the last part of the deployment.</p><p>Go to <strong>Pipelines &gt;&gt; Releases</strong> Section in Azure DevOps and create a new release pipeline.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*VIRLwTnJ5e0500Ndn4Jd4g.png" /></figure><p>In this section, you can select any template as per your use case, or choose the Empty Job.</p><p>Now, add the artifact in the Add Artifact section, as shown inthe following image,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/722/1*F5Q7E5k6Mrl3rkC2mRZciA.png" /></figure><p>Now, click on the <strong>Thunder Icon</strong> of the artifact and enable the Continuous Deployment Trigger.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2qoe3gkv9KgWEIB1hzPt3Q.png" /></figure><p>Now, click on the <strong>Job and Task Panel</strong> of the Deploy to Machine stage and select your Agent Pool from this section.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L6rWhFavZueC1gMpKdVTOQ.png" /></figure><p>In this section, on clicking on the plus (+) icon, you can create different tasks for your agent based on your use case.</p><p>Once done, save the pipeline and click on the Create Release button. And with that, your agent will start running. You can see the logs by clicking on logs.</p><p>Now, when the pipeline run is completed, you can see your build files inside your machine’s</p><p><strong><em>C:\agent\_work\r1\a\&lt;your_CI_Pipeline_Name&gt;/dist </em></strong>folder.</p><p>Now, you can take this build and move it to your container or server. You can achieve this through automation in the release pipeline agent section, by clicking on the plus icon, as mentioned earlier.</p><p>And with that, our end-to-end CI/CD pipeline is ready to run and deploy your code continuously on your production environment.</p><p>Summarizing the flow:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EeUiJLmpLKveQf6ha-Ox4g.png" /></figure><p>I hope you can now create your first CI/CD pipeline in Azure DevOps. If this article adds value, give a clap and follow me for more such content. Comment down your thoughts in the comments.</p><p>Thank you for reading! 😊</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=509f8a7d26d9" width="1" height="1" alt=""><hr><p><a href="https://blog.devops.dev/build-your-first-ci-cd-pipeline-in-azure-devops-509f8a7d26d9">Build Your First CI/CD Pipeline in Azure DevOps</a> was originally published in <a href="https://blog.devops.dev/">DevOps.dev</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DNS Explained: Architecture, Resolution Flow, and Record Types]]></title>
            <link>https://javascript.plainenglish.io/dns-explained-architecture-resolution-flow-and-record-types-9a9e1d709745?source=rss-2e5a8d9b8846------2</link>
            <guid isPermaLink="false">https://medium.com/p/9a9e1d709745</guid>
            <category><![CDATA[dns]]></category>
            <category><![CDATA[dns-servers]]></category>
            <category><![CDATA[chaicode]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[browsers]]></category>
            <dc:creator><![CDATA[Sailab Banik]]></dc:creator>
            <pubDate>Fri, 30 Jan 2026 14:55:13 GMT</pubDate>
            <atom:updated>2026-01-31T07:09:25.575Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S5ey12xTIYm39Otwdzgm-w.png" /></figure><p>Do you know when you hit any URL, say, <a href="http://www.example.com/">www.example.com</a>, in the browser address bar, how it fetches the web application and shows it on your screen? Let’s explore.</p><p>In the last article, we discussed how a browser renders the files for us. In this article, we will explore how the browser fetches these web applications.</p><p>All the applications are running on some server machines. All these machines have IP addresses. But we don’t type something like 194.11.2.10 in our browser address bar, we hit some human-readable named URLS, like google.com, and it works.</p><p>How does the browser know which IP address to get for what? It is stored in a distributed hierarchical database-like system, known as a <strong><em>DNS (Domain Name System)</em></strong> server.</p><h3>What is DNS?</h3><p>The Domain Name System, or DNS, is a system that translates domain names to IP addresses so browsers can load Internet resources.</p><blockquote>It is often known as the <strong>Phonebook </strong>of the internet.</blockquote><p>For DNS to function, a device must know the IP address of at least one DNS server. This is achieved through <strong>preconfigured settings</strong>, <strong>automatic configuration via DHCP</strong>, and <strong>manual configuration</strong>.</p><p>Devices like routers, smartphones, and computers often ship with hardcoded DNS server IPs. Common examples include Google Public DNS (8.8.8.8, 8.8.4.4) and Cloudflare DNS (1.1.1.1). These serve as default starting points for DNS queries.</p><h3>DNS Architecture: The Resolvers</h3><p>In this section, let’s get briefly introduced to the resolvers involved in the DNS architecture. In the next section, we will see how these resolvers work recursively to complete the DNS resolution.</p><h4><strong>Stub Resolver</strong></h4><p>A DNS stub resolver is a lightweight client-side software component within an operating system or application that initiates DNS queries.</p><p>It is the closest to the user. Often, it stays inside the browser and OS. It stores the IP address in the local cache.</p><h4><strong>Recursive Resolver</strong></h4><p>The recursive resolver is the computer that responds to a recursive request from a client and takes the time to track down the DNS record.</p><p>The ISP-provided DNS, public DNS like Google DNS, and Cloudflare DNS are examples of it. The recursive resolver initiates a recursive process by making a series of requests until it reaches the authoritative DNS nameserver for the requested record.</p><p>Once found, it caches the result based on TTL.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7ExRZOEchrgVY52_snNztQ.png" /></figure><h4>Root Servers</h4><p>These servers<strong> </strong>sit at the top of the DNS hierarchy. There are 13 DNS root servers available.</p><p>These servers do not know the IP addresses, it responds with the TLD (Top-Level-Domain) servers’ reference.</p><p>For example, if the query is to the root servers with: <a href="http://www.example.com,/">www.example.com,</a> it will respond with: Ask the “.com” TLD server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/863/1*_PoVzoRgUbDB5gkanXAihg.png" /><figcaption>Root Servers</figcaption></figure><h4>TLD Servers</h4><p>TLD servers manages top level domains, like “.com”, “.in”, “.net”, etc.</p><p>TLD also doesn’t return the final IP address. It responds with the Authoritative Server, which manages the Domain for that requested URL.</p><h4>Authoritative Servers</h4><p>The authoritative name server is the final source of truth. This server knows the IP address and returns it to the server.</p><p>An authoritative nameserver can satisfy queries from its own data without needing to query another source.</p><h3>DNS Resolution Steps:</h3><p>Now we get to know all the servers involved in the DNS process. Let’s quickly see what happens when a user types “www.example.com” in their browser address bar,</p><ol><li>First, it goes to the Stub Resolver for checking the cache; if found, then it returns the IP address to the browser.</li><li>If not found, it goes to the Recursive Resolver. It requests the URL of a Root Server.</li><li>The Root Server responds with the reference of a TLD server.</li><li>TLD server responds with the reference of the Authoritative Server, which actually has the IP address.</li><li>The Authoritative Server responds with the IP address to the browser.</li><li>Browser caches it.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*I0KElsO_AikLR_Wr.png" /></figure><h3>DNS Record Types</h3><p>DNS Records are instructions that provide information about a domain, including what IP address it is associated with. It lives in the Authoritative DNS Server.</p><p>Let’s see the key DNS record types,</p><h4><strong>NS record</strong></h4><p>Stores the name server for a DNS entry. Basically, NS records tell the Internet where to go to find out a domain’s IP address.</p><p>NS Records decides which DNS provider is responsible.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/784/1*q9zKht7lBO_tO4z3BEV9vw.png" /></figure><h4><strong>A Record</strong></h4><p>The record that holds the IP (IPv4) address of a domain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/778/1*MBspRbcZHojB7cc0L7hNTw.png" /></figure><h4><strong>AAAA record</strong></h4><p>The record that contains the IPv6 address for a domain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/762/1*P1t3kfZzQvR79sxYL8KNCQ.png" /></figure><h4><strong>CNAME record</strong></h4><p>It forwards one domain or subdomain to another domain. Instead of pointing to an IP, it points to <strong>another domain name</strong>. For example, suppose blog.example.com has a CNAME record with a value of “example.com”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/801/1*va3necim3tKB1pULkOmY9Q.png" /></figure><h4>MX record</h4><p>A DNS ‘mail exchange’ (MX) record directs email to a mail server. It handles incoming mail.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/821/1*emKV_EvxqIpOa8Vbca3Vkg.png" /></figure><h4><strong>TXT record</strong></h4><p>It lets an admin store text notes in the record. These records are often used for email security.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/719/1*Qm-sG7X-LND0P7hjdyy26w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UX1sF3-Nb4BtlERKYnvZBA.png" /><figcaption>Overview of DNS Records</figcaption></figure><p>A quick recap of what we saw in this article,</p><ul><li>What is DNS</li><li>DNS architecture and servers</li><li>DNS record types and the nslookup command</li></ul><p>Thanks for Reading!😊</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9a9e1d709745" width="1" height="1" alt=""><hr><p><a href="https://javascript.plainenglish.io/dns-explained-architecture-resolution-flow-and-record-types-9a9e1d709745">DNS Explained: Architecture, Resolution Flow, and Record Types</a> was originally published in <a href="https://javascript.plainenglish.io/">JavaScript in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How a Browser Works: A Beginner-Friendly Guide to Browser Internals]]></title>
            <link>https://javascript.plainenglish.io/how-a-browser-works-a-beginner-friendly-guide-to-browser-internals-fd6efb07f9c9?source=rss-2e5a8d9b8846------2</link>
            <guid isPermaLink="false">https://medium.com/p/fd6efb07f9c9</guid>
            <category><![CDATA[chaicode]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[client-side-rendering]]></category>
            <category><![CDATA[browsers]]></category>
            <category><![CDATA[browser-internals]]></category>
            <dc:creator><![CDATA[Sailab Banik]]></dc:creator>
            <pubDate>Fri, 30 Jan 2026 13:31:01 GMT</pubDate>
            <atom:updated>2026-01-31T07:10:13.915Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GXRqwaP-Q2PLN9VI0qUb1w.png" /></figure><p>As a web application developer, I was curious how a browser works internally. How it renders the HTML, CSS, and JS files and shows the complete working website.</p><p>I did some research on this topic. In this article, I will share my learnings in simple words in a beginner-friendly manner.</p><h3>What Browser Actually Is</h3><blockquote>A browser is a complex application function which primarily responsible for safely fetching, interpreting, executing, and rendering web content according to web standards.</blockquote><p>Which effectively means, it is a software application, where we can view any web content from any part of the internet through browsing on it, and it follows some standards.</p><p>The browser has two main parts,</p><p><strong>Frontend:</strong> The UI elements, like the address bar, bookmarks, tabs, navigation, etc.</p><p><strong>Backend: </strong>Fetches HTML, CSS, JS elements by communicating with the server through an HTTP/HTTPS request.</p><h3>The Architecture of a Browser</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w64gfXu0Z06hwKw-hyVBnA.png" /></figure><p>The above image shows the high-level architecture of a browser. Let’s understand its components,</p><h4><strong>User Interface</strong></h4><p>It is the space where users interact with the browser. It is what we can see in a browser. It consists of the address bar, bookmarks, nav icons, etc.</p><h4><strong>Browser Engine</strong></h4><p>This is the core of the browser. It’s a control layer between the User Interface and the Rendering Engine.</p><p>Key responsibilities of a browser engine are:</p><ul><li>Interpreting user actions.</li><li>Coordinating loading, rendering, and navigation.</li><li>Managing page lifecycle.</li></ul><h4>Networking</h4><p>This component handles all the network communications, including DNS resolution, HTTP/HTTPs resolution, TLS/SSL negotiation, etc.</p><p>When we hit any URL in the address bar, this component is responsible for fetching all the HTML, CSS, and JS files of the application.</p><p><em>We will dive deep into this in our next blog on DNS resolution.</em></p><h4>Rendering Engine</h4><p>As the name suggests, the rendering engine is responsible for rendering a specific web page in the browser screen. It turns the web content into pixels.</p><p>Working of the rendering engine:</p><ul><li>Parse the HTML and CSS into the <strong>DOM </strong>and <strong>CCSOM </strong>respectively.</li><li>Combine DOM and CCSOM to create a Render Tree.</li><li>Does the calculation in the <strong>Layout / Reflow</strong> layer.</li><li><strong>Paint </strong>and render the pixels onto the screen.</li></ul><p>We will discuss the rendering engine in detail in the latter part of this article.</p><p>Every browser has its own unique rendering engine. Rendering engines might also differ for different browser versions. The list below mentions browser engines used by a few common browsers:</p><ul><li>Google Chrome: <strong>Blink</strong></li><li>Google Chrome for iOS: <strong>WebKit</strong></li><li>Mozilla Firefox: <strong>Gecko</strong></li></ul><h4>JavaScript Interpreter</h4><p>This interpreter parses and executes the JavaScript code embedded on the web pages. It manages the call stack and heap. It interacts with the DOM with Web APIs.</p><h4>UI Backend</h4><p>It is a layer where low-level widget drawing and OS integration happen. It’s also known as the <strong>Graphics Layer</strong>. It uses OS graphics APIs like DirectX, OpenGL, Metal, etc.</p><h4>Data Persistence</h4><p>Also known as the data storage layer. It stores and manages the client-side data. It includes: LocalStorage, SessionStorage, Cookies, Cache Storage, etc.</p><blockquote>Now that we are aware of the layers and the components of the browser, let’s deep dive into the Rendering Engine, which is mainly responsible for rendering the files into the browser.</blockquote><h3>Rendering Engine Workflow</h3><p>Once the files are fetched by the networking layer, the rendering of the HTML and CSS starts in the rendering engine.</p><p>It follows a <strong>Critical Rendering Path</strong>, which is a minimum sequence of steps the browser must complete to render the first visible content.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wxFhsT34uRuK1asD.png" /></figure><h4>Parsing</h4><p>Once the files are received, they go through a parsing process.</p><blockquote>One interesting thing here is that HTML goes through a un-conventional parser, whereas CSS and JS go through conventional parsers. The reason behind this is that HTML is not designed in a context-free grammar. In more layman’s terms, if you start an HTML tag and don’t close it, it won’t throw any error.</blockquote><p>In this stage, after HTML parsing, it creates a DOM tree, and after CSS parsing, it creates a CSSOM tree.</p><blockquote>CSS is render-blocking by default, which means that unless CSS is fetched and rendered, the web page won’t be visible to the user.</blockquote><h4>Render Tree</h4><p>Once the DOM and CSSOM trees are created, the browser combines them and creates a Render Tree. It only includes the visible items. For example, if we style an element with { display: none }, then that item won’t be rendered in the render tree.</p><p>Whatever renders in the render tree will be painted on the screen.</p><h4>Layout / Reflow</h4><p>Once the render tree is created, it goes through the layout or reflow process.</p><p>When a render tree is created, the position or size values are not assigned. The entire process of calculating values for evaluating the desired position is called a layout process.</p><p>In this process, every node is assigned the exact coordinates. This ensures that every node appears at an accurate position on the screen.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FZTnIxIA5KGw%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DZTnIxIA5KGw&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FZTnIxIA5KGw%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/09757faae97576232485be5dbb541738/href">https://medium.com/media/09757faae97576232485be5dbb541738/href</a></iframe><p>In the above video, you can visualize how the reflow works by calculating the layout size, position, etc.</p><h4>Painting</h4><p>It is the final stage of rendering, when the render tree and layout are prepared, the <strong>paint()</strong> method of the renderer is invoked, which paints each node on the screen using the <strong>UI backend</strong> layer.</p><p>It was a high-level architecture view of how browsers work internally and render the files. It was a very interesting topic for me to explore. Hope it adds value to you as well.</p><p>Thanks for reading! 😄</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fd6efb07f9c9" width="1" height="1" alt=""><hr><p><a href="https://javascript.plainenglish.io/how-a-browser-works-a-beginner-friendly-guide-to-browser-internals-fd6efb07f9c9">How a Browser Works: A Beginner-Friendly Guide to Browser Internals</a> was originally published in <a href="https://javascript.plainenglish.io/">JavaScript in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Network Devices — For Web Developers]]></title>
            <link>https://medium.com/@sailabbanik24/understanding-network-devices-for-web-developers-a1e517ddeb5a?source=rss-2e5a8d9b8846------2</link>
            <guid isPermaLink="false">https://medium.com/p/a1e517ddeb5a</guid>
            <category><![CDATA[network-devices]]></category>
            <category><![CDATA[router]]></category>
            <category><![CDATA[firewall]]></category>
            <category><![CDATA[chaicode]]></category>
            <category><![CDATA[computer-network]]></category>
            <dc:creator><![CDATA[Sailab Banik]]></dc:creator>
            <pubDate>Tue, 27 Jan 2026 05:11:17 GMT</pubDate>
            <atom:updated>2026-01-27T05:11:17.346Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Understanding Network Devices — For Web Developers</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZpEHQmeTQi0hxyI___OoZw.png" /></figure><p>In today’s world, all of us are connected with internet. In simple language, the Internet is nothing but a globally connected network with some protocols.</p><p>In today’s article, we will discuss how the internet comes to our machines and how some networking devices are connected to facilitate this.</p><blockquote>This article is <strong>not a deep dive into networking internals</strong>. Instead, it aims to give <strong>web developers</strong> a practical, high-level understanding of how the internet and modern network devices work, using simple language and real-world flow.</blockquote><h3>Logical Flow</h3><p>What happens when we send an HTTP request from our browser?</p><p>It goes to the ISP or the Internet Service Provider, then a security check is done by the Firewall, then the Load Balancers send the request to the allocated server, which does the business logic, and sends us the response.</p><p><strong>Browser → ISP → Firewall → Load Balancer → Server.</strong></p><h3>Device-Level Flow</h3><p>Behind this logical flow, the request passes through several physical and logical networking devices. On the device level, the flow is as follows,</p><p><strong>Browser → Modem → Router → Switch → Devices / Servers.</strong></p><p>Components like <strong>firewalls</strong> and <strong>load balancers</strong> are usually placed between the router and servers, especially in production or cloud environments.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OgX5lTyMvvjDL7cM8HRzqQ.png" /><figcaption>Relation Between Logical and Device-Level Flow</figcaption></figure><p>Let’s now understand the role of each of these devices at a high level, focusing on what actually matters for modern web developers.</p><h3>Modem</h3><p>A modem does modulation and demodulation of analog signals and convert it into digital signals and vice versa. The main responsibility of the modem is to connect the local network with the ISP.</p><p>So, how does it solve the problem? ISP sends data over cables, and our computers are digital devices, so it translates the data between both.</p><p>The flow of modem is as follows,</p><p><strong>ISP Signal ⇄ Modem ⇄ Router ⇄ Your Devices</strong></p><h3>Router</h3><p>A router directs traffic between different networks. It provides internet and Wi-Fi access by creating a connection between the wired internet and our local network, such as a home or office.</p><p>Now, we know that on the internet, data travels in packets. The job of a router is to examine the destination IP address of each packet and decide where to send the next packet. This is how it directs the traffic.</p><p>To get a clearer picture, suppose your whole family is connected to your local network with the router. Now, when a router receives a data packet, it examines and sends it to the correct device.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kwQXp-v_AWz-smOqSg7TVQ.png" /><figcaption>Router Workflow</figcaption></figure><blockquote>Now that you have the working and the difference between a modem and a router, in most of the modern devices, a modem and a router are combined in a single device. But the logical workflow of both remains independent of each other.</blockquote><h3>Hub and Switch</h3><p>Both these devices work inside a local area network (LAN).</p><p><strong>A hub</strong> is an outdated networking device which used to receive the packet and broadcasts them to every device connected. In modern word it is not being used anymore.</p><p>Workflow of a Hub: <strong><em>Device A → Hub → Device B, C, D (everyone hears it)</em></strong></p><p><strong>A switch</strong>, on the other hand, uses the MAC addresses to send packets inside a LAN. It has a strong security mechanism.</p><p>Workflow of a Switch: <strong><em>Device A → Switch → Device B (only B receives it).</em></strong></p><blockquote>In modern devices, the router device contains internal switches within it.</blockquote><h3>Firewall</h3><p>A firewall is the security backbone of the internet, especially for an internal network or a LAN. It is available both as hardware and software. It controls what traffic is allowed and what should be blocked in both incoming and outgoing scenarios.</p><p>If a router decides <em>where</em> traffic goes, a <strong>firewall decides whether it is allowed to go at all</strong>.</p><p>A high-level workflow of a firewall:</p><ol><li>A request or packet reaches the network boundary.</li><li>The firewall <strong>inspects the traffic</strong> (IP, port, protocol, sometimes payload).</li><li>It compares the traffic against <strong>security rules.</strong></li><li>The traffic is either allowed or blocked.</li></ol><p>The firewall is essential because,</p><ul><li>It prevents unauthorized access.</li><li>Blocks malicious traffic.</li><li>Protects sensitive information.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kXb0HGrYuqMmLj316E891g.png" /><figcaption>Firewall workflow</figcaption></figure><h3>Load Balancer</h3><p>A load balancer distributes traffic across multiple servers.</p><blockquote>Suppose a sale starts on an e-commerce website at 12:00 am. At that time, the crowd that comes to that site will be much larger than usual. At this point, the load balancer comes into play. It distributes the traffic into multiple servers so the site doesn’t crash.</blockquote><p>The responsibilities of the load balancer are as follows,</p><ul><li>It receives incoming requests.</li><li>Checks server health continuously.</li><li>Distribute traffic to the most appropriate server.</li><li>Handle server failure in case a server goes down.</li><li>And optimize the performance of the overall system.</li></ul><p>All these devices work together to make the internet work for us. I hope this article helps to understand the devices used in the network and these concepts help you in your development journey.</p><p>Thank you for reading!🙂</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a1e517ddeb5a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Inside Git: How It Works and the Role of the .git Folder]]></title>
            <link>https://javascript.plainenglish.io/inside-git-how-it-works-and-the-role-of-the-git-folder-681e58cb9add?source=rss-2e5a8d9b8846------2</link>
            <guid isPermaLink="false">https://medium.com/p/681e58cb9add</guid>
            <category><![CDATA[chaicode]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[version-control]]></category>
            <category><![CDATA[git-folder]]></category>
            <category><![CDATA[git]]></category>
            <dc:creator><![CDATA[Sailab Banik]]></dc:creator>
            <pubDate>Mon, 26 Jan 2026 05:16:59 GMT</pubDate>
            <atom:updated>2026-02-01T08:04:10.262Z</atom:updated>
            <content:encoded><![CDATA[<h3>Inside Git: How It Works and the Role of the .git Folder</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o8dx8pDnlBR9h81EzVv7uA.png" /></figure><p>When working with git, have you ever been amazed by how it tracks all the changes in your local system? If yes, let’s explore the internals of git and the <em>hidden folder</em> in your git repository, <strong><em>.git</em></strong>.</p><p>In the last article on <a href="https://medium.com/@sailabbanik24/git-for-beginners-basics-and-essential-commands-b055b9c1d288"><strong><em>Git Essentials</em></strong></a>, we saw how we can turn our folder into a git repository by using the <em>git init</em> command.</p><p>When we initialize the repository, a hidden folder is created inside the folder, named .git, which contains all the functionality and a store to track and maintain the history of all the commits we make in git.</p><h3>Understanding the .git Folder</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/879/1*XfXEyMmM7OBWFnDp5CCGZA.png" /><figcaption>.git folder</figcaption></figure><p>This is how the .git folder looks. Let’s explore a bit about the components of this folder first.</p><ul><li><strong>HEAD</strong>: This is a text file that points to the directory that contains the HEAD hash or the latest commit of the current branch.</li></ul><pre>ref: refs/heads/main</pre><ul><li><strong>refs: </strong>This folder contains the <em>heads </em>and <em>tags</em> of each branch. Inside the <em>heads/branch</em> file, it stores the reference to the latest commit hash of the branch.</li><li><strong>logs:</strong> This folder contains all the commit hashes with the author details and the commit messages. It has two components: <em>ref/heads/branch</em> and <em>HEAD. </em>The first one stores all the logs of that branch, whereas the HEAD file stores all the details of the git repository, including commit, merge, checkout, etc.</li><li><strong>objects: </strong>This folder stores the actual snapshot details of each commit; the naming convention is pretty interesting for this folder. In the top level, it create folder for each commit with the first two characters of the commit hash and then saves the file inside it with the rest of the characters.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/1*qJZiTHZd9GFGEsdRkHwy5g.png" /><figcaption>objects folder</figcaption></figure><ul><li><strong>index: </strong>This file contains the snapshot of the files in the <em>staging area.</em></li><li><strong>config:</strong> This file stores the configurations of the repository, containing branch and remote details.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/791/1*q0oKkRlBMpyp5Wo50mHPJw.png" /><figcaption>config file</figcaption></figure><blockquote>There are the core components of the .git folder. Other folders, like <strong><em>hooks</em></strong> contains some script files that run in the git workflow; these are some high-level concepts, which we can skip for now.</blockquote><h3>Internal Object Model of git</h3><p>In this section, we will deep dive into the internal workings of git using its internal object model. Everything in git is stored as an object in the <strong><em>objects</em></strong> folder.</p><p>Internally, git has mainly three objects: <strong><em>Commit, Tree, and Blob</em></strong>. These are the backbone of git working.</p><h4>Commit Object</h4><p>Each git commit is stored as a commit object in the .git folder. It contains the following information,</p><ul><li>A hash pointing to the tree object.</li><li>A hash of the parent.</li><li>Author and commiter details.</li><li>Commit Message.</li></ul><p>We can view the commit object with the command:</p><pre>C:\git-basics&gt;git show -s --pretty=raw 0b2b383<br><br>commit 0b2b383a43b8a7b73e734227db69a1e4e62745d6<br>tree bc5dba896c184193d1af58df4428aad9fba5f981<br>parent d5a6b5b8bc41bdf2d0df5fc3a0ce65895bd2ff2b<br>parent c24b2843fda420f4b9156fee2c1c750fa584c207<br>author sailab<br>committer sailab      <br><br>    resolved conflict</pre><h4>Tree Object</h4><p>It is the container for the working directory. It contains the following information,</p><ul><li>Blob of each file.</li><li>Hashes of the files.</li></ul><p>With the following command, we can see what’s inside the tree object,</p><pre>C:\git-basics&gt; git ls-tree bc5dba896c184193d1af58df4428aad9fba5f981<br><br>100644 blob c31a2dceeac078ed582b4d5c4fdff10ac558571d    hello.py<br>100644 blob 43fc994064a630d5772956eeb924379fbcea34d1    main.py<br>100644 blob 191e997f3c8ba36d1626c3326f8405d6c8c918ad    new_feature.py</pre><h4>Blob Object</h4><p>It contains the actual file contents.</p><pre>git show c31a2dceeac078ed582b4d5c4fdff10ac558571d<br><br>print(&quot;Hello World&quot;)<br>print(&quot;A new line&quot;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tCl4rIbFYd4DzXhLyQzgLQ.png" /><figcaption>Git Internal Flow</figcaption></figure><blockquote>So, in short, the commit object carries the reference to the tree object, and the tree object carries the blob refs, and the blob object carries the files. This is how a file is stored and tracked in git.</blockquote><p>And with that, we now have a clear picture of how git works internally to store and track all our changes like a message.</p><p>Check out my article on <a href="https://medium.com/@sailabbanik24/git-for-beginners-basics-and-essential-commands-b055b9c1d288"><strong><em>Git Essentials</em></strong></a> to get a comprehensive understanding of the standard git comments.</p><p>If this article adds value to you, please add a comment in the comments section. Thank you for reading! 😊</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=681e58cb9add" width="1" height="1" alt=""><hr><p><a href="https://javascript.plainenglish.io/inside-git-how-it-works-and-the-role-of-the-git-folder-681e58cb9add">Inside Git: How It Works and the Role of the .git Folder</a> was originally published in <a href="https://javascript.plainenglish.io/">JavaScript in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Git for Beginners: Basics and Essential Commands]]></title>
            <link>https://javascript.plainenglish.io/git-for-beginners-basics-and-essential-commands-b055b9c1d288?source=rss-2e5a8d9b8846------2</link>
            <guid isPermaLink="false">https://medium.com/p/b055b9c1d288</guid>
            <category><![CDATA[git]]></category>
            <category><![CDATA[chaicode]]></category>
            <category><![CDATA[version-control-system]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[learning]]></category>
            <dc:creator><![CDATA[Sailab Banik]]></dc:creator>
            <pubDate>Mon, 26 Jan 2026 05:03:09 GMT</pubDate>
            <atom:updated>2026-02-01T08:04:27.396Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kkzO347OcoH-MgGM-xPlEw.png" /></figure><p>If you’re a git beginner, this article is for you, covering almost all the essential topics and commands you’ll use in your entire development journey.</p><p>In this article, we will not only explore Git commands as a tutorial, but I will also share my<em> personal experience </em>of using Git at an industry level over the last couple of years, along with some additional topics.</p><p>So, let’s start with some quick basics…</p><h3><em>What is Git?</em></h3><p>Git is a <strong><em>distributed version control system</em></strong>, which means it tracks each change we make to our files.</p><p>The term <em>distributed</em> refers to a version-control architecture in which each developer maintains a local repository that connects to a centralized repository for collaboration and synchronization as a <strong><em>single source of truth</em></strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/801/1*RTEhWO5EG56Jkw7Z8co9rA.png" /></figure><p>Read my last article to get more about version control and distributed systems: <a href="https://medium.com/@sailabbanik24/why-version-control-exists-the-pendrive-problem-f4e9c993e4df"><strong><em>Why Version Control Exists</em></strong></a><strong><em>.</em></strong></p><p>In the upcoming sections, we will discuss the core terminologies and the commands used in git. We’ll see what to use for what solution.</p><h3>Git Repository</h3><p>A repository, often known as a repo, contains the git <em>working directory</em>. It is similar to the directory or the folder we have in our file system, but git initialized. It stores the history of our changes with a hash reference.</p><p>How to check whether your folder is git initialized or not? By running the command <strong><em>git status</em></strong>.</p><p>If it is returning an error stating, <em>“fatal: not a git repository (or any of the parent directories): .git”, </em>then the repository is not git initialized. Otherwise, if it is showing the branch and commit details, then it is git initialized.</p><p>If not git initialized, how to make my folder as git repo? By running the command <strong><em>git init</em></strong>.</p><p>What it does is, it will create a <strong><em>.git folder </em></strong>inside it, which will make the folder into a git repo and will start tracking each change in the <em>working directory</em>, which is nothing but the files inside the folder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/841/1*aIAc2389QsTlN-InpQFZPA.png" /><figcaption>How to initialize git repository</figcaption></figure><h3>.git Folder</h3><p>On initialization of the git repository, it creates a hidden folder, <strong><em>.git</em></strong>. This is the folder that tracks all the changes inside our codebase.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/659/1*KzY2rvnzfUsbHPgnSRc9Lg.png" /><figcaption>.git folder</figcaption></figure><p>In the above image, you can see the components of the .git folder. We will deep dive into this .git folder in our upcoming article on <a href="https://medium.com/@sailabbanik24/inside-git-how-it-works-and-the-role-of-the-git-folder-681e58cb9add"><strong><em>Inside Git: How It Works and the Role of the .git Folder</em></strong></a>.</p><h3>Commit in git</h3><p>Now, let’s discuss how to commit a file in our local git repository from the working directory.</p><p>It goes through three stages,</p><ol><li><strong>Modify:</strong> In this stage, you make changes in your local working directory or the codebase, which is being tracked by the git, but not yet in the git repository.</li><li><strong>Stage:</strong> When running the command ‘<strong><em>git add &lt;filename&gt;’ </em></strong>or ‘<strong><em>git add .’, </em></strong>you will move your changes to the staging area, also known as the index, which holds the snapshot of the changes. The ‘<strong><em>git add .’ </em></strong>command moves all modified files to the staging area.</li><li><strong>Commit:</strong> ‘<strong><em>git commit -m “Commit Message” ’ </em></strong>command stores the snapshot of the changes as a permanent history with a unique hash commit ID. The commit message is a short description of your changes.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/941/1*pIc3i8c2mtG-GdfbbBCj7g.png" /><figcaption>git commit flow</figcaption></figure><p>In the above image, you can observe the flow. Atfirst, when we did git status, we got the modifications we did in our working directory, then on git add we moved it to the staging area, and on commit it committed to the main branch with a commit id <strong><em>b48eae7</em></strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*291oHwD8uFRrJQUZeMC_gg.png" /></figure><h3>Git Log</h3><p>The<em> </em><strong><em>git log</em></strong> command shows the details of the commits done in the git repository, with the timestamp, author details, and <strong>HEAD </strong><em>(symbolic reference to the latest commit)</em><strong> </strong>pointing to the latest commit.</p><p>But often we use the <strong><em>git log --oneline </em></strong>command, which shows the commits in a concise way.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/771/1*sRbawMyDwIzHNJWJt1M1ig.png" /></figure><h3>Git Diff</h3><p>Before staging, if you want to check the changes you made, you can check in using the command <strong><em>git diff</em></strong>.</p><p>It shows the difference between the working directory and the HEAD. Also, we can see differences in two git commits with this command, using the hash of the two commits: <strong><em>git diff &lt;hash1&gt; &lt;hash2&gt;.</em></strong></p><p>To compare the staging area with repo use: <strong><em>git diff --staged.</em></strong></p><p>Explained in the images below…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/853/1*UAL7kKzc8unWOgi4vEvLuQ.png" /><figcaption>git diff to see the changes in the working directory</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/742/1*V82BX14WCVSfH48jgX2GXQ.png" /><figcaption>git diff in commits</figcaption></figure><h3>Branches in Git</h3><p>Branching is one of the most important parts of the collaborative world of git. In the upcoming sections, we will learn how to create and use branches, how to <em>merge </em>and <em>rebase </em>those branches, etc.</p><p>As the name suggests, a branch is a copy of our main repository which diverses from the root. Initially, we have a main branch in our repository, which acts as a root branch.</p><p>Now, suppose we want to build a new feature or fix some bugs, we can continue to do so in the main branch; it may pollute the branch, and things may break because of your half-cooked push.</p><p>To solve this problem, we have branches, where we create a new branch every time we develop a new feature, or we do some bug fixing, and we make a commit to merge the branch to the main branch to merge our code to the main directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ehb9v0taC3fTe1jvsSA5Gg.png" /><figcaption>branch workflow</figcaption></figure><p>Now, let’s see how to list, create, and use branches in git…</p><ul><li><strong><em>git branch</em></strong>: to list the branches.</li><li><strong><em>git checkout -b &lt;branch-name&gt;</em></strong>: to create and switch to a new branch.</li><li><em>git checkout &lt;branch-name&gt;</em>: to switch between existing branches.</li><li><strong><em>git switch</em></strong>: an alternative to <em>git checkout</em>, less used in the industry.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/655/1*lrNesCUN20t_sgD0ndoYTw.png" /><figcaption>git branches</figcaption></figure><p>In the above diagram, you can see how we can create and switch to a new branch. The <strong>*</strong> symbol shows which branch we are currently in. It is very important to check the branch before committing any changes to the repo.</p><h3>Git Merge Branches</h3><p>Now, suppose we have created a feature branch, and we have made some commits over there. Now, we need to push the commits to our main branch. How to do that? The answer is to merge the branches using the <strong><em>git merge</em></strong> command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*c7HKKF0JizzwFek9_M7lYg.png" /><figcaption>differences in branches</figcaption></figure><p>In the above image, you can see that the main branch is 3 commits behind the feature branch.</p><p>Now, we have to merge the feature branch to the main branch. Remember that the merge should be done in the main or the parent branch as per standards.</p><p>So, we will first checkout to the main branch, then we will run the command: <strong><em>git merge feature-branch.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*fVCLFZkeetEl92aIMxh27g.png" /><figcaption>git merge</figcaption></figure><h3>Git Stash</h3><p>Stashing is a very important concept while working with multiple branches.</p><p>Suppose you are working in the feature branch and we made some changes, but due to some reason, you need to change to the main branch. But what you were working on is not finished, so you don’t want to commit your changes, because of which git is not allowing you to switch branches, as it may result in losing the changes in the feature branch.</p><p>The solution for this problem is <strong><em>git stash. </em></strong>It creates a temporary file for your modifications and allows you to switch the branch. Then you can come back to your feature branch, and then you can pop or apply the stash.</p><p>The difference between git apply and git stash is that, in the case of pop, it will delete the temp file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/925/1*OLwUE044Kyh0990h5H57Ew.png" /><figcaption>git stash</figcaption></figure><p>In the above image, you can see how we can make a stash of our files and <em>checkout</em> to a different branch while needed. It also helps while doing the merge to deal with conflicts, which we will discuss in the upcoming section.</p><p>Note: git stash is a useful command, but it can create some issues with your working history and can create conflicts, so use it with caution and full understanding of the situation.</p><h3><strong>Git Merge Squash</strong></h3><p>The <strong><em>git merge --squash &lt;branch&gt; </em></strong>command is a very interesting command in git. It is not a necessary command to merge the branches, but it helps to maintain a clean history.</p><p>In the <strong><em>git merge </em></strong>section, we saw that after merging all the commits of the feature branch into the main branch, it may not be necessary to maintain them in the main branch.</p><p>To solve the problem, we have squash. What squash does is it squashes all the commits into a single change while merging and adds the changes to the staging area. Then we have to do just a single commit in the main branch, which helps to maintain a clean history.</p><p>The image below explains how squash works,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*cD8aSPdW_jNNEPO77KhCyA.png" /><figcaption>merge squash</figcaption></figure><p>Now, let’s look into the logs of both branches,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/594/1*l-bjQDLaGEBkAfjD2krcuQ.png" /><figcaption>logs of both branches</figcaption></figure><p>Here, you can see that both branches have different logs; the latest commits of the feature branch are not present in the main branch. The branch is merged with a single commit.</p><blockquote>Note: The use of merge squash depends on your org; some organizations have the flow to squash, whereas some don’t do that. I personally never done this, but a good feature to use.</blockquote><h3><strong>Git Rebase</strong></h3><p>While discussing merge, we saw that it is important to merge child branches to the parent branch. Rebase is designed to do the opposite.</p><p>Suppose, while working on the feature branch, some changes happened in the main branch; as per standards, we should not merge it to the feature branch, though we can do that. So, what will you do? Rebase.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/539/1*iG7jcdf6agk9ToYhYOReSA.png" /><figcaption>git log before rebase</figcaption></figure><p>In the above image, you can see that there is a commit ‘New Commit to main file’ which is required in the feature branch, so we need to first check out to the feature branch, then we will run the command: <strong><em>git rebase main</em></strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/711/1*MjrG5NvKTYagfIUTpX841g.png" /><figcaption>after rebase log</figcaption></figure><p>So, after rebase, you can see now, same commit is rebased to the feature-branch.</p><blockquote>Note: It may seem rebase is a better option than merge, because it merges the branches in a single commit automatically, whereas in merge and squash, either all commits are coming or we need to do an additional new commit to merge. But we should always follow the standard, <strong>merge to main and rebase to feature</strong>. Also, it varies with organizations; some organizations prefer merge only architecture, some prefer rebase.</blockquote><h3>Git Conflicts</h3><p>This is the last part of the branch section, but it is a very important topic to understand and a pain point in branch merging or rebasing.</p><p>Suppose Dev-A made some changes in the feature branch, and at the same time, Dev-B made some changes in the main branch in the same file. Now, while we merge the feature branch to the main branch, it throughs <strong><em>conflict</em></strong>.</p><p>We have to resolve the conflict manually using a text editor or an IDE. Below, I will show how to do it with VS Code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V8Tv805V07zWg--UhXAneg.png" /><figcaption>conflict occurs</figcaption></figure><p>In this image, you can see how a conflict occurs while merging, and we opened our VS Code editor. Now we will click on the resolve in the merge editor tab…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mnAfTxiafLtzG-BMtoDV8w.png" /><figcaption>Resolver Tab</figcaption></figure><p>Here, you can resolve by accepting the current or incoming or a combination, then click on the ‘<strong>Complete Merge’ </strong>button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*kOc_TjFxBvfXG5dMj1FaGw.png" /><figcaption>Conflict Resolved</figcaption></figure><p>After completing the merge, you have to make a commit, then you can see that the feature-branch is now merged into the main branch. But it adds an extra commit.</p><p>So, with that, we covered almost everything we can do with our local repository. In the upcoming sections, we will discuss the remote repository and how to connect to and use it with our local repository.</p><h3>Git Remote</h3><p>Earlier, we discussed that git is a distributed version control system that contains both a local and a remote repository. There are many web-based remote repositories available in the market, like GitHub, GitLab, Azure Repos, etc.</p><p>By and large, all of these platforms work in a similar fashion.</p><p>Now, to work with remote repositories, we need to configure our git remote username and email using the following commands,</p><ul><li><em>git config — global user.email “your-email@example.com”</em></li><li><em>git config — global user.name “Your Name”</em></li></ul><p>Now, you can work with the remote in two ways: setting up a <strong><em>git remote</em></strong> or cloning the repository using <strong><em>git clone</em></strong>.</p><ul><li>Add remote: <strong><em>git remote add origin &lt;remote-url&gt;</em></strong></li><li>Clone: <strong><em>git clone &lt;remote-url&gt;</em></strong></li></ul><p>Here in the remote add command, ‘origin’ is the name of the remote.</p><p>The difference between them is that adding a remote is used when we already have a local repository and want to connect to the global, and cloning is used when we want to get the remote repository, and it will create a git repository for you.</p><blockquote>Generally, git clone is used to get the repository locally. On top of that, we develop new features.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pgnzP-ZVhdslXBOfUpAcYg.png" /><figcaption>git clone vs git remote</figcaption></figure><h3>Push, Pull in Remote</h3><p>Now, once you cloned your remote repository, and you make some changes and commit them, you are now all set to push it to your remote.</p><p>To push the changes to the remote, you just need to run the command,</p><ul><li><strong><em>git push --set -upstream origin main</em></strong>, at the first time, we need to set the origin.</li><li><strong><em>git push -u origin main</em></strong>, this is the alternative shortened command for the same job.</li><li><strong><em>git push</em></strong>, once the remote upstream is established.</li></ul><p>To get the latest commits in your local repository, you need to run: <strong><em>git pull</em></strong>.</p><blockquote>It is not a hard and fast rule, but pulling first from the remote, before committing the changes, and then trying to push into it, is a better approach as it reduces the chances of any conflict.</blockquote><h3>Pull Request in Remote</h3><p>In most of the cases, the key branches, like main, stage, and prod branches, will be locked. You cannot directly push into those branches.</p><p>There you will be working in a separate branch, and once you’re done, you will create a pull request with all the details to the owner of the branch on the web platforms.</p><p>They will carefully review before merging your changes into the key branches.</p><blockquote>This approach is essential in keeping the key branches safe, especially in a large team, to track the changes properly and maintain a clean history.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FhEHm3M5Gw5ekm8oZuLC4w.png" /><figcaption>Pull Request Explained</figcaption></figure><p>We have now done with all the git functionalities we need in our day-to-day life in the tech world. Now, I will show you how to use git more easily with modern IDEs like VS Code, and how it handles the commands by itself. Then a small bonus section followed by it. So, let’s roll into it.</p><h3>Git in Modern IDEs</h3><p>Let me put an image first,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/537/1*YocLLsrucmbZ_JSe_crFXg.png" /></figure><p>In modern editors like VS Code, there will be git button in the sidebar. Once you open it, you can see the <strong><em>git status</em></strong> over there.</p><p>On hover, you can see the <strong>+</strong> button, and on click, you can stage the changes, or in the settings itself, you can set auto add, which will automatically add your files and move to stage whenever you make any modification.</p><p>To check the diff, click on the file in the changes, and a nice working tree will be opened for you to see all the changes you’ve made, and you can compare with the previous version.</p><p>Now, you just need to write a commit message in the textbox and click on commit, that’s it. You’re done.</p><p>And if you’ve a remote, then after you commit, you can see the sync button, click on it, and that’s all. Both your local and remote are in sync now.</p><blockquote>Personally, I use this VS Code feature 90% of the time for simple push-pull. In some cases, I use commands. You can also do it, or I would say doing it is better than manually typing commands. But that doesn’t mean that you shouldn’t learn the basics. Once you learnt them and understand them, then just take advantage of these tools to make life easier and faster.</blockquote><h3>Bonus Section</h3><p>Till now, we’ve learnt almost all the commands and tools. Now, the question is, do we need to memorise all these commands even if we’re using CLI? Short answer: No. But eventually you’ll remember them by using them repeatedly.</p><p>What to do when you forget a command? Google or ChatGPT? Oh, yea you can do that. But there is another simple command with which you can list down all essential commands.</p><p>The command is <strong><em>git --help. </em></strong>And with that, that’s all.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/990/1*VA2rHDN1Iu_YwjSDvWUM1w.png" /><figcaption>Git Help</figcaption></figure><p>Thanks for reading. I hope this article adds value to you. A short recap of what we discussed,</p><ul><li>What is git and its basic commands.</li><li>Git repos, branches, and how to handle merges.</li><li>Remote repository and how to connect it to our local repo.</li><li>How to use modern IDEs for ease of life in git.</li></ul><p>In the following article, we’ll discuss the internals of git and the .git folder. If this article adds some value to you, please leave a comment.</p><p>Thank you! 😀</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b055b9c1d288" width="1" height="1" alt=""><hr><p><a href="https://javascript.plainenglish.io/git-for-beginners-basics-and-essential-commands-b055b9c1d288">Git for Beginners: Basics and Essential Commands</a> was originally published in <a href="https://javascript.plainenglish.io/">JavaScript in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Version Control Exists: The Pendrive Problem]]></title>
            <link>https://medium.com/@sailabbanik24/why-version-control-exists-the-pendrive-problem-f4e9c993e4df?source=rss-2e5a8d9b8846------2</link>
            <guid isPermaLink="false">https://medium.com/p/f4e9c993e4df</guid>
            <category><![CDATA[chaicode]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[version-control-system]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Sailab Banik]]></dc:creator>
            <pubDate>Wed, 21 Jan 2026 06:51:02 GMT</pubDate>
            <atom:updated>2026-01-26T05:52:06.137Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u3M6gsjlZ6i1D3RaC7XFTQ.png" /></figure><p>Have you ever saved the same project multiple times, with folders named final, final_2, final_revised, etc., etc.?<em> Just to be safe?</em> Then you know the problem.</p><p>And if you’re working with a friend on every new folder you create, you zip it, send it via a pendrive or email, or through your everyday chat apps, then you get yourself into an endless loop of versions in your system, and it messes things up a lot.</p><p>Let’s dig deep into this <strong>Pendrive Problem</strong> and understand how <em>Version Control Systems (VCS)</em> address these issues in the modern tech world.</p><h3>Why Version Control Exists</h3><p>From the introduction, we can get a sense of why version control systems are an essential need of today’s tech world, especially in software development. It helps to track and maintain the code we write in a collaborative environment. It works as a <strong><em>Single Source of Truth</em></strong>.</p><p>The things we can achieve through a version control system are,</p><ul><li>A central location to store all project files, often called a <strong><em>repository</em></strong>.</li><li>With each change pushed in the project, we get a <strong><em>unique id</em></strong>.</li><li><strong><em>Branching</em></strong>, which allows working on specific section development or bug fixing without affecting the main code by copying a version of the main code.</li><li>On conflict while working on the same file by different developer it provides an easy way to <strong><em>merge </em></strong>the changes without losing.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*df9AnutDn2dN_WWpi5U7sQ.png" /></figure><p>There are mainly three types of version control systems available,</p><ol><li><strong>Local VCS:</strong> which works completely on your box without any internet or server, best suited for a single-dev environment.</li><li><strong>Centralised VCS: </strong>stores the files in a central server with a commit-update mechanism directly with the working copy of the developer.</li><li><strong>Distributed VCS:</strong> it is a combination of the above two, creating a local version of the repository for each developer with a commit-pull-update infrastructure. On commit, it saves the changes in the local version of the repo, and on push, the changes get reflected in the central repo.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Cjk0J-FXmVEpw6W6ZnmkHQ.png" /></figure><h3><strong>The Pendrive Analogy in Software Development</strong></h3><p>As we discussed earlier, before the version control system existed, developers used to share work using some medium like a pendrive.</p><p>Let’s understand the analogy with some series of events,</p><ul><li>Dev-A writes a code snippet in a collaborative project. Saves the changes and stores them in a pen drive.</li><li>Dev-B collects the drive after waiting for Dev-A to complete it, then he modifies it with a new file for safety purposes.</li><li>Dev-C collects it from Dev-B, and the same story repeats.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MdrtyBopV--HSYArYO0Pmw.png" /></figure><p>It creates an infinite loop with a N<strong><em>aming Olympics</em></strong> of the files.</p><h3>Problems Faced Before Version Control Systems</h3><p>With the previous section, we can understand how sharing and maintaining projects were a very big challenge before version control systems existed. But there were way more problems than this.</p><p>Two big problems that devs used to face with the pendrive problem,</p><ol><li><strong>No history and accountability:<em> </em></strong>as we saw earlier, how modern VCS systems generate unique IDs and store a track of the user details, it creates accountability among the developers, making it easier to understand where things went wrong and revert back to the changes if required.</li><li><strong>Impossible collaboration at scale:</strong> as the application grows, the number of developers also grows, but without any version control system, it becomes fragile and eventually collapses.</li></ol><p>These problems caused in making the version control system we all use today in our day-to-day life. It is not a luxury; it is an essential part of our development life cycle.</p><h3>Popular Version Control Systems</h3><p>After understanding how important VCS is and how it solves many problems in our development, let’s see what the major version control systems available in the market today are.</p><p><strong>Git:</strong> the most popular and widely used Distributed version control system. GitHub, GitLab, all these services are built upon git. I personally use it in my day-to-day life. It is very flexible, fast, and a very powerful version control system.</p><p>I will discuss this in my following blogs: <em>Git For Beginners</em> and <em>Inside .git</em>, where we will deep dive into the ocean of git and will see how we can use it in its best form.</p><p>Some other popular VCS are <em>Mercurial</em>, a similar distributed VCS, <em>Subversion (SVN),</em> and <em>Concurrent Version System</em> (<em>CVS), </em>which<em> </em>are two widely popular centralised VCS used in specific work environments.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-bMhYB-Vv9Ersid3Nb_z8Q.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f4e9c993e4df" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>