<?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 Yogesh Shrivastav on Medium]]></title>
        <description><![CDATA[Stories by Yogesh Shrivastav on Medium]]></description>
        <link>https://medium.com/@yogeshkumar_2293?source=rss-a7a5cda60fcd------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*xIkMiigXVqOK8QmYBdSi9g.jpeg</url>
            <title>Stories by Yogesh Shrivastav on Medium</title>
            <link>https://medium.com/@yogeshkumar_2293?source=rss-a7a5cda60fcd------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 05:42:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@yogeshkumar_2293/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[Understanding Micro Frontend Architecture with Angular]]></title>
            <link>https://medium.com/@yogeshkumar_2293/understanding-micro-frontend-architecture-with-angular-43914182b0da?source=rss-a7a5cda60fcd------2</link>
            <guid isPermaLink="false">https://medium.com/p/43914182b0da</guid>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[micro-front-end]]></category>
            <category><![CDATA[software-architecture]]></category>
            <dc:creator><![CDATA[Yogesh Shrivastav]]></dc:creator>
            <pubDate>Mon, 25 May 2026 13:25:10 GMT</pubDate>
            <atom:updated>2026-05-25T13:25:10.163Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi everyone,</p><p>Today, we are going to talk about <strong>Front-End Architecture</strong>, specifically the <strong>Micro Frontend (MFE) Architecture</strong>.</p><p>As we know, there are many architectural approaches used for developing modern web applications. However, in this blog, we will mainly focus on how Micro Frontends help in combining multiple applications into a single platform.</p><h4>The Problem Statement</h4><p>While working on one of my projects, I came across an interesting requirement from my senior:</p><blockquote><em>“We have three separate web applications, and we want users to access all three from a single landing page. We don’t want users to visit three different domains to use the applications.”</em></blockquote><p>This requirement pushed us to look for a scalable and maintainable solution — and that’s where Micro Frontend Architecture came into the picture.</p><h4>What is Micro Frontend Architecture?</h4><p>A <strong>Micro Frontend</strong> is an architectural style where a frontend application is divided into smaller independent applications that work together as a single application.</p><p>It allows teams to:</p><ul><li>Develop applications independently</li><li>Deploy features separately</li><li>Use different technologies if needed</li><li>Scale large applications more efficiently</li></ul><p>In a typical MFE setup, we usually have:</p><h4>1. Host Application</h4><p>The <strong>Host App</strong> acts as the main container or shell application. It provides the entry point and manages all remote applications.</p><h4>2. Remote Applications</h4><p>These are independent applications or modules that are consumed inside the Host App.</p><p>Think of it like this:</p><ul><li><strong>Host App</strong> → Container</li><li><strong>Remote Apps</strong> → Individual components/modules inside the container</li></ul><h4>Monorepo Strategy</h4><p>Before moving forward, there’s one more important concept to understand:</p><h4>Monorepo</h4><p>A <strong>Monorepo</strong> is a software development strategy where all applications and shared libraries are maintained inside a single Git repository.</p><p>In Micro Frontend architecture, using a Monorepo is highly beneficial because multiple applications often share common dependencies, components, utilities, and configurations. Managing all applications within a single repository makes development, collaboration, and maintenance much easier.</p><p>Instead of maintaining separate repositories for every application, the Monorepo approach allows teams to manage the complete codebase from one centralized location.</p><p>Benefits include:</p><ul><li>Easier dependency management</li><li>Shared code reuse</li><li>Better collaboration between teams</li><li>Simplified CI/CD pipelines</li></ul><h4>Implementing Micro Frontends in Angular</h4><p>In my use case, all three applications were built using Angular.</p><p>We implemented Micro Frontends using <strong>Module Federation</strong>.</p><h4>Step 1: Create Applications</h4><p>Create the Host Application</p><pre>ng new host-app</pre><p>Create the Remote Application</p><pre>ng new remote-app // This step is optional if you already have existing applications.</pre><h4>Step 2: Configure Module Federation</h4><p>We need to define which application will act as the <strong>Host</strong> and which ones will act as <strong>Remote Apps</strong>.</p><h4>Configure the Host App</h4><p>Run the following command:</p><pre>ng add @angular-architects/module-federation --project host-app --type host</pre><h4>Configure the Remote App</h4><p>Run this command inside every remote application:</p><pre>ng add @angular-architects/module-federation --project remote-app --type remote</pre><p>After running these commands, a webpack.config.js file will be generated inside your application.</p><h4>Step 3: <em>Expose Modules from the Remote App</em></h4><p>Now we need to expose the modules/components that should be accessible from the Host App.</p><p>Suppose we have a ProductModule inside the remote application.</p><h4>Remote App — webpack.config.js</h4><pre>module.exports = {<br>  name: &quot;remoteApp&quot;,<br>  exposes: {<br>    &#39;./ProductModule&#39;: &#39;./src/app/product/product.module.ts&#39;,<br>  },<br>};</pre><h4>Important Note</h4><p>Once the module is exposed, it becomes accessible through remoteEntry.js at runtime.</p><h4>Step 4: Consume Remote Modules in Host App</h4><p>Inside the Host App’s webpack.config.js, configure the remote application URL.</p><h4>Host App — webpack.config.js</h4><pre>remotes: {<br>  &quot;remoteApp&quot;: &quot;http://localhost:4201/remoteEntry.js&quot;,<br>},</pre><p>Here:</p><ul><li>4201 is the port where the remote application is running.</li><li>remoteEntry.js is generated automatically by Module Federation.</li></ul><p>You can verify whether the remote app is configured correctly by opening:</p><pre>http://localhost:4201/remoteEntry.js</pre><p>If the file loads successfully, your configuration is working correctly.</p><h4>Step 5: Configure Routes in Host App</h4><p>Once everything is connected, you can load remote modules directly inside your Host App routes.</p><p>Example:</p><pre>{<br>  path: &#39;products&#39;,<br>  loadChildren: () =&gt;<br>    import(&#39;remoteApp/ProductModule&#39;).then(m =&gt; m.ProductModule)<br>}</pre><p>This allows the Host Application to dynamically load modules from the Remote Application.</p><h4>Step 6: Run the Applications</h4><p>In my case, I used the following commands:</p><h4>Run Remote App</h4><pre>ng serve remote-app --port 4201</pre><h4>Run Host App</h4><pre>ng serve host-app --port 4200</pre><p>And that’s it — your Micro Frontend architecture is ready 🚀</p><h4>Can We Use Different Technologies?</h4><p>Absolutely!</p><p>In my case, all applications were built using Angular, but Micro Frontends also support applications built with:</p><ul><li>React</li><li>Vue.js</li><li>Next.js</li><li>Angular</li><li>And many more</li></ul><p>This makes Micro Frontends highly flexible for large-scale enterprise applications.</p><h4>Final Thoughts</h4><p>Micro Frontend Architecture is a powerful approach for scaling frontend applications, especially when multiple teams are working on different modules independently.</p><p>It improves:</p><ul><li>Scalability</li><li>Team autonomy</li><li>Deployment flexibility</li><li>Maintainability</li></ul><p>If you are working on large enterprise applications or multi-team projects, Micro Frontends can be a great architectural choice.</p><p>Please feel free to share your thoughts, suggestions, or experiences with Micro Frontends in the comments.</p><p>Happy Coding ❤️</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=43914182b0da" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why AI Will Assist Frontend Developers — Not Replace Them]]></title>
            <link>https://medium.com/@yogeshkumar_2293/why-ai-will-assist-frontend-developers-not-replace-them-c1c8f31a894f?source=rss-a7a5cda60fcd------2</link>
            <guid isPermaLink="false">https://medium.com/p/c1c8f31a894f</guid>
            <category><![CDATA[frontend]]></category>
            <category><![CDATA[cursor-ide]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[assistance]]></category>
            <dc:creator><![CDATA[Yogesh Shrivastav]]></dc:creator>
            <pubDate>Tue, 19 May 2026 10:20:28 GMT</pubDate>
            <atom:updated>2026-05-19T10:20:28.121Z</atom:updated>
            <content:encoded><![CDATA[<p>Artificial Intelligence has become one of the most talked-about technologies in recent years. From content generation to software development, AI tools are rapidly changing the way we work. One of the biggest discussions in the tech industry today is whether AI will replace developers in the future.</p><p>As a frontend developer, my perspective is different. I believe AI can significantly improve productivity, but it still cannot fully replace the creativity, decision-making, and practical problem-solving abilities of UI developers.</p><p>Recently, I had the opportunity to work with Cursor AI, and the experience gave me a balanced understanding of both the strengths and limitations of AI-assisted development.</p><h3>My Experience Using Cursor AI</h3><p>While working on a project, I was assigned the task of building a Chrome extension. Instead of starting manually, I decided to use Cursor AI to speed up the process.</p><p>At first, the experience felt impressive and highly efficient. The workflow was simple:</p><ul><li>Write a prompt</li><li>Let the AI generate the code</li><li>Continue building features faster</li></ul><p>For the initial setup, Cursor performed quite well. It even helped me understand new concepts related to Chrome extension development in JavaScript. For beginners or developers exploring new technologies, this kind of assistance can be genuinely useful.</p><p>However, the challenges started appearing when I needed to make custom changes to the generated code.</p><h3>The Biggest Challenge: Understanding AI-Generated Structure</h3><p>One issue I repeatedly faced was that AI-generated projects often became unnecessarily complex.</p><p>For example, I needed to create a simple JWT token from an array. The requirement itself was straightforward:</p><ol><li>Import a JWT library</li><li>Pass the required payload and parameters</li><li>Generate the token</li></ol><p>Instead of generating a clean and direct implementation, Cursor created multiple files and configurations for different environments such as:</p><ul><li>Development</li><li>QA</li><li>Production</li></ul><p>In total, it generated nearly ten files for a task that could have been completed in just a few lines of code.</p><p>The real challenge was not writing the logic — I already knew what needed to be done. The problem was identifying <em>where</em> to make the changes inside the AI-generated structure.</p><p>Eventually, I deleted most of the generated files and implemented the functionality manually.</p><p>This made me realise an important point:</p><blockquote><em>AI can generate code quickly, but it does not always generate the </em>right level of complexity<em> for your actual requirement.</em></blockquote><h3>AI Works Better for New Projects Than Existing Codebases</h3><p>Another interesting experience came while redesigning the dashboard of one of my web applications.</p><p>I wanted to improve the overall look and feel of the UI, so I asked Cursor AI to handle the changes. Instead of updating the existing components efficiently, it started creating additional unnecessary files and restructuring parts of the project that did not need modification.</p><p>To avoid damaging the main codebase, I tried a second approach:</p><ul><li>Let Cursor generate the UI changes in a separate folder</li><li>Manually copy the useful parts into the main project</li></ul><p>Although this approach was safer, the final output still did not fully match the UI design and user experience I had in mind. Once again, I ended up implementing most of the changes myself.</p><p>This experience highlighted another important limitation of AI tools:</p><blockquote><em>AI can generate generic interfaces, but achieving polished and production-ready UI still requires human creativity and precision.</em></blockquote><h3>Where AI Actually Helps Developers</h3><p>Despite these limitations, AI tools are still extremely valuable when used correctly.</p><p>Here are some areas where I believe AI genuinely helps frontend developers:</p><h3>1. Faster Project Initialisation</h3><p>AI can quickly generate boilerplate code, folder structures, and initial components.</p><h3>2. Learning New Technologies</h3><p>It can act as a real-time assistant while exploring unfamiliar frameworks, libraries, or APIs.</p><h3>3. Repetitive Tasks</h3><p>AI is useful for generating repetitive code patterns, utility functions, and standard configurations.</p><h3>4. Productivity Support</h3><p>It reduces the time spent on routine implementation work and allows developers to focus more on problem-solving.</p><h3>Where Human Developers Are Still Essential</h3><p>Frontend development is not only about writing code. It also involves:</p><ul><li>Understanding user experience</li><li>Making design decisions</li><li>Creating maintainable architectures</li><li>Optimising performance</li><li>Handling edge cases</li><li>Building scalable and reusable systems</li></ul><p>These are areas where human judgment still plays a critical role.</p><p>AI can assist developers, but it currently lacks the contextual understanding and practical reasoning required for complex real-world applications.</p><h3>Final Thoughts</h3><p>AI-powered tools like Cursor AI are undoubtedly changing the software development landscape. They can improve productivity, accelerate learning, and simplify repetitive tasks. However, based on my personal experience, they are far more effective for creating new projects than modifying mature, existing codebases.</p><p>For developers, the best approach is not to fear AI but to learn how to use it effectively.</p><p>The future of frontend development is not about <strong>AI replacing developers</strong>.<br> It is more likely about <strong>developers who use AI replacing those who do not</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c1c8f31a894f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>