<?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: Nitin Ahirwal</title>
    <description>The latest articles on Forem by Nitin Ahirwal (@nitinahirwal).</description>
    <link>https://forem.com/nitinahirwal</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%2F916415%2F050a5365-9ae8-4930-acaa-2ed7c45fb8ac.png</url>
      <title>Forem: Nitin Ahirwal</title>
      <link>https://forem.com/nitinahirwal</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/nitinahirwal"/>
    <language>en</language>
    <item>
      <title>LeetCode Challenge Day 9 — 166. Fraction to Recurring Decimal</title>
      <dc:creator>Nitin Ahirwal</dc:creator>
      <pubDate>Wed, 24 Sep 2025 14:11:39 +0000</pubDate>
      <link>https://forem.com/nitinahirwal/leetcode-challenge-day-9-166-fraction-to-recurring-decimal-1f07</link>
      <guid>https://forem.com/nitinahirwal/leetcode-challenge-day-9-166-fraction-to-recurring-decimal-1f07</guid>
      <description>&lt;p&gt;Hey everyone 👋&lt;/p&gt;

&lt;p&gt;Day 9 of my LeetCode streak! Today wasn’t the smoothest — I was working from a café instead of my desk ☕, so no video walkthrough this time. But the streak must go on 💪.&lt;/p&gt;

&lt;p&gt;📝 Problem Summary&lt;/p&gt;

&lt;p&gt;We’re dividing two integers and returning the result as a string.&lt;/p&gt;

&lt;p&gt;If the decimal terminates → just return it.&lt;/p&gt;

&lt;p&gt;If the decimal repeats → wrap the repeating digits in parentheses 🔄.&lt;/p&gt;

&lt;p&gt;Examples:&lt;/p&gt;

&lt;p&gt;1/2 → "0.5"&lt;/p&gt;

&lt;p&gt;2/1 → "2"&lt;/p&gt;

&lt;p&gt;4/333 → "0.(012)"&lt;/p&gt;

&lt;p&gt;💡 Key Insight&lt;/p&gt;

&lt;p&gt;When doing long division, a repeating remainder means the digits will start repeating too.&lt;br&gt;
So, track remainders in a map and insert parentheses once a cycle is detected.&lt;/p&gt;

&lt;p&gt;I’ve covered the full intuition, step-by-step approach, edge cases, and JavaScript code on my blog 👇&lt;br&gt;
🔗 &lt;a href="https://nitinahirwal.in/posts/166-FractiontoRecurringDecimal" rel="noopener noreferrer"&gt;https://nitinahirwal.in/posts/166-FractiontoRecurringDecimal&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Day 9 done ✅ — excited for Day 10 tomorrow 🚀&lt;/p&gt;

&lt;h1&gt;
  
  
  LeetCode #100DaysOfCode #JavaScript #ProblemSolving
&lt;/h1&gt;

</description>
      <category>leetcode</category>
      <category>programming</category>
      <category>javascript</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>LeetCode Day 8 — Compare Version Numbers (165)</title>
      <dc:creator>Nitin Ahirwal</dc:creator>
      <pubDate>Tue, 23 Sep 2025 10:45:59 +0000</pubDate>
      <link>https://forem.com/nitinahirwal/leetcode-day-8-compare-version-numbers-165-38aa</link>
      <guid>https://forem.com/nitinahirwal/leetcode-day-8-compare-version-numbers-165-38aa</guid>
      <description>&lt;p&gt;Day 8 of my LeetCode streak 🚀&lt;/p&gt;

&lt;p&gt;Today’s problem was 165. Compare Version Numbers — a neat string parsing challenge where the tricky part isn’t the logic itself, but handling all the little details:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt; Ignoring leading zeros ("01" = "001")&lt;/li&gt;
&lt;li&gt; Treating missing revisions as 0 ("1.0" = "1.0.0")&lt;/li&gt;
&lt;li&gt; Comparing uneven revision lengths&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I solved it in JavaScript by splitting the version strings into arrays, comparing each part as integers, and defaulting to 0 when one version runs out of parts.&lt;/p&gt;

&lt;p&gt;Even on a distracted day (hello, Twitter doomscrolling 😅), keeping the streak alive matters.&lt;/p&gt;

&lt;p&gt;👉 Full breakdown with code and reflections on my blog:&lt;br&gt;
&lt;a href="https://nitinahirwal.in/posts/165-CompareVersionNumbers" rel="noopener noreferrer"&gt;https://nitinahirwal.in/posts/165-CompareVersionNumbers&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;On to Day 9! 🚀&lt;/p&gt;

&lt;h1&gt;
  
  
  LeetCode #JavaScript #100DaysOfCode
&lt;/h1&gt;

</description>
      <category>leetcode</category>
      <category>dsa</category>
      <category>100daysofcode</category>
      <category>programming</category>
    </item>
    <item>
      <title>🚀 Day 7 of My LeetCode Challenge — 3005. Count Elements With Maximum Frequency</title>
      <dc:creator>Nitin Ahirwal</dc:creator>
      <pubDate>Mon, 22 Sep 2025 11:42:07 +0000</pubDate>
      <link>https://forem.com/nitinahirwal/day-7-of-my-leetcode-challenge-3005-count-elements-with-maximum-frequency-3a9c</link>
      <guid>https://forem.com/nitinahirwal/day-7-of-my-leetcode-challenge-3005-count-elements-with-maximum-frequency-3a9c</guid>
      <description>&lt;p&gt;Today’s problem: LeetCode 3005 — Count Elements With Maximum Frequency 🔢&lt;/p&gt;

&lt;p&gt;Task: Find the max frequency in an array and count how many elements belong to it.&lt;/p&gt;

&lt;p&gt;Approach:&lt;/p&gt;

&lt;p&gt;Use a Map to count frequencies&lt;/p&gt;

&lt;p&gt;Find the maximum frequency&lt;/p&gt;

&lt;p&gt;Sum all counts equal to that maximum&lt;/p&gt;

&lt;p&gt;⚡ Time Complexity: O(n)&lt;br&gt;
💾 Space Complexity: O(k)&lt;/p&gt;

&lt;p&gt;👉 Full write-up with code + video walkthrough:&lt;br&gt;
[&lt;a href="https://nitinahirwal.in/posts/3005-CountElementsWithMaximumFrequency" rel="noopener noreferrer"&gt;https://nitinahirwal.in/posts/3005-CountElementsWithMaximumFrequency&lt;/a&gt;]&lt;/p&gt;

&lt;p&gt;🎥 Walkthrough video: [&lt;a href="https://youtu.be/qyptT7sp_gg" rel="noopener noreferrer"&gt;https://youtu.be/qyptT7sp_gg&lt;/a&gt;]&lt;/p&gt;

&lt;h1&gt;
  
  
  LeetCode #JavaScript #100DaysOfCode #HashMap
&lt;/h1&gt;

</description>
      <category>leetcode</category>
      <category>datastructures</category>
      <category>programming</category>
    </item>
    <item>
      <title>Just dropped a new blog on Mastering Codex CLI: A Complete Guide to Streamlining Your Development Workflow!</title>
      <dc:creator>Nitin Ahirwal</dc:creator>
      <pubDate>Thu, 17 Apr 2025 13:43:56 +0000</pubDate>
      <link>https://forem.com/nitinahirwal/just-dropped-a-new-blog-on-mastering-codex-cli-a-complete-guide-to-streamlining-your-development-2ni0</link>
      <guid>https://forem.com/nitinahirwal/just-dropped-a-new-blog-on-mastering-codex-cli-a-complete-guide-to-streamlining-your-development-2ni0</guid>
      <description>&lt;p&gt;Codex CLI is an AI-powered command-line tool that’s a must-have for developers looking to code smarter. It turns natural language into executable code, automates repetitive tasks, and even explains complex codebases—all from your terminal. &lt;/p&gt;

&lt;p&gt;In this post, I cover:&lt;br&gt;
 Key features: Natural language coding, multimodal inputs, secure automation, and more&lt;/p&gt;

&lt;p&gt;Easy installation steps and essential commands to get started&lt;/p&gt;

&lt;p&gt;How Codex CLI saves time, boosts productivity, and cuts errors&lt;/p&gt;

&lt;p&gt;Ready to level up your dev game? Dive into the full guide and start using Codex CLI today! &lt;/p&gt;

&lt;p&gt;Read it here: &lt;a href="https://nitinahirwal.in/posts/CodexCLI" rel="noopener noreferrer"&gt;https://nitinahirwal.in/posts/CodexCLI&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Let’s discuss your favorite CLI tools or how you’re using AI in your workflow!  &lt;/p&gt;

</description>
      <category>codexcli</category>
      <category>devtools</category>
      <category>coding</category>
      <category>productivity</category>
    </item>
    <item>
      <title>🚀 Starting My 90-Day Journey: #Code90 – A Full-Stack Dev, DevOps, and Web3 Exploration</title>
      <dc:creator>Nitin Ahirwal</dc:creator>
      <pubDate>Tue, 15 Apr 2025 14:51:36 +0000</pubDate>
      <link>https://forem.com/nitinahirwal/starting-my-90-day-journey-code90-a-full-stack-dev-devops-and-web3-exploration-g4b</link>
      <guid>https://forem.com/nitinahirwal/starting-my-90-day-journey-code90-a-full-stack-dev-devops-and-web3-exploration-g4b</guid>
      <description>&lt;p&gt;After 7+ years in the web development industry, I’m diving even deeper into full-stack development, DevOps, Web3, and more.&lt;/p&gt;

&lt;p&gt;I’m excited to share my new personal project: #Code90 – a 90-day journey where I’ll be revisiting everything I’ve learned (and relearned) throughout my career. This project will be a mix of:&lt;/p&gt;

&lt;p&gt;Web Development (MERN Stack, APIs, UI/UX)&lt;/p&gt;

&lt;p&gt;DevOps (Docker, CI/CD, Cloud Infrastructure)&lt;/p&gt;

&lt;p&gt;Web3 (Smart Contracts, Solana)&lt;/p&gt;

&lt;p&gt;System Design &amp;amp; Project Walkthroughs&lt;/p&gt;

&lt;p&gt;Every day, I’ll be documenting my learning process, building projects, and sharing real-world challenges. This is an open-source, public learning experience, where I aim to:&lt;/p&gt;

&lt;p&gt;✅ Relearn and master new concepts&lt;br&gt;
✅ Build projects and share them with the community&lt;br&gt;
✅ Tackle real-world problems in web development, deployment, scaling, and optimization&lt;/p&gt;

&lt;p&gt;This is for anyone looking to stay up-to-date with the latest in tech, full-stack development, DevOps, or Web3. I’d love for you to follow along, contribute, or simply get inspired by the journey!&lt;/p&gt;

&lt;p&gt;🔗 You can follow along here: &lt;a href="https://nitinahirwal.in/posts/Code-90" rel="noopener noreferrer"&gt;https://nitinahirwal.in/posts/Code-90&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Let’s explore, build, and learn together!&lt;/p&gt;

</description>
      <category>code90</category>
      <category>webdev</category>
      <category>learninginpublic</category>
      <category>fullstackdevelopment</category>
    </item>
    <item>
      <title>React Server Components: A Game-Changer for Web Development</title>
      <dc:creator>Nitin Ahirwal</dc:creator>
      <pubDate>Sat, 12 Apr 2025 15:01:11 +0000</pubDate>
      <link>https://forem.com/nitinahirwal/react-server-components-a-game-changer-for-web-development-301g</link>
      <guid>https://forem.com/nitinahirwal/react-server-components-a-game-changer-for-web-development-301g</guid>
      <description>&lt;p&gt;Hey devs! 👋&lt;br&gt;
I just published a deep dive into React Server Components and how they’re transforming the way we build fast, scalable React apps — especially with Next.js! ⚛️🚀&lt;/p&gt;

&lt;p&gt;Covered in detail:&lt;/p&gt;

&lt;p&gt;✅ Say goodbye to useEffect headaches&lt;br&gt;
✅ Cleaner architecture with Server &amp;amp; Client Components&lt;br&gt;
✅ Improved performance &amp;amp; faster load times&lt;br&gt;
✅ Built-in SEO benefits&lt;br&gt;
✅ Real-world examples &amp;amp; tips&lt;/p&gt;

&lt;p&gt;Give it a read and let me know your thoughts on RSC! 🔥&lt;br&gt;
👉&lt;a href="https://nitinahirwal.in/posts/React-Server-Components" rel="noopener noreferrer"&gt;https://nitinahirwal.in/posts/React-Server-Components&lt;/a&gt;&lt;/p&gt;

</description>
      <category>react</category>
      <category>nextjs</category>
      <category>webdev</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Understanding Caching in Next.js – Make Your Apps Lightning Fast 🚀</title>
      <dc:creator>Nitin Ahirwal</dc:creator>
      <pubDate>Fri, 04 Apr 2025 05:44:04 +0000</pubDate>
      <link>https://forem.com/nitinahirwal/understanding-caching-in-nextjs-make-your-apps-lightning-fast-3iad</link>
      <guid>https://forem.com/nitinahirwal/understanding-caching-in-nextjs-make-your-apps-lightning-fast-3iad</guid>
      <description>&lt;p&gt;Hey devs! 👋&lt;br&gt;
I just published a deep dive into Next.js Caching strategies and how you can leverage them to build faster, scalable, and highly efficient web apps! 💡&lt;/p&gt;

&lt;p&gt;Covered in detail:&lt;/p&gt;

&lt;p&gt;Static vs Dynamic Caching&lt;/p&gt;

&lt;p&gt;CDN &amp;amp; Cache-Control headers&lt;/p&gt;

&lt;p&gt;ISR &amp;amp; SSR with examples&lt;/p&gt;

&lt;p&gt;Route Handlers &amp;amp; API Caching&lt;/p&gt;

&lt;p&gt;Real-world optimization tips&lt;/p&gt;

&lt;p&gt;Give it a read and let me know your caching tricks! 🚀&lt;br&gt;
👉&lt;a href="https://nitinahirwal.in/posts/Next.js-Caching" rel="noopener noreferrer"&gt;https://nitinahirwal.in/posts/Next.js-Caching&lt;/a&gt;&lt;/p&gt;

</description>
      <category>nextjs</category>
      <category>webdev</category>
      <category>performance</category>
      <category>discuss</category>
    </item>
    <item>
      <title>Understanding Short Circuiting in Programming</title>
      <dc:creator>Nitin Ahirwal</dc:creator>
      <pubDate>Wed, 02 Apr 2025 19:10:15 +0000</pubDate>
      <link>https://forem.com/nitinahirwal/understanding-short-circuiting-in-programming-598f</link>
      <guid>https://forem.com/nitinahirwal/understanding-short-circuiting-in-programming-598f</guid>
      <description>&lt;p&gt;Boolean logic plays a crucial role in programming, influencing decision-making, control flow, and performance. One powerful optimization technique is short circuiting, which helps skip unnecessary computations and makes code execution more efficient.&lt;/p&gt;

&lt;p&gt;In my latest post, I cover:&lt;br&gt;
✅ What short circuiting is&lt;br&gt;
✅ Why it’s useful for optimization&lt;br&gt;
✅ How to apply it in JavaScript &amp;amp; React&lt;br&gt;
✅ Practical examples to improve your code&lt;/p&gt;

&lt;p&gt;🔗 Read more here: &lt;a href="https://nitinahirwal.in/posts/Short-Circuiting" rel="noopener noreferrer"&gt;https://nitinahirwal.in/posts/Short-Circuiting&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Have you used short circuiting in your projects? Share your thoughts below! 👇💡&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>react</category>
      <category>programming</category>
      <category>discuss</category>
    </item>
  </channel>
</rss>
