<?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 Vaibhav Kakade on Medium]]></title>
        <description><![CDATA[Stories by Vaibhav Kakade on Medium]]></description>
        <link>https://medium.com/@vaibhavkakade5?source=rss-da226a924a23------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*su0B8wySAPf8GbYU.</url>
            <title>Stories by Vaibhav Kakade on Medium</title>
            <link>https://medium.com/@vaibhavkakade5?source=rss-da226a924a23------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 17:08:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vaibhavkakade5/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[The Real Reason Your Team Misses Deadlines]]></title>
            <link>https://medium.com/@vaibhavkakade5/the-real-reason-your-team-misses-deadlines-34a69b81043c?source=rss-da226a924a23------2</link>
            <guid isPermaLink="false">https://medium.com/p/34a69b81043c</guid>
            <category><![CDATA[engineering-mangement]]></category>
            <category><![CDATA[management]]></category>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[project-management]]></category>
            <dc:creator><![CDATA[Vaibhav Kakade]]></dc:creator>
            <pubDate>Mon, 08 Sep 2025 13:32:39 GMT</pubDate>
            <atom:updated>2025-10-01T15:36:18.521Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>Executing a project sounds simple on paper: define what needs to be done, estimate how long it will take, and deliver. But in reality, many projects derail midway — scope creeps in silently, dependencies create bottlenecks, and estimates are far away from reality. If you’ve ever been part of a project that missed deadlines or delivered incomplete outcomes, you’ll relate to these problems.</p><h3>A Common Scenario</h3><p>At the beginning of any project, everything looks well defined. The requirements appear clear, the solution seems technically feasible, and the team feels confident they can deliver a complex project in a month — even if in reality it would take three months. Then the typical problems begin to surface:</p><ul><li>The product team identifies a new use case and requests that engineering add it to the scope.</li><li>A week later, a technical assumption proves invalid. The team absorbs the change, still believing they can manage.</li><li>Soon, they are blocked by another team’s prioritization and can’t move forward until the dependency is resolved.</li><li>Determined to hit the original deadline, the team continues without raising concerns, though confidence begins to waver.</li><li>As new use cases and redesign requests keep coming, panic sets in as the deadline approaches.</li><li>Only then do they escalate to the manager, but it’s too late. The manager pressures the team to work nights and weekends.</li><li>The deadline gets pushed a couple of weeks, but testing reveals more work, leading to further delays.</li></ul><p>Ultimately, the project slips by a month or more, burning out the team and eroding trust with stakeholders.</p><h3>Problems</h3><ul><li><strong>Unclear scope</strong>: Teams often jump into execution without fully locking down the scope. Deliverables are vague, and assumptions go undocumented. When stakeholders later add requirements, it feels like an endless treadmill.</li><li><strong>Dependencies and decisions</strong>: Many projects depend on external teams — engineering capacity, design inputs, or cross-squad collaboration. If these aren’t clearly mapped, projects stall when the dependency isn’t met.</li><li><strong>Estimation challenges</strong>: Estimates are frequently confused with timelines. Teams promise delivery in “two weeks” without factoring in testing, code reviews, or buffers for the unexpected.</li><li><strong>Scope creeps</strong>: As the project progresses, decisions or technical changes often expand the original plan. Without control, this creeps into the timeline, frustrating both teams and stakeholders.</li></ul><p>Sound familiar? These are common pitfalls that sink even the best intentions.</p><h3>Solution</h3><p>To execute projects successfully, you need a structured process that builds discipline and transparency. Here’s a framework you can follow:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*On6tnQ1bah6KP0Nu_0YjiA.png" /></figure><h4>Step 1: Scoping</h4><ul><li>Lock the scope before any work begins. Be clear about <em>requirements </em>and <em>deliverables</em>.</li><li>Document deliverables so there’s no ambiguity.</li><li>Get formal acknowledgement from stakeholders. This is your anchor against future disputes.</li></ul><p>Handling Scope Creep</p><ul><li>When scope changes (X → X+Y), treat Y as scope creep.</li><li>Reassess estimates and timelines instead of quietly absorbing the extra work.</li><li>For technical shifts, highlight changes to stakeholders immediately. Redo the estimation process if needed.</li></ul><h4>Step 2: Decisions &amp; Dependencies</h4><ul><li>Map out all dependencies — engineering capacity, cross-squad efforts, front-end/back-end alignment.</li><li>Read, re-read the product requirement documents (PRDs) and invest time into understanding business requirements especially the “Why”.</li><li>Write engineering specs — HLD, LLD with multiple solutions.</li><li>Finalize the system design or solution on paper.</li><li>Every decision must be examined: if decision X changes to Y, check if estimates are affected. If yes, restart from Step 1 to realign.</li></ul><h4>Step 3: Estimation</h4><ul><li>Break bigger requirements into tasks and tasks into granular subtasks.</li><li>Along with actual dev efforts, factor in dev testing, code review time, small buffer unexpected delays, product testing on lower envs, etc.</li><li>Communicate clearly that <strong>estimates ≠ timelines</strong>. This is the most important point!</li></ul><h4>Step 4: Timelines</h4><ul><li>Timelines are due dates on a calendar.</li><li>Once estimates are ready, plot them on the calendar. Map them against the team’s actual availability.</li><li>Factor in weekends, holidays, leave plans, existing ongoing work, and realistic engineering capacity.</li><li>For instance, an estimate might be just 1 week, but the actual timeline (due date) could be a month away. Why? Factors such as team capacity leading to the task being scheduled a week after the estimation date, holidays or leaves in between, and dependencies on other teams can all influence the overall timeline.</li><li>Place the estimates on a shared calendar to visualize when each milestone will be delivered.</li><li>This step transforms abstract estimates into concrete timelines, giving stakeholders visibility and allowing early identification of bottlenecks.</li></ul><h4>Mental Model</h4><blockquote><strong>Scope → Decisions/Dependencies → Estimates → Timelines</strong></blockquote><p>By following the above runbook, you create a system that adapts to change without breaking down.</p><h3>Conclusion</h3><p>Projects fail not because teams lack skills, but because they lack structure. By locking scope, documenting decisions, mapping dependencies, and separating estimates from timelines, you establish clarity and accountability. Plotting estimates on the calendar ensures visibility, alignment, and realistic delivery plans.</p><p>Most importantly, by treating scope creep transparently and redoing estimates when changes occur, you prevent last-minute surprises. If you follow this process, you’ll find that execution becomes predictable, stakeholders trust your timelines, and your team avoids burnout.</p><p>In short: discipline in scoping, transparency in decisions, rigor in estimation, and mapping estimates to real calendars are the keys to executing any project successfully.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=34a69b81043c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Helpshift switched to Webpack]]></title>
            <link>https://medium.com/helpshift-engineering/how-helpshift-switched-to-webpack-1b6bcb294c28?source=rss-da226a924a23------2</link>
            <guid isPermaLink="false">https://medium.com/p/1b6bcb294c28</guid>
            <category><![CDATA[migration]]></category>
            <category><![CDATA[webpack]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[helpshift]]></category>
            <category><![CDATA[requirejs]]></category>
            <dc:creator><![CDATA[Vaibhav Kakade]]></dc:creator>
            <pubDate>Wed, 27 Apr 2022 04:14:40 GMT</pubDate>
            <atom:updated>2022-04-27T04:14:40.975Z</atom:updated>
            <content:encoded><![CDATA[<h3>Background</h3><p>In Helpshift, we were using RequireJS for modules and dependency management in the frontend codebase. We use React and YUI (legacy) for frontend. Back in the ES5 era, developers used IIFE (immediately invoking function expression) to create JavaScript modules. IIFE could avoid global namespace pollution, but they didn’t provide a way to specify the dependency between modules. So, the best choice at that time was RequireJS as it solved most of the problems. Our code was modular even before ES6 introduced modules. We could manage dependencies and even load modules dynamically (at run time).</p><p>We have a frontend service called <em>wiggo</em> (YUI GO) written in Go lang. This service bundles JS files (passed as query param) and serves one bundle. Moreover, this service resizes and caches images on S3. So, the browser would request a list of JS files that needs bundling at runtime. Wiggo serves one bundle by combining them.</p><p>For optimization, <em>wiggo</em> caches the query param request so that it doesn’t have to redo the bundling again. Next time, if the same request comes to wiggo, it would serve pre-bundled assets. Wiggo complemented RequireJS requests to load modules statically as well as dynamically. We created a static list of files for different entry points in our codebase. We served them via <em>wiggo f</em>or optimization. Furthermore, we added these entry points JS files to index.html, and they do not change.</p><pre>&lt;html&gt;<br> &lt;head&gt;<br> &lt;link src=”path/to/styles.css”&gt;<br> &lt;/head&gt;<br> &lt;body&gt;<br> &lt;!-- HTML elements --&gt;<br> &lt;script src=”path/to/entry/point/dashboard.js”&gt;&lt;/script&gt;<br> &lt;/body&gt;<br>&lt;/html&gt;</pre><p>All was happy and good until the codebase and files dependencies grew.</p><h3>Problems</h3><p><strong>Bundling</strong></p><ul><li>We were keeping a static list of files to bundle in the codebase! For example, an entry point file has 10 dependencies. Now, if any of the dependencies of one of the files in this list changes, RequireJS has to fetch them dynamically. App’s functionality does not break. Browser loads all the mentioned dependencies as one bundle. Wiggo loads missing or newly added dependencies at runtime. This results in <em>wiggo</em> cache-busting previous requests, bundling new assets, and caching them.</li><li>Manually keeping track of the dependency tree is not feasible, as we add new files continuously.</li><li>As developers add new files, manually keeping track of dependencies is not feasible.</li><li>Maintaining a static list of files is an overhead. Developers need to be aware of code base and structure. They have to manually check if they are making any changes in entry files or adding new dependencies.</li><li>We created a static list of files for different entry points as well. Keeping a static list does not consider which view loads. If the user loads the settings page directly, then the browser always serves the first bundle (dashboard.js). This contains files required for loading the home page of the dashboard and not setting.</li><li>We added third-party libraries dependent on other libraries in a particular order. We manually maintained this order in the initial bundle (dashboard.js). Not only that, but we generally guess this order through trial. It’s a hit or miss strategy.</li></ul><p><strong>Page load performance</strong></p><ul><li>The first-page load is very slow.</li><li>Using <em>wiggo</em> does not allow us to use CDN, which can drastically improve page performance.</li><li>We were using <em>wiggo</em> only for dynamic bundling (which is actually required only for a few pages). We were sacrificing other benefits like page-specific bundles, tree shaking, optimal libraries, etc. Moreover, we can achieve dynamic bundling in other ways.</li><li>Today, this way is not optimal and not scalable. For every page load, we have to send a list of page dependencies as query parameters, which are not needed if we can create a bundle during the build time. Modern tools can help us with these.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lKEA4OIOE6FCRgKhSil-TA.png" /><figcaption>Page performance when using reqiure.js</figcaption></figure><p><strong>Adoption of new features and libraries</strong></p><ul><li>Using RequireJS was a blocker for the adoption of new JS features and using new 3rd party libraries. <br>— If developers want to use, say, a 3rd party node module/helper/utility, it was not possible because of RequireJS. <br>— All RequireJS modules needed to be in AMD format. The new libraries or JS features are based on ES6 module format.<br>— Due to this, we had to support only those JS features which were compatible with AMD.</li><li>We were unable to fully optimize the build process.<br>— We had to write huge gulp tasks manually, which required a considerable learning curve, time, and testing for devs.</li><li>We recognized a list of features we are not currently using but would be really useful:<br>1. Page-specific bundles<br>2. Hot module replacement<br>3. Tree shaking<br>4. CSS imports in JS</li></ul><h3>Solutions</h3><p>Before jumping to the solutions, we wanted to understand the problems better. We started documenting the above-mentioned concerns and realized that static bundling was the way to go forward. But to achieve that, we recognized two hurdles:<br>1. Wiggo<br>2. RequireJS</p><p>So, we started creating solution documents and brainstorming around how to solve these problems. We concluded that — we will need to stop relying on <em>wiggo</em> to serve static assets and remove RequireJS altogether from our code. We started experimenting and building POCs (Proof Of Concepts). Furthermore, we found that <strong>Webpack</strong> can solve all our problems. It&#39;s an industry-standard tool for bundling.</p><p><strong>Webpack was the key to the future!</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xQCjgB2DVqhtqGoGw9E6TQ.png" /></figure><p><strong>Solution Overview</strong></p><ul><li>First, convert all the RequireJS modules to ES6 modules and clearly define entry points for React and YUI pages.</li><li>Introduce Webpack to bundle assets and generate output JS files.</li><li>Include the generated JS bundle for the entry point in index html.</li><li>Serve the assets from CDN in production.</li></ul><p><strong>Solution Details</strong><br>Introducing webpack was not as easy as it seemed. It has its set of challenges. The first step of converting all files from RequireJS’ AMD format to ES6 modules was humongous. Manually converting 100s of files across the codebase was not feasible for a couple of developers. We wanted an automated way of converting these files. Existing solutions like <a href="https://www.npmjs.com/package/@buxlabs/amd-to-es6">amd-to-es6</a> did not solve our use case because we were using RequireJS in a certain way — we had named modules, anonymous modules, modules with and without dependencies, etc, and we were using “use strict” inside the function.<br>My colleague <a href="https://medium.com/u/cc194e692de9">Ayush Sachdeva</a> was experimenting with <a href="https://github.com/facebook/jscodeshift">code mods</a> a couple of months ago, and we thought of revisiting that. <a href="https://medium.com/u/cc194e692de9">Ayush Sachdeva</a> managed to write a code mod that would take care of different syntaxes of RequireJS modules and convert them to ES6 modules. This was the <strong>biggest game-changer</strong> for the execution of the entire project.</p><p><strong>Execution</strong><br>Once we had solutions and POCs in place, we started creating execution plans. We created different phases for this project.</p><p><strong>Phase 1</strong><br>Convert all RequireJS modules to ES6 modules</p><p><em>Plan</em></p><ul><li>Convert all AMD files to ESM</li><li>Keep RequireJS and its configuration</li><li>The build process would still internally convert every ESM back to AMD as we are not using Webpack’s bundling in this phase.</li><li>Remove static list of files from the codebase.</li></ul><p>This phase would create a base for the next phase (which is changing the build process to use Webpack).</p><p><em>Results</em><br>All the files in the codebase would be in ESM format.</p><p><em>Outcome</em><br>Devs would write the code in ESM format going forward.</p><p><strong>Phase 2</strong><br>Use Webpack to create and optimize static JS bundles. These bundles would be served via Nginx.</p><p><em>Plan</em></p><ul><li>Add Webpack as a dev-dependency to package.json.</li><li>Create Webpack config file to transpile ES6 modules.</li><li>Define entry point in Webpack config for React and YUI.</li><li>Transpile React code and save the bundles into <em>static/bundle/</em> folder.</li><li>Transpile YUI code and save them <em>static/bundle-js/</em> folder.</li><li>For dev workflow, just run Webpack in watch mode, which will compile the changed files and save them to the above folders.</li><li>Create one bundle for all the libraries (React, ReactDom, Proptypes, etc).</li><li>Change the prefix of entry point JS files in HTML pages of React and YUI having path <em>/bundle/.</em></li><li>Make nginx changes to serve these bundles:<br>1. Add an Nginx entry to route <em>/bundle/</em> request to serve the assets from this bundles folder.<br>2. JS file requests will NOT go to <em>wiggo. </em>They will now be served via Nginx.<br>3. Add Nginx rule for query parameter <em>nocache=true </em>to serve cache-control header’s value as no-cache. This allows us to select static resources which don&#39;t need caching.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3nriH3MRbX9qiDjCBcPK7Q.png" /></figure><ul><li>Remove unwanted Gulp tasks.</li><li>Remove RequireJS configuration</li></ul><p><em>Results</em></p><ul><li>RequireJS would be completely removed from the codebase.</li><li>Webpack would be used for bundling JS files instead of <em>wiggo.</em></li><li>Optimal route-specific bundles will be served for each page.</li></ul><p><em>Outcome</em></p><ul><li>The Dashboard pages would load faster.</li><li>The download cost for end-user will be less.</li><li>The wait-time cost for end-user will be less.</li></ul><p>We were able to execute until phase 2. We were happy with the outcomes. Although the lighthouse score showed a minor improvement, the pages were definitely loading faster. Developers could use new JS features, add libraries as per their requirements.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ePVI5qXnmeeR43JhvK5Qcw.png" /><figcaption>Page performance using webpack and ES 6 modules</figcaption></figure><p>Even though the performance numbers afterwards are not significantly higher, this was certainly an improvement. The code is in a much better state, it is easier to import/export modules, anyone can freely use the libraries they want. After phase 2, we have created a foundation to built things on top of.</p><h3><strong>Future</strong></h3><p><strong>Phase 3</strong><br>Serve static assets (JS and CSS) from CDN.</p><p><strong>Phase 4</strong><br>Add content hash in the entry point bundle of static assets and change the HTML files.</p><p><strong>Phase 5</strong><br>Optimize the loading of assets by using a bundle analyzer.</p><p><strong>Phase 6</strong><br>Optimize the CSS. Currently, we are serving the entire CSS of the dashboard in one file.</p><p><strong>Phase 7</strong><br>Optimize developer experience. Introduce hot module loading.</p><h3>Learnings</h3><p>1. Understanding the problem is critical. Unless we understand the problems, finding the solutions is difficult. Even after we have the solutions, there are still challenges in execution. There are numerous unknowns that we uncover during actual implementation. It&#39;s highly recommended to document all the possible solutions and pick the solution which fits the need.</p><p>2. Frequent sync-ups are important during POC stages. My colleague and I used to sync up every day in the morning, decide on the approaches until one of us finds the solution. In some cases, we even solved the same problem independently using different approaches so that we know the pros and cons.</p><p>3. Introducing a tool in the existing codebase is a lot harder than setting up everything from the scratch. You require a more in-depth understanding of the issue and make sure the testing plan is in place.</p><p>4. Scheduling such a huge project needs to have a solid business impact. It&#39;s hard to get these big projects prioritized over feature work. We (<a href="https://medium.com/u/4b3c5a799385">Kapil Reddy</a> and I) basically tied two things to business impact. Firstly, the pages on the dashboard will load faster and more efficiently. This will make the users happy. And it ties up to the NPS score as well. Secondly, the developers can add any library within 2 minutes. This vastly improves developer productivity. This allows the devs to build features faster.</p><p>Lastly, this project was super fun and I enjoyed working on it a lot.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1b6bcb294c28" width="1" height="1" alt=""><hr><p><a href="https://medium.com/helpshift-engineering/how-helpshift-switched-to-webpack-1b6bcb294c28">How Helpshift switched to Webpack</a> was originally published in <a href="https://medium.com/helpshift-engineering">helpshift-engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>