<?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 Ahmed Gamal on Medium]]></title>
        <description><![CDATA[Stories by Ahmed Gamal on Medium]]></description>
        <link>https://medium.com/@ahmad.g.mustafa?source=rss-13bd8e8c0e00------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*YZJDsIYuTBBgieLG17rLbg.png</url>
            <title>Stories by Ahmed Gamal on Medium</title>
            <link>https://medium.com/@ahmad.g.mustafa?source=rss-13bd8e8c0e00------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 15:05:04 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ahmad.g.mustafa/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[Move Fast with TanStack Start | Migrated 178 Files from Next.js in Hours]]></title>
            <link>https://medium.com/@ahmad.g.mustafa/move-fast-with-tanstack-start-migrated-178-files-from-next-js-in-hours-7cdc61c131d3?source=rss-13bd8e8c0e00------2</link>
            <guid isPermaLink="false">https://medium.com/p/7cdc61c131d3</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[nextjs]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Ahmed Gamal]]></dc:creator>
            <pubDate>Sat, 11 Apr 2026 18:31:56 GMT</pubDate>
            <atom:updated>2026-04-11T18:31:56.668Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>The pain</strong></h3><p>I do believe in <strong>technological freedom</strong>, I’ve always hated being locked into ecosystems like <strong>Next.js</strong>. I don’t want someone to tell me where to deploy my project. I was trying to deploy my Next.js app into <strong>Cloudflare</strong> but guess what, that was a pain in the <strong>a**</strong>.</p><p>To be able to do that you need to use a custom build tool from Cloudflare,</p><p>but normal deployment to Pages or Workers will not work as you expect.</p><p>Yes, it’s not impossible. Netlify did work, but it was too late, <strong>I was already fed up</strong> and still searching for other options. Also, <strong>navigation between routes is so slow</strong>, especially while development. You will catch yourself waiting too long for a <strong>simple page to navigate</strong>. For sure the SSG pages were super fast, but what about the whole user experience? What about the <strong>build time</strong>,<strong> soft navigation (SPA)</strong>, But what are we actually losing along the way?</p><h3>Inspiration</h3><p>I always had this idea running in the background of my mind,</p><p>how do we fix all of these issues? <strong>Next.js</strong> has a huge community nowadays, but how are people living with the <strong>trade-offs </strong>I mentioned earlier?</p><p>A couple of days ago I was reading an article from <a href="https://blog.railway.com/p/moving-railways-frontend-off-nextjs"><strong>Railway</strong></a>, a light bulb went on.</p><p>They migrated from <strong>Next.js</strong> to <strong>Vite + TanStack</strong> <strong>Router</strong>, and that made a lot of sense to me.</p><p><strong>Next.js</strong> was the <strong>bottleneck</strong> in their project. They were saying build times went beyond 10 minutes, and a big part of that was just Next.js stuck on</p><blockquote><strong>“finalizing page optimization.”</strong></blockquote><p>For a team shipping multiple times a day, that’s a huge tax on every iteration.</p><p>What clicked for me is that their product is heavily client-side and real-time, just like mine in many ways.</p><p>That’s why I gave it a try.</p><h3>So I tried it</h3><p>So I <strong>migrated</strong> the whole app around <strong>30 routes</strong>.</p><p>First thing I checked again: <strong>Cloudflare deployment</strong>. This time? Dead simple. No hacks, no custom build tools, nothing weird. <strong>It just works.</strong></p><p>Navigation became<strong> instant SPA</strong> feel during development. No more waiting for simple route changes.</p><p>And the build time? Went from ~<strong>10</strong> seconds to ~<strong>1.5</strong> seconds.</p><p>5x faster by switching the stack.</p><p>Notice the same pattern lol, <strong>Railway</strong> went from 10+ minutes to under 2, and I went from ~21 seconds to ~1.5 seconds.</p><p>This is the <strong>Next.js</strong> result</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6rmNQpH4iZuEdDaJnjpWkg.png" /><figcaption>Next.js build time</figcaption></figure><p>This Result of the Vite + Tanstack Start</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sRhAWdya2wHCmQbPPEAggQ.png" /><figcaption>Vite + Tanstack Start</figcaption></figure><h3>Simple comparison</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bmB_rqV0EXQ9ALp8V7F9bA.png" /><figcaption>Build time between Next.js and Vite + Tanstack Start</figcaption></figure><blockquote><em>the build time dropped significantly based on the comparison above.</em></blockquote><blockquote><em>That’s roughly a 5x–15x improvement depending on how you measure the full pipeline.</em></blockquote><p><em>note: the numbers may be different form different builds I did, but this is the average</em></p><h3>How I migrated it</h3><p>I started a new project instead of fighting the existing Next.js setup.</p><p>Then I moved things step by step:</p><ul><li>Copied pages into the new project and turned them into client-first components</li><li>Rebuilt routing using TanStack Router</li><li>Replaced Next.js-specific stuff like next/image with normal &lt;img&gt;</li><li>Removed anything framework-specific.</li></ul><p>If you’re starting fresh, just go with:</p><ul><li><strong>TanStack Start</strong> if you want a full meta framework</li><li><strong>React + Vite</strong> or <strong>TanStack Router + Vite</strong> if you want something lighter and you sure you don’t care about SSG.</li></ul><p>If you already have a Next.js app, Start a new project and move things gradually. It’s way less painful, TanStack’s tooling helps a lot, they have a Claude skill to speed up some of the repetitive parts.</p><h3>Conclusion</h3><p>We as developers and users deserve more freedom from unnecessary coupling.</p><p>Fast, flexible technology not ecosystems that slowly become <strong>closed</strong> around specific patterns.</p><p>There is always another way. We just need to<strong> stop accepting defaults</strong> without question.</p><p><strong>Big thanks to the TanStack team</strong> for building something that feels modern and <strong>open</strong>.</p><p>feel free to reach out on <a href="https://www.linkedin.com/in/ahmadgmustafa">LinkedIn</a></p><p><strong>Good luck and happy building</strong>, think less server-first, more client-first.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7cdc61c131d3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Code Reviews Simplify Your Life]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@ahmad.g.mustafa/code-reviews-simplify-your-life-7612bfa63620?source=rss-13bd8e8c0e00------2"><img src="https://cdn-images-1.medium.com/max/1200/1*BJdZAFRygsj_LIj-UQVV4w.png" width="1200"></a></p><p class="medium-feed-snippet">If you are new to the dev world or working with juniors, I get it&#x200A;&#x2014;&#x200A;things can get intense sometimes, but don&#x2019;t worry, I&#x2019;ve got your back&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@ahmad.g.mustafa/code-reviews-simplify-your-life-7612bfa63620?source=rss-13bd8e8c0e00------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@ahmad.g.mustafa/code-reviews-simplify-your-life-7612bfa63620?source=rss-13bd8e8c0e00------2</link>
            <guid isPermaLink="false">https://medium.com/p/7612bfa63620</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[beginner]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Ahmed Gamal]]></dc:creator>
            <pubDate>Wed, 11 Sep 2024 14:34:17 GMT</pubDate>
            <atom:updated>2024-09-11T14:34:17.768Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Building Successful Products with the Right Approach]]></title>
            <link>https://medium.com/@ahmad.g.mustafa/building-successful-products-with-the-right-approach-e0b78ee6e1d3?source=rss-13bd8e8c0e00------2</link>
            <guid isPermaLink="false">https://medium.com/p/e0b78ee6e1d3</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[work]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[philosophy]]></category>
            <category><![CDATA[leadership]]></category>
            <dc:creator><![CDATA[Ahmed Gamal]]></dc:creator>
            <pubDate>Thu, 20 Jun 2024 20:51:53 GMT</pubDate>
            <atom:updated>2024-07-03T13:49:15.267Z</atom:updated>
            <content:encoded><![CDATA[<p>Lessons Learned from Startup Experiences</p><h3><strong>Do You Really Understand Agile?</strong></h3><p>You’ve heard the word “agile” hundreds of times, but do you really understand its meaning? You might consider “Agile” or “Lean” buzzwords, but they simply advocate for launching your product as quickly as possible. It’s logical: don’t scale before validating your features.</p><h3><strong>My definition of agile (or lean methods) is:</strong></h3><p>Staying close to your customers to solve their pain points.</p><h3>Stay Close to Your Customers</h3><p>Staying far from your customers is dangerous for your product because you’ll make assumptions without validating them, leading to project failure. Even if you want to fail fast, do more iterations with your customers to understand the real pain that needs solving. If you succeed in understanding this, you can address it with your software.</p><p>Software isn’t about adding features and assuming users will like it because it has many features. Your customer can use your software even if it has only one main feature, as long as it addresses their pain.</p><h3><strong>Evaluating Your Agile Methodology: Are You Truly Agile?</strong></h3><p>Reflect on your agile methodology to ensure it aligns with agile principles:</p><ul><li>If your product launch timeline exceeds expectations, question whether your process truly reflects agile practices.</li><li>Long delays in launching may indicate a shift towards waterfall methodologies, impacting your ability to validate features promptly.</li><li>Imagine the implications of delaying product release by years — valuable opportunities for feedback and validation could be lost.</li></ul><h3><strong>What to do if you’re launching a new corporate product?</strong></h3><p>Launching a new corporate product requires a mindset shift away from traditional corporate norms. Instead, treat your product launch like a startup endeavor guided by agile principles: iterate quickly based on feedback. This advice is essential for founders, co-founders, and managers navigating the complexities of product launches.</p><p>Failing fast is a strategic advantage, saving valuable resources and allowing for timely pivots toward solutions that truly address market needs. Avoid the common trap of adding features based on assumptions rather than validated user feedback. Remember, user validation isn’t just about positive feedback — it’s about users who are willing to pay for your product</p><h3>One more thing:</h3><p>Your team is crucial. Choose them carefully. The right team makes it easier for your product to succeed. Don’t start with juniors only. The software industry is complex; having senior developers along with juniors is vital. The same applies to your sales team — balance between experienced sales reps and juniors.</p><h3>Summary:</h3><p>Based on my experience with two startups, here are my key takeaways:<br>1. Do agile the right way.<br>2. Don’t start your software development and sales teams with only juniors — include seniors and mid-level professionals.</p><p>Thanks for reading, I hope you found it useful.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e0b78ee6e1d3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Upgrade to Angular 16 step by step]]></title>
            <link>https://medium.com/@ahmad.g.mustafa/upgrade-to-angular-16-step-by-step-e23d2963a2a8?source=rss-13bd8e8c0e00------2</link>
            <guid isPermaLink="false">https://medium.com/p/e23d2963a2a8</guid>
            <dc:creator><![CDATA[Ahmed Gamal]]></dc:creator>
            <pubDate>Tue, 25 Jul 2023 07:20:06 GMT</pubDate>
            <atom:updated>2023-07-25T07:20:06.857Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Angular 16 was released on 03 May 2023</em></p><p>Today, I’m planning to give you an idea how to upgrade to Angular v 16.</p><blockquote><em>Before starting If you are using any angular versions before 13.3.x that means your angular version is no longer under long-term support (LTS)</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AvTXKy1LPBccZmJTnKYLPg.png" /><figcaption><strong>This table is important for you to understand the </strong><a href="https://angular.io/guide/versions"><strong>Angular — Version compatibility</strong></a></figcaption></figure><p><strong>Before starting:</strong></p><p>Consult the Angular Update Guide: Visit the official Angular Update Guide provided by the Angular team[<a href="https://update.angular.io/">1</a>]. This guide is a valuable resource that outlines the specific steps and considerations for upgrading your Angular version.</p><p>It is advisable to avoid upgrading directly from a lower version to Angular 16. Instead, it is recommended to first upgrade to version 15, and then proceed with upgrading from version 15 to version 16.</p><h3>First Step</h3><p>Update npm Packages: Most Angular projects use npm (Node Package Manager) for package management. <br>Update to the latest version of npm with the following command:</p><pre>npm install -g npm@latest</pre><p>Make sure that you are using a supported version of node.js before upgrading your application.</p><blockquote>Angular v16 supports node.js versions: v16 and v18.</blockquote><p>Make sure that you are using a supported version of <a href="https://www.npmjs.com/package/typescript?activeTab=versions">TypeScript</a> before you upgrade your application.</p><blockquote>Angular v16 supports TypeScript version 4.9.3 or later.</blockquote><h3>Second Step (upgrade angular cli, core and cdk)</h3><p>To have Angular 16 you need to upgrade @angular/cli and @angular/core</p><p>Updating multiple major versions of ‘<a href="http://twitter.com/angular/cli">@angular/cli</a>’ at once is not supported. Please migrate each major version individually.<br>Run ‘ng update <a href="http://twitter.com/angular/cli">@angular/cli</a>@15’ in your workspace directory to update to latest ‘15.x’ version of ‘<a href="http://twitter.com/angular/cli">@angular/cli</a>’.</p><pre>ng update @angular/cli@15 @angular/core@15</pre><pre>ng update @angular/cli @angular/core @angular/cdk <br></pre><pre><br>ng version </pre><p>You should see the Angular CLI: 16.x.x</p><p>If you have successfully installed @angular/cli, you can disregard this step. However, if you encounter any difficulties, please proceed with this step.</p><p>Remove angular/cli:</p><pre>npm uninstall -g @angular/cli</pre><p>Install Angular CLI:</p><pre>npm install -g @angular/cli</pre><pre>ng version</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/845/1*Ow9E_RCI6ZDiKqXlDFoEhA.png" /></figure><h3>Third Step</h3><p>remove unwanted code in the <strong>test.ts</strong> if it’s not removed automatically</p><h3>Fourth Step (final step)</h3><p>Delete the <strong>node_modules</strong> and the <strong>package-lock.json</strong> then</p><pre>ng update</pre><pre>npm install</pre><pre>ng serve</pre><p>Congratulations 🏌️‍♂️ now you are using the latest version of angular</p><p>What advantages does this offer?</p><ul><li>Signals can now be utilized</li><li>Hydration, Angular, no longer re-renders the application from scratch. Instead, the framework looks up existing DOM nodes while building internal data structures and attaches event listeners to those nodes.</li><li>Enhanced Angular Packages: The Angular packages have undergone updates, resulting in the removal of FESM2015 and the adoption of the updated ECMAScript standard from 2020 to 2022.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e23d2963a2a8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My VS Code Daily Work Essentials]]></title>
            <link>https://medium.com/@ahmad.g.mustafa/vs-code-essential-for-my-daily-work-6ab126782635?source=rss-13bd8e8c0e00------2</link>
            <guid isPermaLink="false">https://medium.com/p/6ab126782635</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[vscode]]></category>
            <category><![CDATA[vscode-extension]]></category>
            <category><![CDATA[ide]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Ahmed Gamal]]></dc:creator>
            <pubDate>Fri, 27 Jan 2023 19:07:24 GMT</pubDate>
            <atom:updated>2023-05-13T22:23:19.009Z</atom:updated>
            <content:encoded><![CDATA[<h4>My Favorite Extensions</h4><h4>- <a href="https://marketplace.visualstudio.com/items?itemName=mhutchie.git-graph">Git Graph </a>💹</h4><p>This extension is truly amazing, I use it before I start working to double-check with the latest changes and branches, you can switch easily between branches and commits.</p><h4>- <a href="https://marketplace.visualstudio.com/items?itemName=softwaredotcom.music-time">Music Time for Spotify</a> 🎻</h4><p>now it’s time to listen to music, you can connect your Spotify account easily you can switch between songs and see your playlist inside vs code, you don’t need to switch to the Spotify tab or program every time.</p><h4>- <a href="https://marketplace.visualstudio.com/items?itemName=tungvn.tomato-timer">Tomato timer</a> 🍅</h4><p>I believe to be more focused you should have your own philosophy, I like the Pomodoro technique which is working for 25 minutes and then 5-minute break to give your mind a space to relax, your mind works better in the relaxation time, that’s the answer why you are getting a lot of idea in the shower, also I believe Pomodoro works fine in small tasks only, you need to take chunks of time per day to finish hard tasks, give yourself 60 to 90 minutes per chunk to keep the focus momentum up.</p><h4>- Auto Rename Tag 👩‍💻</h4><p>Changing tags in HTML is a headache, no more tedious and boring task of manually updating each tag, this extension will save you so much time and effort.</p><h4>- <a href="https://marketplace.visualstudio.com/items?itemName=streetsidesoftware.code-spell-checker">Spells Checker</a> 🔍</h4><p>I like this one because it’s caught common spelling errors inside variables&#39; names also, sometimes you are missing a character this extension can detect all.</p><h4><a href="https://marketplace.visualstudio.com/items?itemName=wix.vscode-import-cost">- Import Cost</a> 🎛🛂</h4><p>Shows you the size of an imported 3rd party library the moment you import it, by using this extension your bundle size is under control.</p><h4>- <a href="https://marketplace.visualstudio.com/items?itemName=GitHub.copilot">Copilot</a> 👨‍✈️</h4><p>Impressive extension, it’s powered by AI, you can write a comment and it shows code directly in the editor, give it a try if you didn’t.</p><h4>- <a href="https://marketplace.visualstudio.com/items?itemName=naumovs.color-highlight">Color Highlight</a> 🐧</h4><p>working with colors in CSS without knowing which color you are using is a bit strange, this extension can display the color inside the editor directly behind the hexa code, a must-have for anyone who coding CSS.</p><h4>- <a href="https://marketplace.visualstudio.com/items?itemName=tonybaloney.vscode-pets">vscode-pets</a> 😸</h4><p>The last one is just for fun, it’s a cat or dog playing on your screen</p><h3>Summary</h3><p>Yo, stay focused in VSCode without hopping around like a kangaroo, stay in one spot, one source of truth.</p><p><em>❤ I hope you like it, if you want me to write more, please send me, please share your favorite vscode extensions in the comments ❤</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6ab126782635" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>