<?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 Dhrumil Limbad on Medium]]></title>
        <description><![CDATA[Stories by Dhrumil Limbad on Medium]]></description>
        <link>https://medium.com/@dhrumillimbad?source=rss-e3091c5ff931------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*kcXIoC6CykAUUeQCZDlm1g.png</url>
            <title>Stories by Dhrumil Limbad on Medium</title>
            <link>https://medium.com/@dhrumillimbad?source=rss-e3091c5ff931------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 11:43:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dhrumillimbad/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[Fetch Doesn’t Care That You Clicked Something Else]]></title>
            <link>https://dhrumillimbad.medium.com/fetch-doesnt-care-that-you-clicked-something-else-db730cc1861b?source=rss-e3091c5ff931------2</link>
            <guid isPermaLink="false">https://medium.com/p/db730cc1861b</guid>
            <category><![CDATA[performance-optimization]]></category>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Dhrumil Limbad]]></dc:creator>
            <pubDate>Sat, 15 Aug 2026 23:07:45 GMT</pubDate>
            <atom:updated>2026-08-15T23:07:45.420Z</atom:updated>
            <content:encoded><![CDATA[<p>You type “ni” into a search box. A request goes out. You type “ke”. Another one. You finish with “nike”. A third.</p><p>Three responses come back. The slowest is for “ni”. It arrives last, and your UI shows results for a query you already moved on from.</p><p>I ran into the same shape in an audio player. Tap a track, it starts loading. Tap another one before the first file is ready. For a split second you hear the song you already skipped, or the progress bar jumps to the wrong duration, or both tracks try to own the player at once.</p><p>That is not a debounce problem. Debounce would have waited until you stopped tapping. This is a cancellation problem. The work already started, and nobody told it to stop.</p><p>That is what AbortController is for.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BnhrXy9m_4wPkpvNN-orFQ.png" /><figcaption>task-failed-successfully</figcaption></figure><h3>Why we even need this</h3><p>JavaScript is full of work that takes time: fetch, streams, media, event listeners. Once you kick that work off, it does not automatically care that you changed your mind.</p><p>Skip cancellation and you get a few ugly outcomes:</p><ul><li>Stale data wins. An older request finishes after a newer one and overwrites the screen. Or, in a player, starts playing.</li><li>You pay for work nobody will hear. Bandwidth, battery, server CPU, CDN hits. All spent on a track the user already skipped.</li><li>The UI feels haunted. Spinners that never die. A waveform for the previous song. A title that updates twice.</li></ul><p>For years people worked around this with flags (if (requestId !== latestId) return), or by ignoring the response in a .then(). That works until it doesn’t. You still burned the network. You still kept a promise chain alive. And you still had to remember to check the flag in every callback.</p><p>AbortController is the browser saying: cancel the actual operation, not just your interest in the result.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tQUJhwpWIT7iNO52Y422bQ.png" /><figcaption>stale-request-wins</figcaption></figure><h4>A tiny example:</h4><pre>const controller = new AbortController();<br><br>fetch(&quot;/api/tracks/123&quot;, { signal: controller.signal })<br>  .then((res) =&gt; res.json())<br>  .then((track) =&gt; loadIntoPlayer(track))<br>  .catch((err) =&gt; {<br>    if (err.name === &quot;AbortError&quot;) {<br>      // expected. they picked a different song.<br>      return;<br>    }<br>    throw err;<br>  });<br><br>// they skipped, or left the page, or closed the player<br>controller.abort();</pre><p>You create a controller, pass its signal into whatever supports it (fetch does), and call abort() when that work is no longer wanted. The request stops. The promise rejects with an AbortError. Treat that as a normal exit, not a failure.</p><p>One controller, one signal, one abort. New track selected? Abort the old controller, make a new one. That pattern is the whole trick.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mVAq5cK51T1khIuqm5OzQw.png" /><figcaption>abort-controller-pieces</figcaption></figure><h4>The React version is the cleanup function</h4><p>If the URL lives in props or state, the effect should die with it:</p><pre>useEffect(() =&gt; {<br>  const controller = new AbortController();<br><br>  fetch(`/api/tracks/${trackId}`, { signal: controller.signal })<br>    .then((res) =&gt; res.json())<br>    .then(setTrack)<br>    .catch((err) =&gt; {<br>      if (err.name === &quot;AbortError&quot;) return;<br>      setError(err);<br>    });<br><br>  return () =&gt; controller.abort();<br>}, [trackId]);</pre><p>Change trackId, React runs the cleanup, the in-flight fetch is killed, then the new one starts. Unmount the player and the same cleanup runs, so a late response cannot call setTrack on a component that is gone.</p><p>You can pass that same signal into more than fetch. Anything that accepts one (some audio APIs, streams, libraries wrapping XHR) can be tied to the same effect lifetime.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PbTsSNYFq6_eHHz7TEW21w.png" /><figcaption>react-effect-cleanup</figcaption></figure><h3>Debounce, throttle, and abort are not the same job</h3><p>People mash these together because they all show up around search boxes. They solve different moments in time.</p><p><strong>Debounce says</strong>: wait until the user pauses, then do the thing once. Type “n-i-k-e” quickly and you might send one request, after they stop.</p><p><strong>Throttle says</strong>: do the thing at most once every X milliseconds. Useful for scroll, resize, and “skip forward” mashing. You still run, just not on every event.</p><p><strong>Abort says</strong>: the thing already started. Kill it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NNvBJpi2OWmb1O62e3mbyQ.png" /><figcaption>debounce-throttle-abort</figcaption></figure><p>Debounce and throttle decide <em>when to start</em>. Abort decides <em>whether to keep going</em>.</p><p>A search box that feels good usually uses both. Debounce so you are not firing on every keystroke. Abort so a request already in flight cannot sneak back and rewrite the UI.</p><p>Same split in a player. You might throttle “next” so a panic-clicker does not fire 20 loads in 200ms. You still abort the load that already started, because throttle does not cancel work. It only spaces out new work.</p><p>If you only debounce, a slow first request can still land after a fast second one. If you only abort, you might still spam the server. They are teammates, not substitutes.</p><h3>How this shows up in a real player (and in bigger apps)</h3><p>I used AbortController while building an audio player component, and it stopped being theoretical the first time someone clicked through a playlist faster than the network.</p><p>Here is the sequence. User taps track A. You fetch metadata, a signed URL, maybe artwork, maybe a waveform. The file itself starts buffering. Before any of that settles, they tap track B. Then C.</p><p>Without abort, A is still coming. Its metadata arrives and writes the title. Its audio buffer attaches to the element and you get a blip of the wrong song. The duration jumps to A’s length, then B’s, then C’s. On a phone you just downloaded two files nobody will play. Your analytics records a “play” for A because the request succeeded, even though they never heard it. If they navigate away mid-load, setState still fires on an unmounted player.</p><p>With abort, tapping B kills everything you started for A. The only response allowed to touch the &lt;audio&gt; element, the title, and the waveform is the one for the track that is selected <em>right now</em>. Skip again, B dies, C lives. Close the player, cleanup runs, nothing is left talking to a dead component.</p><p><strong>That is the benefit in one sentence</strong>: <em>the UI only ever reflects the current intent.</em></p><p>Big apps run this same playbook at scale.</p><ul><li><strong>Typeahead and filters.</strong> New query, old fetch is gone. Same race as skip-happy playlist browsing, just with search results instead of songs.</li><li><strong>Client-side routing.</strong> User leaves /player before the track returns. Frameworks and data libraries (Next.js, Remix, TanStack Query, SWR) often abort on navigation. Under the hood it is still a signal.</li><li><strong>Dashboards.</strong> Change the date range and ten widgets refetch. Change it again two seconds later. Abort the first wave or you get numbers from two different ranges on the same screen.</li><li>Anything with a Cancel button. Uploads, exports, “stop generating” on a chat. That button is controller.abort().</li></ul><p>The unglamorous truth: abort will not make the player clever. It just stops yesterday’s track from arguing with today’s. Once you have heard that argument come out of a speaker, you start putting a signal on every request that is allowed to touch the UI.</p><p><em>Have questions? Drop them in the comments. I read every single one and love geeking out about this stuff.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=db730cc1861b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Hidden Journey: What Really Happens When You Click a Link]]></title>
            <link>https://dhrumillimbad.medium.com/the-hidden-journey-what-really-happens-when-you-click-a-link-bf417af3a74f?source=rss-e3091c5ff931------2</link>
            <guid isPermaLink="false">https://medium.com/p/bf417af3a74f</guid>
            <category><![CDATA[tcp]]></category>
            <category><![CDATA[edge-computing]]></category>
            <category><![CDATA[internet]]></category>
            <category><![CDATA[cdn]]></category>
            <category><![CDATA[networking]]></category>
            <dc:creator><![CDATA[Dhrumil Limbad]]></dc:creator>
            <pubDate>Wed, 25 Feb 2026 04:58:40 GMT</pubDate>
            <atom:updated>2026-02-25T05:08:40.373Z</atom:updated>
            <content:encoded><![CDATA[<p>You type “netflix.com” and hit enter. Two seconds later, you’re watching Stranger Things. Seems simple, right?</p><p>Wrong. So gloriously, beautifully wrong.</p><p>What just happened involved dozens of computers, multiple countries, encryption protocols, and enough network handshakes to make a politician jealous. And understanding this journey is crucial if you want to build fast websites.</p><p>Let me show you what’s really going on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8LB0ewBglCtlzC7uQFdnNQ.png" /><figcaption>connecting…</figcaption></figure><h3>The Great DNS Treasure Hunt</h3><p>First things first: computers don’t understand “netflix.com.” They need an IP address, like 69.74.170.78. So your browser goes on a treasure hunt.</p><p>It asks your computer: “Hey, do you remember netflix.com’s address?”</p><p>If you visited recently, your computer might say “Yep, it’s cached!” and you skip this whole step. But let’s say it’s your first visit.</p><p>Your browser asks your WiFi router. Your router asks your ISP. Your ISP asks a root DNS server. That server says “I don’t know Netflix specifically, but I know who handles .com domains.” That server then points to Netflix’s DNS servers, which finally respond with the actual IP address.</p><p>This can take anywhere from 5ms (cached) to 200ms (uncached, slow connection).</p><p><strong>Developer tip</strong>: This is why DNS prefetching exists. You can tell the browser to look up domains ahead of time:</p><pre>&lt;link rel=&quot;dns-prefetch&quot; href=&quot;//cdn.example.com&quot;&gt;</pre><p>If you know you’ll need resources from a CDN, prefetch it early. Those 50–100ms add up.</p><h3>The Three-Way Handshake (TCP is Polite)</h3><p>Now your browser knows <em>where</em> Netflix is. Time to connect, right?</p><p>Not so fast. TCP (Transmission Control Protocol) is very polite. Before sending any data, it does a three-way handshake. It’s like this:</p><p><strong>Browser</strong>: “Hey Netflix, can we talk?” (SYN)<br><strong>Netflix</strong>: “Sure! I’m ready to listen.” (SYN-ACK)<br><strong>Browser</strong>: “Great, let’s do this.” (ACK)</p><p>This takes one full round trip. If Netflix’s server is in California and you’re in New York, that’s roughly 70ms each way. So already, before sending any actual data, you’ve spent 140ms just being polite.</p><p>And we haven’t even gotten to the security part yet.</p><h3>TLS: Now Make It Secure</h3><p>Because you’re going to HTTPS (and you better be), there’s another handshake for TLS (Transport Layer Security).</p><p>The browser and server need to:</p><ol><li>Agree on which encryption methods to use</li><li>Exchange encryption keys</li><li>Verify certificates</li></ol><p>This is typically another 1–2 round trips. More time. More waiting.</p><p>On a fast connection from nearby? Maybe 100ms total. On a mobile connection from across the world? Could be 500ms or more.</p><p>And you <em>still</em> haven’t loaded a single byte of your actual webpage.</p><h3>HTTP/1.1: The Old Guard</h3><p>Once the connection is finally established, your browser can request stuff. With HTTP/1.1 (still used by some sites), there’s a catch.</p><p>Browsers can only make 6 connections to a domain at once. And each connection can only request one thing at a time.</p><p>So if you need to load:</p><ul><li>HTML file</li><li>CSS file</li><li>3 JavaScript files</li><li>10 images</li><li>4 fonts</li></ul><p>Your browser is playing a game of connection Tetris, trying to pack downloads efficiently. Some resources wait in line. This is why you see those waterfall charts in DevTools with lots of waiting time.</p><p>Even worse, every request needs headers. With HTTP/1.1, these headers are sent in plain text every single time. For every image, every script, every CSS file. If you have cookies, they’re sent too. That’s a lot of repeated data.</p><h3>HTTP/2: The Upgrade We Needed</h3><p>HTTP/2 fixed a lot of this. Instead of 6 separate connections, you get one multiplexed connection. Think of it like upgrading from 6 phone lines to one fiber optic cable with unlimited channels.</p><p>Now your browser can request 100 things at once over a single connection. No more waiting in line.</p><p>Plus, HTTP/2 compresses headers. Those cookies and user agents that got sent repeatedly? Now they’re compressed and much smaller.</p><p>Server push is another neat feature. The server can say “I know you’re about to ask for this CSS file, here it is” without waiting for you to request it.</p><p>Most sites should be using HTTP/2 at this point. If you’re not, you’re leaving speed on the table.</p><h3>HTTP/3: The New Kid</h3><p>HTTP/3 is even better. It’s built on QUIC instead of TCP, which means:</p><p><strong>Faster connections</strong>: QUIC combines the TCP handshake and TLS handshake into one step. What used to take 2–3 round trips now takes 1 (or sometimes 0 if you’ve connected before).</p><p><strong>No head-of-line blocking</strong>: With TCP, if one packet gets lost, everything waits. Imagine being stuck in traffic because one car stalled. QUIC lets other “cars” go around.</p><p><strong>Better mobile handling</strong>: Switch from WiFi to cellular? TCP drops the connection. QUIC keeps it alive.</p><p>Not all browsers and servers support it yet, but it’s coming.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*Pp0Y25ACGTf8gYEh.gif" /><figcaption>TCP vs QUIC — Graphic credit: Google</figcaption></figure><h3>The Browser Connection Limit Problem</h3><p>Here’s something that still matters even with HTTP/2: browsers limit connections per domain.</p><p>Chrome allows 6 connections per domain. So even if you have HTTP/2 on your main site, if you’re loading resources from multiple CDNs, you might hit limits.</p><p>This is why domain sharding used to be a thing. Split resources across cdn1.example.com, cdn2.example.com, etc. But with HTTP/2, this actually makes things <em>worse</em> because you lose the multiplexing benefits.</p><p>The modern approach? Use one domain with HTTP/2, or use a good CDN that handles this for you.</p><h3>CDNs: The Internet’s Fast Lane</h3><p>Speaking of CDNs (Content Delivery Networks), let’s talk about why they matter.</p><p>Remember that Netflix server in California? If you’re in India, that’s a long trip. Multiple undersea cables, lots of hops, easily 200–300ms of latency.</p><p>CDNs solve this by caching your content in data centers around the world. When someone in India requests your site, they get it from Mumbai, not California. That 300ms becomes 20ms.</p><p>Cloudflare, Fastly, AWS CloudFront — they all do this. And it’s not just for images. You can cache HTML, API responses, whatever.</p><p>But here’s the trick: you need to set proper cache headers. Tell the CDN how long to cache things. Use Cache-Controlheaders wisely.</p><blockquote>Cache-Control: public, max-age=31536000, immutable</blockquote><p>This says “cache this for a year and it will never change.” Perfect for versioned assets like app.abc123.js.</p><h3>Edge Computing: CDNs on Steroids</h3><p>Modern CDNs don’t just cache static files. They can run code at the edge.</p><p>Cloudflare Workers, Vercel Edge Functions, AWS Lambda@Edge — these let you run JavaScript closer to users. Want to personalize content without a round trip to your origin server? Do it at the edge.</p><p>This is especially powerful for things like:</p><ul><li>A/B testing</li><li>Geo-based redirects</li><li>Authentication checks</li><li>API response transformations</li></ul><p>Response times drop from 200ms to 20ms. Users notice.</p><h3>What You Can Actually Control</h3><p>Okay, you can’t control how fast someone’s internet is. But you can control:</p><p><strong>1. Reduce round trips</strong>: Every round trip costs time. Inline critical CSS. Use HTTP/2. Prefetch DNS for external domains.</p><p><strong>2. Use a CDN</strong>: Get content physically closer to users. It’s not even expensive anymore — Cloudflare has a <strong>free</strong> tier.</p><p><strong>3. Optimize connections</strong>: Don’t use too many domains. Each one requires a new connection. Consolidate where possible.</p><p><strong>4. Set good cache headers</strong>: Make the browser and CDN cache what they can. Why re-download jQuery on every visit? (wtf, ikr - but many websites use this till date)</p><p><strong>5. Use resource hints</strong>: dns-prefetch, preconnect, prefetch, preload—these tell the browser what&#39;s coming and speed things up.</p><pre>&lt;link rel=&quot;preconnect&quot; href=&quot;https://fonts.googleapis.com&quot;&gt;<br>&lt;link rel=&quot;preload&quot; href=&quot;/critical.css&quot; as=&quot;style&quot;&gt;</pre><p><strong>6. Monitor real latency</strong>: Use tools like WebPageTest from different locations. Your office WiFi doesn’t represent your users.</p><h3>The Reality Check</h3><p>I once worked on a site that loaded instantly in San Francisco (where our servers were) but took 4+ seconds in India. We thought we were fast. We were wrong.</p><p>We added a CDN. Set up proper caching. Reduced external domain requests from 12 to 3. Suddenly, India was under 2 seconds.</p><p>The code didn’t change. The design didn’t change. We just stopped making the network do so much work.</p><h3>Try This Right Now</h3><p>Open DevTools and go to the Network tab. Look at the Waterfall view. Those light-colored sections at the start of each request? That’s connection time — DNS, TCP, TLS.</p><p>Find requests with long connection times. Those are your opportunities. Can you prefetch that domain? Move that resource to your main domain? Use a CDN?</p><p>Every green bar that’s mostly light-colored is a round-trip tax you’re paying unnecessarily.</p><h3>The Bottom Line</h3><p>Network fundamentals aren’t glamorous. Nobody gets excited about TCP handshakes or cache headers. But they’re the foundation everything else sits on.</p><p>You can have the most optimized React app in the world, but if it takes 2 seconds to establish a connection, users are gone.</p><p>Speed isn’t just about your code. It’s about the journey your data takes to get to users. Respect that journey, optimize it, and your site will feel faster without changing a single line of application code.</p><p><em>What surprised you most about this network journey? Let me know in the comments — I love hearing about those “aha!” moments.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bf417af3a74f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Your Website Feels Slow (And How Browsers Actually Work)]]></title>
            <link>https://dhrumillimbad.medium.com/why-your-website-feels-slow-and-how-browsers-actually-work-ae043ae9c796?source=rss-e3091c5ff931------2</link>
            <guid isPermaLink="false">https://medium.com/p/ae043ae9c796</guid>
            <category><![CDATA[web-optimization]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[devtools]]></category>
            <category><![CDATA[optimization]]></category>
            <dc:creator><![CDATA[Dhrumil Limbad]]></dc:creator>
            <pubDate>Sun, 18 Jan 2026 20:50:21 GMT</pubDate>
            <atom:updated>2026-01-18T20:50:21.067Z</atom:updated>
            <content:encoded><![CDATA[<p>Remember that time you clicked on a link and just… waited? Maybe you refreshed the page. Checked your WiFi. Wondered if the internet was broken. We’ve all been there.</p><p>Here’s the thing: most slow websites aren’t slow because of bad internet. They’re slow because of how they’re built. And understanding why requires peeking under the hood of how browsers actually turn code into the pages we see.</p><p>Let me walk you through it.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F4170519523286580714&amp;display_name=Tenor&amp;url=https%3A%2F%2Ftenor.com%2Fview%2Fone-piece-egghead-luffy-gear-5-gear-fifth-gif-4170519523286580714&amp;image=https%3A%2F%2Fmedia.tenor.com%2FOeCpaPpT_eoAAAAN%2Fone-piece-egghead.png&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/1adfb93e56322e5d2bb714d1b2dfbe9c/href">https://medium.com/media/1adfb93e56322e5d2bb714d1b2dfbe9c/href</a></iframe><h3>The Browser’s Secret Recipe</h3><p>When you visit a website, your browser is basically a chef following a very specific recipe. Miss a step or do things in the wrong order, and suddenly your soufflé collapses (or in our case, your page loads slowly).</p><p>This recipe is called the <strong>Critical Rendering Path</strong>, and it has three main ingredients:</p><h4>1. The DOM (Document Object Model)</h4><p>Think of the DOM as your website’s skeleton. When the browser receives HTML, it reads it line by line and builds a tree structure. Every &lt;div&gt;, &lt;p&gt;, and &lt;img&gt; tag becomes a node in this tree.</p><pre>&lt;body&gt;<br>  &lt;header&gt;<br>    &lt;h1&gt;My Blog&lt;/h1&gt;<br>  &lt;/header&gt;<br>  &lt;main&gt;<br>    &lt;p&gt;Welcome!&lt;/p&gt;<br>  &lt;/main&gt;<br>&lt;/body&gt;</pre><p>The browser sees this and mentally constructs:</p><pre>- Body<br>    - Header<br>        - H1<br>    - Main<br>        - Paragraph</pre><p>Simple enough, right? But here’s where it gets interesting.</p><h4>2. The CSSOM (CSS Object Model)</h4><p>While the browser is building your HTML skeleton, it also needs to figure out what everything should <em>look</em> like. That’s where CSS comes in.</p><p>The browser builds another tree called the CSSOM. Every CSS rule you write gets parsed and organized. The tricky part? <strong>The browser can’t render anything until it has both the DOM and CSSOM ready.</strong></p><p>This is why you’ll sometimes see unstyled content flash on screen for a split second. The DOM was ready, but the CSSOM wasn’t.</p><p>Checkout MDN: <a href="https://developer.mozilla.org/en-US/docs/Web/API/CSS_Object_Model">https://developer.mozilla.org/en-US/docs/Web/API/CSS_Object_Model</a></p><h4>3. The Render Tree</h4><p>Once the browser has both trees, it combines them into a render tree. This is the final blueprint that says “okay, this H1 should be 32px, bold, and positioned at the top.”</p><p>But we’re still not done! The browser then has to:</p><ul><li><strong>Layout</strong>: Calculate where everything goes (positions, sizes)</li><li><strong>Paint</strong>: Actually draw pixels on screen (colors, images, borders)</li><li><strong>Composite</strong>: Layer everything together (think Photoshop layers)</li></ul><h3>When Things Go Wrong: Reflows and Repaints</h3><p>Here’s where developers accidentally slow things down.</p><p>Every time you change something with JavaScript, the browser might need to redo some of this work.</p><p><strong>Reflow</strong> happens when you change something that affects layout:</p><pre>element.style.width = &#39;500px&#39;; // Browser recalculates layout</pre><p><strong>Repaint</strong> happens when you change something visual but not layout:</p><pre>element.style.color = &#39;red&#39;; // Browser just repaints</pre><p>Reflows are <em>expensive</em>! Imagine rearranging all the furniture in your house versus just repainting a wall. That’s the difference.</p><p>The worst part? Some things trigger reflows without you realizing it:</p><pre>const height = element.offsetHeight; // Reading this causes a reflow!<br>element.style.height = &#39;100px&#39;;      // Another reflow!</pre><p>The browser had to calculate the current height, then recalculate when you changed it. Two reflows when one would’ve been enough.</p><h3>How Do We Measure This Stuff?</h3><p>Google came up with some metrics that actually matter to users. Not “time to download” but “time until the user can actually <em>do</em> something.”</p><h4>First Contentful Paint (FCP)</h4><p>The moment when <em>anything</em> appears on screen. Even if it’s just a background color, the user knows something’s happening. Aim for under 1.8 seconds.</p><h4>Largest Contentful Paint (LCP)</h4><p>When the biggest thing on screen finishes loading. Usually your hero image or main headline. This is when users feel like “okay, the page is here.” You want this under 2.5 seconds.</p><h4>Time to Interactive (TTI)</h4><p>The page looks ready, but can you actually click buttons? TTI measures when the page is truly usable. Under 3.8 seconds is good.</p><h4>Cumulative Layout Shift (CLS)</h4><p>Ever tried to click a button, but an ad loaded and pushed it down, so you clicked the ad instead? Infuriating, right? CLS measures how much stuff jumps around. Lower is better. Under 0.1 is ideal.</p><h4>First Input Delay (FID) / Interaction to Next Paint (INP)</h4><p>You click something… and wait. These measure how quickly the page responds. FID measures the first interaction, INP measures all of them. Under 200ms feels instant. Over 500ms feels broken.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/961/1*naPqT-czDw0wxPmYyDNUpw.png" /><figcaption>PageSpeed Insights for Wikipedia Main Page</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EWz-CXdabZ1UOas86Ojq-w.png" /><figcaption>Render Tree for Wikipedia Main Page</figcaption></figure><p>Checkout here: <a href="https://pagespeed.web.dev/">https://pagespeed.web.dev/</a></p><h3>The Tools You Need</h3><p>Chrome DevTools is your best friend here. Press F12 and click the “Performance” tab. Record a page load and you’ll see a waterfall of everything happening.</p><p>Look for long yellow bars (JavaScript running). Long purple bars (layout calculations). These are your bottlenecks.</p><p>The “Coverage” tab shows how much of your CSS and JavaScript isn’t even being used. I’ve seen sites ship 500KB of code and use 15% of it. That’s like packing your entire closet for a weekend trip.</p><h3>Real User Metrics vs Lab Testing</h3><p>Here’s something that trips people up: your laptop is probably way faster than most people’s phones.</p><p>Lab testing (Lighthouse, PageSpeed Insights) gives you a controlled environment. It’s great for catching obvious issues.</p><p>But Real User Monitoring (RUM) tells you what actual users experience. Someone on a 3G connection in rural India has a very different experience than you on fiber optic WiFi.</p><p>Services like Google Analytics can track Core Web Vitals from real users. Sometimes you’ll find your site is fast at home but painfully slow for 40% of your users. That’s valuable data.</p><h3>What Actually Matters</h3><p>I know I just threw a lot at you. Here’s what to focus on:</p><ol><li><strong>CSS blocks rendering.</strong> Put critical CSS inline, load the rest later.</li><li><strong>JavaScript blocks parsing.</strong> Use defer or async attributes.</li><li><strong>Images are usually the biggest files.</strong> Lazy load them, use modern formats (WebP, AVIF).</li><li><strong>Measure what users feel, not just what loads.</strong> LCP and CLS matter more than page weight.</li><li><strong>Test on slow devices and networks.</strong> Your MacBook Pro lies to you.</li></ol><h3>A Quick Win You Can Try Today</h3><p>Open Chrome DevTools, go to the Network tab, and throttle to “Slow 3G.” Now load your site.</p><p>Painful, right?</p><p>Now look at what loads first. Is it your analytics script? Your social media widgets? Or is it the actual content people came to see?</p><p>Prioritize content. Everything else can wait.</p><h3>The Bottom Line</h3><p>Web performance isn’t about shaving milliseconds off for the sake of it. It’s about respect. Respect for people’s time, their data plans, their older devices.</p><p>Every second of delay costs conversions, engagement, and trust. Amazon found that every 100ms of latency cost them 1% in sales. Google found that 53% of mobile users abandon sites that take over 3 seconds to load.</p><p>But more importantly, slow sites just feel bad. And we can do better.</p><p><em>Have questions about web performance? Drop them in the comments. I read every single one and love geeking out about this stuff.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ae043ae9c796" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Context Windows Explained: Why Size Really Does Matter]]></title>
            <link>https://dhrumillimbad.medium.com/context-windows-explained-why-size-really-does-matter-fb5832277455?source=rss-e3091c5ff931------2</link>
            <guid isPermaLink="false">https://medium.com/p/fb5832277455</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[token]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[context-window]]></category>
            <dc:creator><![CDATA[Dhrumil Limbad]]></dc:creator>
            <pubDate>Sat, 17 Jan 2026 17:53:09 GMT</pubDate>
            <atom:updated>2026-01-17T17:53:09.898Z</atom:updated>
            <content:encoded><![CDATA[<p>Here’s something that confused me when I first started working with LLMs: I’d be having a great conversation with ChatGPT, and suddenly it would forget something I told it 20 messages ago.</p><p>Or I’d try to paste an entire research paper and get an error saying it’s too long.</p><p>What was happening? I was hitting the <strong>context window limit</strong>.</p><p>Understanding context windows changed how I think about building with LLMs. It’s one of those concepts that seems simple at first, but has massive implications for what you can actually build.</p><p>Let me break it down in a way that finally made sense to me.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Ftenor.com%2Fembed%2F17005256468690098790&amp;display_name=Tenor&amp;url=https%3A%2F%2Ftenor.com%2Fview%2Fdon%27t-you-remember-amy-futurama-you-don%27t-remember-what-happened-did-you-forget-already-gif-17005256468690098790&amp;image=https%3A%2F%2Fmedia.tenor.com%2F6_7OqRqv2mYAAAAN%2Fdon%2527t-you-remember-amy.png&amp;type=text%2Fhtml&amp;schema=tenor" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/8499a4afd428f61473ac9ae7477c7451/href">https://medium.com/media/8499a4afd428f61473ac9ae7477c7451/href</a></iframe><h3>What Is a Context Window?</h3><p>Think of a context window as the LLM’s <strong>short-term memory</strong>.</p><p>It’s the total amount of text (input + output) that the model can process in a single conversation. Everything you send, everything it responds with, all of it counts against this limit.</p><p><strong>The technical definition:</strong> The maximum number of tokens (roughly words and word fragments) an LLM can handle at once.</p><p><strong>The practical definition:</strong> How much the AI can “remember” or “see” at any given moment.</p><p>Checkout this video, it helped me understand concepts with illustration.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F-QVoIxEpFkM%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D-QVoIxEpFkM&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F-QVoIxEpFkM%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/a33317df898566d37021a35c5177f30d/href">https://medium.com/media/a33317df898566d37021a35c5177f30d/href</a></iframe><h3>Tokens: The Unit of Measurement</h3><p>Before we go further, let’s talk about tokens.</p><p><strong>What’s a token?</strong></p><p>Tokens are how LLMs break down text. They’re not exactly words — think of them as word chunks.</p><p><strong>Quick rule of thumb:</strong></p><ul><li>1 token ≈ 0.75 words</li><li>100 tokens ≈ 75 words</li><li>1,000 tokens ≈ 750 words</li><li>1 page of text ≈ 500–600 tokens</li></ul><p><strong>Examples:</strong></p><ul><li>“Hello” = 1 token</li><li>“ChatGPT” = 2 tokens (Chat + GPT)</li><li>“artificial intelligence” = 2 tokens</li><li>“I’m learning about LLMs” = 6 tokens</li></ul><p>Why does this matter? Because context windows are measured in tokens, not words or characters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/709/1*bnmya_68T2Ry_Rlf0bY2RA.png" /><figcaption>Visualize how a piece of text might be tokenized by a language model, and the total count of tokens in that piece of text.</figcaption></figure><p><strong>Tool to count tokens:</strong> <a href="https://platform.openai.com/tokenizer">https://platform.openai.com/tokenizer</a></p><h3>Context Window Sizes: The Landscape</h3><p>Different models have wildly different context windows. Here’s what’s available today:</p><h4>Small Context Windows (4K — 8K tokens)</h4><p><strong>Examples:</strong> GPT-3.5 (4K), older models<br><strong>Real capacity:</strong> About 3,000–6,000 words</p><p><strong>Good for:</strong></p><ul><li>Short conversations</li><li>Quick Q&amp;A</li><li>Simple tasks</li><li>Chatbots with brief interactions</li></ul><p><strong>Limitations:</strong></p><ul><li>Forgets earlier parts of long conversations</li><li>Can’t process long documents</li><li>Limited for complex multi-step tasks</li></ul><h4>Medium Context Windows (16K — 32K tokens)</h4><p><strong>Examples:</strong> GPT-3.5-turbo-16k, Claude Instant<br><strong>Real capacity:</strong> About 12,000–24,000 words</p><p><strong>Good for:</strong></p><ul><li>Longer conversations</li><li>Analyzing medium-length documents</li><li>Multi-turn problem solving</li><li>Technical documentation</li></ul><p><strong>Limitations:</strong></p><ul><li>Still can’t handle full books or large codebases</li><li>Long PDFs need to be chunked</li></ul><h4>Large Context Windows (100K — 200K+ tokens)</h4><p><strong>Examples:</strong></p><ul><li>GPT-4 Turbo (128K)</li><li>Claude 3 (200K)</li><li>Gemini 1.5 Pro (1 million tokens!)</li></ul><p><strong>Real capacity:</strong></p><ul><li>100K tokens = ~75,000 words = ~150 pages</li><li>200K tokens = ~150,000 words = ~300 pages</li></ul><p><strong>Good for:</strong></p><ul><li>Analyzing entire books</li><li>Processing complete codebases</li><li>Legal document review</li><li>Research paper analysis</li><li>Long-form content creation</li></ul><p><strong>Game changer:</strong> These models can actually “read” an entire novel in one go.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8zt2-UrU2i6JQDuM.png" /><figcaption>Increasing lengths of context windows over time. (Source: Meibel)</figcaption></figure><h3>Why Context Windows Matter: Real Examples</h3><p>Let me show you why this isn’t just a technical detail — it fundamentally changes what you can build.</p><h4>Example 1: Customer Support Chatbot</h4><p><strong>8K context window:</strong></p><ul><li>Can remember ~10–15 messages of conversation</li><li>After that, starts forgetting earlier context</li><li>User: “Wait, I told you my order number earlier!”</li><li>Bot: “I don’t see that information.”</li></ul><p><strong>32K context window:</strong></p><ul><li>Can remember entire conversation history</li><li>Can reference earlier troubleshooting steps</li><li>More natural, coherent support experience</li></ul><h4>Example 2: Document Analysis</h4><p><strong>You have a 50-page legal contract to analyze.</strong></p><p><strong>16K context (12,000 words):</strong></p><ul><li>Contract is ~25,000 words</li><li>Won’t fit in the context window</li><li>You need to break it into chunks</li><li>Model can’t see connections across the full document</li></ul><p><strong>200K context (150,000 words):</strong></p><ul><li>Entire contract fits easily</li><li>Model can analyze relationships across all sections</li><li>Can answer questions that require understanding the whole document</li><li>“How does clause 12 relate to the liability section on page 40?”</li></ul><h4>Example 3: Code Review</h4><p><strong>You want to review a codebase with 50 files.</strong></p><p><strong>Standard approach (8K tokens):</strong></p><ul><li>Review one file at a time</li><li>Miss cross-file dependencies</li><li>Can’t understand architecture holistically</li></ul><p><strong>Long context (128K+ tokens):</strong></p><ul><li>Paste entire codebase</li><li>Model understands how files interact</li><li>Can suggest architectural improvements</li><li>“This function in utils.py affects security in auth.py”</li></ul><h3>How Context Windows Actually Work</h3><p>Here’s what happens behind the scenes:</p><p><strong>Every time you send a message:</strong></p><ol><li>The LLM loads the entire conversation history</li><li>Adds your new message</li><li>Processes everything together</li><li>Generates a response</li><li>The total (history + new message + response) = tokens consumed</li></ol><p><strong>Important:</strong> The context window includes BOTH input AND output.</p><p>If you have a 4K token window and paste a 3K token document, you only have 1K tokens left for the response.</p><h3>Practical Tips for Working with Context Windows</h3><h4>1. Start Fresh When Needed</h4><p>Long conversation getting confused? Start a new chat. The model has likely filled its context window and is “forgetting” earlier context.</p><h4>2. Be Concise in Long Conversations</h4><p>Every word you type counts against the limit. In long sessions, be more concise to preserve context space.</p><h4>3. Summarize Periodically</h4><p>In very long conversations, ask the model to summarize the discussion so far. Copy that summary to a new conversation to “reset” with clean context.</p><h4>4. Know Your Model’s Limits</h4><p>Before choosing a model, check:</p><ul><li>What’s the context window size?</li><li>Will my use case fit?</li><li>Do I need to implement workarounds?</li></ul><h4>5. Use the Right Tool for the Job</h4><p>Don’t pay for 200K context if you’re only having short conversations. But don’t struggle with 8K if you’re analyzing documents.</p><h3>The Cost Trade-off</h3><p>Larger context windows usually mean:</p><ul><li><strong>Higher API costs</strong> (you’re paying for more tokens)</li><li><strong>Slower responses</strong> (more data to process)</li><li><strong>More expensive infrastructure</strong> (if self-hosting)</li></ul><p>But they also mean:</p><ul><li><strong>Better understanding</strong> of complex tasks</li><li><strong>Fewer errors</strong> from missing context</li><li><strong>More natural conversations</strong></li></ul><p>It’s a trade-off. Choose based on your actual needs.</p><h3>What I’m Learning</h3><p>Context windows seemed like a boring technical detail when I started. Now I see them as one of the most important constraints when designing LLM applications.</p><p>Understanding this constraint helps you:</p><ul><li>Choose the right model for your task</li><li>Design better prompts</li><li>Know when you need additional tools (like RAG)</li><li>Avoid frustrating “why did it forget that?” moments</li></ul><p>I’m diving into RAG — the solution to context window limitations. That’s when things get really interesting.</p><p><em>That completes three-part series! What questions do you have about context windows? Drop them below!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fb5832277455" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Prompt Engineering Basics: How to Actually Talk to LLMs]]></title>
            <link>https://dhrumillimbad.medium.com/prompt-engineering-basics-how-to-actually-talk-to-llms-caf71f896c13?source=rss-e3091c5ff931------2</link>
            <guid isPermaLink="false">https://medium.com/p/caf71f896c13</guid>
            <category><![CDATA[prompt-engineering]]></category>
            <category><![CDATA[context-engineering]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Dhrumil Limbad]]></dc:creator>
            <pubDate>Mon, 12 Jan 2026 04:01:38 GMT</pubDate>
            <atom:updated>2026-01-12T04:01:38.823Z</atom:updated>
            <content:encoded><![CDATA[<p>Recently, I talked about choosing the right LLM for your project. But here’s the thing I quickly learned: <strong>even the best AI model is useless if you don’t know how to talk to it.</strong></p><p>Think of it like this — you could have the smartest person in the world helping you, but if you ask vague questions or don’t give them context, you’re going to get mediocre answers.</p><p>Prompt engineering is the art and science of asking AI models the right questions in the right way. And trust me, the difference between a good prompt and a bad one is night and day.</p><p>Let me show you what I’ve learned.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WXlQOszYwnd8umTy" /><figcaption>Photo by <a href="https://unsplash.com/@kellysikkema?utm_source=medium&amp;utm_medium=referral">Kelly Sikkema</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>What Even Is a Prompt?</h3><p>A prompt is simply the input you give to an LLM. It’s your question, instruction, or request.</p><p>But here’s what makes it interesting: <strong>how you phrase that prompt dramatically changes what you get back.</strong></p><p><strong>Bad prompt:</strong> “Tell me about Python.”</p><p><strong>Better prompt:</strong> “Explain Python’s list comprehension feature to someone who understands basic loops but hasn’t used comprehensions before. Include 2–3 simple examples.”</p><p>Same topic. Completely different results.</p><p>The second prompt gives the AI:</p><ul><li><strong>Context</strong> (who the audience is)</li><li><strong>Scope</strong> (specific feature, not the entire language)</li><li><strong>Format</strong> (examples included)</li><li><strong>Quantity</strong> (2–3, not overwhelming)</li></ul><p>That’s prompt engineering in a nutshell.</p><h3>The Three Core Prompting Techniques</h3><h4>1. Zero-Shot Prompting: Just Ask</h4><p>This is the simplest approach — you just ask the model to do something without any examples.</p><p><strong>Example:</strong> “Summarize this article in 3 bullet points.”</p><p><strong>When to use it:</strong></p><ul><li>Simple, straightforward tasks</li><li>When the model already knows what you want</li><li>Quick one-off requests</li></ul><p><strong>The catch:</strong> Works great for common tasks, but struggles with unusual or complex requests.</p><h4>2. Few-Shot Prompting: Show, Then Ask</h4><p>Instead of just telling the AI what you want, you show it examples first.</p><p><strong>Example:</strong></p><pre>Convert these sentences to questions:</pre><pre>Sentence: The meeting is at 3 PM.<br>Question: When is the meeting?</pre><pre>Sentence: Sarah works in marketing.<br>Question: Where does Sarah work?</pre><pre>Sentence: The report is due on Friday.<br>Question: [Your turn, AI]</pre><p><strong>When to use it:</strong></p><ul><li>When you need consistent formatting</li><li>For unusual or specific patterns</li><li>When zero-shot gives inconsistent results</li></ul><p><strong>Why it works:</strong> The AI learns from your examples and mimics the pattern.</p><h4>3. Chain-of-Thought (CoT): Make It Think Out Loud</h4><p>This is my favorite technique. Instead of asking for just the answer, you ask the AI to show its reasoning.</p><p><strong>Without CoT:</strong> “If a train travels 120 miles in 2 hours, then 180 miles in 3 hours, what’s its average speed?”</p><p><strong>With CoT:</strong> “If a train travels 120 miles in 2 hours, then 180 miles in 3 hours, what’s its average speed? Think through this step-by-step.”</p><p>Or even better: “If a train travels 120 miles in 2 hours, then 180 miles in 3 hours, what’s its average speed? Let’s solve this step by step:</p><ol><li>First, calculate total distance</li><li>Then, calculate total time</li><li>Finally, divide distance by time”</li></ol><p><strong>Why this is powerful:</strong> It forces the model to reason through problems rather than just pattern-match, which dramatically improves accuracy on complex tasks.</p><h3>System Prompts vs User Prompts</h3><p>Most LLM interfaces have two types of prompts:</p><p><strong>System Prompt</strong> (sets the overall behavior): “You are a helpful Python tutor who explains concepts using simple analogies and provides code examples.”</p><p><strong>User Prompt</strong> (the specific request): “Explain what a decorator is.”</p><p>Think of the system prompt as setting the personality and rules, while the user prompt is the actual conversation.</p><p><strong>Pro tip:</strong> Use system prompts to set consistent behavior across multiple conversations. If you’re building a customer support bot, your system prompt might include tone guidelines, what topics to avoid, and how to handle errors.</p><h3>The Parameters That Change Everything</h3><p>Beyond just the words you use, there are settings that dramatically affect output:</p><h4>Temperature (0.0 to 2.0)</h4><p>Controls randomness and creativity.</p><ul><li><strong>Low (0.0–0.3):</strong> Deterministic, factual, consistent<br>- Use for: Math, code, factual answers<br>- “What’s 2+2?” should always give “4”</li><li><strong>Medium (0.7–1.0):</strong> Balanced, natural<br>- Use for: General conversation, writing<br>- Default for most tasks</li><li><strong>High (1.5–2.0):</strong> Creative, unpredictable, diverse<br>- Use for: Creative writing, brainstorming<br>- “Write a poem” should be unique each time</li></ul><h4>Top-P (0.0 to 1.0)</h4><p>Controls the diversity of word choices.</p><ul><li><strong>Low (0.1–0.5):</strong> Focused, consistent vocabulary</li><li><strong>High (0.9–1.0):</strong> More diverse word choices</li></ul><p><strong>Most people stick with defaults (temp ~0.7, top-p ~0.9) and that’s totally fine for getting started.</strong></p><h3>Practical Prompt Patterns I Use Daily</h3><p>Here are some templates that work consistently well:</p><h4>The Role Pattern</h4><p>“Act as a [role]. [Task with specific requirements].”</p><p>Example: “Act as a senior software engineer. Review this code for potential bugs and suggest improvements.”</p><h4>The Format Pattern</h4><p>“[Task]. Format your response as [structure].”</p><p>Example: “Analyze this customer feedback. Format your response as: 1) Main issues, 2) Sentiment, 3) Suggested actions.”</p><h4>The Constraint Pattern</h4><p>“[Task], but [constraint].”</p><p>Example: “Explain quantum computing, but use only analogies from everyday cooking.”</p><h4>The Iterative Refinement Pattern</h4><p>Start broad, then narrow:</p><ol><li>“Give me 10 blog post ideas about machine learning”</li><li>“Expand on idea #3”</li><li>“Write an outline for that”</li><li>“Write the introduction section”</li></ol><h3>Common Mistakes I Made (So You Don’t Have To)</h3><p><strong>1. Being too vague<br></strong> ❌ “Help me with my code” <br>✅ “This Python function throws a KeyError on line 15. Here’s the code: [paste]. What’s causing it?”</p><p><strong>2. Asking for too much at once</strong> <br>❌ “Write a complete e-commerce website with authentication, payment processing, and inventory management” <br>✅ Break it into smaller pieces: “First, write the user authentication logic…”</p><p><strong>3. Not providing examples when needed</strong> If you want specific formatting or style, show an example. Don’t just describe it.</p><p><strong>4. Ignoring the output and not iterating</strong> If the first response isn’t great, refine your prompt. Add details, provide examples, or ask it to try again with a different approach.</p><p><strong>5. Forgetting context resets</strong> In a long conversation, the model might forget earlier context. Occasionally restate important details.</p><h3>The Real Secret: Iteration</h3><p>Here’s what nobody tells you at first: <strong>prompt engineering is iterative.</strong></p><p>Your first prompt probably won’t be perfect. That’s normal. The pros don’t get it right on the first try either — they just iterate faster.</p><p>My process:</p><ol><li>Start with a basic prompt</li><li>See what comes back</li><li>Identify what’s missing or wrong</li><li>Refine the prompt</li><li>Repeat until satisfied</li></ol><p>Sometimes it takes 2–3 tries. Sometimes 10. That’s part of the process.</p><h3>What I’m Learning</h3><p>The more I work with LLMs, the more I realize prompt engineering is less about “magic words” and more about clear communication. If you can explain what you want to another person clearly, you can probably prompt an AI effectively.</p><p>But there’s still an art to it — knowing when to be specific vs. general, when to provide examples, when to break tasks down.</p><p>Tomorrow, I’m diving into <strong>context windows</strong> — because understanding how much information an LLM can actually “remember” changes how you approach prompting entirely.</p><p><strong>Up Next in This Series:</strong></p><ul><li>Context Windows Explained — Why Size Really Does Matter</li></ul><p><strong>Try it yourself:</strong> Take one of your recent prompts to an LLM and try rewriting it using the techniques above. Notice the difference?</p><p><em>What’s your biggest prompting challenge? Drop a comment below!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=caf71f896c13" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Types of LLMs: Your Guide to Choosing the Right AI Model]]></title>
            <link>https://dhrumillimbad.medium.com/types-of-llms-your-guide-to-choosing-the-right-ai-model-e13e4d07b715?source=rss-e3091c5ff931------2</link>
            <guid isPermaLink="false">https://medium.com/p/e13e4d07b715</guid>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[ai-tools]]></category>
            <dc:creator><![CDATA[Dhrumil Limbad]]></dc:creator>
            <pubDate>Tue, 06 Jan 2026 21:49:26 GMT</pubDate>
            <atom:updated>2026-01-17T18:06:01.694Z</atom:updated>
            <content:encoded><![CDATA[<p>When I started learning about Large Language Models, I thought they were all basically the same thing. ChatGPT, Claude, Llama — aren’t they all just chatbots?</p><p>Turns out, not even close.</p><p>Choosing the right LLM is like choosing the right vehicle. Sure, they all get you from point A to point B, but you wouldn’t use a Ferrari for moving furniture or a pickup truck for a race. Each model has its strengths, costs, and ideal use cases.</p><p>Let me break down what I’ve learned about the different types of LLMs in a way that actually makes sense.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/784/0*fUczYIs0fZHbiWn0.jpg" /><figcaption>AI generated photograph of various large language models displayed on a wall in an indoor setting.</figcaption></figure><h3>1. Open Source vs Closed Source: Who Controls the Model?</h3><p>Think of this like iPhone vs Android, but for AI.</p><h4><strong>Closed Source Models</strong> (like GPT-4, Claude, Gemini)</h4><p>These are the ones you access through a website or API. You send your question, they send back an answer, and you pay per use.</p><p>The good stuff:</p><ul><li>They just work. No setup, no technical headaches</li><li>Usually the smartest and most capable</li><li>Someone else handles all the infrastructure</li></ul><p>The trade-offs:</p><ul><li>You’re paying for every single request</li><li>Your data goes through their servers</li><li>You can’t customize much beyond prompts</li></ul><h4><strong>Open Source Models</strong> (like Llama, Mistral, Phi)</h4><p>These are models you can download and run yourself. Think of it like owning the software instead of renting it.</p><p>The good stuff:</p><ul><li>You control everything — your data never leaves your servers</li><li>After initial setup, it’s cheaper at high volumes</li><li>You can fine-tune and customize however you want</li></ul><p>The trade-offs:</p><ul><li>You need to set up and maintain the infrastructure</li><li>Generally not as powerful as the top closed-source models</li><li>Requires more technical knowledge</li></ul><p><strong>My take</strong>: If you’re just getting started or building a prototype, go with closed-source APIs. They’re <em>plug-and-play</em>. Once you know your use case and have scale, then consider if open-source makes sense.</p><h3>2. Model Size: Bigger Isn’t Always Better</h3><p>LLMs are measured in parameters — think of these as the “brain cells” of the model. More parameters generally mean smarter, but also slower and more expensive.</p><h4><strong>Small Models (7–13 billion parameters)</strong></h4><p>Examples: Llama 3 8B, Mistral 7B, Phi-3</p><p>These are like compact cars — efficient and practical.</p><ul><li>Super fast responses</li><li>Cheap to run (or free if self-hosting)</li><li>Perfect for straightforward tasks like answering FAQs, basic summarization, or simple classification</li><li>Can actually run on a decent laptop</li></ul><h4><strong>Medium Models (30–70 billion parameters)</strong></h4><p>Examples: Llama 3 70B, Mixtral 8x7B</p><p>The SUVs of the AI world — balanced and versatile.</p><ul><li>Great at most real-world tasks</li><li>Reasonable cost and speed</li><li>This is the sweet spot for most production applications</li><li>Good reasoning without breaking the bank</li></ul><h4><strong>Large Models (175+ billion parameters)</strong></h4><p>Examples: GPT-4, Claude Opus</p><p>The luxury sedans — maximum performance, premium price.</p><ul><li>Best at complex reasoning, creative writing, and nuanced tasks</li><li>Noticeably slower</li><li>Expensive (can be pennies per request, which adds up fast)</li><li>Use these when quality matters more than cost</li></ul><p><strong>Here’s what surprised me</strong>: A well-prompted small model can often beat a poorly-prompted large model. The model size matters, but how you use it matters even more.</p><h3>3. General Purpose vs Specialized: Jack of All Trades or Expert?</h3><p>Some LLMs are trained to be good at everything. Others are laser-focused on specific tasks.</p><h4><strong>General Purpose Models</strong></h4><p>Think: GPT-4, Claude, Llama 3</p><p>These know a bit about everything — history, coding, creative writing, math, you name it. They’re your default choice for most applications.</p><h4><strong>Code-Specialized Models</strong></h4><p>Think: CodeLlama, StarCoder</p><p>These are trained specifically on programming. They’re better at:</p><ul><li>Understanding code structure</li><li>Generating syntactically correct code</li><li>Explaining what code does</li><li>Debugging</li></ul><p>If you’re building a coding assistant, these will outperform general models.</p><h4><strong>Domain-Specific Models</strong></h4><p>Think: Med-PaLM for medical questions, BloombergGPT for finance</p><p>These are trained on specialized datasets in specific fields. They understand industry jargon, regulations, and nuances that general models might miss.</p><p><strong>Rule of thumb</strong>: Start with general-purpose models. Only reach for specialized ones when you need deep domain expertise and accuracy is critical.</p><h3>4. Context Window: How Much Can It Remember?</h3><p>Imagine you’re having a conversation, but the other person can only remember the last few sentences. Frustrating, right?</p><p>The context window is how much text an LLM can “remember” at once. It’s measured in tokens (roughly 1 token = 0.75 words).</p><h4><strong>Standard Context (4K-8K tokens)</strong></h4><ul><li>About 3,000–6,000 words</li><li>Enough for most conversations and short documents</li><li>Like having a 10-page memory</li></ul><h4><strong>Extended Context (32K-100K tokens)</strong></h4><ul><li>Some models like GPT-4 Turbo offer 128K, Claude offers 200K</li><li>Can process entire books or large codebases in one go</li><li>Like having a 300-page memory</li></ul><h4><strong>Why this matters</strong>:</h4><p>Let’s say you’re building a customer support chatbot. If conversations are short, 8K tokens is plenty.</p><p>But if you’re building a tool to analyze legal contracts or research papers, you need those 100K+ token windows. Otherwise, you’ll need workarounds — which is actually why RAG (Retrieval Augmented Generation) exists. But that’s a topic for next week.</p><h3>How I Actually Choose an LLM</h3><p>Here’s my current framework:</p><ol><li><strong>What’s the task?</strong> Simple questions? Use a small model. Complex reasoning? Go bigger.</li><li><strong>What’s the budget?</strong> Prototyping? Use APIs. High volume production? Consider open-source.</li><li><strong>How sensitive is the data?</strong> Public info? APIs are fine. Private medical records? You might need self-hosted.</li><li><strong>Test on real data</strong>: Benchmarks are helpful, but nothing beats testing on your actual use case.</li></ol><h3>What I’m Learning</h3><p>The more I work with LLMs, the more I realize there’s no “best” model — only the best model for your specific situation. A 7B model with smart prompting can often beat a 70B model with lazy prompting.</p><p>Tomorrow, I’m diving into exactly how to write those smart prompts. Because choosing the right model is step one. Getting it to actually do what you want? That’s prompt engineering.</p><h3>Useful Resources to Explore Further</h3><h4>Try Different LLMs:</h4><ul><li><a href="https://chat.openai.com/">ChatGPT</a> — OpenAI’s flagship model (GPT-4, GPT-3.5)</li><li><a href="https://claude.ai/">Claude</a> — Anthropic’s AI assistant</li><li><a href="https://gemini.google.com/">Google Gemini</a> — Google’s conversational AI</li><li><a href="https://huggingface.co/chat/">Hugging Chat</a> — Free chat interface to try open-source models</li></ul><h4>Open-Source Models:</h4><ul><li>Meta Llama: (Meta’s open-source LLM family)</li><li>Mistral AI: <a href="https://mistral.ai/">https://mistral.ai/</a> (High-performance open models)</li><li>Ollama: <a href="https://ollama.ai/">https://ollama.ai/</a> (Easy way to run open-source LLMs locally)</li></ul><h4><strong>Up Next in This Series:</strong></h4><ul><li>Prompt Engineering Basics — How to Actually Talk to These Models</li><li>Context Windows Deep Dive — Why Size Really Does Matter</li></ul><p><em>What LLMs are you using? Any surprises or “gotchas” you’ve discovered? Let me know in the comments!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e13e4d07b715" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Top Shopify Apps to Skyrocket your Sales.]]></title>
            <link>https://dhrumillimbad.medium.com/top-shopify-apps-to-rocket-your-sales-25f4b4c93ba3?source=rss-e3091c5ff931------2</link>
            <guid isPermaLink="false">https://medium.com/p/25f4b4c93ba3</guid>
            <category><![CDATA[shopify]]></category>
            <category><![CDATA[ecommerce]]></category>
            <category><![CDATA[shopify-apps]]></category>
            <category><![CDATA[sales]]></category>
            <dc:creator><![CDATA[Dhrumil Limbad]]></dc:creator>
            <pubDate>Wed, 09 Nov 2022 11:47:51 GMT</pubDate>
            <atom:updated>2022-11-15T18:22:49.867Z</atom:updated>
            <content:encoded><![CDATA[<p><em>In this blog I will showcase few apps that I’ve worked with in 2022 which have proven to be sale effective.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*sXmI-YThOaP0zmQ9" /><figcaption>Photo by <a href="https://unsplash.com/@mayofi?utm_source=medium&amp;utm_medium=referral">Joshua Mayo</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>1. Judge.me Product Reviews</h3><p>Judge.me Product Reviews by <a href="https://apps.shopify.com/partners/judge-me">Judge.me</a> is an app that allows user to view or write reviews of products that are on your store.</p><p><strong><em>App rating ⭐ (5.0) [Free plans available]</em></strong></p><p>📌Benefits of online reviews are -</p><p><strong>A. Build Trust:</strong> Another advantage of reviews is that they can help to portray the company in a positive light. People are accustomed to purchasing products from well-known sellers such as Amazon. They may be unsure if they are on a different site. “Will the product be delivered quickly?” “What if I have to return it?” “When shopping in unfamiliar territory, customers need to know that other customers have had positive experiences.” As a result, they will follow product reviews and online business reviews to ensure that everything appears to be in order. Customers value online reviews as a source of trust.</p><p><strong>B. Unbiased Product Insight: </strong>People want to know if the things they’re evaluating will meet their needs. Online reviews have a certain level of credibility. According to a survey of U.S. mom internet users, individuals trust consumer ratings approximately 12 times more than manufacturer descriptions.</p><p>🌟Star Features :</p><p>✔️ SEO Rich Snippets (your ratings and stars marked up in Google search).</p><p>✔️ Question and Answers (Q&amp;A) and custom forms, questions.</p><p>✔️ Uses theme’s CSS to style review widgets</p><p>✔️Automate with Zapier and create specific blacklist conditions</p><h3>2. Upsell — Pop Ups — Email Marketing</h3><p>Upsell — Pop Ups — Email Marketing by <a href="https://apps.shopify.com/partners/onestorehq">ONE</a> is an app that upsells Checkout, Newsletter, Pop Up Window, SMS+Text.</p><blockquote>Upselling is about offering a product that costs more and often is of a higher quality</blockquote><p><strong><em>App rating ⭐ (5.0) [Free plans available. 30 days free trial.]</em></strong></p><p>📌Benefits of upselling -</p><p><strong>A. It increases revenue:</strong> on average, it is estimated that up-sell is somewhere 15 to 20 times more profitable if compared to cross-sell. According to Sumo, <a href="https://sumo.com/stories/ecommerce-upselling#4">the largest part of income (70–95%) comes from different upselling techniques while the rest (5–30%) are the initial sales</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FshYigdHyGbBs3TO" /><figcaption><em>An up-sell example @ Apple</em></figcaption></figure><p><strong>B. It boosts Average Order Value (AOV):</strong> it boosts your overall sales revenue, meaning it brings more profit; not only more profit is brought but also it’s done in a shorter period of time; since the possibility of making a sale to an existing customer is higher by at least 60–70% than acquiring a new one, it is a no-brainer to prioritize new customers over the existing ones, as managing to boost your AOV recovers the cost of acquiring new customers.</p><p>🌟Star Features :</p><p>✔️ Fast Page Speed — ONLY Loads Active Apps / Post Script.</p><p>✔️ Opt-In — Capture Leads / Birthday / Phone Number / Email Contacts.</p><p>✔️ Bulk SMS Text Message — GDPR / TCPA.</p><p>✔️ Discount Code Manager -Unique Codes / Buy X Get Y / Buy One Get One.</p><p>✔️ Games — Spin to Win Discount Wheelio / Raffle / Giveaways.</p><h3>3. Instafeed ‑ Instagram Feed</h3><p>Instafeed ‑ Instagram Feed by <a href="https://apps.shopify.com/partners/developer-857a316c902a1f7b">Mintt Studio</a> ; Elegant &amp; shoppable official Instagram feeds that bring sales.</p><p><strong><em>App rating ⭐ (5.0) [Free plans available]</em></strong></p><p>📌Benefits of social media feed-</p><p><strong>A. Greater Exposure:</strong> Instagram has emerged as one of the best places to grow your business due to the large exposure that it can provide. It has a huge database of active followers. Instagram has not stuck to being just a traditional social media platform. There are a record number of companies that have started on Instagram. Surveys and data have shown that many of the users visit business profiles daily. A large chunk of the user base has become comfortable with buying from businesses on Instagram.</p><p><strong>B. Understand Insights:</strong> Insights are one of the most useful features that Instagram has to offer to business accounts. Insights help provide you with a detailed and in-depth analysis of your Instagram business account. Instagram insights are absolutely free and are available to every business account. The insights tool allows you to view your reach and impressions. This helps you understand what volume of people are seeing your posts.</p><p>🌟Star Features :</p><p>✔️ No impact on store page speed guaranteed.</p><p>✔️ Compatible with all themes and devices.</p><p>✔️ Tag multiple products on your posts — Create shoppable Instagram feeds (Pro).</p><p>✔️ Fully customizable — configure feed title, space between posts and layout or let the app show the optimal layout for your store visitors screen resolution.</p><p>There are many more Shopify app that are useful to enhance your store but above mentioned are the ones that I’ve personally worked with and have seen the results. Hope this blog was helpful to you.</p><p>Need your Shopify store customized or optimized? Hit me up at dhrumillimbad@gmail.com</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=25f4b4c93ba3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Resolving Font Rendering Issues on Safari.]]></title>
            <link>https://dhrumillimbad.medium.com/resolving-font-rendering-issues-on-safari-1a7a1220fdf6?source=rss-e3091c5ff931------2</link>
            <guid isPermaLink="false">https://medium.com/p/1a7a1220fdf6</guid>
            <category><![CDATA[fonts]]></category>
            <category><![CDATA[shopify]]></category>
            <category><![CDATA[frontend]]></category>
            <category><![CDATA[typography]]></category>
            <category><![CDATA[safari]]></category>
            <dc:creator><![CDATA[Dhrumil Limbad]]></dc:creator>
            <pubDate>Wed, 21 Sep 2022 19:13:44 GMT</pubDate>
            <atom:updated>2022-09-21T19:13:44.665Z</atom:updated>
            <content:encoded><![CDATA[<p>In this blog I will be sharing my experience with font rendering issues that I faced with Safari browser. While developing a Shopify store I came across certain problems with accent characters on Safari browser.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*viblyNprTi9CZRx5FAMNJA.png" /><figcaption>Accent Characters.</figcaption></figure><p>These characters appear normal on devices except IOS or Mac browsers. Not sure how the Safari browser engine computes these character set but they all seem to appear perfectly fine on the Windows Chrome browser.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0hqdZnpd7YmzTPZG6jIO1g.png" /><figcaption>This is how it looked on Safari.</figcaption></figure><p>As you can observe that certain characters are in bold for some weird reason. I could not find the exact reason but I read somewhere that this may occur while copy pasting content from Word/Docx file to destination. Maybe the character encoding is altering? I still have no idea :(</p><p>The solution was simple after that, take the characters that are in bold and type them instead of copying them. I had a long document on my DOM so I used the replaceAll function to resolve this issue.</p><p>Other notable issues that you may find is font jarring or fonts are not bright enough (just on Safari). Now bare in mind that you cannot just increase the font weight and expect it look the same on Chrome or Moz. You can apply cheap hack like applying shadow to text but I would not recommend that. So, in such case you need to identify the browser agent and then based on that you can manipulate the CSS.</p><p>Useful links:<br>1. <a href="https://stackoverflow.com/questions/31056543/safari-font-rendering-issues">https://stackoverflow.com/questions/31056543/safari-font-rendering-issues</a></p><p>2. <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Browser_detection_using_the_user_agent">https://developer.mozilla.org/en-US/docs/Web/HTTP/Browser_detection_using_the_user_agent</a></p><p>Got a Shopify store? Need to fix/develop it? Need Shopify app? Contact <a href="http://websmithsolution.com/">Websmith Solutions</a>. Here I work with Shopify Experts.</p><p>Thank You for reading.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1a7a1220fdf6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Beauty of Customizers in Shopify.]]></title>
            <link>https://dhrumillimbad.medium.com/the-beauty-of-customizers-in-shopify-dabe60809464?source=rss-e3091c5ff931------2</link>
            <guid isPermaLink="false">https://medium.com/p/dabe60809464</guid>
            <category><![CDATA[shopify-store]]></category>
            <category><![CDATA[shopify]]></category>
            <category><![CDATA[shopify-development]]></category>
            <category><![CDATA[shopify-theme]]></category>
            <category><![CDATA[front-end-development]]></category>
            <dc:creator><![CDATA[Dhrumil Limbad]]></dc:creator>
            <pubDate>Tue, 20 Sep 2022 18:13:34 GMT</pubDate>
            <atom:updated>2022-09-21T05:35:23.193Z</atom:updated>
            <content:encoded><![CDATA[<p>In this blog I will be sharing my experience and use cases on theme customizers in Shopify.</p><h3>The problem</h3><p>Recently I came across a store and the client had wanted to introduce a border between sections. The task looks fairly simple but the way these sections were coded (by previous developers) happened to be very weird to me. Some sections were arranged with translate property for some reason, so when you try to give a border-bottom property it just does not settle right.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JwmT_ZO8kQw9Op5lXgST2Q.png" /><figcaption>An illustration to showcase the problem.</figcaption></figure><p>Yes, you can solve this by altering the CSS applied but that would require more time and refactoring given that you have to get the job done in few mins 😬.</p><h3>Solution</h3><p>Make use of theme customizer, that it ;)</p><p>You can simply create a section that enables user to control the height of div/span and give a color picker. To do that create a schema that has a range slider and a color picker. Give appropriate CSS styling and that way you can use this anywhere and as many times as you want. This is a quick hack to get around such problems when you have time constraints.</p><p>Got a Shopify store? Need to fix/develop it? Need Shopify app? Contact <a href="http://websmithsolution.com/">Websmith Solutions</a>. Here I work with Shopify Experts.</p><p>Thank You for reading.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dabe60809464" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Roadmap to Shopify Development.]]></title>
            <link>https://dhrumillimbad.medium.com/roadmap-to-shopify-development-1596715cdeef?source=rss-e3091c5ff931------2</link>
            <guid isPermaLink="false">https://medium.com/p/1596715cdeef</guid>
            <category><![CDATA[shopify-apps]]></category>
            <category><![CDATA[shopify-store]]></category>
            <category><![CDATA[shopify-development]]></category>
            <category><![CDATA[shopify]]></category>
            <category><![CDATA[shopify-theme]]></category>
            <dc:creator><![CDATA[Dhrumil Limbad]]></dc:creator>
            <pubDate>Mon, 11 Jul 2022 07:04:04 GMT</pubDate>
            <atom:updated>2022-07-11T07:04:04.334Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xs50t2V4cb9eEuIwJ7H0Lw.png" /></figure><p>A guide to steer your way to Shopify.</p><p>In 2021, I discovered Shopify as I was studying for my undergrad.<br>Since my internship at Websmith Solution as a Shopify Developer (not an app developer), I have experience working on actual projects and have collaborated with Shopify agencies. I had already been churning out code in Next.js, TypeScript, and Node.js before I learned about Shopify. I’ll talk about how I managed to board the Shopify bandwagon.</p><h3>What is Shopify?</h3><p>Shopify is a complete commerce platform that lets you start, grow, and manage a business. <br><a href="https://www.shopify.com/blog/what-is-shopify">-read more here</a></p><p>Shopify is a full-stack thing. Both, Frontend and Backend developers can work with it. But if we want to still be specific about roles then frontend developers can jump right into Shopify Theme Development and backend developers can have Shopify App development. Before we jump in any details I’d advice y’all to create a <a href="https://accounts.shopify.com/">Shopify Partners account</a> (yes, it’s free).</p><h3>Shopify Theme Development.</h3><p>A job best suited for Frontend guys. Here’s the prerequisite you should have:</p><ul><li>Good grasp over HTML5, CSS3 and JavaScript(ES5 or above).</li><li>Liquid; A templating language used in Shopify. A must have skill.</li><li>Most developers prefer jQuery to code, most themes have jQuery preinstalled but it’s optional since you can get around with just vanilla js.</li></ul><h3>Shopify App Development.</h3><p>This involves full-stack development. Web apps can be made using various technologies like PHP, Python, Node.js, Ruby etc… I have only worked with Node.js here.</p><ol><li>To design an app you will need frontend skills.</li></ol><ul><li>Good grasp over HTML5, CSS3 and JavaScript(ES5 or above).</li><li>Yes, you can use React.js / Next.js for frontend. <a href="https://shopify.dev/custom-storefronts/hydrogen">Shopify recently released Hydrogen framework (check out here).</a></li></ul><p>2. To develop the backend you will need these.</p><ul><li>Shopify have their api(s) written in REST and GraphQL.</li><li>Web Hooks.</li><li>Database (whatever you prefer).</li></ul><h3>Types of Application in Shopify.</h3><ol><li><a href="https://help.shopify.com/en/manual/apps/app-types#custom-apps">Custom App.</a></li><li><a href="https://help.shopify.com/en/manual/apps/app-types#private-apps">Private App.</a></li><li><a href="https://help.shopify.com/en/manual/apps/app-types#public-apps">Public App.</a></li><li><a href="https://help.shopify.com/en/manual/apps/app-types#draft-apps">Draft App.</a></li></ol><h3>Shopify Docs</h3><ol><li><a href="https://shopify.dev/apps">Shopify App development.</a></li><li><a href="https://shopify.dev/themes">Shopify Theme development.</a></li><li><a href="https://shopify.dev/custom-storefronts">Storefront.</a></li><li><a href="https://www.youtube.com/c/shopify">Official Shopify YouTube Channel.</a></li></ol><p>Thank You for reading, hope this helps :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1596715cdeef" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>