<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Aditi Deshmukh</title>
    <description>The latest articles on Forem by Aditi Deshmukh (@aditi_deshmukh).</description>
    <link>https://forem.com/aditi_deshmukh</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3567270%2F239ae4ec-35f5-41ca-b647-936250f19604.png</url>
      <title>Forem: Aditi Deshmukh</title>
      <link>https://forem.com/aditi_deshmukh</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/aditi_deshmukh"/>
    <language>en</language>
    <item>
      <title>The Easiest Way to Understand APIs (With Simple Examples)</title>
      <dc:creator>Aditi Deshmukh</dc:creator>
      <pubDate>Sun, 19 Oct 2025 14:02:49 +0000</pubDate>
      <link>https://forem.com/aditi_deshmukh/the-easiest-way-to-understand-apis-with-simple-examples-1k6e</link>
      <guid>https://forem.com/aditi_deshmukh/the-easiest-way-to-understand-apis-with-simple-examples-1k6e</guid>
      <description>&lt;p&gt;Have you ever wondered how your weather app knows tomorrow’s forecast, or how you can log in to any website using Google?&lt;br&gt;
The secret behind all this magic is something called an API — and once you understand it, you’ll start seeing it &lt;em&gt;everywhere&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;In this post, let’s break down what APIs are, how they work, and why they’re so powerful in the easiest way possible 🚀&lt;/p&gt;



&lt;p&gt;&lt;strong&gt;What Is an API?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;API stands for &lt;em&gt;Application Programming Interface&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;--&amp;gt;An API is like a messenger that allows two applications to talk to each other.&lt;br&gt;
It helps one app request data or features from another app without needing to know how the other one is built inside.&lt;/p&gt;



&lt;p&gt;&lt;strong&gt;Think of It Like a Restaurant&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Imagine you’re at a restaurant:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;You (the customer) tell the waiter what you want.&lt;/li&gt;
&lt;li&gt;The waiter takes your order to the kitchen (where the food is made).&lt;/li&gt;
&lt;li&gt;The kitchen prepares it and gives it back to the waiter.&lt;/li&gt;
&lt;li&gt;The waiter brings the dish to your table.
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;You (customer)  →  The client or app (like your browser)
Waiter          →  The API
Kitchen         →  The server or database
Food            →  The data or response

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;&lt;code&gt;So instead of directly going into the kitchen, you communicate through the waiter — that’s exactly how APIs work!&lt;/code&gt;&lt;/p&gt;



&lt;p&gt;&lt;strong&gt;How APIs Work in Real Life&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;APIs are everywhere. You’re using them right now — you just don’t realize it.&lt;/p&gt;

&lt;p&gt;Here are a few examples:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Weather apps use a Weather API to get live temperature and forecast.&lt;/li&gt;
&lt;li&gt;Uber and Ola use Google Maps API for routes and navigation.&lt;/li&gt;
&lt;li&gt;Login with Google or Facebook uses OAuth APIs to verify who you are.&lt;/li&gt;
&lt;li&gt;Online shopping sites use Payment APIs (like Razorpay or Stripe) for secure payments.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;Without APIs, every company would have to rebuild everything from scratch — from maps to payments.&lt;/code&gt;&lt;/p&gt;



&lt;p&gt;&lt;strong&gt;APIs Are Like Digital Bridges&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Imagine two apps standing on separate sides of a river.&lt;br&gt;
An API acts like a bridge that connects them so they can exchange information safely and smoothly.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;They don’t need to expose their internal code — they just agree on a way to talk (the API format).&lt;br&gt;
That’s why APIs are sometimes called the connectors of the internet&lt;/em&gt;.&lt;/p&gt;



&lt;p&gt;&lt;strong&gt;Let’s See a Simple Example&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Here’s a tiny JavaScript example that uses a Weather API to get live data:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;fetch("https://api.weatherapi.com/v1/current.json?key=YOUR_KEY&amp;amp;q=Mumbai")
  .then(response =&amp;gt; response.json())
  .then(data =&amp;gt; console.log("Temperature in Mumbai:", data.current.temp_c + "°C"))
  .catch(error =&amp;gt; console.error("Error fetching data:", error));

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here’s what’s happening:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The code sends a request to the API’s website (URL).&lt;/li&gt;
&lt;li&gt;The API responds with weather data in JSON format.&lt;/li&gt;
&lt;li&gt;We then print the temperature in Mumbai.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;With just a few lines of code, your app is now talking to a global weather database.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Why APIs Are So Important&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;APIs are what make modern software powerful and connected.&lt;/p&gt;

&lt;p&gt;Here’s why they matter so much:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Speed        →  Fetch real-time data instantly.  
Reusability  →  Use existing tools instead of building everything from zero.  
Scalability  →  Easily connect multiple systems together.  
Security     →  Share only what’s needed — safely.

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;p&gt;&lt;strong&gt;Final Thoughts&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;APIs are the invisible heroes of the digital world.&lt;br&gt;
They make your favorite apps — like Instagram, YouTube, and Paytm — talk to each other seamlessly.&lt;/p&gt;

&lt;p&gt;Once you understand how APIs work, you unlock one of the most powerful concepts in software development.&lt;/p&gt;




</description>
      <category>api</category>
      <category>webdev</category>
      <category>programming</category>
      <category>javascript</category>
    </item>
    <item>
      <title>What Happens When You Click a Link</title>
      <dc:creator>Aditi Deshmukh</dc:creator>
      <pubDate>Thu, 16 Oct 2025 20:39:04 +0000</pubDate>
      <link>https://forem.com/aditi_deshmukh/what-happens-when-you-click-a-link-3ca5</link>
      <guid>https://forem.com/aditi_deshmukh/what-happens-when-you-click-a-link-3ca5</guid>
      <description>&lt;p&gt;Ever wondered what really happens &lt;strong&gt;behind the scenes&lt;/strong&gt; when you click a link in your browser? It seems instant, but there’s a lot going on in the background! In this post, we’ll break it down step by step in a simple, beginner-friendly way.&lt;/p&gt;




&lt;h2&gt;
  
  
  1. The Browser Gets the URL
&lt;/h2&gt;

&lt;p&gt;When you click a link, your browser first &lt;strong&gt;reads the URL&lt;/strong&gt; — the address of the webpage.  &lt;/p&gt;

&lt;p&gt;Example: &lt;code&gt;https://example.com/page1&lt;/code&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;https://&lt;/code&gt; → Protocol (how to communicate with the server)
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;example.com&lt;/code&gt; → Domain name (server address)
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;/page1&lt;/code&gt; → Specific page on the server
&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  2. DNS Lookup – Finding the Server
&lt;/h2&gt;

&lt;p&gt;Your browser needs to know &lt;strong&gt;where the server is physically located&lt;/strong&gt;.  &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It asks a &lt;strong&gt;DNS server&lt;/strong&gt;: “Hey, what’s the IP of &lt;code&gt;example.com&lt;/code&gt;?”
&lt;/li&gt;
&lt;li&gt;The DNS responds with something like: &lt;code&gt;93.184.216.34&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Now the browser knows which computer to contact.
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Analogy:&lt;/em&gt; DNS is like the internet’s &lt;strong&gt;phonebook&lt;/strong&gt;.  &lt;/p&gt;




&lt;h2&gt;
  
  
  3. Browser Sends an HTTP Request
&lt;/h2&gt;

&lt;p&gt;Once the server IP is found, the browser sends an &lt;strong&gt;HTTP request&lt;/strong&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;GET /page1 HTTP/1.1
Host: example.com

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;GET → We want to retrieve the page.&lt;/p&gt;

&lt;p&gt;Host → Which website we’re asking.&lt;/p&gt;




&lt;h2&gt;
  
  
  4. Server Processes the Request
&lt;/h2&gt;

&lt;p&gt;The server receives the request and decides what to send back:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;HTML content of the page&lt;/li&gt;
&lt;li&gt;CSS and JavaScript files&lt;/li&gt;
&lt;li&gt;Images and media&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The server then sends all of this back as an &lt;strong&gt;HTTP response&lt;/strong&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  5. Browser Renders the Page
&lt;/h2&gt;

&lt;p&gt;When the browser gets the response:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It reads the HTML → creates a DOM tree.&lt;/li&gt;
&lt;li&gt;It reads CSS → applies styles to the DOM.&lt;/li&gt;
&lt;li&gt;It executes JavaScript → adds interactivity.&lt;/li&gt;
&lt;li&gt;It displays the fully rendered page for you to see.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Analogy: Browser = chef 🍳, ingredients = HTML/CSS/JS, final dish = fully loaded webpage.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Final Thoughts&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Clicking a link seems instant, but there’s a chain of events happening in milliseconds:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;URL is read&lt;/li&gt;
&lt;li&gt;DNS lookup finds the server&lt;/li&gt;
&lt;li&gt;HTTP request is sent&lt;/li&gt;
&lt;li&gt;Server responds with files&lt;/li&gt;
&lt;li&gt;Browser renders everything&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Next time you click a link, imagine your browser and the server working together like a well-coordinated team!&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>programming</category>
      <category>javascript</category>
    </item>
    <item>
      <title>How Recursion Actually Works</title>
      <dc:creator>Aditi Deshmukh</dc:creator>
      <pubDate>Wed, 15 Oct 2025 16:44:52 +0000</pubDate>
      <link>https://forem.com/aditi_deshmukh/how-recursion-actually-works-1bn</link>
      <guid>https://forem.com/aditi_deshmukh/how-recursion-actually-works-1bn</guid>
      <description>&lt;p&gt;When I first learned recursion, it honestly felt like magic.&lt;br&gt;
A function calling itself again and again? I could write it, but I didn’t really get how it worked behind the scenes.&lt;/p&gt;

&lt;p&gt;*&lt;em&gt;If you’ve ever felt that too — don’t worry. In this post, we’ll break down recursion step-by-step and see how the stack plays a hidden but crucial role.&lt;br&gt;
*&lt;/em&gt;&lt;br&gt;
                               ---&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What Is Recursion?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Recursion is when a function calls itself to solve a smaller version of the same problem.&lt;/p&gt;

&lt;p&gt;Every recursive function needs two things:&lt;/p&gt;

&lt;p&gt;1.Base case — the condition that stops the recursion&lt;br&gt;
2.Recursive case — the part where the function calls itself again&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example: Finding Factorial Using Recursion&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function factorial(n) {
  if (n === 1) {
    return 1; // Base case
  } else {
    return n * factorial(n - 1); // Recursive call
  }
}

console.log(factorial(5)); // Output: 120``
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Behind the Scenes: The Stack in Action&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;_Each time a function runs, it’s placed on a call stack — a memory structure that follows Last In, First Out (LIFO).&lt;br&gt;
So, the last function called is the first one to finish.&lt;br&gt;
_&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Step   | Function Call  | What Happens
-------|----------------|-------------------------
1      | factorial(5)   | Calls factorial(4)
2      | factorial(4)   | Calls factorial(3)
3      | factorial(3)   | Calls factorial(2)
4      | factorial(2)   | Calls factorial(1)
5      | factorial(1)   | Base case → returns 1

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Now the stack unwinds:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Step   | Returning To   | Calculation
-------|----------------|----------------
6      | factorial(2)   | 2 × 1 = 2
7      | factorial(3)   | 3 × 2 = 6
8      | factorial(4)   | 4 × 6 = 24
9      | factorial(5)   | 5 × 24 = 120

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Finally, the stack is empty — result: 120&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why the Stack Matters&lt;/strong&gt;&lt;br&gt;
The stack lets recursion pause each call until the next one finishes.&lt;br&gt;
Imagine stacking plates in a cafeteria:&lt;br&gt;
you add one plate per call, and when done, remove them from the top — one by one.&lt;/p&gt;

&lt;p&gt;That’s exactly how recursion “returns” values.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Final Thoughts&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Recursion isn’t magic — it’s just functions + a stack working together beautifully.&lt;br&gt;
Once you understand that each call patiently waits on the stack, recursion becomes one of programming’s most elegant tools.&lt;/p&gt;

&lt;p&gt;If recursion ever confuses you, just picture that stack of plates — it’ll click .&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Thanks for reading!&lt;br&gt;
If you enjoyed this post, follow me for more beginner-friendly programming blogs.&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>algorithms</category>
      <category>javascript</category>
      <category>beginners</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
