<?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 Deepak Kumar on Medium]]></title>
        <description><![CDATA[Stories by Deepak Kumar on Medium]]></description>
        <link>https://medium.com/@dk705047?source=rss-1607f61ec8a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*fngsHo7gj2xhrIc7</url>
            <title>Stories by Deepak Kumar on Medium</title>
            <link>https://medium.com/@dk705047?source=rss-1607f61ec8a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 23:57:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dk705047/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[Angular Performance: Strategies & Best Practices]]></title>
            <link>https://medium.com/@dk705047/angular-performance-strategies-best-practices-c9d298101dee?source=rss-1607f61ec8a------2</link>
            <guid isPermaLink="false">https://medium.com/p/c9d298101dee</guid>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[angular-19-new-features]]></category>
            <dc:creator><![CDATA[Deepak Kumar]]></dc:creator>
            <pubDate>Fri, 30 Jan 2026 06:00:07 GMT</pubDate>
            <atom:updated>2026-01-30T06:00:07.920Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oHlRIISP_yEQmo7YJfw7AA.png" /><figcaption>from AI</figcaption></figure><h3>1. Enable AOT (Ahead-of-Time) Compilation</h3><p>Ahead-of-Time (AOT) compilation converts Angular HTML and TypeScript code into efficient JavaScript during the build process instead of at runtime.</p><p><strong>Benefits:</strong></p><ul><li>Faster application startup</li><li>Smaller bundle size</li><li>Early detection of template errors</li><li>Improved security by removing the Angular compiler from production bundles</li></ul><p><strong>How to enable AOT:</strong><br> AOT is enabled by default for production builds using Angular CLI.</p><p>🔗 Reference:<br> <a href="https://angular.dev/tools/cli/aot-compiler">https://angular.dev/tools/cli/aot-compiler</a></p><h3>2. Lazy Loading Modules</h3><p>Lazy loading allows Angular to load feature modules only when they are required, rather than loading everything at application startup.</p><p><strong>Benefits:</strong></p><ul><li>Faster initial load time</li><li>Reduced main bundle size</li><li>Better user experience for large applications</li></ul><p><strong>Best Practice:</strong><br> Use lazy loading for feature modules via Angular Router to split your application into smaller, manageable chunks.</p><h3>3. Tree Shaking</h3><p>Tree shaking is a build optimization technique that removes unused code from the final bundle.</p><p><strong>Benefits:</strong></p><ul><li>Smaller JavaScript bundles</li><li>Improved load and execution time</li><li>Cleaner production builds</li></ul><p><strong>How Angular helps:</strong><br> Angular CLI and modern bundlers automatically perform tree shaking when you use ES modules and build in production mode.</p><h3>4. Webpack Bundle Analyzer</h3><p>Webpack Bundle Analyzer helps visualize the size of each dependency in your application bundle.</p><p><strong>Benefits:</strong></p><ul><li>Identify large or unused dependencies</li><li>Optimize bundle size</li><li>Improve loading performance</li></ul><p><strong>When to use:</strong><br> Use this tool when your application bundle becomes large or when performance issues appear after adding new libraries.</p><h3>Conclusion</h3><p>Optimizing Angular performance is not a one-time task but an ongoing process. By enabling AOT compilation, using lazy loading, leveraging tree shaking, and analyzing bundles, you can significantly improve your application’s speed and efficiency. Following these best practices ensures a smoother user experience and better scalability for enterprise-level Angular applications.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c9d298101dee" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Beyond the Basics: Advanced Angular Techniques for 2025]]></title>
            <link>https://medium.com/@dk705047/beyond-the-basics-advanced-angular-techniques-for-2025-2b3af84ebd4d?source=rss-1607f61ec8a------2</link>
            <guid isPermaLink="false">https://medium.com/p/2b3af84ebd4d</guid>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[angular-19]]></category>
            <category><![CDATA[angular-19-new-features]]></category>
            <dc:creator><![CDATA[Deepak Kumar]]></dc:creator>
            <pubDate>Fri, 04 Apr 2025 09:23:25 GMT</pubDate>
            <atom:updated>2025-04-04T09:30:18.611Z</atom:updated>
            <content:encoded><![CDATA[<p>Angular continues to be a powerhouse in frontend development, evolving with modern web demands. With Angular 19 now stable and new features like Signals, improved SSR, and a revamped control flow syntax, developers have more tools than ever to build performant, maintainable applications.</p><p>Angular 17+ updates (released November 2023)</p><p>New control flow syntax (<a href="http://twitter.com/if">@if</a>, <a href="http://twitter.com/for">@for</a>, <a href="http://twitter.com/switch">@switch</a>)</p><p>Deferrable views with <a href="http://twitter.com/defer">@defer</a></p><p>Signals becoming stable (alternative to RxJS for state management)</p><p>Hydration improvements</p><p>SSR and SSG enhancements</p><pre>// New control flow<br>@if (user.isActive) {<br> &lt;app-active-user [user]=&quot;user&quot; /&gt;<br>} @else {<br> &lt;app-inactive-user /&gt;<br>}</pre><h3>1. Angular’s Latest Core Features</h3><h3>🚀 Angular 19 Updates</h3><p>Angular 19 introduced game-changing features:</p><h4>✔ New Control Flow Syntax (@if, @for, @switch)</h4><p>Gone are the days of *ngIf and *ngFor! Angular now offers a more intuitive way:</p><pre>&lt;!-- Old way --&gt;<br>&lt;div *ngIf=&quot;isLoggedIn&quot;&gt;Welcome back!&lt;/div&gt;<br><br>&lt;!-- New way --&gt;<br>@if (isLoggedIn) {<br>  &lt;div&gt;Welcome back!&lt;/div&gt;<br>}</pre><p>Benefits:<br>✅ More readable templates<br>✅ Better type-checking<br>✅ No need for &lt;ng-container&gt; workarounds</p><h4>Deferrable Views (@defer for Lazy Loading)</h4><p>Load components only when needed:</p><pre>@defer (on viewport) {<br>  &lt;app-heavy-component /&gt;<br>} @placeholder {<br>  &lt;div&gt;Loading soon...&lt;/div&gt;<br>} @loading {<br>  &lt;div&gt;Loading...&lt;/div&gt;<br>}</pre><h4>Signals (A Modern Alternative to RxJS?)</h4><p>Signals provide a simpler way to manage reactive state:</p><pre>import { signal, computed } from &#39;@angular/core&#39;;<br><br>// Define a signal<br>const count = signal(0);<br><br>// Computed value<br>const doubleCount = computed(() =&gt; count() * 2);<br><br>// Update signal<br>count.set(5);</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2b3af84ebd4d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Build a WhatsApp Chat Application using Angular with sockjs-client and stompjs]]></title>
            <link>https://medium.com/@dk705047/how-to-build-a-whatsapp-chat-application-using-angular-with-sockjs-client-and-stompjs-d7b6a2f14952?source=rss-1607f61ec8a------2</link>
            <guid isPermaLink="false">https://medium.com/p/d7b6a2f14952</guid>
            <category><![CDATA[socketio]]></category>
            <category><![CDATA[angular-18]]></category>
            <category><![CDATA[websocket]]></category>
            <category><![CDATA[angular]]></category>
            <dc:creator><![CDATA[Deepak Kumar]]></dc:creator>
            <pubDate>Mon, 30 Sep 2024 04:06:59 GMT</pubDate>
            <atom:updated>2024-09-30T04:06:59.792Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>1. Introduction</strong><br>In this article, I’ll walk you through the steps of building a WhatsApp-like chat application using Angular, sockjs-client, and stompjs. We’ll create a real-time messaging app where users can send and receive messages instantly. This tutorial is designed for developers with some knowledge of Angular, WebSockets, and real-time communication.</p><blockquote><strong>2. Setting Up Angular Project<br> </strong>Step-by-step instructions:<br> npm install -g <a href="http://twitter.com/angular/cli">@angular/cli</a><br>ng new whatsapp-chat-app<br>cd whatsapp-chat-app</blockquote><p><strong>npm install sockjs-client stompjs — save</strong></p><pre>/* tslint:disable */<br>/* eslint-disable */<br><br>import { Injectable } from &#39;@angular/core&#39;;<br>import { Observable } from &#39;rxjs&#39;;<br>import * as SockJS from &#39;sockjs-client&#39;;<br>import * as Stomp from &#39;stompjs&#39;;<br>import { EnvService } from &#39;../env.service&#39;;<br><br>@Injectable({<br>  providedIn: &#39;root&#39;<br>})<br>export class WhatsAppWebSocketService {<br><br>  constructor(<br>    private env: EnvService<br>  ) { }<br><br>  private stompClient: any;<br>  private rootUrl: string = &quot;http://localhost:8080/whatsapp-backend&quot;;<br>  connectSocket(id: string, secretKey: string): Observable&lt;any&gt; {<br>    return new Observable(observer =&gt; {<br>      const socket = new SockJS(this.rootUrl + &#39;/ws&#39;);<br>      this.stompClient = Stomp.over(socket);<br>      this.stompClient.debug = () =&gt; { }; // Disable debug messages<br><br>      this.stompClient.connect({}, () =&gt; {<br>        this.stompClient.subscribe(`/queue/whatsapp` + id, message =&gt; {<br>          observer.next(JSON.parse(message.body));<br>        });<br><br>        this.stompClient.send(&#39;/actions&#39;, { secretKey: secretKey },<br>          JSON.stringify({ id: id, action: &#39;connected&#39; }));<br>      }, (error) =&gt; {<br>        observer.error(error);<br>      });<br>    });<br>  }<br><br>  isSocketConnected(): boolean {<br>    return this.stompClient &amp;&amp; this.stompClient.connected;<br>  }<br><br>  sendChat(request: any, secretKey: string): void {<br>    this.stompClient.send(&#39;/sendMessage&#39;, { secretKey: secretKey },<br>      JSON.stringify(request));<br>  }<br><br> <br>  disconnectSocket(id: string, secretKey: string): void {<br>    if (this.stompClient &amp;&amp; this.stompClient.connected) {<br>      this.stompClient.send(&#39;/actions&#39;, { secretKey: secretKey },<br>        JSON.stringify({ id: id, action: &#39;disConnect&#39; }));<br>      this.stompClient.disconnect(() =&gt; { });<br>    }<br>  }<br><br>}</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d7b6a2f14952" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[List of best code practice in angular]]></title>
            <link>https://medium.com/@dk705047/list-of-best-code-practice-in-angular-9b14f069710a?source=rss-1607f61ec8a------2</link>
            <guid isPermaLink="false">https://medium.com/p/9b14f069710a</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[angularjs]]></category>
            <category><![CDATA[codeing]]></category>
            <category><![CDATA[best-practices]]></category>
            <dc:creator><![CDATA[Deepak Kumar]]></dc:creator>
            <pubDate>Wed, 07 Feb 2024 08:06:25 GMT</pubDate>
            <atom:updated>2024-02-07T08:06:25.635Z</atom:updated>
            <content:encoded><![CDATA[<p>List of best code practice in angular</p><p>Angular best practices and coding standards looks comprehensive and covers many important aspects of building robust Angular applications. Here’s a breakdown of each point:</p><p>Consistent Folder Structure: Establishing a consistent folder structure is indeed crucial for code organization and collaboration.<br>Use Angular CLI: Leveraging Angular CLI streamlines the development process by providing convenient commands for project setup and code generation.<br>Modular Architecture: Breaking down applications into modular components promotes reusability and maintainability.<br>Meaningful Naming Conventions: Descriptive and consistent naming conventions improve code readability and maintainability.<br>Dependency Injection: Utilizing Angular’s dependency injection system enhances testability and modularization.<br>Use Reactive Forms: Reactive forms offer better control and validation over form inputs compared to template-driven forms.<br>Use TrackBy with NgFor: Using trackBy enhances performance by optimizing change detection in ngFor loops.<br>Minimize Use of &quot;any&quot; Type: Explicit typing improves type safety and prevents runtime errors.<br>Lazy Loading Modules: Lazy loading optimizes initial loading times by loading modules on-demand.<br>Avoid Direct DOM Manipulation: Leveraging Angular’s data binding and directives is preferred over direct DOM manipulation.<br>Optimize Angular Performance: Implementing change detection strategies and lazy loading helps optimize application performance.<br>Avoid Logic in Templates: Keeping templates clean and delegating logic to component classes improves maintainability.<br>Use Environment Variables: Angular’s environment configurations enable managing variables across different environments.<br>Use Lint Rules: Enforcing linting rules ensures code consistency and prevents common mistakes.<br>Break large components into small reusable components: Encouraging component reusability promotes maintainable and scalable codebases.<br>State Management: Implementing state management solutions helps manage complex application state transitions effectively.<br>Documentation in Code: Documenting code enhances readability and aids in onboarding new developers.<br>Use Route Guards on the Navigation: Route guards provide navigation control and security measures for Angular applications.<br>Keep Updating Angular Libraries: Regularly updating Angular libraries ensures access to new features and bug fixes.<br>Utilize RxJS Operators Effectively: Leveraging RxJS operators simplifies asynchronous operations and promotes cleaner code.<br>Write Unit Tests: Writing unit tests ensures code reliability and helps catch bugs early in the development process.<br>Reuse Components: Reusing components reduces duplication and improves consistency across the application.</p><p>Deepak Kumar</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9b14f069710a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to learn Angular:]]></title>
            <link>https://medium.com/@dk705047/how-to-learn-angular-2dca817cf997?source=rss-1607f61ec8a------2</link>
            <guid isPermaLink="false">https://medium.com/p/2dca817cf997</guid>
            <category><![CDATA[angular]]></category>
            <dc:creator><![CDATA[Deepak Kumar]]></dc:creator>
            <pubDate>Tue, 06 Sep 2022 06:16:27 GMT</pubDate>
            <atom:updated>2022-09-06T06:16:27.297Z</atom:updated>
            <content:encoded><![CDATA[<p>How to learn Angular:</p><p>First learn the basic concept</p><ol><li>HTML</li><li>CSS</li><li>Javascript</li><li>Typescript</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2dca817cf997" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>