<?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 Mohammed Tawfeq Amiri on Medium]]></title>
        <description><![CDATA[Stories by Mohammed Tawfeq Amiri on Medium]]></description>
        <link>https://medium.com/@mahmmedtawfeqamirie?source=rss-109467f7881e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*i6kXRlxymYm2TZC40f-eXg.png</url>
            <title>Stories by Mohammed Tawfeq Amiri on Medium</title>
            <link>https://medium.com/@mahmmedtawfeqamirie?source=rss-109467f7881e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 12:27:04 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mahmmedtawfeqamirie/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[Zone.js in Angular: Deep Dive into Its Evolution (Angular 16–19)]]></title>
            <link>https://medium.com/@mahmmedtawfeqamirie/zone-js-in-angular-deep-dive-into-its-evolution-angular-16-19-22d2f9eb7e07?source=rss-109467f7881e------2</link>
            <guid isPermaLink="false">https://medium.com/p/22d2f9eb7e07</guid>
            <dc:creator><![CDATA[Mohammed Tawfeq Amiri]]></dc:creator>
            <pubDate>Sun, 02 Mar 2025 14:48:38 GMT</pubDate>
            <atom:updated>2025-03-02T14:48:38.187Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Zone.js</strong> has been a fundamental part of Angular’s <strong>Change Detection</strong> mechanism, allowing the framework to track and respond to asynchronous operations. It patches JavaScript’s asynchronous APIs, such as:</p><ul><li>setTimeout</li><li>setInterval</li><li>Promise</li><li>XHR</li></ul><p>This allows Angular to automatically trigger updates to the <strong>DOM</strong> without requiring manual calls to detectChanges().</p><p>However, with Angular 16–19, <strong>Angular has significantly reduced its reliance on Zone.js, introducing new ways to handle change detection that improve performance and flexibility.</strong></p><h3>🔹 How Does Zone.js Work?</h3><h3>🔍 The Core Concept</h3><p>JavaScript does not inherently track when asynchronous operations complete. <strong>Zone.js solves this problem</strong> by intercepting these operations and notifying Angular when changes occur.</p><h4>🔧 The Internal Mechanism</h4><p>1️⃣ <strong>Patching Asynchronous APIs</strong></p><ul><li>Whenever an async operation is performed (e.g., setTimeout), Zone.js creates a <strong>new zone</strong> to track that operation.</li><li>This zone records context information and ensures that Angular is notified when the operation completes.</li></ul><p>2️⃣ <strong>Executing Within a Zone</strong></p><ul><li>When the async task finishes, <strong>Zone.js triggers Angular’s Change Detection</strong>, ensuring the UI updates automatically.</li></ul><p>3️⃣ <strong>Managing Execution Contexts</strong></p><ul><li>Each operation runs in its own <strong>zone</strong>, making it easier for Angular to track changes and update only the affected parts of the application.</li></ul><h3>🛠️ Changes in Zone.js from Angular 16 to 19</h3><p>📌 <strong>With modern Angular updates, “Zone-Less Change Detection” has been introduced, making Zone.js optional and allowing developers more control over updates.</strong></p><h3>🔥 Angular 16 — Introducing Zone-Less Mode</h3><ul><li>Angular 16 officially introduced <strong>support for disabling Zone.js</strong>, allowing developers to manually trigger Change Detection using <strong>Signal-based Change Detection</strong>.</li><li>Zone.js can be disabled with:</li></ul><pre>bootstrapApplication(AppComponent, {<br>  providers: [{ provide: NgZone, useValue: &#39;noop&#39; }]<br>});</pre><p>🔹 By using noop, Zone.js is completely disabled, and developers must call markForCheck() manually.</p><h3>⚡ Angular 17 — Performance Enhancements &amp; Hybrid Mode</h3><ul><li><strong>Zone.js behavior was optimized</strong> to better handle <strong>Microtasks</strong> and <strong>Macrotasks</strong>.</li><li><strong>Hybrid Mode</strong> was introduced, allowing <strong>both Zone.js and Zone-Less detection to coexist in the same application.</strong></li></ul><p>📌 Developers can now use runOutsideAngular() to execute tasks without triggering Change Detection unnecessarily:</p><pre>this.ngZone.runOutsideAngular(() =&gt; {<br>  setTimeout(() =&gt; {<br>    console.log(&#39;Executed outside Angular Zone&#39;);<br>  }, 1000);<br>});</pre><p>🔥 This reduces unnecessary Change Detection calls and improves performance.</p><h3>🚀 Angular 18 — Deep Integration with Signals</h3><ul><li><strong>Signal-based Change Detection</strong> was introduced as a <strong>better alternative to Zone.js</strong>.</li><li>Angular can now update the UI <strong>without Zone.js</strong>, as it tracks changes reactively.</li><li>computed() and effect() functions allow for more intelligent updates.</li></ul><p>Example using Signals:</p><pre>import { signal, computed, effect } from &#39;@angular/core&#39;;<br><br>const count = signal(0);<br>const doubleCount = computed(() =&gt; count() * 2);<br><br>effect(() =&gt; {<br>  console.log(`Count updated: ${count()}`);<br>});<br><br>count.set(5); // Updates automatically without Zone.js</pre><h3>🚀 Angular 19 — The End of Zone.js Dependency</h3><ul><li><strong>Signals became the default change detection system</strong>, making <strong>Zone.js fully optional</strong>.</li><li>Full support for <strong>Standalone Components</strong> without requiring NgZone.</li><li><strong>Major performance improvements in hydration for Server-Side Rendering (SSR)</strong>.</li></ul><h3>🎯 Should You Still Use Zone.js?</h3><p>✅ <strong>Yes</strong>, if working with legacy projects.<br>✅ <strong>No</strong>, if starting a new project — <strong>Signal-based Change Detection is now the better approach</strong>.</p><p>🔹 <strong>In summary, Zone.js was once essential to Angular, but the latest updates make it unnecessary, improving performance and offering better control.</strong></p><p>⚡ <strong>Are you still using Zone.js in your projects? Let’s discuss in the comments!</strong> 🚀</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=22d2f9eb7e07" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Revolutionize Your Responsive Web Design Testing with Responsively]]></title>
            <link>https://medium.com/@mahmmedtawfeqamirie/revolutionize-your-responsive-web-design-testing-with-responsively-4ca72d4a85e0?source=rss-109467f7881e------2</link>
            <guid isPermaLink="false">https://medium.com/p/4ca72d4a85e0</guid>
            <category><![CDATA[web-developer]]></category>
            <category><![CDATA[web-applications]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[responsive-web-design]]></category>
            <category><![CDATA[responsive-design]]></category>
            <dc:creator><![CDATA[Mohammed Tawfeq Amiri]]></dc:creator>
            <pubDate>Thu, 28 Sep 2023 05:49:05 GMT</pubDate>
            <atom:updated>2023-09-28T05:49:05.213Z</atom:updated>
            <content:encoded><![CDATA[<p>As a 🅰 frontend developer, I have often faced the challenge of testing the responsiveness of my web applications.<br>Despite using various browsers, I found it difficult to ensure that my sites were optimized for multiple devices. However, today I stumbled upon a program that has proven to be a game-changer in this regard.</p><h4><strong>Responsively is an open source browser, based on Electron which helps you test your sites for multiple devices. 💻 📱<br>test responsive designs on target screens side-by-side.<br>Includes Development Tools, click/scroll mirroring &amp; batch screenshot export. 💪</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jBMPiaBVZAaEZBYIzdaDWA.png" /><figcaption>screens side-by-side</figcaption></figure><p>Responsively comes with a large collection of device profiles out of the box. You can also add your own custom devices.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ALMAZSp9fWyXn12-7_OBpg.png" /><figcaption>extensive Device Profiles</figcaption></figure><p>Experience Seamless Website Testing Across Multiple Devices and Resolutions with Responsively — Now with the Power to Inspect Elements and Open Development Tools Like a Pro!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/399/1*_elXb4VxKxD02PoXt9BSfg.png" /><figcaption>Inspect Elements</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qRglurnSm76xGSUtb06jMA.png" /><figcaption>Development Tools</figcaption></figure><h4>You can see how your web app looks on different devices.<br>It’s super useful, and more than that, it is <strong>FREE</strong>. 🔥 🚒</h4><p><strong>website</strong>: <a href="https://responsively.app/">Responsively</a></p><p>Download Link <strong>Windows:</strong> <a href="https://github.com/responsively-org/responsively-app-releases/releases/download/v1.8.0/ResponsivelyApp-Setup-1.8.0.exe">ResponsivelyApp-Setup-1.8.0</a>.exe</p><p>Download Link <strong>Linux</strong>: <a href="https://github.com/responsively-org/responsively-app-releases/releases/download/v1.8.0/ResponsivelyApp-1.8.0.AppImage">ResponsivelyApp-Setup-1.8.0</a>.AppImage</p><p>Download Link <a href="https://github.com/responsively-org/responsively-app-releases/releases/download/v1.8.0/ResponsivelyApp-1.8.0.dmg"><strong>Mac (Intel)</strong></a><strong>: </strong><a href="https://github.com/responsively-org/responsively-app-releases/releases/download/v1.8.0/ResponsivelyApp-1.8.0.dmg">ResponsivelyApp-Setup-1.8.0</a>.dgm</p><p>Download Link <a href="https://github.com/responsively-org/responsively-app-releases/releases/download/v1.8.0/ResponsivelyApp-1.8.0.dmg"><strong>Mac (Apple Silicon)</strong></a><strong>: </strong><a href="https://github.com/responsively-org/responsively-app-releases/releases/download/v1.8.0/ResponsivelyApp-1.8.0-arm64.dmg">ResponsivelyApp-Setup-1.8.0-arm64.dgm</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4ca72d4a85e0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>