<?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 Abdullah Mansoor on Medium]]></title>
        <description><![CDATA[Stories by Abdullah Mansoor on Medium]]></description>
        <link>https://medium.com/@iabu94?source=rss-1368bff64c2e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*UfZ1htfLDuqXY68o.jpg</url>
            <title>Stories by Abdullah Mansoor on Medium</title>
            <link>https://medium.com/@iabu94?source=rss-1368bff64c2e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 13:16:49 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@iabu94/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[Level Up Your Error Handling & Logging with These Best Practices]]></title>
            <link>https://iabu94.medium.com/level-up-your-error-handling-logging-game-with-these-best-practices-f5ca484de7de?source=rss-1368bff64c2e------2</link>
            <guid isPermaLink="false">https://medium.com/p/f5ca484de7de</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[best-practices]]></category>
            <category><![CDATA[error-handling]]></category>
            <category><![CDATA[typescript]]></category>
            <dc:creator><![CDATA[Abdullah Mansoor]]></dc:creator>
            <pubDate>Thu, 11 May 2023 10:02:06 GMT</pubDate>
            <atom:updated>2023-05-11T10:03:09.622Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sk5PD03JHEOEGyaGYTKtTA.jpeg" /><figcaption>title</figcaption></figure><p>Error handling and logging in Angular are essential for reliability, user experience, and code maintainability. They streamline error management, provide detailed information for debugging, and improve the overall user experience. By separating error logic from business logic, these practices contribute to a more organized and manageable codebase.</p><p>In this article, I’m going to show some best practices with examples for Error Handling and Logging in Angular.</p><h4>1️⃣ <strong>Use centralized error handling with ErrorHandler class</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/889/1*wHysf6zaGKvwJXZaM7IA3Q.png" /><figcaption>custom-error-handler.ts</figcaption></figure><p>In your AppModule, provide the custom ErrorHandler:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/887/1*HZvEFRyWluBprRoqGYabxA.png" /><figcaption>app-module.ts</figcaption></figure><p>By implementing a custom ErrorHandler and providing it in the Angular module, you can centralize the handling of all unhandled errors in your application.</p><p>2️⃣ <strong>Implement custom error logging:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*br_JGAHgrTnlDppaAVMk9w.png" /><figcaption>error-logging-service.ts</figcaption></figure><p>In your component or service, you can inject the ErrorLoggingService and use it to log errors:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uMSgUcXnGGtnkbM7WJ9lOQ.png" /><figcaption>example.component.ts</figcaption></figure><p>By implementing a custom ErrorLoggingService and using it to log errors, you can capture more detailed information about the errors occurring in your application.</p><p>3️⃣ <strong>Leverage HttpInterceptor for HTTP errors:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*knZVKZ8FtaLZZmEb9loSmQ.png" /><figcaption>http-error-interceptor.ts</figcaption></figure><p>In your AppModule, provide the HTTP interceptor:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sthO8_IANSAbn-M_aIaqlg.png" /><figcaption>app-module.ts</figcaption></figure><p>By creating an HttpErrorInterceptor that implements the HttpInterceptor interface, you can intercept and handle HTTP errors in a centralized manner. It allows you to customize the error handling behavior, such as displaying error messages to users, redirecting to error pages, or performing specific actions based on the error status.</p><p>Remember to adjust the examples based on your specific requirements and import the necessary dependencies for ErrorHandler, ErrorLoggingService, and HttpInterceptor.</p><p>If you would like to buy me a coffee, just click <a href="https://www.buymeacoffee.com/iabu94">here</a>.</p><p>Drop me a ‘Hi’ on:<br><em>WhatsApp: </em><a href="https://wa.me/+94719994818"><em>+94719994818</em></a><em><br>Facebook: </em><a href="https://www.facebook.com/iAbu94/"><em>iAbu94</em></a><em><br>Email: </em><a href="/service/mailto:iabu94.dev@gmail.com"><em>iabu94.dev@gmail.com</em></a></p><p>Follow me on:<br><em>LinkedIn: </em><a href="https://linkedin.com/in/iabu94"><em>iabu94</em></a><em><br>Twitter: </em><a href="https://twitter.com/iabu94"><em>iabu94</em></a><em><br>GitHub: </em><a href="https://github.com/iabu94">iabu94</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f5ca484de7de" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to run SQL scripts in a file while performing the code first EF Core migrations?]]></title>
            <link>https://iabu94.medium.com/how-to-run-sql-scripts-in-a-file-while-performing-the-code-first-ef-core-migrations-f75856466917?source=rss-1368bff64c2e------2</link>
            <guid isPermaLink="false">https://medium.com/p/f75856466917</guid>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[csharp]]></category>
            <category><![CDATA[dotnet-core]]></category>
            <category><![CDATA[entity-framework-core]]></category>
            <category><![CDATA[migration]]></category>
            <dc:creator><![CDATA[Abdullah Mansoor]]></dc:creator>
            <pubDate>Wed, 12 Oct 2022 19:18:24 GMT</pubDate>
            <atom:updated>2023-01-18T04:01:18.366Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V8x8a7PNvotfYVVPdqLCqg.png" /><figcaption>EF Core Image by Google</figcaption></figure><p>The Entity Framework code-first approach gives powerful tools to create and manage database objects like tables, fields and their constraints, etc.</p><p>This article will help you if your application uses stored procedures, functions, seeding set of data and similar database objects and you want to create these objects in the database as part of the migrations.</p><p>Entity Framework migrations support the Sql and SqlFile methods to run scripts as part of the migrations. Here, we will see how to read the scripts from a file and run it in the database.</p><p>First, you need to add the scripts to be deployed to an SQL file and copy it to one of the folders in your application. Then open your application in visual studio and create an empty migration file using the following command in Package Manager Console.</p><pre>Add-Migration SQLScript_Migration</pre><p>Open the empty migration file (this will be opened by default) and copy the following code to the Up function there</p><pre>protected override void Up(MigrationBuilder migrationBuilder)<br>{<br>   var sqlFile = Path.Combine(&quot;Scripts/ScriptsCreate.Sql&quot;);<br>   migrationBuilder.Sql(File.ReadAllText(sqlFile));<br>}</pre><pre>protected override void Down(MigrationBuilder migrationBuilder)<br>{</pre><pre>}</pre><p>You can change the path based on where you kept your script file.<br>After this, run the <em>Update-Database</em> command to update the script to the database. This will deploy all the stored procedures, functions, etc., in the script file to the database.</p><p>If you want to write cleaner code or you just want to have tips like this every week, so you can follow me on medium will be more likely to show you the next article..</p><p>If you would like to buy me a coffee just click <a href="https://www.buymeacoffee.com/iabu94">here</a>.</p><p>Drop me a ‘Hi’ on:<br><em>WhatsApp: </em><a href="https://wa.me/+94719994818"><em>+94719994818</em></a><em><br>Facebook: </em><a href="https://www.facebook.com/iAbu94/"><em>iAbu94</em></a><em><br>Email: </em><a href="/service/mailto:iabu94.dev@gmail.com"><em>iabu94.dev@gmail.com</em></a></p><p>Follow me on:<br><em>LinkedIn: </em><a href="https://linkedin.com/in/iabu94"><em>iabu94</em></a><em><br>Twitter: </em><a href="https://twitter.com/iabu94"><em>iabu94</em></a><em><br>GitHub: </em><a href="https://github.com/iabu94">iabu94</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f75856466917" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Destructuring in JavaScript — Simplified]]></title>
            <link>https://iabu94.medium.com/destructuring-in-javascript-simplified-8e7a2debb89d?source=rss-1368bff64c2e------2</link>
            <guid isPermaLink="false">https://medium.com/p/8e7a2debb89d</guid>
            <category><![CDATA[full-stack]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[javascript-tips]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[typescript]]></category>
            <dc:creator><![CDATA[Abdullah Mansoor]]></dc:creator>
            <pubDate>Sat, 08 Oct 2022 19:47:14 GMT</pubDate>
            <atom:updated>2023-01-18T04:02:55.827Z</atom:updated>
            <content:encoded><![CDATA[<h3>Destructuring in JavaScript — Simplified</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/807/1*U29oxgVV5i-dZ4agNWaZ4g.png" /><figcaption>Destructuring</figcaption></figure><p>Destructuring is used to <strong>disassemble</strong> entire arrays and objects to <strong>merge</strong> them or to <strong>override</strong> certain props.</p><p>Now, how to destructure an array?</p><p>Here’s an example</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yzs0RyBJf-vYWSToGg5aDQ.png" /><figcaption>des1</figcaption></figure><p>When destructuring arrays, the <strong>order</strong> in which variables are declared is important.</p><p>Here x takes apple, y takes pineapple and z takes banana.</p><p>If you want to <strong>extract a particular value</strong> only from a particular position then leave the rest of the positions blank separated by commas.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rTDCLdMDh4EK1lM9BWfG5g.png" /><figcaption>des2</figcaption></figure><p>Here x takes apple and z takes banana.</p><p><strong>Objects </strong>can also be destructured in js.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c3v54814e1cxY2li3T7Olw.png" /><figcaption>des3</figcaption></figure><p>We can even destructure<strong> deeply nested objects</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JG1mSlew4Fm9h28En5ggVQ.png" /><figcaption>des4</figcaption></figure><p>Consider this nested object.</p><p>By referencing the nested object and then using a colon and curly braces to again destructure the items needed from the nested object.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rPXlNuVqfbKsgx-_KrgqtA.png" /><figcaption>des5</figcaption></figure><p>If you want to write cleaner code or you just want to have tips like this every week, so you can follow me on medium will be more likely to show you the next article.</p><p>If you would like to buy me a coffee just click <a href="https://www.buymeacoffee.com/iabu94">here</a>.</p><p>Drop me a ‘Hi’ on:<br><em>WhatsApp: </em><a href="https://wa.me/+94719994818"><em>+94719994818</em></a><em><br>Facebook: </em><a href="https://www.facebook.com/iAbu94/"><em>iAbu94</em></a><em><br>Email: </em><a href="/service/mailto:iabu94.dev@gmail.com"><em>iabu94.dev@gmail.com</em></a></p><p>Follow me on:<br><em>LinkedIn: </em><a href="https://linkedin.com/in/iabu94"><em>iabu94</em></a><em><br>Twitter: </em><a href="https://twitter.com/iabu94"><em>iabu94</em></a><em><br>GitHub: </em><a href="https://github.com/iabu94">iabu94</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8e7a2debb89d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Are You an Angular Pro Developer? — Then You Must Follow This.]]></title>
            <link>https://iabu94.medium.com/are-you-an-angular-pro-developer-then-you-must-follow-this-ec33142ce75?source=rss-1368bff64c2e------2</link>
            <guid isPermaLink="false">https://medium.com/p/ec33142ce75</guid>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[architecture]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[front-end-development]]></category>
            <dc:creator><![CDATA[Abdullah Mansoor]]></dc:creator>
            <pubDate>Wed, 05 Oct 2022 17:30:47 GMT</pubDate>
            <atom:updated>2023-01-18T06:17:26.549Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to Become an Angular Pro Developer in 2022–11 Easy Steps to Follow.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VBUizq2ipMXJzrfjAgwhLA.png" /><figcaption>Ng Pro</figcaption></figure><p>These are some of the most important things you should follow while working on the Angular apps, if you’re a Pro Developer.</p><ol><li><em>Create your new app starting with nx.</em></li><li><em>Use strict mode and a very strict linter config (don’t forget to lint your styles too).</em></li><li><em>Learn a state management tool.</em></li><li><em>Write unit tests, and e2e tests.</em></li><li><em>Script everything you have to do more than thrice.</em></li><li><em>Services are for code that does things. HttpClient is only correct in a Service IMO.</em></li><li><em>Never subscribe in your Service, always return the Observable.</em></li><li><em>Components are to create new DOM and attach Service to it.</em></li><li><em>Directives are to attach Services to existing DOM.</em></li><li><em>Pipes are to do pure data transformations in your templates.</em></li><li><em>Use Formly for any form more complicated than 3 fields, or just always.</em></li></ol><p>If you want to know more tips and tricks like this, follow me on medium.</p><p>If you would like to buy me a coffee just click <a href="https://www.buymeacoffee.com/iabu94">here</a>.</p><p>Drop me a ‘Hi’ on:<br><em>WhatsApp: </em><a href="https://wa.me/+94719994818"><em>+94719994818</em></a><em><br>Facebook: </em><a href="https://www.facebook.com/iAbu94/"><em>iAbu94</em></a><em><br>Email: </em><a href="/service/mailto:iabu94.dev@gmail.com"><em>iabu94.dev@gmail.com</em></a></p><p>Follow me on:<br><em>LinkedIn: </em><a href="https://linkedin.com/in/iabu94"><em>iabu94</em></a><em><br>Twitter: </em><a href="https://twitter.com/iabu94"><em>iabu94</em></a><em><br>GitHub: </em><a href="https://github.com/iabu94">iabu94</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ec33142ce75" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Your GitHub profile is as important as your RESUME !!!!]]></title>
            <link>https://iabu94.medium.com/your-github-profile-is-as-important-as-your-resume-a363adb69fa5?source=rss-1368bff64c2e------2</link>
            <guid isPermaLink="false">https://medium.com/p/a363adb69fa5</guid>
            <category><![CDATA[portfolio]]></category>
            <category><![CDATA[resume]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[tips]]></category>
            <dc:creator><![CDATA[Abdullah Mansoor]]></dc:creator>
            <pubDate>Tue, 04 Oct 2022 18:45:51 GMT</pubDate>
            <atom:updated>2023-01-18T06:18:42.525Z</atom:updated>
            <content:encoded><![CDATA[<h3>Your GitHub profile is as important as your RESUME !!!!</h3><p>Here are TOP 7 GITHUB PROFILE generators that will help you generate some cool ReadMe files with just a few clicks</p><blockquote><strong>1. </strong><a href="https://imsadra.me/commit-like-a-pro"><strong>Sadra Yahyapour</strong></a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k3HbVEtNtGfTZrSvRdW2-A.png" /><figcaption>1</figcaption></figure><blockquote><a href="https://profilinator.rishav.dev/"><strong>2. Rishav</strong></a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3l-hRN6nGPwBgx7HkREuWQ.png" /><figcaption>2</figcaption></figure><blockquote><a href="https://github.com/kefranabg/readme-md-generator"><strong>3. Franck Abgrall</strong></a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BztWgTEOdHgUvz8PMDCZRw.png" /><figcaption>3</figcaption></figure><blockquote><a href="https://rahulbanerjee26-githubprofilereadmegenerator---init---0nsops.streamlitapp.com/"><strong>4. Rahul Banerjee</strong></a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oNuTO5gvduy3N1thgAHTSg.png" /><figcaption>4</figcaption></figure><p><a href="https://arturssmirnovs.github.io/github-profile-readme-generator/"><strong><em>5. Arturs</em></strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/924/1*j3D2l98UGFRXwgiGNP10oA.png" /><figcaption>5</figcaption></figure><blockquote><a href="https://gprm.itsvg.in/"><strong>6. GPRM</strong></a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_6lMzxjl2tMSnLukO4jOoA.png" /><figcaption>6</figcaption></figure><blockquote><a href="https://www.profileme.dev/create-profile"><strong>7. ProfileMe</strong></a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PSlYUVFZzmOEi-3-E9AzMw.png" /><figcaption>7</figcaption></figure><p>That’s a wrap!</p><p>Thanks for reading this article till the end. Clap for this articel for better reach and help someone out.</p><p>Share this article and Follow me on Medium for more daily web development tips and tricks.</p><p>Drop me a ‘Hi’ on:<br><em>WhatsApp: </em><a href="https://wa.me/+94719994818"><em>+94719994818</em></a><em><br>Facebook: </em><a href="https://www.facebook.com/iAbu94/"><em>iAbu94</em></a><em><br>Email: </em><a href="/service/mailto:iabu94.dev@gmail.com"><em>iabu94.dev@gmail.com</em></a></p><p>Follow me on:<br><em>LinkedIn: </em><a href="https://linkedin.com/in/iabu94"><em>iabu94</em></a><em><br>Twitter: </em><a href="https://twitter.com/iabu94"><em>iabu94</em></a><em><br>GitHub: </em><a href="https://github.com/iabu94">iabu94</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a363adb69fa5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Do You Really Know These 5 JavaScript/TypeScript String Methods…?]]></title>
            <link>https://iabu94.medium.com/do-you-really-know-these-5-javascript-typescript-string-methods-32f20cdd3a4?source=rss-1368bff64c2e------2</link>
            <guid isPermaLink="false">https://medium.com/p/32f20cdd3a4</guid>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Abdullah Mansoor]]></dc:creator>
            <pubDate>Wed, 28 Sep 2022 13:40:50 GMT</pubDate>
            <atom:updated>2023-01-18T06:19:09.131Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*LWp3QnSnvBNwXcWBaOtEdg.png" /><figcaption>string methods</figcaption></figure><blockquote><strong>1. </strong><strong>indexOf()</strong></blockquote><p>Finds the first occurence of a substring and returns starting index. Returns -1 if substring not found.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GFXKbwxVi3fHgfniIcmdjg.png" /><figcaption>indexOf</figcaption></figure><blockquote><strong>2. </strong><strong>lastIndexOf()</strong></blockquote><p>Finds the last occurence of a substring and returns starting index. Returns -1 if substring not found.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*72aHle7i4_TH-WN_RY9RIQ.png" /><figcaption>lastIndexOf()</figcaption></figure><blockquote><strong>3. </strong><strong>includes()</strong></blockquote><p>Returns true if string contains substring, otherwise returns false.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d0fvKrom5-a1uvsHRkC2fQ.png" /><figcaption>includes()</figcaption></figure><blockquote><strong>4. </strong><strong>startsWith()</strong></blockquote><p>Returns true if string starts with substring, otherwise returns false.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v9BwQCE7W9DudkdiMMlOIg.png" /><figcaption>startsWith()</figcaption></figure><blockquote><strong>5. </strong><strong>endsWith()</strong></blockquote><p>Returns true if string ends with substring, otherwise returns false.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0wJ_IMqkNvVwBpU3tnZrCA.png" /><figcaption>endsWith()</figcaption></figure><p>If you want to write cleaner code or you just want to have tips like this every week, so you can follow me on medium will be more likely to show you the next article.</p><p>Drop me a ‘Hi’ on:<br><em>WhatsApp: </em><a href="https://wa.me/+94719994818"><em>+94719994818</em></a><em><br>Facebook: </em><a href="https://www.facebook.com/iAbu94/"><em>iAbu94</em></a><em><br>Email: </em><a href="/service/mailto:iabu94.dev@gmail.com"><em>iabu94.dev@gmail.com</em></a></p><p>Follow me on:<br><em>LinkedIn: </em><a href="https://linkedin.com/in/iabu94"><em>iabu94</em></a><em><br>Twitter: </em><a href="https://twitter.com/iabu94"><em>iabu94</em></a><em><br>GitHub: </em><a href="https://github.com/iabu94">iabu94</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=32f20cdd3a4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Do You Really Know These 6 TypeScript Utilities?]]></title>
            <link>https://iabu94.medium.com/do-you-really-know-these-6-typescript-utilities-bc37b9e8468f?source=rss-1368bff64c2e------2</link>
            <guid isPermaLink="false">https://medium.com/p/bc37b9e8468f</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[utilities]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Abdullah Mansoor]]></dc:creator>
            <pubDate>Mon, 19 Sep 2022 03:48:59 GMT</pubDate>
            <atom:updated>2023-01-18T06:19:35.272Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q_wndIYxn089ifbuGhpdtg.png" /><figcaption>ts utilities</figcaption></figure><blockquote><strong>1. Pick</strong></blockquote><p>With Pick, you can pick a set of keys from the given type.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q0xdRMIFuOMVuxWunn8ohA.png" /><figcaption>pick</figcaption></figure><p>userName variable is now used to ensure only those two fields are set.</p><blockquote><strong>2. Omit</strong></blockquote><p>In constrast to Pick, you can use Omit to remove a set of Keys (basically omit a set of properties) from your Type.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-d6EEkcS8Ji6PakD7zY1jQ.png" /><figcaption>omit</figcaption></figure><blockquote><strong>3. Partial</strong></blockquote><p>This utility will make a new Type set with all the properties of the Type set, set to optional.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UkRQ2Ada_wsZ7_9JhkX17Q.png" /><figcaption>partial</figcaption></figure><p>This is ultimately the same as redefining the User type to,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sKmOo3Dj0WdPYfDTvGZp0A.png" /><figcaption>partial redefined</figcaption></figure><blockquote><strong>4. Readonly</strong></blockquote><p>Readonly is used when you don’ t want the properties of an object reassigned. As in the name, it will set the properties of Type set to read-only.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V42QQnhFpIF9ZMQXhaI1Rw.png" /><figcaption>readonly</figcaption></figure><blockquote><strong>5. Return Type</strong></blockquote><p>The utility type ReturnType helps by extracting the return type of a function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lu_wsbZGwxSJjZBML6QV1w.png" /><figcaption>return type</figcaption></figure><blockquote><strong>6. Non-Nullable</strong></blockquote><p>It excludes null and undefined from the given Type.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2a45qfijNemsgZwFRetCfQ.png" /><figcaption>non-nullable</figcaption></figure><p>If you want to write cleaner code or you just want to have tips like this every week, so you can follow me on medium will be more likely to show you the next article.</p><p>Drop me a ‘Hi’ on:<br><em>WhatsApp: </em><a href="https://wa.me/+94719994818"><em>+94719994818</em></a><em><br>Facebook: </em><a href="https://www.facebook.com/iAbu94/"><em>iAbu94</em></a><em><br>Email: </em><a href="/service/mailto:iabu94.dev@gmail.com"><em>iabu94.dev@gmail.com</em></a></p><p>Follow me on:<br><em>LinkedIn: </em><a href="https://linkedin.com/in/iabu94"><em>iabu94</em></a><em><br>Twitter: </em><a href="https://twitter.com/iabu94"><em>iabu94</em></a><em><br>GitHub: </em><a href="https://github.com/iabu94">iabu94</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bc37b9e8468f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is :is() and :where() in CSS? Are they same or different?]]></title>
            <link>https://iabu94.medium.com/what-is-is-and-where-in-css-are-they-same-or-different-ff78f0ef19d0?source=rss-1368bff64c2e------2</link>
            <guid isPermaLink="false">https://medium.com/p/ff78f0ef19d0</guid>
            <category><![CDATA[ui]]></category>
            <category><![CDATA[html]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[style]]></category>
            <category><![CDATA[css]]></category>
            <dc:creator><![CDATA[Abdullah Mansoor]]></dc:creator>
            <pubDate>Sat, 17 Sep 2022 14:43:52 GMT</pubDate>
            <atom:updated>2023-01-18T06:20:01.975Z</atom:updated>
            <content:encoded><![CDATA[<h3>What is :is() and :where() in CSS? Are they same or different?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-2eoB96p4i6K61vnklCDHw.jpeg" /></figure><p>The :is() pseudoclass function takes a selector list as its argument and selects any element that can be selected by one of the selectors in that list.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/890/1*4W0wa_pOMgQxzVUnj4PrOQ.png" /><figcaption>:is()</figcaption></figure><p>The above is equivalent to the following, and this is useful for writing large selectors in a more compact form.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*X3Y4TlC-j06YZkvaI3-i9Q.png" /></figure><p>The same thing can be done with :where().</p><p>The CSS pseudoclass function :where() takes a list of selectors as an argument and select any element that can be selected by one of the selectors in that list.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/906/1*6cvi8vvB3DL2YCR3Fkszrw.png" /><figcaption>:where()</figcaption></figure><p>The above is equivalent to the following,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*X3Y4TlC-j06YZkvaI3-i9Q.png" /><figcaption>:where() expand</figcaption></figure><p>But wait, both of them look identical. Then what’s the difference?</p><p>THE DIFFERENCE IS OF <strong>SPECIFICITY.</strong></p><p>In CSS, If there are two or more CSS rules that point to the same element, the selector with the highest specificity value will “win”, and its style declaration will be applied to that HTML element.</p><p>So basically, neither :where() nor anything inside it counts for specificity. Its specificity is always 0.</p><p>On the other hand, everything inside the :is() pseudoclass counts for specificity.</p><p>SO WHICH ONE TO USE…………..?</p><p>It completely depends on your goals. You can use :is() pseudoclass if you want to reduce the selector duplication.</p><p>However, if you want lower specificity as well, then :where() is the way to go!</p><p>If you want to write cleaner code or you just want to have tips like this every week, so you can follow me on medium will be more likely to show you the next article.</p><p>Drop me a ‘Hi’ on:<br><em>WhatsApp: </em><a href="https://wa.me/+94719994818"><em>+94719994818</em></a><em><br>Facebook: </em><a href="https://www.facebook.com/iAbu94/"><em>iAbu94</em></a><em><br>Email: </em><a href="/service/mailto:iabu94.dev@gmail.com"><em>iabu94.dev@gmail.com</em></a></p><p>Follow me on:<br><em>LinkedIn: </em><a href="https://linkedin.com/in/iabu94"><em>iabu94</em></a><em><br>Twitter: </em><a href="https://twitter.com/iabu94"><em>iabu94</em></a><em><br>GitHub: </em><a href="https://github.com/iabu94">iabu94</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ff78f0ef19d0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Best practices for Initializing variables in JavaScript!]]></title>
            <link>https://iabu94.medium.com/best-practices-for-initializing-variables-in-javascript-bbbebe536ffd?source=rss-1368bff64c2e------2</link>
            <guid isPermaLink="false">https://medium.com/p/bbbebe536ffd</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[javascript-tips]]></category>
            <category><![CDATA[typescript]]></category>
            <dc:creator><![CDATA[Abdullah Mansoor]]></dc:creator>
            <pubDate>Mon, 12 Sep 2022 06:46:52 GMT</pubDate>
            <atom:updated>2022-09-12T06:46:52.790Z</atom:updated>
            <content:encoded><![CDATA[<p>It’s a good practice to initialize variable when they are declared. It makes the code cleaner and easily understandable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1008/1*cP5FMbXr6JK0nZ1MrA65Ig.png" /></figure><p>Also, adding a comment helps if the variable needs further description for future description for future reference or if an initial value is unusual.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bbbebe536ffd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[7 Most Important Object Methods in JavaScript You Should Know in 2022]]></title>
            <link>https://iabu94.medium.com/7-most-important-object-methods-in-javascript-you-should-know-in-2022-68e9727504bc?source=rss-1368bff64c2e------2</link>
            <guid isPermaLink="false">https://medium.com/p/68e9727504bc</guid>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[full-stack]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[javascript-tips]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Abdullah Mansoor]]></dc:creator>
            <pubDate>Sun, 11 Sep 2022 00:54:38 GMT</pubDate>
            <atom:updated>2023-01-18T06:20:50.265Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/882/1*vrHeOeTEpE5ml2Z39Cq83w.jpeg" /></figure><blockquote><strong>1. Object.keys()</strong></blockquote><p>A simple way to iterate over an object and return all of the object’s keys.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZOnXKSwm3ynarilwLpGMXA.png" /><figcaption>Object.keys()</figcaption></figure><p><strong>Output:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/908/1*ZSrQKgEGMChB_hhBXTAW5A.png" /><figcaption>Output — Object.keys()</figcaption></figure><blockquote><strong>2. Object.values()</strong></blockquote><p>Iterates over the object and returns the object’s values!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6VjxCdXKYg3GSLnAWImhvA.png" /><figcaption>Object.values()</figcaption></figure><p><strong>Output:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/790/1*RnG_jU-rY0H998NTAc1wUw.png" /><figcaption>Output — Object.values()</figcaption></figure><blockquote><strong>3. Object.entries()</strong></blockquote><p>Takes an object and returns its own enumerable string-keyed property [key, value] pairs of the object.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rSRa9kZFlxRgVONOh5oXSw.png" /><figcaption>Object.entries()</figcaption></figure><p><strong>Output:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/654/1*s_aZS2lVFQptO6HaKDpdwA.png" /><figcaption>Output — Object.entries()</figcaption></figure><blockquote><strong>4. Object.create()</strong></blockquote><p>Creates a new object, using an existing object as the prototype of the newly created object.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/958/1*spkC4pY3Y3c53hHtW8yALA.png" /><figcaption>Object.create()</figcaption></figure><p><strong>Output:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/554/1*j-pFhYiax-plFkApPOlUtQ.png" /><figcaption>Output — Object.create()</figcaption></figure><blockquote><strong>5. Object.assign()</strong></blockquote><p>Copies all enumerable and own properties from the source objects to the target object. It returns the target object. It is also called shallow copy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S9oeRSFQBdGQD7OkguK8-A.png" /><figcaption>Object.assign()</figcaption></figure><p><strong>Output:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/604/1*LJX4Tcd4GuWlxB2OgYYlLA.png" /><figcaption>Output — Object.assign()</figcaption></figure><blockquote><strong>6. Object.seal()</strong></blockquote><p>Seals an object which prevents new properties from being added to it and marks all existing properties as non configurable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/790/1*o9v8zRP3tDBDxI1483Q5yg.png" /><figcaption>Object.seal()</figcaption></figure><blockquote><strong>7. Object.freeze()</strong></blockquote><p>Freezes an object. A frozen object can <strong><em>no longer be changed</em></strong>;</p><p>this means:</p><ol><li>New properties from being <strong><em>added </em></strong>to the object.</li><li>Existing properties to be <strong><em>removed </em></strong>from the object.</li><li><strong><em>Changing </em></strong>the enumerability, configurability, or writability of existing properties.</li><li><strong><em>Changing values</em></strong> of the existing object properties and prototype.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/790/1*-ZuQlXBlqOK3t7wZjxXn_w.png" /><figcaption>Object.freeze()</figcaption></figure><p>If you want to write cleaner code or you just want to have tips like this every week, so you can follow me on medium will be more likely to show you the next article.</p><p>If you would like to buy me a coffee just click <a href="https://www.buymeacoffee.com/iabu94">here</a>.</p><p>Drop me a ‘Hi’ on:<br><em>WhatsApp: </em><a href="https://wa.me/+94719994818"><em>+94719994818</em></a><em><br>Facebook: </em><a href="https://www.facebook.com/iAbu94/"><em>iAbu94</em></a><em><br>Email: </em><a href="/service/mailto:iabu94.dev@gmail.com"><em>iabu94.dev@gmail.com</em></a></p><p>Follow me on:<br><em>LinkedIn: </em><a href="https://linkedin.com/in/iabu94"><em>iabu94</em></a><em><br>Twitter: </em><a href="https://twitter.com/iabu94"><em>iabu94</em></a><em><br>GitHub: </em><a href="https://github.com/iabu94">iabu94</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=68e9727504bc" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>