<?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 Bhanusri Kokala on Medium]]></title>
        <description><![CDATA[Stories by Bhanusri Kokala on Medium]]></description>
        <link>https://medium.com/@444bhanusri?source=rss-fe6b47e12b06------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*pVdaITtP4t0Xoage.</url>
            <title>Stories by Bhanusri Kokala on Medium</title>
            <link>https://medium.com/@444bhanusri?source=rss-fe6b47e12b06------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 01:51:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@444bhanusri/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[Ivy in angular …..]]></title>
            <link>https://medium.com/@444bhanusri/in-angular-ivy-is-not-just-a-renderer-its-a-complete-rendering-and-compilation-pipeline-that-33c1b7b66aab?source=rss-fe6b47e12b06------2</link>
            <guid isPermaLink="false">https://medium.com/p/33c1b7b66aab</guid>
            <dc:creator><![CDATA[Bhanusri Kokala]]></dc:creator>
            <pubDate>Sun, 28 Jan 2024 18:15:26 GMT</pubDate>
            <atom:updated>2024-01-28T18:16:11.568Z</atom:updated>
            <content:encoded><![CDATA[<p>Ivy in angular …..</p><p>In Angular, Ivy is not just a renderer; it’s a complete rendering and compilation pipeline that transforms your Angular templates and TypeScript code into browser-readable JavaScript. However, its most notable feature is its improved rendering engine.</p><p>Here’s a simplified explanation of Ivy Renderer in Angular:</p><ol><li><strong>Rendering Engine:</strong> Ivy Renderer is the part of Angular responsible for turning your Angular templates into something the browser can understand and display. It takes your HTML templates, processes them, and creates the necessary instructions for the browser to render them correctly.</li><li><strong>Incremental DOM:</strong> One of the key features of Ivy is its use of Incremental DOM, which is a different approach to how Angular updates the DOM (Document Object Model) compared to its previous View Engine. Incremental DOM focuses on only updating the parts of the DOM that have changed, making updates more efficient.</li><li><strong>Tree Shaking and Optimizations:</strong> Ivy also brings improvements in terms of tree shaking and optimizations. Tree shaking is a process that removes unused code from your application, resulting in smaller bundle sizes and faster loading times. Ivy makes Angular applications more efficient by optimizing the generated code and removing unnecessary parts.</li><li><strong>Debugging and Tooling:</strong> Ivy enhances debugging and tooling capabilities in Angular. It provides better error messages and improved tooling support, making it easier for developers to understand and debug their applications.</li><li><strong>Improved Performance and Size:</strong> Overall, Ivy improves the performance and size of Angular applications. It reduces the size of generated code, which leads to faster loading times for users. Additionally, the incremental DOM approach and other optimizations result in better runtime performance.</li></ol><p>In summary, Ivy Renderer is a significant improvement in Angular’s rendering engine, providing better performance, smaller bundle sizes, improved tooling, and enhanced developer experience. It’s an essential part of Angular’s evolution and is designed to make Angular applications faster, smaller, and easier to maintain.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=33c1b7b66aab" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[IRA and Roth IRA in simple terms]]></title>
            <link>https://medium.com/@444bhanusri/ira-and-roth-ira-in-simple-terms-3d87a66fde9c?source=rss-fe6b47e12b06------2</link>
            <guid isPermaLink="false">https://medium.com/p/3d87a66fde9c</guid>
            <category><![CDATA[finance]]></category>
            <dc:creator><![CDATA[Bhanusri Kokala]]></dc:creator>
            <pubDate>Wed, 26 Jul 2023 21:27:15 GMT</pubDate>
            <atom:updated>2023-07-26T21:27:15.562Z</atom:updated>
            <content:encoded><![CDATA[<p>IRA stands for Individual Retirement Account. It is a type of investment account that allows individuals to save and invest money for retirement while enjoying certain tax advantages. IRAs are offered by various financial institutions, such as banks, brokerages, and mutual fund companies. There are two main types of IRAs: Traditional IRA and Roth IRA.</p><p><strong>Traditional IRA:</strong></p><ul><li>Contributions: The contributions made to a Traditional IRA are often tax-deductible in the year they are made, meaning you can reduce your taxable income by the amount you contribute, potentially lowering your tax bill.</li><li>Tax Treatment: The investments within the Traditional IRA grow tax-deferred, meaning you won’t pay taxes on the earnings until you withdraw the money during retirement.</li><li>Withdrawals: When you make withdrawals during retirement, the money will be taxed as ordinary income based on your tax bracket at that time. Additionally, if you withdraw funds before reaching the age of 59½, you may face a 10% early withdrawal penalty, unless an exception applies.</li></ul><p><strong>Roth IRA:</strong></p><ul><li>Contributions: Roth IRA contributions are made with after-tax money, so you do not get an immediate tax deduction for contributing to a Roth IRA.</li><li>Tax Treatment: The major benefit of a Roth IRA is that the investments grow tax-free. When you withdraw funds during retirement, you won’t owe any taxes on the earnings or the contributions, as long as you meet certain requirements.</li><li>Withdrawals: To qualify for tax-free withdrawals, you must be at least 59½ years old and have held the Roth IRA for at least five years. The Roth IRA also offers more flexibility for early withdrawals, as you can usually withdraw your contributions penalty-free (not the earnings) at any time.</li></ul><p>Choosing between a Traditional IRA and a Roth IRA depends on your individual financial situation, current tax bracket, and your expectations about future tax rates. Both types of accounts have their unique advantages and can be valuable tools for retirement planning. It’s essential to consider your long-term financial goals and consult with a financial advisor to determine which IRA option is best suited for your needs.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3d87a66fde9c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Strategies to avoid memory leaks in an Angular application.]]></title>
            <link>https://medium.com/@444bhanusri/strategies-to-avoid-memory-leaks-in-an-angular-application-57f127e327e?source=rss-fe6b47e12b06------2</link>
            <guid isPermaLink="false">https://medium.com/p/57f127e327e</guid>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Bhanusri Kokala]]></dc:creator>
            <pubDate>Tue, 09 May 2023 15:35:19 GMT</pubDate>
            <atom:updated>2023-05-09T15:35:19.029Z</atom:updated>
            <content:encoded><![CDATA[<p>Angular applications are typically built on top of a powerful framework that allows for easy data binding and event handling, but they can also be vulnerable to memory leaks if not properly managed. Memory leaks occur when an application’s memory usage increases over time, eventually leading to crashes or other performance issues.</p><p>To avoid memory leaks in Angular applications, there are several strategies that developers can follow:</p><p><strong>Unsubscribing Observables:</strong></p><p>Observables are a fundamental part of Angular’s reactive programming model. However, if an observable is not unsubscribed when it is no longer needed, it can continue to listen for events and consume memory even after the component that created it has been destroyed. To prevent this, it is important to always unsubscribe from observables when they are no longer needed. One way to do this is by using the takeUntil operator in combination with a subject that is triggered when the component is destroyed.</p><p>Example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/811/1*f4kI8DJxI9dB0omBZCyUzA.png" /></figure><p><strong>Removing large HTML Template References</strong></p><p>Another common cause of memory leaks in Angular applications is referencing large HTML templates that are no longer needed. When a component is destroyed, Angular should automatically remove any references to the component’s HTML template. However, in some cases, this doesn’t happen automatically, which can cause memory leaks.</p><p>To avoid this, it’s important to manually remove any references to large HTML templates when a component is destroyed. Here’s an example of how to do this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/856/1*H6tHX3ksYMxoFOlqnVRGdA.png" /></figure><p><strong>Emptying Large Array Objects</strong></p><p>If an array object contains a large number of items, it can also lead to memory leaks if it is not properly managed. To prevent this, it is important to empty large array objects when they are no longer needed.</p><p><strong>Not Using Router State</strong></p><p>The router state can also lead to memory leaks if it is not properly managed. The router state contains information about the current route and any parameters that have been passed to it. If this information is not cleared when a component is destroyed, it can continue to consume memory even after the component has been destroyed. To prevent this, it is important to not use the router state unless it is absolutely necessary.</p><p><strong>Removing Unused Modules and Import Declarations</strong></p><p>It is important to remove any unused modules and import declarations from the application. Unused modules and imports can consume memory and slow down the application’s performance, even if they are not being used. To avoid this, it is recommended to remove any unused modules and import declarations. This can reduce the amount of memory required to load your application and improve its performance.</p><p><strong>Clearing session and local storage data:</strong></p><p>One common cause of memory leaks is storing data in session or local storage that is no longer needed. Over time, this can cause memory usage to increase, as the application continues to hold onto data that is no longer useful. To avoid this, it’s important to periodically clear out session and local storage data that is no longer needed.</p><p><strong>Close timeouts:</strong></p><p>Another potential source of memory leaks in Angular applications is the use of setTimeout or setInterval. When these functions are used to create timers or animations, they can create memory leaks if they’re not properly cleared. To prevent this from happening, developers should clear all timeouts and intervals when they’re no longer needed.</p><p>Here’s an example of how to clear a timeout in Angular:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/490/1*ykfeUtXU4gP3ufLtRXKd-w.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=57f127e327e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Service worker to cache control]]></title>
            <link>https://medium.com/@444bhanusri/service-worker-to-cache-control-2a93cdcb3cfa?source=rss-fe6b47e12b06------2</link>
            <guid isPermaLink="false">https://medium.com/p/2a93cdcb3cfa</guid>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Bhanusri Kokala]]></dc:creator>
            <pubDate>Tue, 09 May 2023 15:30:15 GMT</pubDate>
            <atom:updated>2023-05-09T15:30:15.840Z</atom:updated>
            <content:encoded><![CDATA[<p>A Service Worker is a JavaScript file that runs in the background of a web page and can intercept network requests. Using a Service Worker, developers can implement caching strategies that improve the performance of web applications by reducing the number of requests made to the server and the time it takes to load the page. The cache control strategy determines how and when the Service Worker serves cached content.</p><p>There are several cache control strategies that can be used with a Service Worker, including:</p><ol><li><strong>Cache first, network fallback</strong>: This strategy involves serving the cached content first, and if the content is not available in the cache, the Service Worker fetches the content from the network.</li><li><strong>Network first, cache fallback</strong>: This strategy involves fetching the content from the network first, and if the network is not available, the Service Worker serves the content from the cache.</li><li><strong>Stale-while-revalidate:</strong> This strategy involves serving the cached content while the Service Worker fetches the updated content from the network in the background. The updated content is then stored in the cache for future requests.</li><li><strong>Cache-only:</strong> This strategy involves serving only the cached content, with no fallback to the network.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2a93cdcb3cfa" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>