<?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 Virendra Patil on Medium]]></title>
        <description><![CDATA[Stories by Virendra Patil on Medium]]></description>
        <link>https://medium.com/@virendrapatil2902?source=rss-c51a407a5aed------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*1mOfluhFDUV69zezBhQgMg.png</url>
            <title>Stories by Virendra Patil on Medium</title>
            <link>https://medium.com/@virendrapatil2902?source=rss-c51a407a5aed------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 05:59:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@virendrapatil2902/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[When One Feature Breaks the Whole Screen]]></title>
            <link>https://medium.com/@virendrapatil2902/when-one-feature-breaks-the-whole-screen-277eade4c391?source=rss-c51a407a5aed------2</link>
            <guid isPermaLink="false">https://medium.com/p/277eade4c391</guid>
            <category><![CDATA[frontend-development]]></category>
            <category><![CDATA[product-management]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[software-reliability]]></category>
            <dc:creator><![CDATA[Virendra Patil]]></dc:creator>
            <pubDate>Fri, 20 Nov 2026 11:31:01 GMT</pubDate>
            <atom:updated>2026-11-20T11:31:01.970Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Part 6 of “The Hidden Cost of Bad Frontend,” a series for founders and product leaders</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tkC7XeubfsiJDA43PjVnfQ.png" /></figure><p>Monday morning. Your biggest customer logs in to prepare for a board meeting.</p><p>A small “Recent Activity” widget in the corner of the dashboard receives one unexpected value from the server. It crashes.</p><p>And because nothing contains that crash, <strong>the entire dashboard goes white</strong>. Revenue charts, reports, the export button: all gone. Just a blank page.</p><p>Your customer doesn’t think <em>“a widget had a bug.”</em> They think <strong>“this product isn’t reliable.”</strong></p><h3>The hidden cost</h3><p>In many React apps, a single unhandled error in one component can take down <strong>the whole screen</strong>. That’s the default behavior unless the team deliberately plans for failure.</p><p>Here’s what that costs:</p><ol><li><strong>Small bugs become outages.</strong> A minor issue in a non-critical widget blocks access to the features customers actually depend on.</li><li><strong>Support load spikes.</strong> “The app is completely down” tickets flood in, even though 95% of the app works fine.</li><li><strong>Silent failures.</strong> Errors that don’t crash the screen often get swallowed. Buttons do nothing, data never loads, and nobody on your team knows until a customer complains.</li><li><strong>Lost trust at the worst moments.</strong> Failures tend to happen during peak usage, big launches and important demos.</li></ol><p>Every app will have bugs. The difference between a professional product and a fragile one is <strong>what happens when they occur.</strong></p><h3>What’s actually happening</h3><p>Think of the electrical system in a building.</p><p>Without circuit breakers, one faulty toaster in the break room can black out the <strong>entire office</strong>. With breakers, that one outlet trips, the rest of the building keeps working, and someone gets a clear signal about where the problem is.</p><p>Good frontend apps are built the same way:</p><ul><li><strong>Error boundaries</strong> are the circuit breakers. They contain a crash to one section of the screen.</li><li><strong>Loading, error and empty states</strong> are the warning lights. Every piece of data has a deliberate plan for <em>“still loading,” “failed”</em> and <em>“nothing here yet.”</em></li><li><strong>Error monitoring</strong> is the alarm system. Tools like Sentry report the crash to your team automatically, often before any customer notices.</li></ul><h3>The “aha” moment: fragile vs. resilient</h3><p><strong>❌ One crash takes everything down</strong></p><pre>function Dashboard() {<br>  return (<br>    &lt;Layout&gt;<br>      &lt;RevenueChart /&gt;<br>      &lt;ReportsTable /&gt;<br>      &lt;RecentActivity /&gt;   {/* throws → whole page goes white */}<br>    &lt;/Layout&gt;<br>  );<br>}</pre><pre>function RecentActivity() {<br>  const { data } = useActivity();<br>  return data.items.map((item) =&gt; &lt;ActivityRow key={item.id} {...item} /&gt;);<br>  //     ^ data is undefined while loading → crash<br>}</pre><p>There’s no plan for loading, no plan for errors, and no containment.</p><p><strong>✅ Failures stay small, visible and recoverable</strong></p><pre>import { ErrorBoundary } from &#39;react-error-boundary&#39;;</pre><pre>function Dashboard() {<br>  return (<br>    &lt;Layout&gt;<br>      &lt;ErrorBoundary FallbackComponent={WidgetError}&gt;<br>        &lt;RevenueChart /&gt;<br>      &lt;/ErrorBoundary&gt;<br>      &lt;ErrorBoundary FallbackComponent={WidgetError}&gt;<br>        &lt;ReportsTable /&gt;<br>      &lt;/ErrorBoundary&gt;<br>      &lt;ErrorBoundary FallbackComponent={WidgetError}&gt;<br>        &lt;RecentActivity /&gt;<br>      &lt;/ErrorBoundary&gt;<br>    &lt;/Layout&gt;<br>  );<br>}</pre><pre>function WidgetError({ resetErrorBoundary }) {<br>  const { t } = useTranslation();<br>  return (<br>    &lt;Card&gt;<br>      &lt;p&gt;{t(&#39;common.widgetFailed&#39;)}&lt;/p&gt;<br>      &lt;Button onClick={resetErrorBoundary}&gt;{t(&#39;common.retry&#39;)}&lt;/Button&gt;<br>    &lt;/Card&gt;<br>  );<br>}</pre><pre>function RecentActivity() {<br>  const { data, isLoading, error, refetch } = useActivity();</pre><pre>  if (isLoading) return &lt;ActivitySkeleton /&gt;;<br>  if (error) return &lt;InlineError onRetry={refetch} /&gt;;<br>  if (!data?.items.length) return &lt;EmptyState message={t(&#39;activity.none&#39;)} /&gt;;</pre><pre>  return data.items.map((item) =&gt; &lt;ActivityRow key={item.id} {...item} /&gt;);<br>}</pre><pre>// lib/monitoring.ts: every crash is reported with context<br>Sentry.init({ dsn: import.meta.env.VITE_SENTRY_DSN });</pre><p>Now, if Recent Activity fails:</p><ul><li>The <strong>rest of the dashboard keeps working.</strong></li><li>The customer sees a small, friendly message with a <strong>Retry</strong> button instead of a blank page.</li><li>Your team gets an <strong>automatic alert</strong> with the exact error and the screen it happened on.</li></ul><p>The customer barely notices. Your team fixes it before the next ticket arrives.</p><p><em>(Error boundaries catch errors during rendering. Errors in event handlers and async code, like a failed button click, still need explicit try/catch and user feedback. Good teams handle both.)</em></p><h3>What good teams do differently</h3><ol><li><strong>Wrap independent sections in error boundaries.</strong> Each widget, panel or route should be able to fail on its own without taking the page down.</li><li><strong>Design every data state up front.</strong> Loading, error, empty and success are all part of the design, not afterthoughts.</li><li><strong>Never swallow errors silently.</strong> catch(() =&gt; {}) hides problems. Every failure should either tell the user or tell the team, ideally both.</li><li><strong>Give users a way forward.</strong> A Retry button, a clear message or a link to support, never a dead end.</li><li><strong>Monitor production errors.</strong> Use error tracking tools with alerts, so the team hears about crashes before customers report them.</li><li><strong>Test the unhappy paths.</strong> Simulate slow networks, failed requests and bad data, not just the perfect demo scenario.</li></ol><p>Resilience doesn’t mean writing bug-free code. Nobody does. It means <strong>building an app where bugs stay small.</strong></p><h3>One question to ask your team</h3><blockquote><strong><em>“If one widget on our dashboard crashed right now, what would the customer see, and how would we find out?”</em></strong></blockquote><p>If the answer is <em>“a small error message, and we’d get an alert,”</em> you’re running a professional product.</p><p>If the answer is <em>“probably a white screen, and we’d hear from support,”</em> your next minor bug could look like a major outage.</p><h3>Up next</h3><p>Your app is now structured, typed, fast and resilient. But as you start selling to bigger companies, a new question shows up in every sales call: <em>“Can we control who sees what?”</em> Next up: <em>“Access Control Isn’t Just a Backend Problem”</em>, and why permission-driven UI is the difference between a startup tool and an enterprise-ready product.</p><p><em>I’m a frontend engineer who writes about the business cost of frontend decisions: speed, quality and scale, explained for founders and builders. </em><strong><em>Follow me</em></strong><em> so you don’t miss the rest of “The Hidden Cost of Bad Frontend.”</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=277eade4c391" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Slow Pages Lose Customers]]></title>
            <link>https://medium.com/@virendrapatil2902/slow-pages-lose-customers-1a91d2dc3326?source=rss-c51a407a5aed------2</link>
            <guid isPermaLink="false">https://medium.com/p/1a91d2dc3326</guid>
            <category><![CDATA[frontend-development]]></category>
            <category><![CDATA[conversion-optimization]]></category>
            <category><![CDATA[web-performance]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[startup]]></category>
            <dc:creator><![CDATA[Virendra Patil]]></dc:creator>
            <pubDate>Fri, 13 Nov 2026 11:31:01 GMT</pubDate>
            <atom:updated>2026-11-13T11:31:01.752Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Part 5 of “The Hidden Cost of Bad Frontend,” a series for founders and product leaders</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7de4VDs73poYP6Yb29irEQ.png" /></figure><p>A potential customer clicks your ad. You paid for that click.</p><p>The page shows a blank screen. One second. Two. A spinner. Three.</p><p>They hit the back button and click your competitor’s link instead.</p><p>You never see it happen. There’s no error, no support ticket, no angry email. Just a slightly lower conversion rate on a dashboard that nobody connects back to the frontend.</p><p><strong>Slow apps don’t fail loudly. They lose customers quietly.</strong></p><h3>The hidden cost</h3><p>Speed is one of the few technical details that shows up directly in revenue:</p><ol><li><strong>Lost conversions:</strong> every extra second of loading gives a visitor another chance to leave. Large retailers have publicly reported measurable revenue gains from shaving off fractions of a second.</li><li><strong>Wasted ad spend:</strong> if a visitor bounces before the page loads, you paid for nothing.</li><li><strong>Lower search ranking:</strong> Google measures page experience (its Core Web Vitals) and uses it as a ranking signal. Slow pages are harder to find.</li><li><strong>Frustrated daily users:</strong> in a SaaS product, a laggy table or a form that stutters on every keystroke makes your product <em>feel</em> low quality, even when the features are great.</li></ol><p>And performance rarely falls apart in one release. It degrades <strong>slowly</strong>: one heavy library here, one unnecessary re-render there. By the time someone notices, it’s spread across the whole app.</p><h3>What’s actually happening</h3><p>There are usually three hidden culprits.</p><p><strong>1. Shipping the whole warehouse for one item (bundle size)</strong> When a user opens the login page, many apps download the code for <em>every</em> screen: reports, settings, admin, charts. It’s like mailing a customer your entire catalog when they ordered one book.</p><p><strong>2. Redoing work that didn’t need redoing (re-renders)</strong> React redraws parts of the screen when data changes. Poor structure means typing one letter in a search box redraws the <strong>entire page</strong>, including a 500-row table that didn’t change at all.</p><p><strong>3. Drawing things nobody can see (large lists)</strong> Showing 5,000 rows when the screen fits 20 forces the browser to build thousands of elements the user will never scroll to.</p><p>None of these are visible in code review unless someone knows to look for them. That’s exactly why they’re so common.</p><h3>The “aha” moment: three small fixes, big results</h3><p><strong>1. Load each screen only when it’s needed</strong></p><pre>// ❌ Every page is bundled into the first download<br>import Reports from &#39;./modules/reports/ReportsPage&#39;;<br>import Settings from &#39;./modules/settings/SettingsPage&#39;;<br>import AdminPanel from &#39;./modules/admin/AdminPanel&#39;;</pre><pre>// ✅ Each page loads on demand<br>const Reports = lazy(() =&gt; import(&#39;./modules/reports/ReportsPage&#39;));<br>const Settings = lazy(() =&gt; import(&#39;./modules/settings/SettingsPage&#39;));<br>const AdminPanel = lazy(() =&gt; import(&#39;./modules/admin/AdminPanel&#39;));</pre><pre>&lt;Suspense fallback={&lt;PageSkeleton /&gt;}&gt;<br>  &lt;Routes&gt;{/* … */}&lt;/Routes&gt;<br>&lt;/Suspense&gt;</pre><p>The login page now downloads <strong>only what the login page needs</strong>. Most users never pay the cost of the admin panel at all.</p><p><strong>2. Import only what you use</strong></p><pre>// ❌ Pulls in the entire library for one function<br>import _ from &#39;lodash&#39;;<br>_.debounce(search, 300);</pre><pre>// ✅ Pulls in just that function<br>import debounce from &#39;lodash/debounce&#39;;<br>debounce(search, 300);</pre><p>It’s a one-line difference that can cut a large chunk of unused code from what every user downloads.</p><p><strong>3. Keep state close to where it’s used</strong></p><pre>// ❌ Search text lives at page level → every keystroke re-renders the big table<br>function UsersPage() {<br>  const [search, setSearch] = useState(&#39;&#39;);<br>  return (<br>    &lt;&gt;<br>      &lt;input value={search} onChange={(e) =&gt; setSearch(e.target.value)} /&gt;<br>      &lt;HugeUserTable users={users} /&gt;   {/* redraws on every key press */}<br>    &lt;/&gt;<br>  );<br>}</pre><pre>// ✅ Search box owns its own state; table only updates when results change<br>function UsersPage() {<br>  const [query, setQuery] = useState(&#39;&#39;);<br>  const filtered = useMemo(() =&gt; filterUsers(users, query), [users, query]);<br>  return (<br>    &lt;&gt;<br>      &lt;SearchBox onSearch={setQuery} /&gt;   {/* debounced internally */}<br>      &lt;HugeUserTable users={filtered} /&gt;<br>    &lt;/&gt;<br>  );<br>}</pre><p>Typing now feels instant, and the table only redraws when the results actually change.</p><p>And for very long lists, good teams <strong>virtualize</strong> them, rendering only the rows on screen, so a table with 10,000 rows feels as fast as a table with 20.</p><h3>What good teams do differently</h3><ol><li><strong>Measure before guessing.</strong> Use Lighthouse, the browser’s Performance tab and React DevTools Profiler to find the real bottlenecks.</li><li><strong>Split code by route.</strong> No user should download screens they never visit.</li><li><strong>Watch the bundle size in CI.</strong> A budget check flags it when a new dependency suddenly adds a big chunk of weight.</li><li><strong>Keep state local.</strong> State should live as close as possible to the component that uses it, so changes don’t ripple through the whole page.</li><li><strong>Virtualize long lists and paginate big data.</strong> Render what’s visible, fetch what’s needed.</li><li><strong>Show something immediately.</strong> Skeleton screens and optimistic updates make apps <em>feel</em> fast even while data loads.</li></ol><p>Performance isn’t a one-time optimization sprint. It’s a <strong>habit</strong> built into how code is written and reviewed every day.</p><h3>One question to ask your team</h3><blockquote><strong><em>“How big is the first download of our app, and has it grown in the last six months?”</em></strong></blockquote><p>If they know the number and track it, speed is being protected.</p><p>If nobody knows, it’s almost certainly getting worse, and your conversion rate is paying for it.</p><h3>Up next</h3><p>A fast app is great until one small failure takes down the entire screen. Next up: <em>“When One Feature Breaks the Whole Screen”</em>, and how error boundaries and deliberate loading and error states turn a crash into a minor hiccup your customers barely notice.</p><p><em>I’m a frontend engineer who writes about the business cost of frontend decisions: speed, quality and scale, explained for founders and builders. </em><strong><em>Follow me</em></strong><em> so you don’t miss the rest of “The Hidden Cost of Bad Frontend.”</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1a91d2dc3326" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Your App Works in One Language, and That’s a Growth Ceiling]]></title>
            <link>https://medium.com/@virendrapatil2902/your-app-works-in-one-language-and-thats-a-growth-ceiling-69123b0dc48b?source=rss-c51a407a5aed------2</link>
            <guid isPermaLink="false">https://medium.com/p/69123b0dc48b</guid>
            <category><![CDATA[internationalization]]></category>
            <category><![CDATA[product-management]]></category>
            <category><![CDATA[frontend-development]]></category>
            <category><![CDATA[global-business]]></category>
            <category><![CDATA[startup]]></category>
            <dc:creator><![CDATA[Virendra Patil]]></dc:creator>
            <pubDate>Fri, 06 Nov 2026 11:31:01 GMT</pubDate>
            <atom:updated>2026-11-06T11:31:01.565Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Part 4 of “The Hidden Cost of Bad Frontend,” a series for founders and product leaders</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T7VWzapqRiHQYF9BubnBjQ.png" /></figure><p>Your sales team finally lands the meeting: a large customer in Germany, or Japan, or Brazil. The demo goes well. Then comes the question:</p><p><em>“Is the product available in our language?”</em></p><p>You look at your CTO. Your CTO looks at the floor.</p><p>The answer is <em>“not yet,”</em> and it turns out “not yet” means <strong>months of work</strong>, because every word in the app is hardcoded directly into the code.</p><p><strong>The deal doesn’t die because of your product. It dies because of how your text was written.</strong></p><h3>The hidden cost</h3><p>Most early products are built in one language without a second thought. That feels free on day one. It’s actually a loan, and the interest gets charged the moment you want to grow.</p><p>When you finally need a second language, the team has to:</p><ol><li><strong>Find every piece of text</strong> in the app: buttons, errors, tooltips, emails, empty states. In a mature product that’s thousands of strings scattered across hundreds of files.</li><li><strong>Fix every date, number and currency</strong> that was formatted by hand: 10/04/2026 means October 4th in the US and April 10th in most of the world.</li><li><strong>Repair layouts</strong> that break when text gets longer. German words can be much longer than English ones, and right-to-left languages like Arabic flip the whole interface.</li><li><strong>Freeze or slow feature work</strong> while all of this happens, because every screen is being touched at once.</li></ol><p>Meanwhile, the deal you needed it for is waiting, or has already gone to a competitor.</p><h3>What’s actually happening</h3><p>Imagine printing your company’s name and slogan <strong>directly onto every product, box and brochure</strong> instead of using labels.</p><p>It works fine until you rebrand or enter a new country. Now you have to reprint everything.</p><p>Hardcoded text is exactly that. The words are glued into the code itself.</p><p><strong>Internationalization (i18n)</strong> is the label system. The code never contains the actual text, only a <strong>key</strong> like billing.invoiceTitle. The real words live in separate translation files, one per language. Adding a new language means adding a new file, not rewriting the app.</p><p>And the cost of doing it from day one? <strong>Almost nothing.</strong> Writing t(&#39;billing.title&#39;) instead of &quot;Billing&quot; takes the same few seconds.</p><h3>The “aha” moment: hardcoded vs. translation-ready</h3><p><strong>❌ Hardcoded: one language, forever (or until a painful rewrite)</strong></p><pre>function InvoiceHeader({ invoice }) {<br>  return (<br>    &lt;&gt;<br>      &lt;h1&gt;Invoice Details&lt;/h1&gt;<br>      &lt;p&gt;Due on {invoice.dueDate.getMonth() + 1}/{invoice.dueDate.getDate()}&lt;/p&gt;<br>      &lt;p&gt;Total: ${invoice.total}&lt;/p&gt;<br>      &lt;p&gt;{invoice.items.length} items&lt;/p&gt;   {/* &quot;1 items&quot; 🙃 */}<br>    &lt;/&gt;<br>  );<br>}</pre><p>There’s English text baked in, a US-only date format, a dollar sign hardcoded, and broken plurals.</p><p><strong>✅ Translation-ready: any language is just a new file</strong></p><pre>function InvoiceHeader({ invoice }) {<br>  const { t, i18n } = useTranslation();<br>  const locale = i18n.language;</pre><pre>  return (<br>    &lt;&gt;<br>      &lt;h1&gt;{t(&#39;billing.invoiceDetails&#39;)}&lt;/h1&gt;<br>      &lt;p&gt;{t(&#39;billing.dueOn&#39;, {<br>        date: new Intl.DateTimeFormat(locale).format(invoice.dueDate),<br>      })}&lt;/p&gt;<br>      &lt;p&gt;{t(&#39;billing.total&#39;, {<br>        amount: new Intl.NumberFormat(locale, {<br>          style: &#39;currency&#39;, currency: invoice.currency,<br>        }).format(invoice.total),<br>      })}&lt;/p&gt;<br>      &lt;p&gt;{t(&#39;billing.itemCount&#39;, { count: invoice.items.length })}&lt;/p&gt;<br>    &lt;/&gt;<br>  );<br>}</pre><pre>// locales/en.json<br>{<br>  &quot;billing&quot;: {<br>    &quot;invoiceDetails&quot;: &quot;Invoice Details&quot;,<br>    &quot;dueOn&quot;: &quot;Due on {{date}}&quot;,<br>    &quot;total&quot;: &quot;Total: {{amount}}&quot;,<br>    &quot;itemCount_one&quot;: &quot;{{count}} item&quot;,<br>    &quot;itemCount_other&quot;: &quot;{{count}} items&quot;<br>  }<br>}</pre><pre>// locales/de.json, a new market, no code changes<br>{<br>  &quot;billing&quot;: {<br>    &quot;invoiceDetails&quot;: &quot;Rechnungsdetails&quot;,<br>    &quot;dueOn&quot;: &quot;Fällig am {{date}}&quot;,<br>    &quot;total&quot;: &quot;Gesamt: {{amount}}&quot;,<br>    &quot;itemCount_one&quot;: &quot;{{count}} Artikel&quot;,<br>    &quot;itemCount_other&quot;: &quot;{{count}} Artikel&quot;<br>  }<br>}</pre><p>The same component now handles English, German, Hindi, Japanese, or whatever your next customer needs, with correct dates, currencies and plurals for each.</p><p>And to make sure nobody slips back into old habits, good teams <strong>let the tooling enforce it</strong>:</p><pre>// eslint config: fail the build on hardcoded UI text<br>rules: {<br>  &#39;i18next/no-literal-string&#39;: &#39;error&#39;,<br>}</pre><p>If someone writes &lt;button&gt;Save&lt;/button&gt;, the linter stops them before it&#39;s merged.</p><h3>What good teams do differently</h3><ol><li><strong>Use translation keys from the very first screen.</strong> Even if you only support English today, treat it as “the first language,” not “the only one.”</li><li><strong>Never format dates, numbers or currency by hand.</strong> Use the browser’s built-in Intl APIs or your i18n library, which handle every locale correctly.</li><li><strong>Handle plurals properly.</strong> “1 items” looks careless in English and is outright wrong in languages with more complex plural rules.</li><li><strong>Design layouts that flex.</strong> Buttons and labels should handle text that’s 30–40% longer without breaking.</li><li><strong>Lint against hardcoded strings.</strong> Make the right way the only way that passes the build.</li></ol><p>Built in from day one, this is a habit that costs seconds. Added in year two, it’s a project that costs months, usually at the exact moment a big opportunity is waiting.</p><h3>One question to ask your team</h3><blockquote><strong><em>“If a customer asked for our product in Spanish next quarter, how long would it take, and how many files would we need to change?”</em></strong></blockquote><p>If the answer is <em>“we’d need translations, but the code is ready,”</em> you can say yes to new markets.</p><p>If the answer is <em>“we’d have to go through the whole app,”</em> your next big deal has an invisible blocker.</p><h3>Up next</h3><p>Your app can now speak any language. But will customers wait around long enough to read it? Next up: <em>“Slow Pages Lose Customers”</em>, and how re-renders, bloated bundles and missing lazy loading quietly push users away before they ever see your product.</p><p><em>I’m a frontend engineer who writes about the business cost of frontend decisions: speed, quality and scale, explained for founders and builders. </em><strong><em>Follow me</em></strong><em> so you don’t miss the rest of “The Hidden Cost of Bad Frontend.”</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=69123b0dc48b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Every API Call Is a Liability]]></title>
            <link>https://medium.com/@virendrapatil2902/every-api-call-is-a-liability-7efb33411d98?source=rss-c51a407a5aed------2</link>
            <guid isPermaLink="false">https://medium.com/p/7efb33411d98</guid>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[frontend-development]]></category>
            <category><![CDATA[product-management]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Virendra Patil]]></dc:creator>
            <pubDate>Fri, 30 Oct 2026 11:31:02 GMT</pubDate>
            <atom:updated>2026-10-30T11:31:02.824Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Part 3 of “The Hidden Cost of Bad Frontend,” a series for founders and product leaders</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jJckNYk0ZVwB3YFUyXqAZQ.png" /></figure><p>A customer updates their company name in Settings. They click back to the Dashboard, and the <strong>old name</strong> is still there. They refresh. Now it’s correct. They open Billing, and it’s the old name again.</p><p>They file a ticket: <em>“Your app is buggy.”</em></p><p>Nothing is technically broken. The Dashboard, Settings and Billing screens each fetched the same data <strong>on their own</strong>, at different times, and each one is showing its own copy.</p><p>To your customer, it doesn’t matter why. <strong>Your product just felt unreliable.</strong></p><h3>The hidden cost</h3><p>When every screen and component fetches its own data however it likes, the costs pile up quietly:</p><ol><li><strong>Inconsistent data:</strong> different parts of the app show different “truths,” which erodes customer trust.</li><li><strong>Wasted requests:</strong> the same data is downloaded 3, 5, 10 times per page, so the app is slower for users and your server and cloud bill is higher.</li><li><strong>Inconsistent error handling:</strong> one screen shows a friendly message, another shows a blank white page, and a third fails silently.</li><li><strong>Expensive change:</strong> when the backend changes an endpoint, or you add authentication headers, a new region or rate limiting, developers have to hunt down <strong>every</strong> place that calls the API.</li></ol><p>That last one is where the real money goes. A change that should take an afternoon becomes a week-long search through the codebase, plus the bugs from the places that got missed.</p><h3>What’s actually happening</h3><p>Imagine a company where every employee calls suppliers directly. No purchasing department, no shared records.</p><ul><li>Five people order the same item on the same day.</li><li>Nobody knows the latest price, because everyone has a different quote.</li><li>When a supplier changes their phone number, you have to email the whole company and hope everyone updates their contacts.</li></ul><p>That’s an app where API calls are scattered across components.</p><p>Good frontend teams build the equivalent of a <strong>purchasing department</strong>: one <strong>data layer</strong> that every screen goes through. It knows what’s already been fetched, shares it across screens, keeps it fresh, and handles errors the same way everywhere.</p><h3>The “aha” moment: scattered calls vs. a data layer</h3><p><strong>❌ Every component fetches for itself</strong></p><pre>// Dashboard.tsx<br>const [company, setCompany] = useState(null);<br>useEffect(() =&gt; {<br>  fetch(&#39;/api/company&#39;, { headers: { Authorization: token } })<br>    .then((r) =&gt; r.json())<br>    .then(setCompany);<br>}, []);</pre><pre>// Settings.tsx, nearly the same code, slightly different<br>useEffect(() =&gt; {<br>  fetch(&#39;/api/company&#39;)            // ← forgot the auth header<br>    .then((r) =&gt; r.json())<br>    .then(setCompany)<br>    .catch(() =&gt; {});              // ← errors silently swallowed<br>}, []);</pre><pre>// Billing.tsx, a third copy, a third set of bugs…</pre><p>Three copies of the same logic means three chances for bugs, three network requests and three separate versions of the data.</p><p><strong>✅ One data layer, used everywhere</strong></p><pre>// modules/company/hooks/useCompany.ts, written once<br>export function useCompany() {<br>  return useQuery({<br>    queryKey: [&#39;company&#39;],<br>    queryFn: () =&gt; apiClient.get&lt;Company&gt;(&#39;/company&#39;),<br>  });<br>}</pre><pre>// Dashboard.tsx, Settings.tsx, Billing.tsx all use the same line<br>const { data: company, isLoading, error } = useCompany();</pre><pre>// After the user saves new settings:<br>queryClient.invalidateQueries({ queryKey: [&#39;company&#39;] });<br>// → every screen showing the company refreshes automatically</pre><p>And the shared apiClient handles the cross-cutting concerns <strong>once</strong>:</p><pre>// lib/apiClient.ts<br>// auth headers, base URL, timeouts, error reporting: one place</pre><p>Now:</p><ul><li>The company is fetched <strong>once</strong> and shared across every screen.</li><li>When it changes, <strong>every screen updates together</strong>, so there’s no more “old name” bug.</li><li>Adding auth, logging or a new API region is a <strong>one-file change</strong>.</li></ul><p><em>(The example uses TanStack Query; Apollo Client, SWR or RTK Query follow the same idea. The tool matters less than having one data layer.)</em></p><h3>What good teams do differently</h3><ol><li><strong>No raw </strong><strong>fetch calls inside UI components.</strong> Components ask for data through hooks; they never talk to the network directly.</li><li><strong>One API client for the whole app.</strong> Auth, base URLs, timeouts and error reporting live in a single place.</li><li><strong>Use a caching data library.</strong> It removes duplicate requests and keeps every screen in sync without extra code.</li><li><strong>Invalidate data, don’t refetch it by hand.</strong> After a change, tell the cache what’s stale and let every screen that uses it update itself.</li><li><strong>Handle loading and errors the same way everywhere.</strong> Every screen gets the same predictable states, never a blank page or a silent failure.</li></ol><p>This isn’t over-engineering. It’s usually <strong>less</strong> code than the scattered version, because the logic is written once instead of copied into every screen.</p><h3>One question to ask your team</h3><blockquote><strong><em>“If we had to add a new header to every API request tomorrow, how many files would you change?”</em></strong></blockquote><p>If the answer is <strong>one</strong>, your data layer is doing its job.</p><p>If the answer is <em>“let me search the codebase,”</em> every new feature is adding another liability.</p><h3>Up next</h3><p>Your app now has clean structure, safe data and one source of truth. But what if your next big customer doesn’t speak English? Next up: <em>“Your App Works in One Language, and That’s a Growth Ceiling”</em>, and why adding i18n later costs far more than building it in from day one.</p><p><em>I’m a frontend engineer who writes about the business cost of frontend decisions: speed, quality and scale, explained for founders and builders. </em><strong><em>Follow me</em></strong><em> so you don’t miss the rest of “The Hidden Cost of Bad Frontend.”</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7efb33411d98" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Bug That Shipped Because Nobody Used Types]]></title>
            <link>https://medium.com/@virendrapatil2902/the-bug-that-shipped-because-nobody-used-types-c7d1e80da42b?source=rss-c51a407a5aed------2</link>
            <guid isPermaLink="false">https://medium.com/p/c7d1e80da42b</guid>
            <category><![CDATA[product-management]]></category>
            <category><![CDATA[frontend-development]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[startup]]></category>
            <dc:creator><![CDATA[Virendra Patil]]></dc:creator>
            <pubDate>Fri, 23 Oct 2026 11:31:02 GMT</pubDate>
            <atom:updated>2026-10-23T11:31:02.241Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Part 2 of “The Hidden Cost of Bad Frontend,” a series for founders and product leaders</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-k_LGw9WY9c3fACf4Qa19Q.png" /></figure><p>It’s Friday evening. A customer emails support: <em>“My invoice says $NaN.”</em></p><p>Your team digs in. The backend renamed one field from amount to totalAmount two weeks ago. The frontend never found out. No error, no warning, no failed build. The app quietly showed garbage to paying customers.</p><p>The fix takes five minutes. Finding it took three hours. The customer’s trust takes longer to repair.</p><p><strong>This bug was preventable before it was ever written.</strong></p><h3>The hidden cost</h3><p>Bugs like this aren’t rare edge cases. They’re one of the most common kinds of production bug in frontend apps: <strong>the data looks different from what the code expected.</strong></p><ul><li>A field gets renamed.</li><li>A value that was always a number is suddenly null.</li><li>An API returns a list where the UI expected a single item.</li></ul><p>Each one costs you in three ways:</p><ol><li><strong>Engineering time:</strong> hours of debugging for a one-line fix.</li><li><strong>Customer trust:</strong> broken screens in front of paying users, often found by <em>them</em> rather than you.</li><li><strong>Fear of change:</strong> once a team has been burned a few times, they slow down every release “just to be safe.”</li></ol><p>That third cost is the most expensive and the least visible. A team that’s afraid to change code ships less, refactors never, and lets the product calcify.</p><h3>What’s actually happening</h3><p>Think of the frontend and backend as two departments sharing a spreadsheet.</p><p>Without types, there’s no agreed-upon header row. The backend team renames column C. The frontend team keeps reading column C, and now gets the wrong numbers. Nobody’s alerted, because nothing <em>technically</em> failed.</p><p><strong>TypeScript adds the header row and enforces it.</strong> Every piece of data has a declared shape: this is a number, this can be empty, this is always a list. If anyone breaks that agreement, the build fails <em>on the developer’s machine</em>, minutes after the mistake, not days later in front of a customer.</p><p>The best teams go one step further: they <strong>generate</strong> the types directly from the backend’s API definition (GraphQL schema or OpenAPI spec). Now the agreement isn’t something a human writes and forgets to update. It’s produced automatically from the source of truth.</p><h3>The “aha” moment: same feature, two levels of safety</h3><p><strong>❌ No types: the bug ships silently</strong></p><pre>// Works perfectly… until the backend renames a field<br>async function loadInvoice(id) {<br>  const res = await fetch(`/api/invoices/${id}`);<br>  const data: any = await res.json();<br>  return data;<br>}</pre><pre>function InvoiceTotal({ invoice }: { invoice: any }) {<br>  return &lt;span&gt;${invoice.amount.toFixed(2)}&lt;/span&gt;;<br>  //              ^ undefined after the rename → crash or &quot;$NaN&quot;<br>}</pre><p>any tells the compiler <em>&quot;trust me.&quot;</em> The compiler does, and so does your customer, right up until it breaks.</p><p><strong>✅ Generated types: the bug never leaves the laptop</strong></p><pre>// Types generated automatically from the backend schema<br>import type { Invoice } from &#39;@/__generated__/graphql&#39;;</pre><pre>function InvoiceTotal({ invoice }: { invoice: Invoice }) {<br>  return &lt;span&gt;${invoice.totalAmount.toFixed(2)}&lt;/span&gt;;<br>}</pre><p>When the backend renames amount → totalAmount, the developer regenerates the types and the build <strong>immediately flags every place</strong> that still uses the old name:</p><pre>error TS2339: Property &#39;amount&#39; does not exist on type &#39;Invoice&#39;.<br>  src/modules/billing/components/InvoiceTotal.tsx:4</pre><p>The same rename that cost three hours, a support ticket and an awkward customer email now costs <strong>one red line in the editor</strong>.</p><p>And when a value <em>can</em> be missing, types force the team to handle it on purpose:</p><pre>// Type says: dueDate: string | null<br>&lt;span&gt;{invoice.dueDate ?? t(&#39;billing.noDueDate&#39;)}&lt;/span&gt;</pre><p>There’s no more guessing what the data looks like and no more “works on my machine.”</p><h3>What good teams do differently</h3><ol><li><strong>Use TypeScript in strict mode.</strong> Strict mode is where most of the protection is. Loose TypeScript gives you the syntax without the safety.</li><li><strong>Treat </strong><strong>any as a code smell.</strong> Every any is a hole in the safety net. Good teams lint against it and justify each exception.</li><li><strong>Generate API types, don’t hand-write them.</strong> Tools like GraphQL Code Generator or OpenAPI generators keep frontend and backend in sync automatically.</li><li><strong>Fail the build, not the customer.</strong> Type checks run in CI and in pre-commit hooks, so broken code can’t be merged.</li><li><strong>Model “empty” explicitly.</strong> If something can be null, the type says so, and the UI has a deliberate fallback.</li></ol><p>Types don’t slow a team down. They make developers <strong>faster</strong>, because the editor autocompletes every field, catches typos instantly, and makes large refactors feel safe instead of terrifying.</p><h3>One question to ask your team</h3><blockquote><strong><em>“If the backend renamed a field today, how would we find out: from the build, or from a customer?”</em></strong></blockquote><p>If the answer is <em>“the build,”</em> you’re protected.</p><p>If the answer is <em>“QA would probably catch it”</em> or <em>“a customer would report it,”</em> you’re paying for that bug later, with interest.</p><h3>Up next</h3><p>Types make sure the data has the right <em>shape</em>. But where that data comes from, and how many places in your app are fetching it, is a separate (and expensive) problem. Next up: <em>“Every API Call Is a Liability”</em>, and why scattered data fetching quietly makes your app slower, buggier and harder to change.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c7d1e80da42b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Your MVP Gets Slower Every Sprint (It’s Not Your Developers)]]></title>
            <link>https://medium.com/@virendrapatil2902/why-your-mvp-gets-slower-every-sprint-its-not-your-developers-07b7f0b1e37a?source=rss-c51a407a5aed------2</link>
            <guid isPermaLink="false">https://medium.com/p/07b7f0b1e37a</guid>
            <category><![CDATA[entrepreneurship]]></category>
            <category><![CDATA[product-management]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[frontend-development]]></category>
            <dc:creator><![CDATA[Virendra Patil]]></dc:creator>
            <pubDate>Fri, 16 Oct 2026 11:31:01 GMT</pubDate>
            <atom:updated>2026-10-16T11:31:01.896Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>What your app’s folder structure is quietly costing you, and why it decides how fast your product can grow</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5_cBbgyINXLzqPkFLNcXlw.png" /></figure><p>In month 1, your team ships a new feature in two days.</p><p>In month 6, a similar feature takes two weeks. Small changes break things nobody touched. Every estimate comes with “it’s complicated.”</p><p>Nobody got worse at their job. <strong>The codebase did.</strong></p><p>And the cause is something most founders never look at: <strong>how the code is organized.</strong></p><h3>The hidden cost: a “slowdown tax” on every feature</h3><p>Disorganized code doesn’t fail all at once. It charges a small tax on every task:</p><ul><li>Developers spend time <strong>finding</strong> the code before they can change it</li><li>A change in one place <strong>breaks</strong> something in another</li><li>New hires take <strong>weeks</strong> to understand where things live</li><li>Nobody dares to <strong>delete</strong> old code, so it keeps growing</li></ul><p>Here’s a rough example. Say you have a team of 4 frontend developers, and each loses about an hour a day to searching, untangling and fixing side effects. That’s around <strong>80 hours a month</strong>, half a developer’s time, gone. You’re paying for it, and it never shows up on a roadmap.</p><p>The worst part: <strong>the tax grows as the product grows.</strong> That’s why things feel fine early on and painful later.</p><h3>What’s actually happening</h3><p>Think of your codebase as a warehouse.</p><p>At the start, the warehouse is small. You can toss boxes anywhere and still find them, because there are only twenty.</p><p>Six months later there are two thousand boxes, still placed wherever there was room. Every new delivery means walking the whole building, moving things around, and hoping you don’t knock over a shelf.</p><p>That’s what happens to frontend apps built for speed with no structure. It’s especially common in AI-generated or rushed MVP code. Files are grouped by <strong>what they are</strong> (all buttons here, all API calls there, all screens somewhere else) instead of <strong>what they do for the business</strong>.</p><p>So when you ask for one change to “Billing,” your developer has to touch files in six different folders. Each of those files is also used by “Users,” “Reports” and “Settings.” Changing one thing risks breaking four others.</p><h3>The “aha” moment: the same app, two structures</h3><p><strong>❌ Structure that slows you down (grouped by file type):</strong></p><pre>src/<br>├── components/<br>│   ├── Button.tsx<br>│   ├── BillingTable.tsx<br>│   ├── UserTable.tsx<br>│   ├── ReportChart.tsx<br>│   └── ... 140 more files<br>├── api/<br>│   └── api.ts          ← 2,000 lines, every endpoint<br>├── pages/<br>│   ├── Billing.tsx<br>│   ├── Users.tsx<br>│   └── Reports.tsx<br>└── utils/<br>    └── helpers.ts      ← &quot;misc&quot; logic nobody owns</pre><p>To change Billing, a developer edits components/, api/, pages/ and utils/, and hopes nothing else depends on what they changed.</p><p><strong>✅ Structure that scales (grouped by feature/module):</strong></p><pre>src/<br>├── modules/<br>│   ├── billing/<br>│   │   ├── components/<br>│   │   ├── hooks/<br>│   │   ├── api.ts<br>│   │   ├── types.ts<br>│   │   └── BillingPage.tsx<br>│   ├── users/<br>│   └── reports/<br>├── components/         ← truly shared UI only (Button, Modal)<br>└── lib/                ← app-wide setup (API client, i18n)</pre><p>Now Billing lives in <strong>one folder</strong>. A developer can open it, understand it and change it without touching Users or Reports. A new hire can own a whole module in their first week.</p><p>Clean boundaries also mean clean dependencies:</p><pre>// ❌ Billing page reaches into everything<br>import { fetchInvoices, fetchUsers, formatDate } from &#39;../../api/api&#39;;<br>import { calculateTax } from &#39;../../utils/helpers&#39;;</pre><pre>// ✅ Billing page only talks to its own module<br>import { useInvoices } from &#39;./hooks/useInvoices&#39;;<br>import { formatInvoiceTotal } from &#39;./utils&#39;;</pre><p>It’s a small difference on screen and a big one for the business. The second version means <strong>changes stay local</strong>. Local changes are fast, safe and easy to estimate.</p><h3>What good teams do differently</h3><p>If your product will live longer than a few months, these habits pay for themselves quickly:</p><ol><li><strong>Organize by feature, not file type.</strong> Each business area (billing, users, reports) gets its own module with its own UI, data and logic.</li><li><strong>Keep “shared” small and strict.</strong> Only truly generic pieces (buttons, modals, layout) go in shared folders. Business logic never does.</li><li><strong>Enforce boundaries with tooling.</strong> Lint rules can stop one module from importing another module’s internals, so the structure doesn’t quietly decay.</li><li><strong>No 2,000-line files.</strong> A file nobody wants to open is a file nobody wants to change. Split by responsibility.</li><li><strong>Refactor continuously, not in “big rewrites.”</strong> Leave each folder a little cleaner than you found it. Big rewrites are where roadmaps go to die.</li></ol><p>None of this slows the MVP down. A good structure takes about the same time to set up on day one as a messy one. The difference is what it costs you in month six.</p><h3>One question to ask your team</h3><blockquote><strong><em>“If we added a new feature to Billing tomorrow, how many folders would you need to touch?”</em></strong></blockquote><p>If the answer is <strong>one or two</strong>, your foundation is healthy.</p><p>If the answer is <strong>“it depends”</strong> or a long pause, you’ve found where your sprint velocity is going.</p><h3>Up next</h3><p>Structure decides how fast you can move. In the next post we look at how fast you can <strong>break</strong> things: <em>“The Bug That Shipped Because Nobody Used Types”</em>, and why TypeScript is one of the cheapest insurance policies a product can buy.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=07b7f0b1e37a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Access Control Isn’t Just a Backend Problem]]></title>
            <link>https://medium.com/@virendrapatil2902/access-control-isnt-just-a-backend-problem-81cf17a63987?source=rss-c51a407a5aed------2</link>
            <guid isPermaLink="false">https://medium.com/p/81cf17a63987</guid>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[frontend-development]]></category>
            <category><![CDATA[product-management]]></category>
            <category><![CDATA[saas]]></category>
            <category><![CDATA[enterprise-software]]></category>
            <dc:creator><![CDATA[Virendra Patil]]></dc:creator>
            <pubDate>Fri, 16 Oct 2026 08:18:09 GMT</pubDate>
            <atom:updated>2026-10-16T08:18:09.384Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Part 7 of “The Hidden Cost of Bad Frontend,” a series for founders and product leaders</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Mte4NXFI5WQoi1PYT2ZVYw.png" /></figure><p>You’re closing your biggest deal yet: a 500-seat enterprise contract.</p><p>Then their IT team sends over the security questionnaire:</p><ul><li><em>“Can we define custom roles?”</em></li><li><em>“Can we restrict billing to finance users only?”</em></li><li><em>“Can we give contractors read-only access?”</em></li><li><em>“Can different departments see different features?”</em></li></ul><p>Your backend team says the data is protected. That’s great. But when you ask the frontend team how long it would take to <strong>show different screens, buttons and menus to different roles</strong>, the answer is: <em>“We’d have to go through every page.”</em></p><p>The deal slips by a quarter.</p><h3>The hidden cost</h3><p>Access control is usually treated as a backend concern, and the backend <strong>must</strong> enforce it. But the frontend decides what each user <strong>experiences</strong>, and when it’s built carelessly, the costs show up across the business:</p><ol><li><strong>Enterprise deals stall.</strong> Roles and permissions are standard requirements in larger deals. “Coming soon” sends buyers toward competitors who already have it.</li><li><strong>Confusing user experience.</strong> Users see buttons they can’t use, click them, and get an error. They feel the product is broken, not that they lack permission.</li><li><strong>Pricing plans are hard to sell.</strong> If you can’t easily show or hide features per plan, you can’t easily create a “Pro” tier, run a trial or upsell.</li><li><strong>Every new role becomes a project.</strong> Adding a “Viewer” or “Auditor” role means editing dozens of files and hoping nothing is missed.</li></ol><p>Access control done well isn’t just a security checkbox. It’s <strong>what lets you sell the same product to a 5-person startup and a 5,000-person enterprise.</strong></p><h3>What’s actually happening</h3><p>Think of an office building with keycards.</p><p><strong>The bad version:</strong> every door has its own guard holding a handwritten list of names. When someone gets promoted, you have to visit every guard and update every list. Some guards get missed. Some lists say different things.</p><p><strong>The good version:</strong> there’s one central system. Each keycard carries a set of <strong>permissions</strong>. Every door simply asks <em>“does this card have access?”</em> Change someone’s role in one place, and every door updates instantly.</p><p>Most early apps are built the first way, with if (user.role === &#39;admin&#39;) checks scattered across hundreds of components. Mature apps use the second: <strong>one permission system</strong> that every screen asks.</p><h3>The “aha” moment: scattered checks vs. one permission system</h3><p><strong>❌ Role checks scattered everywhere</strong></p><pre>// InvoicePage.tsx<br>{user.role === &#39;admin&#39; &amp;&amp; &lt;Button&gt;Delete Invoice&lt;/Button&gt;}</pre><pre>// Sidebar.tsx<br>{(user.role === &#39;admin&#39; || user.role === &#39;manager&#39;) &amp;&amp; &lt;Link to=&quot;/billing&quot;&gt;Billing&lt;/Link&gt;}</pre><pre>// ReportsPage.tsx<br>{user.role !== &#39;viewer&#39; &amp;&amp; &lt;ExportButton /&gt;}<br>// …repeated in 80 more places, each slightly different</pre><p>Now a customer asks for a new <strong>“Finance”</strong> role that can see billing but not delete invoices. Someone has to find and update every one of those checks, without missing any.</p><p><strong>✅ Ask about permissions, not roles</strong></p><pre>// modules/auth/permissions.ts: one source of truth<br>export const PERMISSIONS = {<br>  INVOICE_VIEW: &#39;invoice:view&#39;,<br>  INVOICE_DELETE: &#39;invoice:delete&#39;,<br>  REPORT_EXPORT: &#39;report:export&#39;,<br>} as const;</pre><pre>// modules/auth/hooks/usePermission.ts<br>export function usePermission(permission: Permission) {<br>  const { user } = useAuth();<br>  return user.permissions.includes(permission);   // provided by the backend<br>}</pre><pre>// modules/auth/components/Can.tsx<br>export function Can({ permission, children }: CanProps) {<br>  return usePermission(permission) ? &lt;&gt;{children}&lt;/&gt; : null;<br>}</pre><pre>// Anywhere in the app: readable, consistent, typed<br>&lt;Can permission={PERMISSIONS.INVOICE_DELETE}&gt;<br>  &lt;Button danger&gt;{t(&#39;billing.deleteInvoice&#39;)}&lt;/Button&gt;<br>&lt;/Can&gt;</pre><pre>// Whole routes protected the same way<br>&lt;Route<br>  path=&quot;/billing&quot;<br>  element={&lt;RequirePermission permission={PERMISSIONS.INVOICE_VIEW}&gt;&lt;BillingPage /&gt;&lt;/RequirePermission&gt;}<br>/&gt;</pre><p>Now the new “Finance” role is a <strong>backend configuration change</strong>: give it invoice:view but not invoice:delete. The frontend adapts automatically, with no code changes on any screen.</p><p>The same pattern works for <strong>plans and feature access</strong>:</p><pre>&lt;Can permission={FEATURES.ADVANCED_REPORTS}&gt;<br>  &lt;AdvancedReports /&gt;<br>&lt;/Can&gt;<br>// Not on the plan? Show an upgrade prompt instead of a hidden dead end.</pre><p>That turns access control into a <strong>revenue tool</strong>: trials, tiers and upsells become product configuration instead of engineering projects.</p><blockquote><em>⚠️ </em><strong><em>Important:</em></strong><em> hiding a button in the frontend is about </em>user experience<em>, not security. The backend must still check every permission on every request. The frontend makes the product clear and pleasant; the backend keeps it safe. You need both.</em></blockquote><h3>What good teams do differently</h3><ol><li><strong>Check permissions, not role names.</strong> Roles change and multiply. Permissions (“can delete invoice”) stay stable.</li><li><strong>Keep one source of truth.</strong> Permissions come from the backend and are read through one hook or component, never re-implemented on each screen.</li><li><strong>Protect routes, not just buttons.</strong> Users shouldn’t be able to reach a page by typing its URL when they lack access.</li><li><strong>Design the “no access” experience.</strong> Show an upgrade prompt, a disabled state with an explanation, or a “request access” option instead of a mysterious error.</li><li><strong>Treat plans and features like permissions.</strong> The same system controls what each pricing tier unlocks.</li><li><strong>Always enforce on the backend too.</strong> The frontend shapes the experience. The server decides what’s actually allowed.</li></ol><h3>One question to ask your team</h3><blockquote><strong><em>“If a customer asked for a new custom role tomorrow, would it be a configuration change or a code change?”</em></strong></blockquote><p>If it’s configuration, you’re ready for enterprise customers.</p><p>If it’s <em>“we’d need to update a lot of screens,”</em> your next big deal has a hidden delay built in.</p><h3>Up next</h3><p>In the final part of the series, we look at what holds everything together: the quality you can’t see. <em>“Code Quality You Can’t See, But Pay For”</em> covers how lint rules, pre-commit hooks and team conventions keep a growing team fast instead of slowing it down.</p><p><em>I’m a frontend engineer who writes about the business cost of frontend decisions: speed, quality and scale, explained for founders and builders. </em><strong><em>Follow me</em></strong><em> so you don’t miss the final part of “The Hidden Cost of Bad Frontend.”</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=81cf17a63987" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What I learned building a documentation site as a frontend engineer]]></title>
            <link>https://medium.com/@virendrapatil2902/what-i-learned-building-a-documentation-site-as-a-frontend-engineer-cfedb282be70?source=rss-c51a407a5aed------2</link>
            <guid isPermaLink="false">https://medium.com/p/cfedb282be70</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[frontend-development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[documentation]]></category>
            <category><![CDATA[technical-writing]]></category>
            <dc:creator><![CDATA[Virendra Patil]]></dc:creator>
            <pubDate>Tue, 08 Sep 2026 10:57:43 GMT</pubDate>
            <atom:updated>2026-09-08T10:57:43.911Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uRZ5Pm1otJYrpH3eTNv7Qg.png" /></figure><p>I used to think documentation was someone else’s job. Writing is writing, code is code, and the docs site was just a static thing that sat next to the product — somebody dumps Markdown into a folder, a generator turns it into HTML, done.</p><p>Then I owned one. And about two weeks in, I realised something that changed how I think about frontend work generally:</p><p><strong>A documentation site has exactly one meaningful conversion event, and it’s the copy button.</strong></p><p>Not page views. Not time on page. Not scroll depth. The copy button.</p><p>Let me explain why, and why chasing that one metric turned a “writing task” into a genuine frontend engineering problem — build pipeline, environment config, analytics, and eventually a second audience that isn’t even human.</p><h3>Page views tell you nothing</h3><p>Here’s the analytics setup most docs sites ship with: a Google Analytics plugin that fires page_view on load and again on each SPA route change. That&#39;s it. That&#39;s the whole picture.</p><p>Now think about what a page view on your API reference page actually tells you.</p><p>Someone landed there. That’s it. You genuinely cannot distinguish between:</p><ul><li>A developer who found exactly what they needed in eight seconds and left happy.</li><li>A developer who read the whole page twice, didn’t understand it, and gave up.</li><li>A bot.</li><li>Me, checking my own deploy.</li></ul><p>Time on page doesn’t rescue this either. Long time on page is either “engaged” or “confused,” and those are opposite outcomes wearing the same costume. Scroll depth has the same problem — reaching the bottom means you found it, or means you were desperately looking.</p><p>Every metric a default docs setup gives you is ambiguous in the one dimension you care about: <strong>did this page do its job?</strong></p><p>Except one.</p><p>When someone clicks the copy button on a code block, they are telling you something unambiguous. They’re taking your snippet <em>away with them</em>, to paste into a terminal or a config file. Nobody idly copies a curl command. That click is a developer saying “this is the thing I came for.”</p><p>It’s the closest a documentation site gets to an add-to-cart event.</p><h3>Instrumenting it (and the bug that got me)</h3><p>So I wired it up. My first attempt looked roughly like what you’d expect: find the copy buttons, attach listeners.</p><pre>// Don&#39;t do this.<br>document.querySelectorAll(&#39;button[class*=&quot;copyButton&quot;]&#39;)<br>  .forEach((btn) =&gt; btn.addEventListener(&#39;click&#39;, trackCopy));</pre><p>This worked beautifully on the page I tested it on, and silently stopped working the moment I navigated anywhere.</p><p>Modern docs sites are single-page apps. Code blocks mount and unmount as you move between routes. Anything you bind at first paint is bound to DOM nodes that get thrown away on the first client-side navigation — and the new buttons that replace them have no listeners at all.</p><p>So my analytics said snippet copies were rare. They weren’t rare. I was only counting the ones on whatever page you happened to land on first.</p><p>The fix is event delegation — bind once, to a node that never unmounts:</p><pre>document.addEventListener(&#39;click&#39;, (event) =&gt; {<br>  const target = event.target;<br>  if (!(target instanceof Element)) return;</pre><pre>  const button = target.closest(&#39;button&#39;);<br>  if (!button) return;</pre><pre>  // Match the generator&#39;s copy button, whatever it hashes its class to.<br>  if (!/copyButton/i.test(button.className)) return;</pre><pre>  track(&#39;copy_code_snippet&#39;, {<br>    language: codeBlockLanguage(button),<br>    snippet_title: codeBlockTitle(button),<br>    page: window.location.pathname,<br>  });<br>});</pre><p>Two details worth stealing:</p><p><strong>Capture the language and the block title.</strong> bash copies and json copies mean different things — one is someone running a command, the other is someone configuring something. And if your generator supports titled code fences, that title is the single most useful label you&#39;ll ever put on an analytics event. &quot;They copied the block called <em>Authorization header</em>&quot; is an actual sentence about user behaviour.</p><pre>function codeBlockLanguage(el) {<br>  const container = el.closest(&#39;[class*=&quot;codeBlockContainer&quot;]&#39;);<br>  return container?.className.match(/language-([\w-]+)/)?.[1];<br>}</pre><p><strong>Make the whole thing no-op safely.</strong> Analytics is optional infrastructure. If the measurement ID isn’t configured — local dev, a preview build, a self-hosted deploy — the global just isn’t there:</p><pre>function track(event, params = {}) {<br>  if (typeof window === &#39;undefined&#39;) return;      // SSR<br>  if (typeof window.gtag !== &#39;function&#39;) return;  // analytics disabled<br>  window.gtag(&#39;event&#39;, event, params);<br>}</pre><p>That typeof window === &#39;undefined&#39; guard matters more than it looks. Docs sites are statically rendered at build time. Anything that touches window at module scope doesn&#39;t fail in the browser — it fails your <em>build</em>.</p><h3>The uncomfortable question this raises</h3><p>So now I had the data. People were copying snippets constantly. The bash blocks on the API reference were far and away the most-copied things on the entire site.</p><p>And that’s when the actually important question showed up:</p><p><strong>Does the thing they just copied work?</strong></p><p>Because here’s what our API reference said, in a code block, with a nice inviting copy button next to it:</p><pre>curl https://api.example.com/v1/projects \<br>  -H &quot;Authorization: Bearer YOUR_API_KEY&quot;</pre><p>That URL is hardcoded. It is correct for exactly one environment.</p><p>Every developer working against staging who copied that snippet got a command that pointed at production. Every internal engineer on a dev environment got the same. They’d paste it, get a confusing auth error, and conclude our docs were wrong — which, to be fair, they were.</p><p>The copy metric didn’t just measure success. It measured <em>exposure to a bug I didn’t know I had.</em> The most-copied block on the site was the most-wrong block on the site.</p><p>This is the part where documentation stopped being writing and started being frontend engineering.</p><h3>Fixing it in the build pipeline</h3><p>The fix is to stop treating Markdown as static text and start treating it as a template that gets compiled.</p><p>Markdown pipelines are ASTs. You can walk them like any other tree, which means you can write a plugin that substitutes environment-resolved values into your prose, your tables, your links, and — crucially — your copy-pasteable code blocks, at build time.</p><p>The docs get authored with tokens:</p><pre>```bash<br>curl {{API_URL}}/v1/projects \<br>  -H &quot;Authorization: Bearer YOUR_API_KEY&quot;<br>```</pre><p>And a plugin resolves them:</p><pre>import {visit} from &#39;unist-util-visit&#39;;</pre><pre>const SOURCES = {<br>  API_URL:  [&#39;DOCS_API_BASE_URL&#39;, &#39;https://api.example.com&#39;],<br>  SITE_URL: [&#39;DOCS_SITE_URL&#39;, &#39;https://example.com&#39;],<br>};</pre><pre>const TOKEN = /\{\{(API_URL|SITE_URL|SITE_LINK)\}\}/g;</pre><pre>export default function remarkSubstituteUrls() {<br>  const urls = resolve();<br>  const substitute = (v) =&gt; v.replace(TOKEN, (_, key) =&gt; urls[key]);</pre><pre>  return (tree) =&gt; {<br>    visit(tree, (node) =&gt; {<br>      // Prose, fenced blocks, and inline code.<br>      if (<br>        (node.type === &#39;text&#39; ||<br>         node.type === &#39;code&#39; ||<br>         node.type === &#39;inlineCode&#39;) &amp;&amp;<br>        typeof node.value === &#39;string&#39;<br>      ) {<br>        node.value = substitute(node.value);<br>      }<br>      // Link and image targets: [dashboard]({{SITE_URL}})<br>      if (<br>        (node.type === &#39;link&#39; || node.type === &#39;image&#39;) &amp;&amp;<br>        typeof node.url === &#39;string&#39;<br>      ) {<br>        node.url = substitute(node.url);<br>      }<br>    });<br>  };<br>}</pre><p>Now a reader on the dev docs copies a dev endpoint, and a reader on production copies a production endpoint, from the exact same Markdown file.</p><p>The bigger win is that we used <strong>the same token names as the product’s own copy file</strong>. The web app already had a {{API_URL}} sentinel resolved from an env var. Reusing those names meant the docs and the product could be driven from one set of environment variables — change the endpoint once, and both the app and every snippet in the docs follow.</p><p>Your docs and your app should not have independent opinions about what your API’s URL is.</p><h3>The detail I’m most pleased with</h3><p>Here’s the bit that I think separates “I added token substitution” from “I actually thought about this.”</p><p>We ended up with <strong>two tokens pointing at the same origin</strong>:</p><pre>{{SITE_URL}}   // bare origin<br>{{SITE_LINK}}  // same origin, with UTM parameters appended</pre><p>Why? Because marketing wanted attribution on docs → product referrals, which is completely reasonable. Clicking “open your dashboard” in a paragraph is a real cross-property referral and should be tagged.</p><p>But a UTM-tagged URL inside a code block is a <em>bug</em>.</p><p>If someone copies https://example.com?utm_source=docs&amp;utm_medium=referral&amp;utm_campaign=... into a config file or a shell command, the best case is that it&#39;s ugly noise sitting in their infrastructure forever. The worse cases: it breaks exact-match routing, or it breaks request signing, where every query parameter is part of the signature.</p><p>So the rule became: <strong>UTM parameters are for things humans click, never for things humans copy.</strong></p><ul><li>Prose links → {{SITE_LINK}}, tagged.</li><li>Anything inside a code block → {{SITE_URL}}, bare.</li><li>API and service endpoints → never tagged, at all. They’re endpoints, not links.</li></ul><p>I’d never seen this distinction written down anywhere, and I’d bet a lot of docs sites have UTM parameters quietly sitting in snippets that people have pasted into production configs.</p><h3>A bug that will bite you specifically</h3><p>One more, because it cost me an afternoon and it’s the kind of thing that’s obvious only in hindsight.</p><p>My first version resolved the tokens at module scope:</p><pre>// Broken.<br>const substitutions = resolve();  // reads process.env immediately<br>export default function remarkSubstituteUrls() { /* uses substitutions */ }</pre><p>Every build silently produced production URLs. Not an error — just quietly, confidently wrong.</p><p>The reason is import hoisting. The config file imports this plugin at the top, and ES module imports are evaluated <em>before</em> any statement in the importing module’s body. So the loadEnv() call that populates process.env from .env files ran <em>after</em> my plugin had already read process.env and found nothing.</p><p>Resolve lazily, inside the plugin factory, which runs after config evaluation:</p><pre>export default function remarkSubstituteUrls() {<br>  const substitutions = resolve();  // now the .env files are loaded<br>  // ...<br>}</pre><p>Same category of bug as the event listener one, honestly: <strong>something initialised too early, against state that wasn’t ready yet.</strong> Half of frontend debugging is timing.</p><p>(Related trap from the same afternoon: don’t key your environment loading off NODE_ENV. Most static site generators hard-set NODE_ENV=production inside their build command, so a dev-pointing build becomes impossible to produce. Use your own variable — DOCS_ENV or similar — and you keep the ability to build a staging bundle.)</p><h3>Your snippets have a second audience now</h3><p>Last thing, and it’s the one that made all of the above feel less like polish and more like table stakes.</p><p>Developers aren’t the only ones copying your code blocks any more. LLMs and coding agents read documentation, and when they do, they extract your snippets and hand them straight to a user or execute them.</p><p>There’s an emerging convention for this — llms.txt and llms-full.txt — where you emit a plain-text index of your docs plus a concatenated full corpus, generated from the same Markdown your site builds from so it can&#39;t drift.</p><p>Two decisions there turned out to be the interesting ones.</p><p><strong>Order pages by your sidebar, not the filesystem.</strong> Your sidebar is authored in <em>reading order</em>: concepts before configuration, connect-your-repo before scan-your-repo. That ordering is the most useful signal you can hand a model about how your docs relate to each other. Filesystem sort order is alphabetical noise.</p><p><strong>Strip the UTM parameters for agents.</strong> Remember the two-token split? For the human-facing site, {{SITE_LINK}} resolves to the tagged marketing URL. In the agent-facing output, it resolves to the bare origin:</p><pre>const agentUrls = {...urls, SITE_LINK: urls.SITE_URL};</pre><p>Attribution parameters are for human clicks. An agent passing a URL to an API doesn’t need them and might break on them. Same principle as before, new audience.</p><p>And note that this only worked because the tokens existed in the first place. If those URLs had been hardcoded strings, the agent-facing output would have shipped whatever environment happened to be baked in — and every agent reading our docs would confidently tell its user the wrong endpoint.</p><h3>What I actually took away from this</h3><p>The copy button reframed the whole problem for me.</p><p>Once you accept that copying is the conversion event, a chain of consequences follows that looks nothing like writing:</p><ul><li>If copying is the goal, snippets must be <strong>correct for the reader’s environment</strong> → you need build-time templating.</li><li>If snippets are templated, they must resolve from the <strong>same config as the product</strong> → docs join your environment story.</li><li>If URLs differ by context, you need to distinguish <strong>clicked links from copied text</strong> → UTM tagging becomes a real design decision.</li><li>If agents read your docs too, you need an <strong>audience-aware build output</strong> → your docs site has multiple render targets.</li></ul><p>None of that is a writing task. All of it is frontend engineering, and none of it happens if you treat the docs site as a folder of Markdown that somebody else maintains.</p><p>The version of me from a couple of years ago thought documentation was where writing happened and code stopped. What I’d tell that person is this:</p><p><strong>A copied snippet is a deploy.</strong> Someone is going to paste it into a terminal that matters. Build it with the same seriousness you’d build anything else that runs in production — because it does.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cfedb282be70" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Best Engineer I Ever Hired Failed Our Interview]]></title>
            <link>https://medium.com/@virendrapatil2902/the-best-engineer-i-ever-hired-failed-our-interview-4614be97534b?source=rss-c51a407a5aed------2</link>
            <guid isPermaLink="false">https://medium.com/p/4614be97534b</guid>
            <category><![CDATA[leadership]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[career-advice]]></category>
            <category><![CDATA[hiring]]></category>
            <category><![CDATA[engineering-management]]></category>
            <dc:creator><![CDATA[Virendra Patil]]></dc:creator>
            <pubDate>Mon, 07 Sep 2026 13:31:01 GMT</pubDate>
            <atom:updated>2026-09-07T13:31:01.015Z</atom:updated>
            <content:encoded><![CDATA[<p><em>We only found out because someone on the panel refused to let it go.</em></p><p>They failed the technical screen. Clearly — not a borderline case. Two of three interviewers said no, the writeup was reasonable, and the candidate was headed for the rejection pile with everything working exactly as designed.</p><p>Then the third interviewer sent a message that has permanently changed how I think about hiring:</p><p><strong>“I think we tested whether they’d seen this before, not whether they could do the job.”</strong></p><p>We argued about it for two days. We made the offer. That person spent three years with us and became the person other engineers went to when something was genuinely hard.</p><p>That’s a nice story and it proves nothing. One data point, survivorship bias, easy to tell because it worked out. What’s worth your time is the question it forced us to ask, which was much less comfortable:</p><p><strong>How many did we get wrong that nobody argued about?</strong></p><p>We had no way to know. That’s the actual subject of this post.</p><h3>The problem with a hiring process</h3><p>A hiring process is a prediction machine with one catastrophic property: <strong>you only ever get feedback on half the predictions.</strong></p><p>You hire someone, and you learn if you were right. You reject someone, and you learn nothing, forever. The rejections leave, do well or badly somewhere else, and the outcome never reaches you.</p><p>So the loop only trains on one side. Every year the process gets more refined at avoiding the mistakes you <em>can</em> see — the bad hire, the person who didn’t work out — and learns absolutely nothing about the mistakes you can’t. And the invisible mistakes are more expensive, because a bad hire is a few painful months and a missed great hire is a competitor’s best engineer.</p><p>Every process I’ve seen, including mine, drifts toward false negatives over time. Not through bad judgment. Through <strong>asymmetric feedback</strong>, which is a much harder thing to fight, because it feels like getting better.</p><h3>What we were actually measuring</h3><p>When we went back through our screen with that interviewer’s sentence in mind, we found something uncomfortable.</p><p>Our questions had <em>right answers</em>. Not right approaches — right answers. Someone who’d hit that class of problem before recognized the shape and moved fast. Someone who hadn’t had to derive it live, on a clock, being watched.</p><p>We had built, without intending to, a <strong>recall test wearing a reasoning test’s clothes</strong>. And recall correlates with exposure, which correlates with the kind of career someone has had, which correlates with a lot of things that have nothing to do with whether they’re good.</p><p>The candidate we nearly rejected hadn’t seen the problem before. Watching the recording again, the actual tell was there the whole time: <strong>they were slow in a specific way.</strong> They kept checking their assumptions. They asked two questions before writing anything. They said “I don’t know, let me think” out loud — which reads as weakness under time pressure and is the single most reliable strength signal I’ve since learned to look for.</p><p>They’d have passed easily if we’d given them thirty more minutes. The role they were interviewing for had no thirty-minute problems in it. Every real problem took days.</p><p><strong>We were testing under constraints that didn’t exist in the job, and the constraint was doing most of the filtering.</strong></p><h3>The three changes</h3><p><strong>We started asking about a problem they’d actually solved.</strong></p><p>Not a puzzle. Something real, from their own past, in depth — and the interviewer’s job is to keep going until they hit the edge of the candidate’s understanding.</p><p>That’s the whole trick. Everyone can narrate a success. Very few can accurately describe the part they <em>didn’t</em> understand at the time. The people who can are almost always the people you want, because it means they went back and figured it out after it shipped.</p><p>You cannot fake depth on your own work. You can absolutely fake a whiteboard puzzle you saw last month.</p><p><strong>We made disagreement mandatory.</strong></p><p>Any unanimous panel now gets a second look, and the panel writes down predictions <em>before</em> the debrief.</p><p>The reason is that a great candidate and a mediocre one produce very different discussions, and the difference shows up in the <em>shape</em> of the disagreement, not the vote count. Our best hires were frequently split decisions where the dissent was specific and interesting. Our clearest mistakes were unanimous yeses on people everyone found agreeable.</p><p><strong>Unanimous agreement on a hire is a signal you should be suspicious of, not reassured by.</strong> It often means the candidate was easy to evaluate, and easy to evaluate usually means familiar, and familiar means similar to you.</p><p><strong>We wrote down why we rejected people.</strong></p><p>One sentence, in a doc. Then, twice a year, we read them back.</p><p>This is the closest thing you can get to feedback on your invisible half. You can’t learn the outcome — but you <em>can</em> audit the reasoning, and reasoning goes bad in visible ways. Within a year we found a pattern: we’d been consistently rejecting people who interviewed <em>quietly</em>. Not badly. Quietly. Thoughtful, unhurried, unimpressive in a 45-minute window.</p><p>Reading forty rejection notes in one sitting makes a pattern like that impossible to miss. Reading one every three weeks makes it impossible to see.</p><h3>What I’d say to anyone hiring</h3><p>I don’t think our process is good. I think it’s less bad than it was, and I expect to find something equally embarrassing in it next year.</p><p>But there’s one question I’d put in front of anyone who runs hiring, and it’s genuinely uncomfortable:</p><p><strong>When was the last time you were wrong about a rejection — and how would you know?</strong></p><p>If you can’t answer the second half, your process has no error-correction on the expensive side. It’ll keep getting sharper at the mistakes you can see, and it will drift, quietly, for years.</p><p>Ours did. We only caught it because one person on a panel wouldn’t let it go — and I’d very much rather not rely on that again.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4614be97534b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Asked 40 Engineers Which Tools They Actually Use. The Answers Were Brutal.]]></title>
            <link>https://medium.com/@virendrapatil2902/i-asked-40-engineers-which-tools-they-actually-use-the-answers-were-brutal-9976d9c08c42?source=rss-c51a407a5aed------2</link>
            <guid isPermaLink="false">https://medium.com/p/9976d9c08c42</guid>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[product-management]]></category>
            <category><![CDATA[leadership]]></category>
            <category><![CDATA[engineering-management]]></category>
            <dc:creator><![CDATA[Virendra Patil]]></dc:creator>
            <pubDate>Mon, 31 Aug 2026 13:26:01 GMT</pubDate>
            <atom:updated>2026-08-31T13:26:01.034Z</atom:updated>
            <content:encoded><![CDATA[<p><em>We were paying for eleven. They used four. Nobody had lied to me — I’d just never asked properly.</em></p><p>I started with a simple goal: kill one subscription. Renewal season, budget review, standard housekeeping.</p><p>Instead I found out that most of what I believed about my own team’s daily work was wrong. Not slightly wrong. Wrong in the way where you sit back from the desk for a second.</p><h3>The question that doesn’t work</h3><p>My first attempt was a survey. <em>Which of these tools do you use?</em></p><p>Everything came back at 80–90% usage. Every tool, beloved. Total harmony. I nearly closed the file and renewed everything.</p><p>Then I asked one person about it in a hallway, casually, and they laughed and said: <em>“I clicked yes on the ones I’ve opened.”</em></p><p><strong>Nobody had lied. I’d asked a question that couldn’t produce a true answer.</strong> “Do you use it” is ambiguous — used it once, has it open, would miss it if it vanished, all register as <em>yes</em>. And there’s a mild social cost to saying no about a tool your manager presumably chose, which nudges every ambiguous case in one direction.</p><p>So I threw out the survey and asked something with a sharp edge:</p><p><strong>“If this disappeared overnight, what would you do tomorrow morning?”</strong></p><p>That question cannot be answered vaguely. You either have an answer or you visibly don’t.</p><h3>What came back</h3><p>Four tools produced instant, specific, slightly panicked answers. <em>“I’d be blocked.”</em> Those were real.</p><p>Everything else produced one of three responses, and the three of them turned out to be an accidental taxonomy of wasted money.</p><p><strong>“Nothing. I’d just… not.”</strong> The tool was installed, running, occasionally opened, and load-bearing for nothing. Seven people gave me this answer about the same product. It had a dashboard. The dashboard was accurate. Nobody made a decision with it.</p><p><strong>“I’d finally get to stop doing the workaround.”</strong> This one physically hurt. The tool wasn’t neutral — it was <em>negative</em>. It produced output that was wrong often enough that people had built a manual process to correct it, and that manual process was now the actual workflow. We were paying a vendor for the privilege of generating a chore.</p><p><strong>“Oh — is that still on?”</strong> Two tools. Genuinely forgotten. Still billing.</p><h3>The one that mattered</h3><p>But the answer that changed how I run things came from a different question I almost didn’t ask: <em>what do you use that we don’t pay for?</em></p><p>There was a spreadsheet.</p><p>One engineer had built it, eighteen months earlier, to track something our expensive platform tracked badly. It had spread by word of mouth. By the time I found it, <strong>nineteen people depended on it</strong>, including two on a different team, and it had a de facto owner who had never agreed to own anything.</p><p>We were paying five figures a year for the tool it had quietly replaced.</p><p>I’ve thought about that spreadsheet more than anything else in the audit. It’s not a story about a clever engineer. It’s a story about <strong>an org where the real workflow had detached from the funded workflow, and no reporting line existed that would ever surface that.</strong> Every dashboard I owned said the platform was in use. It was in use. It just wasn’t the thing people trusted.</p><p>That gap is invisible by construction. Tools report their own usage. Nothing reports its own irrelevance.</p><h3>What the noes had in common</h3><p>The dead tools weren’t bad software. Most were well-built, well-reviewed, and solved real problems for somebody.</p><p>They shared three properties:</p><p><strong>They were bought to solve a problem the buyer had, not one the user had.</strong> Almost every dead tool had been my idea, or another manager’s. Almost every living tool had come from an engineer who was already suffering the problem. The correlation was close to perfect, and it’s the least comfortable thing in this post.</p><p><strong>They asked people to change where they work.</strong> The survivors lived inside the editor, the terminal, or the PR. The casualties had their own web app, their own login, and their own tab. <strong>A tool that requires you to go somewhere gets used when you remember. A tool that comes to you gets used.</strong></p><p><strong>They were wrong often enough to be discounted.</strong> Not usually wrong — just wrong enough that checking became optional, and optional decays to never. Trust in a tool is binary and it’s a <em>team</em> property, not an individual one. Once “that thing is usually wrong” enters the vocabulary, the accurate 80% dies with the noisy 20%.</p><h3>The habit I kept</h3><p>We cancelled four things. That was the boring outcome and it paid for the exercise.</p><p>The habit is the part worth stealing. Twice a year, one question to everyone:</p><p><strong>“If this vanished tomorrow, what would you do?”</strong></p><p>It takes twenty minutes. It works on tools, meetings, dashboards, reports, and most process. And it works for a specific reason: it’s nearly impossible to answer politely. “It’s fine” is not a valid response. You either describe the hole it leaves or you reveal there isn’t one.</p><p>Ask about your own recurring meeting sometime. Genuinely, ask the people in it.</p><p>I did. We don’t have that meeting anymore.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9976d9c08c42" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>