<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: sachinM</title>
    <description>The latest articles on DEV Community by sachinM (@sachinmdev).</description>
    <link>https://dev.to/sachinmdev</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F868733%2F3311ea45-3a23-4bbe-983c-cb34d14376a9.png</url>
      <title>DEV Community: sachinM</title>
      <link>https://dev.to/sachinmdev</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sachinmdev"/>
    <language>en</language>
    <item>
      <title>Revolutionize Your Development Skills: Top GitHub Repositories You Can't Afford to Miss</title>
      <dc:creator>sachinM</dc:creator>
      <pubDate>Tue, 09 May 2023 08:21:42 +0000</pubDate>
      <link>https://dev.to/sachinmdev/revolutionize-your-development-skills-top-github-repositories-you-cant-afford-to-miss-42b4</link>
      <guid>https://dev.to/sachinmdev/revolutionize-your-development-skills-top-github-repositories-you-cant-afford-to-miss-42b4</guid>
      <description>&lt;p&gt;Ever wondered of how to improve your coding skills and become the master of your programming growth and career ?&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--x8n9ALp_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gyquvypd42yda78tvxqf.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--x8n9ALp_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gyquvypd42yda78tvxqf.jpg" alt="Image from https://screenrant.com" width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;There are so many repositories available on github which will improve your not only coding skills but also helps in technical interviews, improve your knowledge and understanding of the tools.&lt;br&gt;
But ever wondered of &lt;strong&gt;all in one collection of them ?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Yes! you heard it right!!!&lt;/p&gt;

&lt;p&gt;There are many repositories available however there's no such single repository which includes list of all those good ones...&lt;/p&gt;

&lt;p&gt;Hereby introducing this github repo : &lt;a href="https://github.com/sachin-source/top-github-repositories-which-everyone-should-look"&gt;Top GitHub Repositories which Everyone Should Look&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;The "Top GitHub Repositories which Everyone Should Look" repository on GitHub is a curated list of various top-rated GitHub repositories that cover a wide range of topics. The repository is available to the public for free.&lt;/p&gt;

&lt;p&gt;The repository includes a variety of top-rated GitHub repositories, such as web development frameworks, programming language libraries, machine learning tools, and many more. Each repository has its own directory in the repository, which includes a brief description of what it does and why it is included in the list.&lt;/p&gt;

&lt;p&gt;In addition to the main content, the repository also includes links to various tutorials and articles related to the repositories, which can be useful for developers who want to learn more about how to use these tools and libraries.&lt;/p&gt;

&lt;p&gt;The goal of the "Top GitHub Repositories which Everyone Should Look" repository is to help developers discover top-rated and widely used repositories that can help them improve their skills and productivity. The curated list and clear organization make it easy to find relevant repositories, and the community-driven nature of the repository ensures that it stays up-to-date with the latest offerings from various software developers and organizations.&lt;/p&gt;

&lt;p&gt;Then why are you waiting for ?&lt;br&gt;
Go and have look at this repository and take your coding and debugging skills to the next level!!&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br&gt;
Sachin&lt;/p&gt;

</description>
      <category>github</category>
      <category>webdev</category>
      <category>programming</category>
      <category>opensource</category>
    </item>
    <item>
      <title>Conditional check of presence of an element with chaining</title>
      <dc:creator>sachinM</dc:creator>
      <pubDate>Fri, 02 Sep 2022 09:02:41 +0000</pubDate>
      <link>https://dev.to/sachinmdev/conditional-check-of-presence-of-an-element-with-chaining-3l2c</link>
      <guid>https://dev.to/sachinmdev/conditional-check-of-presence-of-an-element-with-chaining-3l2c</guid>
      <description>&lt;p&gt;We many times fail to write a better conditional checks for JSON objects and fall-asick with either errors or more code.&lt;/p&gt;

&lt;p&gt;Here is the better solution to avoid both of these issues!!!!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--TtETTRCe--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/l599ycyk0vbiz65q8zy5.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--TtETTRCe--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/l599ycyk0vbiz65q8zy5.jpeg" alt="source : happyho.in" width="275" height="183"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Introduction
&lt;/h3&gt;

&lt;p&gt;Optional chaining is available for Node - 14.0.0 or higher versions. ( complete browser compatibility is &lt;a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining#browser_compatibility"&gt;here&lt;/a&gt; )&lt;/p&gt;

&lt;h2&gt;
  
  
  Usage
&lt;/h2&gt;

&lt;p&gt;Let's say there's code for an object to select the organiser name from the object of &lt;strong&gt;event&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;We will find it something like this :&lt;/p&gt;

&lt;p&gt;&lt;code&gt;const organiser = event.organiser.name&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;And what if event or organiser is &lt;code&gt;undefined&lt;/code&gt; for an error ?&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--bGg4M1b6--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tg5my3h5y6x3oyk76hd0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--bGg4M1b6--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tg5my3h5y6x3oyk76hd0.png" alt="Image source : seekpng" width="320" height="320"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;you'll endup with error : &lt;code&gt;Cannot read the properties of undefined ( reading 'name' )&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;You may think and logic scarier then the bug and may fix it like this :&lt;/p&gt;

&lt;p&gt;&lt;code&gt;const organiser = (event &amp;amp;&amp;amp; event.organiser &amp;amp;&amp;amp; event.organiser.name) &amp;amp;&amp;amp; event.organiser.name&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Woooohhhh!!!! you resolved the bug!!!&lt;br&gt;
But did you maintain the standards of code???&lt;/p&gt;

&lt;p&gt;Nnnnnnnnoooooooooooooo!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!&lt;/p&gt;

&lt;h2&gt;
  
  
  How about this ?
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;const organiser = event?.organiser?.name&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Great!!!!!!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--flTOwEIn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jlsfbd2l082gykty0ylp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--flTOwEIn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jlsfbd2l082gykty0ylp.png" alt="Image source : emojiterra" width="512" height="512"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This will keep the code less as well as check the conditions of presence.&lt;br&gt;
Returns undefined if any of the parameter in the chaining is undefined.&lt;/p&gt;

&lt;p&gt;Hope this small thing makes your day and improves your code!!!!!&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>node</category>
      <category>typescript</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
