<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Shaurya Kalia — Articles</title>
    <link>https://shauryakalia.com</link>
    <description>Staff Software Engineer at Harness.io. I build product experiences end-to-end — from system design to production — with JavaScript &amp; TypeScript.</description>
    <language>en</language>
    <lastBuildDate>Thu, 04 Apr 2024 00:00:00 GMT</lastBuildDate>
    <atom:link href="https://shauryakalia.com/feed.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>What fired my useEffect?</title>
      <link>https://shauryakalia.com/articles/what-fired-useEffect</link>
      <guid isPermaLink="true">https://shauryakalia.com/articles/what-fired-useEffect</guid>
      <pubDate>Thu, 04 Apr 2024 00:00:00 GMT</pubDate>
      <category>Tech</category>
      <description>Developing in React brings its set of challenges, especially when dealing with side effects in functional components. React’s useEffect hook is a powerful tool but it can sometimes be a mystery figuring out which dependency change triggered a particular effect</description>
    </item>
    <item>
      <title>Jest Spy on an Exported Function</title>
      <link>https://shauryakalia.com/articles/jest-spy-exported-func</link>
      <guid isPermaLink="true">https://shauryakalia.com/articles/jest-spy-exported-func</guid>
      <pubDate>Tue, 02 Apr 2024 00:00:00 GMT</pubDate>
      <category>Tech</category>
      <description>The spyOn utility in Jest is incredibly versatile, enabling you to monitor, track, and even replace the behaviour of functions. However, applying this to a named export from a module can be a bit tricky due to the specific parameters required by spyOn</description>
    </item>
    <item>
      <title>When to use useCallback vs useMemo</title>
      <link>https://shauryakalia.com/articles/useCallback-vs-useMemo</link>
      <guid isPermaLink="true">https://shauryakalia.com/articles/useCallback-vs-useMemo</guid>
      <pubDate>Tue, 02 Apr 2024 00:00:00 GMT</pubDate>
      <category>Tech</category>
      <description>In the expansive ecosystem of React, hooks play a pivotal role in crafting functional components and managing their state and side effects. Among these hooks, useCallback and useMemo stand out for their ability to optimize performance, albeit serving distinct purposes.</description>
    </item>
    <item>
      <title>You&apos;re About to Make a Terrible Mistake by Oliver Sibony</title>
      <link>https://shauryakalia.com/articles/youre-about-to-make-a-terrible-mistake</link>
      <guid isPermaLink="true">https://shauryakalia.com/articles/youre-about-to-make-a-terrible-mistake</guid>
      <pubDate>Fri, 19 May 2023 00:00:00 GMT</pubDate>
      <category>Books</category>
      <description>Whether you&apos;re making business decisions, investing, hiring, or planning your career, your biggest enemy often isn&apos;t a lack of information. It&apos;s the biases hidden inside your own thinking.</description>
    </item>
    <item>
      <title>100M Leads: by Alex Hormozi</title>
      <link>https://shauryakalia.com/articles/100M-leads</link>
      <guid isPermaLink="true">https://shauryakalia.com/articles/100M-leads</guid>
      <pubDate>Thu, 10 Nov 2022 00:00:00 GMT</pubDate>
      <category>Books</category>
      <description>How do you consistently get more people interested in what you sell?Most businesses don&apos;t have a product problem but an attention problem. You can&apos;t sell to people who don&apos;t know you exist !</description>
    </item>
    <item>
      <title>Principles: by Ray Dalio</title>
      <link>https://shauryakalia.com/articles/principles</link>
      <guid isPermaLink="true">https://shauryakalia.com/articles/principles</guid>
      <pubDate>Fri, 14 Oct 2022 00:00:00 GMT</pubDate>
      <category>Books</category>
      <description>Think for yourself to decide: What you want and What is true, then What you should do to achieve what you want in the light of what is true.</description>
    </item>
    <item>
      <title>React Performance: useState Lazy Initialization</title>
      <link>https://shauryakalia.com/articles/useState-lazy-init</link>
      <guid isPermaLink="true">https://shauryakalia.com/articles/useState-lazy-init</guid>
      <pubDate>Fri, 12 Aug 2022 00:00:00 GMT</pubDate>
      <category>Tech</category>
      <description>Whenever you need to set the initial value of the state from a function that returns a value (see below), the function will get called at every re-render even though we only need it during the initial render</description>
    </item>
    <item>
      <title>Deep Work: by Cal Newport</title>
      <link>https://shauryakalia.com/articles/deep-work</link>
      <guid isPermaLink="true">https://shauryakalia.com/articles/deep-work</guid>
      <pubDate>Mon, 29 Nov 2021 00:00:00 GMT</pubDate>
      <category>Books</category>
      <description>High-quality work is a function of time spent and intensity of focus</description>
    </item>
    <item>
      <title>Man&apos;s Search For Meaning: by Viktor Frankl</title>
      <link>https://shauryakalia.com/articles/man-s-search-for-meaning</link>
      <guid isPermaLink="true">https://shauryakalia.com/articles/man-s-search-for-meaning</guid>
      <pubDate>Sun, 11 Jul 2021 00:00:00 GMT</pubDate>
      <category>Books</category>
      <description>What is my &quot;why&quot;—and would it be strong enough to carry me through my hardest &quot;how&quot;?</description>
    </item>
    <item>
      <title>Zero To One: by Peter Thiel</title>
      <link>https://shauryakalia.com/articles/zero-to-one</link>
      <guid isPermaLink="true">https://shauryakalia.com/articles/zero-to-one</guid>
      <pubDate>Wed, 06 Jan 2021 00:00:00 GMT</pubDate>
      <category>Books</category>
      <description>What important truth do very few people agree with you on?</description>
    </item>
    <item>
      <title>Atomic Habits: by James Clear</title>
      <link>https://shauryakalia.com/articles/atomic-habits</link>
      <guid isPermaLink="true">https://shauryakalia.com/articles/atomic-habits</guid>
      <pubDate>Mon, 18 May 2020 00:00:00 GMT</pubDate>
      <category>Books</category>
      <description>An Easy &amp; Proven Way to Build Good Habits &amp; Break Bad Ones</description>
    </item>
    <item>
      <title>Factfulness: by Anna and Hans</title>
      <link>https://shauryakalia.com/articles/factfulness</link>
      <guid isPermaLink="true">https://shauryakalia.com/articles/factfulness</guid>
      <pubDate>Thu, 20 Feb 2020 00:00:00 GMT</pubDate>
      <category>Books</category>
      <description>Ten Reasons We&apos;re Wrong About the World — and Why Things Are Better Than You Think</description>
    </item>
    <item>
      <title>TIL : Git Worktree</title>
      <link>https://shauryakalia.com/articles/til-git-worktree</link>
      <guid isPermaLink="true">https://shauryakalia.com/articles/til-git-worktree</guid>
      <pubDate>Sat, 11 Jan 2020 00:00:00 GMT</pubDate>
      <category>Tech</category>
      <description>A git repository can support multiple working trees, allowing you to check out more than one branch at a time. With git worktree you can add a new working tree that is associated with the repository, along with additional metadata.</description>
    </item>
    <item>
      <title>TIL : Generator Functions</title>
      <link>https://shauryakalia.com/articles/til-generator-functions</link>
      <guid isPermaLink="true">https://shauryakalia.com/articles/til-generator-functions</guid>
      <pubDate>Sat, 07 Sep 2019 00:00:00 GMT</pubDate>
      <category>Tech</category>
      <description>General JavaScript functions can’t be interrupted in the middle of a function execution, once the function is invoked until function execution completes. When we want to execute functions which can be interrupted or which can execute after a while.</description>
    </item>
    <item>
      <title>TIL : ES modules in browser</title>
      <link>https://shauryakalia.com/articles/til-es-modules-in-browser</link>
      <guid isPermaLink="true">https://shauryakalia.com/articles/til-es-modules-in-browser</guid>
      <pubDate>Sat, 08 Jun 2019 00:00:00 GMT</pubDate>
      <category>Tech</category>
      <description>All you need is type = module on the script element, and the browser will treat the inline or external script as an ECMAScript module. I am sharing some few browser-specific things I&apos;d learned while getting my hands dirty.</description>
    </item>
  </channel>
</rss>