<?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 Aniket Tiwari on Medium]]></title>
        <description><![CDATA[Stories by Aniket Tiwari on Medium]]></description>
        <link>https://medium.com/@anikettiwari23?source=rss-cbfdf5829d45------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*8IbEfEZWqs-84zuerQWGYA.jpeg</url>
            <title>Stories by Aniket Tiwari on Medium</title>
            <link>https://medium.com/@anikettiwari23?source=rss-cbfdf5829d45------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 14:19:56 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@anikettiwari23/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[Exploring App Configuration: Why It Matters and How It Differs from Key Vault]]></title>
            <link>https://anikettiwari23.medium.com/exploring-app-configuration-why-it-matters-and-how-it-differs-from-key-vault-6dd5a91c8bc8?source=rss-cbfdf5829d45------2</link>
            <guid isPermaLink="false">https://medium.com/p/6dd5a91c8bc8</guid>
            <dc:creator><![CDATA[Aniket Tiwari]]></dc:creator>
            <pubDate>Sat, 02 Sep 2023 06:51:26 GMT</pubDate>
            <atom:updated>2023-09-02T06:51:26.153Z</atom:updated>
            <content:encoded><![CDATA[<p>Configuration management guarantees flexibility, security, and efficiency in today’s software development world. App Configuration and Key Vault are two essential tools for handling configuration settings. In this blog, we’ll look at the significance of app configuration, why it’s necessary, and how it varies from the notion of key vault.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*YAN5vCLm1iMUW9yk" /><figcaption>Photo by <a href="https://unsplash.com/@chesteralvarez?utm_source=medium&amp;utm_medium=referral">Chester Alvarez</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><strong>Understanding App Configuration</strong></p><p>App Configuration is a managed service given by cloud platforms that allows for the centralization of application settings and parameters. These options include feature flags, connection strings, API endpoints, and more. The major goal is to isolate configuration from code, allowing developers to change settings without necessitating code changes.</p><p><strong>Why App Configuration?</strong></p><p>⁠· Dynamic Environment Adaptation :</p><p>Microservices and cloud computing enable applications to function in a variety of contexts. App Configuration provides an easy transition between environments by offering a single source of truth for settings. Developers can change characteristics such as database connections or API endpoints without changing code, making applications more adaptable to changing circumstances.</p><p>⁠· Simplified Deployment: During deployment, hardcoded configuration values can cause issues. App Configuration solves this problem by allowing configuration variables to be saved externally, lowering the danger of mistakenly revealing sensitive data or causing downtime due to misconfiguration.</p><p><strong>Making an Azure App Configuration</strong></p><p>There are various processes involved in creating an Azure App Configuration. Here’s an overview of the procedure.</p><ol><li>Log into <a href="https://portal.azure.com/">Azure Portal</a> and search for App configuration in the search box.</li><li>Create an App Configuration Resource:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a51gpx_IecYIj9Qe43MlQg.jpeg" /></figure><p>3. Configure Basic Settings:</p><ul><li>Provide a unique name for your App Configuration.</li><li>Choose the subscription and resource group where you want to create this resource.</li><li>Choose a region where the resource will be hosted.</li><li>Resource Name</li><li>Pricing Tier</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3TDFFoYgpNCBd35BbYfJ-w.png" /></figure><blockquote>We can also add network setups and tags as needed.</blockquote><p>4. Review and Create: Check that your configuration settings are right. To validate your settings, click the “Review + Create” button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*21OLwPsFuQQxFpRqrq67Mw.jpeg" /></figure><p>5. Create the App Configuration:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/818/1*KvMSfuW3iy6DU0yf4X2wow.png" /></figure><p>6. Access and Manage Configuration Data: Once your App Configuration is created, you can start adding and managing configuration settings. To interact with your App Configuration, you can use the Azure Portal, Azure CLI, or Azure SDKs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nDhbesmNpu5_QsaBatRHEA.png" /></figure><p><strong>App Configuration vs. Key Vault</strong></p><p>⁠· Scope and Purpose</p><p>App Configuration: It is concerned with centralizing application settings and parameters. It supports a wider variety of configurations and settings. Key Vault: Designed primarily for securely storing cryptographic keys, certificates, and secrets, and is frequently used for application security.</p><p>⁠· Security Aspects</p><p>App Configuration: Provides security through access control and managed identities.<br>Key Vault: Specializes in securing sensitive data like secrets and keys, offering advanced encryption and access management.</p><p><strong>Combining Key Vault with App Configuration</strong></p><p>Hybrid Setup: Combine App Configuration with Key Vault for full configuration management.<br>Secure Settings: Save configuration values in App Configuration while storing sensitive keys and credentials in Key Vault.</p><h4>Conclusion</h4><p>Effective configuration management is critical in today’s software development. App Configuration and Key Vault are critical tools for streamlining this process, providing flexibility, security, and ease of upkeep. While App Configuration handles a broader range of settings, Key Vault concentrates in data security. Developers may guarantee their applications are well-configured and safe across several contexts by understanding their respective functions and strategically using them.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6dd5a91c8bc8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding and Implementing Deep Cloning in JavaScript]]></title>
            <link>https://anikettiwari23.medium.com/understanding-and-implementing-deep-cloning-in-javascript-9d660490b997?source=rss-cbfdf5829d45------2</link>
            <guid isPermaLink="false">https://medium.com/p/9d660490b997</guid>
            <dc:creator><![CDATA[Aniket Tiwari]]></dc:creator>
            <pubDate>Mon, 21 Aug 2023 14:20:30 GMT</pubDate>
            <atom:updated>2023-08-21T14:20:30.593Z</atom:updated>
            <content:encoded><![CDATA[<p>Deep cloning is a JavaScript procedure that creates a new copy of an object or array, including all nested objects and arrays. Deep cloning, as opposed to shallow cloning, which generates new objects while preserving references to nested items, creates new objects and provides new objects for each nesting level. This is very handy when working with complex data without affecting the original data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uzbVQB1xlW63i5Anc1t3_Q.jpeg" /></figure><blockquote>We will look at the concept of deep cloning in JavaScript, why it is important, and alternative techniques for doing it.</blockquote><p><strong>Deep Cloning Overview</strong></p><p>Objects and arrays are reference types in JavaScript, which means that when you assign them to a new variable, you are actually assigning a reference to the original object rather than producing a new duplicate. Methods like Object.assign() and the spread operator (...) can perform shallow cloning, but they only create a new object one level deep. When dealing with complicated data structures involving nested objects or arrays, deep cloning is required.</p><p><strong>Why Deep Cloning is needed?</strong></p><p>Consider a deeply nested object describing a software application setup. You wouldn’t want the modifications to affect the original settings for other users if you changed this configuration for a single user. Deep cloning assures that modifications to the cloned object do not affect the original.</p><p><strong>Deep cloning techniques</strong></p><p>a. JSON.parse() and JSON.stringify()</p><pre>const originalObject = {<br>  a: 1,<br>  b: { c: 2 }<br>};<br><br>const clonedObject = JSON.parse(JSON.stringify(originalObject));</pre><p>To perform deep cloning, just use JSON.parse() and JSON.stringify(). However, this approach has drawbacks. It can eliminate prototypes and circular references, but it can’t handle functions, Date objects, or non-enumerable attributes.</p><p>b. Recursive Custom Function</p><pre>function deepClone(obj) {<br>  if (obj === null || typeof obj !== &quot;object&quot;) {<br>    return obj;<br>  }<br><br>  const clone = Array.isArray(obj) ? [] : {};<br><br>  for (const key in obj) {<br>    if (obj.hasOwnProperty(key)) {<br>      clone[key] = deepClone(obj[key]);<br>    }<br>  }<br><br>  return clone;<br>}</pre><p>This method involves building a recursive function that loops through the object properties and makes a deep copy of them. It handles additional data types and circular references than the JSON approach.</p><p>c. External Libraries (Lodash)</p><p>Lodash is a well-known utility library that offers a _.cloneDeep() function for deep cloning:</p><pre>const _ = require(&quot;lodash&quot;);<br><br>const originalObject = {<br>  a: 1,<br>  b: { c: 2 }<br>};<br><br>const clonedObject = _.cloneDeep(originalObject);</pre><p><strong>Considerations and Limitations</strong></p><ul><li>Performance: Deep cloning can be resource-intensive, particularly for big and deeply nested objects. For excessively complicated structures, recursive procedures may result in stack overflow issues.</li><li>Circular References: Circular references occur when an object refers to itself, either directly or indirectly. To avoid infinite loops during deep cloning, it is critical to handle circular references correctly.</li><li>Data Loss: Certain object types or properties may not be properly captured by some methods, resulting in data loss or unexpected behavior.</li></ul><p>When working with complicated data structures in JavaScript, deep cloning is critical for guaranteeing that you may alter data without harming the original source. While there are other methods for deep cloning accessible, each has its own set of issues and limits.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9d660490b997" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>