<?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: Raghav Khanna</title>
    <description>The latest articles on DEV Community by Raghav Khanna (@erraghavkhanna).</description>
    <link>https://dev.to/erraghavkhanna</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%2F380258%2F24893b5c-b526-4e8f-b798-01be7538579d.jpg</url>
      <title>DEV Community: Raghav Khanna</title>
      <link>https://dev.to/erraghavkhanna</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/erraghavkhanna"/>
    <language>en</language>
    <item>
      <title>Twitter automatic name changer based on your followers!</title>
      <dc:creator>Raghav Khanna</dc:creator>
      <pubDate>Wed, 08 Jul 2020 14:58:00 +0000</pubDate>
      <link>https://dev.to/erraghavkhanna/twitter-automatic-name-changer-based-on-your-followers-233o</link>
      <guid>https://dev.to/erraghavkhanna/twitter-automatic-name-changer-based-on-your-followers-233o</guid>
      <description>&lt;p&gt;Twitter automatic name changer based on your followers&lt;br&gt;
Example-&lt;/p&gt;

&lt;p&gt;my twitter handle &lt;a class="comment-mentioned-user" href="https://dev.to/erraghavkhanna"&gt;@erraghavkhanna&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--C6AwqKNr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/0r32jugclyrwtfehpi8s.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--C6AwqKNr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/0r32jugclyrwtfehpi8s.PNG" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

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

&lt;p&gt;Github link - &lt;a href="https://github.com/raghavkhanna30/twitter-auto-name-changer"&gt;https://github.com/raghavkhanna30/twitter-auto-name-changer&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1 - Getting twitter API keys
&lt;/h2&gt;

&lt;p&gt;go to the twitter developers page. In the Create an app enter the informations like app name, app description and so on. it asked me to clearly explain the reason of how I'm going to use the app After reviewing the terms,] app will be created. Note down the Consumer API key, Consumer API Secret key and Access token &amp;amp; access token secret keys!&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2 - updating config.py
&lt;/h2&gt;

&lt;p&gt;in config.py enter your Consumer API key, Consumer API Secret key and Access token &amp;amp; access token secret keys. after that save it.&lt;/p&gt;

&lt;p&gt;In mainbot.py Edit your username and you are all done !&lt;/p&gt;

&lt;h2&gt;
  
  
  Heroku deployment
&lt;/h2&gt;

&lt;p&gt;for this you need to create a procfile with worker as mainbot.py and that's it !&lt;/p&gt;

</description>
      <category>python</category>
      <category>devops</category>
      <category>showdev</category>
      <category>codenewbie</category>
    </item>
    <item>
      <title>Instagram bot written in python.</title>
      <dc:creator>Raghav Khanna</dc:creator>
      <pubDate>Thu, 25 Jun 2020 08:38:50 +0000</pubDate>
      <link>https://dev.to/erraghavkhanna/instagram-bot-written-in-python-1ge3</link>
      <guid>https://dev.to/erraghavkhanna/instagram-bot-written-in-python-1ge3</guid>
      <description>&lt;h1&gt;
  
  
  Instagram-bot
&lt;/h1&gt;

&lt;p&gt;instagram bot written in python. &lt;br&gt;
it will work on hashtags.&lt;/p&gt;

&lt;h2&gt;
  
  
  features
&lt;/h2&gt;

&lt;p&gt;1) following section&lt;br&gt;
2) Likes based on tags&lt;br&gt;
3) Blacklist words function&lt;br&gt;
4) Auto comment &lt;/p&gt;

&lt;p&gt;## Usage &lt;/p&gt;

&lt;p&gt;python  bot.py&lt;/p&gt;

&lt;p&gt;make changes in credentials&lt;/p&gt;

&lt;p&gt;note- it uses firefox and selenium &lt;/p&gt;

&lt;p&gt;if you use headless_browser=true then it will not open browser and work in background&lt;/p&gt;

&lt;h2&gt;
  
  
  Github Link
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/raghavkhanna30/instagram-bot"&gt;https://github.com/raghavkhanna30/instagram-bot&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;## Speed-up&lt;/p&gt;

&lt;p&gt;if you increase speed it may lead to restriction by INSTAGRAM&lt;/p&gt;

&lt;p&gt;## Like section&lt;/p&gt;

&lt;p&gt;GIVE A STAR IF YOU LIKE THIS!!&lt;/p&gt;

&lt;p&gt;## About&lt;/p&gt;

&lt;p&gt;Find me on twitter &lt;a class="comment-mentioned-user" href="https://dev.to/erraghavkhanna"&gt;@erraghavkhanna&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;or &lt;a href="https://twitter.com/erRaghavKhanna"&gt;https://twitter.com/erRaghavKhanna&lt;/a&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>codenewbie</category>
      <category>devops</category>
      <category>showdev</category>
    </item>
    <item>
      <title>The Mystery has been solved after 1000s of years</title>
      <dc:creator>Raghav Khanna</dc:creator>
      <pubDate>Sat, 20 Jun 2020 07:14:49 +0000</pubDate>
      <link>https://dev.to/erraghavkhanna/the-mystery-has-been-solved-after-1000s-of-years-1dnd</link>
      <guid>https://dev.to/erraghavkhanna/the-mystery-has-been-solved-after-1000s-of-years-1dnd</guid>
      <description>&lt;p&gt;Egg or hen? &lt;br&gt;
Who came first? &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--g2R4rWh---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/zvgdyf91vea2757djq09.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--g2R4rWh---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/zvgdyf91vea2757djq09.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Give a like and for more check my twitter - &lt;a href="https://twitter.com/erRaghavKhanna/status/1274237550056534016?s=19"&gt;https://twitter.com/erRaghavKhanna/status/1274237550056534016?s=19&lt;/a&gt;&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>webdev</category>
      <category>codenewbie</category>
      <category>machinelearning</category>
    </item>
    <item>
      <title>Replacing your website background with live videos. : 3 LINES OF CODE</title>
      <dc:creator>Raghav Khanna</dc:creator>
      <pubDate>Fri, 19 Jun 2020 12:01:36 +0000</pubDate>
      <link>https://dev.to/erraghavkhanna/replacing-your-website-background-with-live-videos-3-lines-of-code-m5o</link>
      <guid>https://dev.to/erraghavkhanna/replacing-your-website-background-with-live-videos-3-lines-of-code-m5o</guid>
      <description>&lt;h1&gt;
  
  
  Look at this
&lt;/h1&gt;

&lt;p&gt;If you find this pretty amazing then go ahead! &lt;br&gt;
This article is for you🥳&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--O5mefls_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/cdb8q4xcee3d2icknlto.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--O5mefls_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/cdb8q4xcee3d2icknlto.gif" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Playing a YouTube Video in HTML
&lt;/h1&gt;

&lt;p&gt;To play your video on a web page, do the following:&lt;/p&gt;

&lt;p&gt;1) Upload the video to YouTube&lt;br&gt;
Take a note of the video id&lt;br&gt;
2) Define an  element in your web page&lt;br&gt;
3) Let the src attribute point to the video URL&lt;br&gt;
4) Use the width and height attributes to specify the dimension of the player&lt;br&gt;
5) Add any other parameters to the URL (see below)&lt;/p&gt;

&lt;p&gt;Define the HTML TAG AS-&lt;/p&gt;

&lt;p&gt;Tag open (iframe width="420" height="315"&lt;br&gt;
src="&lt;a href="https://www.youtube.com/embed/Your_URL%22%3E"&gt;https://www.youtube.com/embed/Your_URL"&amp;gt;&lt;/a&gt;&lt;br&gt;
/iframe) Tag Close&lt;/p&gt;

&lt;p&gt;For AUTOPLAY JUST ADD&lt;/p&gt;

&lt;p&gt;autoplay=1  IN THE URL. &lt;/p&gt;

&lt;p&gt;At last if you find this interesting give it a like! &lt;/p&gt;

&lt;p&gt;😍&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>webdev</category>
      <category>html</category>
      <category>beginners</category>
    </item>
    <item>
      <title>WHAT IS A SUPERCOMPUTER AND HOW DOES IT WORK?</title>
      <dc:creator>Raghav Khanna</dc:creator>
      <pubDate>Mon, 15 Jun 2020 10:26:42 +0000</pubDate>
      <link>https://dev.to/erraghavkhanna/what-is-a-supercomputer-and-how-does-it-work-52bk</link>
      <guid>https://dev.to/erraghavkhanna/what-is-a-supercomputer-and-how-does-it-work-52bk</guid>
      <description>&lt;h1&gt;
  
  
  Walking
&lt;/h1&gt;

&lt;p&gt;among the rows of&lt;br&gt;
supercomputer cabinets in Argonne National Laboratory’s Leadership Computing Facility, located about 25 miles from Chicago, is kind of like wandering through a high-tech version of “The Shining’s” Overlook Maze — minus the axe-wielding madman. &lt;/p&gt;

&lt;p&gt;The two primary supercomputers in that steel labyrinth, named Mira and Theta, comprise 101 cabinets the size of standard refrigerators that contain stacks of racks and weigh between 3,450 and 4,390 lbs. each. Their combined total: 160 tons — much of that heft due to water-cooling systems that prevent overheating. Along with several other smaller systems, the machines are housed in a 25,000-square-foot data center with low ceilings and a white tile floor. With all of that equipment whirring away, it is not a quiet place. Nearest the computers, visitors must speak-shout in order to be heard above a constant loud hum.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--EsNCHd-v--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/mqafug2nl88q20qao6lo.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--EsNCHd-v--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/mqafug2nl88q20qao6lo.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  TOP 10 FASTEST SUPERCOMPUTERS IN THE WORLD-
&lt;/h1&gt;

&lt;p&gt;Summit | U.S.&lt;br&gt;
Sierra | U.S.&lt;br&gt;
Sunway TaihuLight | China&lt;br&gt;
Tianhe-2A | China&lt;br&gt;
Piz Daint | Switzerland&lt;br&gt;
Trinity | U.S.&lt;br&gt;
ABCI | Japan&lt;br&gt;
SuperMUC-NG | Germany&lt;br&gt;
Titan | U.S.&lt;br&gt;
Sequoia | U.S.&lt;/p&gt;

&lt;p&gt;WHAT ARE SUPERCOMPUTERS USED FOR?&lt;br&gt;
JUST SIMULATING REALITY, THAT'S ALL?? &lt;/p&gt;

&lt;p&gt;Supercomputers are basically used by corporations and government organizations to simulate outcomes. These blazing fast computers can be used for everything from finding new oil repositories to developing new life-saving medicines. In fact, supercomputers all over the world are being used to assist in research and development of a vaccine for COVID-19.&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>information</category>
      <category>devops</category>
    </item>
    <item>
      <title>How i made a blog using my Dev.to Posts</title>
      <dc:creator>Raghav Khanna</dc:creator>
      <pubDate>Fri, 12 Jun 2020 04:44:43 +0000</pubDate>
      <link>https://dev.to/erraghavkhanna/how-i-made-a-blog-using-my-dev-to-posts-h8b</link>
      <guid>https://dev.to/erraghavkhanna/how-i-made-a-blog-using-my-dev-to-posts-h8b</guid>
      <description>&lt;h1&gt;
  
  
  How To Generate A Site With Stackbit
&lt;/h1&gt;

&lt;p&gt;Dev.to teamed up with Stackbit to make it easier for you to deploy your DEV posts to a personal website. This service will pull in all your existing DEV posts and make sure they stay up-to-date. Your future posts will also be pulled in automatically.&lt;/p&gt;

&lt;p&gt;Sounds cool.😍&lt;/p&gt;

&lt;p&gt;The demo live blog - &lt;a href="https://raghav-blog.netlify.app"&gt;https://raghav-blog.netlify.app&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;1) Visit the Stackbit site creation flow.&lt;br&gt;
&lt;a href="https://app.stackbit.com/create?ref=devto"&gt;https://app.stackbit.com/create?ref=devto&lt;/a&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--NiYynuN_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/zqyg1g6fwflr0uuqcl5v.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--NiYynuN_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/zqyg1g6fwflr0uuqcl5v.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;br&gt;&lt;br&gt;
2) A new page should open up. The first step is to pick the theme of your new site&lt;br&gt;
&lt;br&gt;&lt;br&gt;
3) Next, you’ll choose the static site generator of your preference.&lt;br&gt;
&lt;br&gt;&lt;br&gt;
4) Last, you’ll want to connect both your GitHub and DEV accounts. A repository for your new site will automatically be created in your GitHub account.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--75Ia2Hj3--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/gd06fwcfk8v5j6hojqh9.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--75Ia2Hj3--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/gd06fwcfk8v5j6hojqh9.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;br&gt;
5) Click “Create Your Project” and that’s it! Be patient, this might take a few minutes. Especially if you have lots of post. After Stackbit finishes its magic, you should have a link to your new site ✨&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Chx18Cle--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/k0wo0zn6c2pnr3om6k7q.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Chx18Cle--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/k0wo0zn6c2pnr3om6k7q.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Note: you’ll need to create or connect your Netlify account to keep the site live&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>devops</category>
      <category>webdev</category>
      <category>codenewbie</category>
    </item>
    <item>
      <title>Mini Project - Random Password generator tool (JavaScript) </title>
      <dc:creator>Raghav Khanna</dc:creator>
      <pubDate>Tue, 09 Jun 2020 19:05:47 +0000</pubDate>
      <link>https://dev.to/erraghavkhanna/mini-project-random-password-generator-tool-javascript-10jg</link>
      <guid>https://dev.to/erraghavkhanna/mini-project-random-password-generator-tool-javascript-10jg</guid>
      <description>&lt;p&gt;Random #password generator tool. &lt;br&gt;
Simply build with math.random #function  From #javascript #Html #CSS.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fvvsq6g59u6yzemghw8u4.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fvvsq6g59u6yzemghw8u4.gif" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Live website link - &lt;a href="https://random-password-generator.netlify.com" rel="noopener noreferrer"&gt;https://random-password-generator.netlify.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;(I never store passwords 😂) &lt;/p&gt;

&lt;p&gt;Open Source on #Github&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/raghavkhanna30/Random-password-generator" rel="noopener noreferrer"&gt;https://github.com/raghavkhanna30/Random-password-generator&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  DEVCommunity #100DaysOfCode
&lt;/h1&gt;

&lt;h1&gt;
  
  
  webdevelopment
&lt;/h1&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>css</category>
      <category>html</category>
    </item>
    <item>
      <title>Twitter Auto Reply bot (JavaScript) </title>
      <dc:creator>Raghav Khanna</dc:creator>
      <pubDate>Tue, 09 Jun 2020 15:00:20 +0000</pubDate>
      <link>https://dev.to/erraghavkhanna/twitter-auto-reply-bot-javascript-5ggl</link>
      <guid>https://dev.to/erraghavkhanna/twitter-auto-reply-bot-javascript-5ggl</guid>
      <description>&lt;h1&gt;
  
  
  Twitter auto reply bot made with JavaScript
&lt;/h1&gt;

&lt;p&gt;Check out github for full usage instructions. 😍&lt;/p&gt;

&lt;p&gt;&lt;a href="Https://github.com/raghavkhanna30/Twitter-auto-reply"&gt;Https://github.com/raghavkhanna30/Twitter-auto-reply&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you like it please give a ⭐&lt;/p&gt;

&lt;p&gt;Cheers..!!! &lt;/p&gt;

&lt;h2&gt;
  
  
  Twitter 🔗
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://twitter.com/erRaghavKhanna/status/1270370751028383745?s=19"&gt;https://twitter.com/erRaghavKhanna/status/1270370751028383745?s=19&lt;/a&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>devops</category>
      <category>codenewbie</category>
      <category>java</category>
    </item>
    <item>
      <title>What is Data Science? </title>
      <dc:creator>Raghav Khanna</dc:creator>
      <pubDate>Sun, 07 Jun 2020 13:45:33 +0000</pubDate>
      <link>https://dev.to/erraghavkhanna/what-is-data-science-2paf</link>
      <guid>https://dev.to/erraghavkhanna/what-is-data-science-2paf</guid>
      <description>&lt;p&gt;What is data science? &lt;/p&gt;

&lt;p&gt;Hmmm.. &lt;/p&gt;

&lt;p&gt;Sometimes writing paragraphs don't say much but pictures says alot. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fte3e5k1cr0fm0cvxjnx1.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fte3e5k1cr0fm0cvxjnx1.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Pics says alot. 😊&lt;/p&gt;

&lt;p&gt;&lt;a href="https://twitter.com/erRaghavKhanna/status/1269625540530499584?s=19" rel="noopener noreferrer"&gt;https://twitter.com/erRaghavKhanna/status/1269625540530499584?s=19&lt;/a&gt;&lt;/p&gt;

</description>
      <category>datascience</category>
      <category>codenewbie</category>
      <category>devops</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Pass by value/reference :EXPLAINED WITH SINGLE GIF (Believe me it's true) </title>
      <dc:creator>Raghav Khanna</dc:creator>
      <pubDate>Fri, 05 Jun 2020 04:47:15 +0000</pubDate>
      <link>https://dev.to/erraghavkhanna/pass-by-value-reference-explained-with-single-gif-believe-me-it-s-true-23ki</link>
      <guid>https://dev.to/erraghavkhanna/pass-by-value-reference-explained-with-single-gif-believe-me-it-s-true-23ki</guid>
      <description>&lt;p&gt;Look at this GIF and i bet you will understand the basic difference between pass by value vs. Pass by reference. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fl4aptnsmawrur69mpixf.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fl4aptnsmawrur69mpixf.gif" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Give a like! &lt;br&gt;
If you find this amazing 😄&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>codenewbie</category>
      <category>java</category>
      <category>devops</category>
    </item>
    <item>
      <title>JavaScript Best Practices for Beginners</title>
      <dc:creator>Raghav Khanna</dc:creator>
      <pubDate>Tue, 02 Jun 2020 13:08:15 +0000</pubDate>
      <link>https://dev.to/erraghavkhanna/javascript-best-practices-for-beginners-npk</link>
      <guid>https://dev.to/erraghavkhanna/javascript-best-practices-for-beginners-npk</guid>
      <description>&lt;h1&gt;
  
  
  Use === Instead of ==
&lt;/h1&gt;

&lt;p&gt;JavaScript utilizes two different kinds of equality operators: === | !== and == | != It is considered best practice to always use the former set when comparing.&lt;/p&gt;

&lt;p&gt;"If two operands are of the same type and value, then === produces true and !== produces false." - JavaScript: The Good Parts&lt;/p&gt;

&lt;p&gt;However, when working with == and !=, you'll run into issues when working with different types. In these cases, they'll try to coerce the values, unsuccessfully.&lt;/p&gt;

&lt;h1&gt;
  
  
  Don't Use Short-Hand
&lt;/h1&gt;

&lt;p&gt;Technically, you can get away with omitting most curly braces and semi-colons. Most browsers will correctly interpret the following:&lt;br&gt;
'''js&lt;/p&gt;

&lt;p&gt;if(someVariableExists)&lt;br&gt;
   x = false&lt;/p&gt;

&lt;p&gt;However, consider this:&lt;/p&gt;

&lt;p&gt;if(someVariableExists)&lt;br&gt;
   x = false&lt;br&gt;
   anotherFunctionCall();&lt;br&gt;
One might think that the code above would be equivalent to:&lt;/p&gt;

&lt;p&gt;if(someVariableExists) {&lt;br&gt;
   x = false;&lt;br&gt;
   anotherFunctionCall();&lt;br&gt;
}&lt;br&gt;
Unfortunately, he'd be wrong. In reality, it means:&lt;/p&gt;

&lt;p&gt;if(someVariableExists) {&lt;br&gt;
   x = false;&lt;br&gt;
}&lt;br&gt;
anotherFunctionCall();&lt;/p&gt;

&lt;p&gt;'''&lt;br&gt;
As you'll notice, the indentation mimics the functionality of the curly brace. Needless to say, this is a terrible practice that should be avoided at all costs. The only time that curly braces should be omitted is with one-liners, and even this is a highly debated topic.&lt;/p&gt;

&lt;p&gt;if(2 + 2 === 4) return 'nicely done';&lt;br&gt;
Always Consider the Future&lt;br&gt;
What if, at a later date, you need to add more commands to this if statement. In order to do so, you would need to rewrite this block of code. Bottom line - tread with caution when omitting.&lt;/p&gt;

&lt;h1&gt;
  
  
  The Fastest Way to Build a String
&lt;/h1&gt;

&lt;p&gt;Don't always reach for your handy-dandy "for" statement when you need to loop through an array or object. Be creative and find the quickest solution for the job at hand.&lt;/p&gt;

&lt;h1&gt;
  
  
  Comment Your Code
&lt;/h1&gt;

&lt;p&gt;It might seem unnecessary at first, but trust me, you WANT to comment your code as best as possible. What happens when you return to the project months later, only to find that you can't easily remember what your line of thinking was. Or, what if one of your colleagues needs to revise your code? Always, always comment important sections of your code.&lt;/p&gt;

&lt;h1&gt;
  
  
  Embrace Progressive Enhancement
&lt;/h1&gt;

&lt;p&gt;Always compensate for when JavaScript is disabled. It might be tempting to think, "The majority of my viewers have JavaScript enabled, so I won't worry about it." However, this would be a huge mistake.&lt;/p&gt;

&lt;p&gt;Have you taken a moment to view your beautiful slider with JavaScript turned off? (Download the Web Developer Toolbar for an easy way to do so.) It might break your site completely. As a rule of thumb, design your site assuming that JavaScript will be disabled. Then, once you've done so, begin to progressively enhance your layout!&lt;/p&gt;

&lt;h1&gt;
  
  
  Always Use Semicolons
&lt;/h1&gt;

&lt;p&gt;Technically, most browsers will allow you to get away with omitting semi-colons.&lt;/p&gt;

&lt;p&gt;var someItem = 'some string'&lt;br&gt;
function doSomething() {&lt;br&gt;
  return 'something'&lt;/p&gt;

&lt;h1&gt;
  
  
  Self-Executing Functions
&lt;/h1&gt;

&lt;p&gt;Rather than calling a function, it's quite simple to make a function run automatically when a page loads, or a parent function is called. Simply wrap your function in parenthesis, and then append an additional set, which essentially calls the function.&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>beginners</category>
      <category>devops</category>
      <category>codenewbie</category>
    </item>
    <item>
      <title>Memory Game : Based on JavaScript</title>
      <dc:creator>Raghav Khanna</dc:creator>
      <pubDate>Sat, 30 May 2020 04:36:59 +0000</pubDate>
      <link>https://dev.to/erraghavkhanna/memory-game-based-on-javascript-41dn</link>
      <guid>https://dev.to/erraghavkhanna/memory-game-based-on-javascript-41dn</guid>
      <description>&lt;h1&gt;
  
  
  Memory Game
&lt;/h1&gt;

&lt;p&gt;Live - &lt;a href="https://memorygamebyraghav.netlify.app/"&gt;https://memorygamebyraghav.netlify.app/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A retro grid-based game in vanilla JavaScript, HTML and CSS&lt;/p&gt;

&lt;p&gt;For full description visit. &lt;br&gt;
&lt;a href="https://github.com/raghavkhanna30/Memorygame/blob/master/README.md"&gt;https://github.com/raghavkhanna30/Memorygame/blob/master/README.md&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Script/code.
&lt;/h1&gt;

&lt;p&gt;//create your board&lt;br&gt;
  function createBoard() {&lt;br&gt;
    for (let i = 0; i &amp;lt; cardArray.length; i++) {&lt;br&gt;
      var card = document.createElement('img')&lt;br&gt;
      card.setAttribute('src', 'images/blank.png')&lt;br&gt;
      card.setAttribute('data-id', i)&lt;br&gt;
      card.addEventListener('click', flipCard)&lt;br&gt;
      grid.appendChild(card)&lt;br&gt;
    }&lt;br&gt;
  }&lt;/p&gt;

&lt;h1&gt;
  
  
  Check for match function
&lt;/h1&gt;

&lt;p&gt;// function checkForMatch() {&lt;br&gt;
    var cards = document.querySelectorAll('img')&lt;br&gt;
    const optionOneId = cardsChosenId[0]&lt;br&gt;
    const optionTwoId = cardsChosenId[1]&lt;br&gt;
    //if(optionOneId == optionTwoId) {&lt;br&gt;
      cards[optionOneId].setAttribute('src', 'images/blank.png')&lt;br&gt;
      cards[optionTwoId].setAttribute('src', 'images/blank.png')&lt;br&gt;
      alert('You have clicked the same image!')&lt;br&gt;
    }&lt;br&gt;
    else if (cardsChosen[0] === cardsChosen[1]) {&lt;br&gt;
      alert('You found a match')&lt;br&gt;
      cards[optionOneId].setAttribute('src', 'images/white.png')&lt;br&gt;
      cards[optionTwoId].setAttribute('src', 'images/white.png')&lt;br&gt;
      cards[optionOneId].removeEventListener('click', flipCard)&lt;br&gt;
      cards[optionTwoId].removeEventListener('click', flipCard)&lt;br&gt;
      cardsWon.push(cardsChosen)&lt;br&gt;
    } else {&lt;br&gt;
      cards[optionOneId].setAttribute('src', 'images/blank.png')&lt;br&gt;
      cards[optionTwoId].setAttribute('src', 'images/blank.png')&lt;br&gt;
      alert('Sorry, try again')&lt;br&gt;
    }&lt;br&gt;
    cardsChosen = []&lt;br&gt;
    cardsChosenId = []&lt;br&gt;
    resultDisplay.textContent = cardsWon.length&lt;br&gt;
    if  (cardsWon.length === cardArray.length/2) {&lt;br&gt;
      resultDisplay.textContent = 'Congratulations! You found them all!'&lt;br&gt;
    }&lt;br&gt;
  }&lt;/p&gt;

&lt;h1&gt;
  
  
  Flipcard
&lt;/h1&gt;

&lt;p&gt;//flip your card&lt;br&gt;
  function flipCard() {&lt;br&gt;
    var cardId = this.getAttribute('data-id')&lt;br&gt;
    cardsChosen.push(cardArray[cardId].name)&lt;br&gt;
    cardsChosenId.push(cardId)&lt;br&gt;
    this.setAttribute('src', cardArray[cardId].img)&lt;br&gt;
    if (cardsChosen.length ===2) {&lt;br&gt;
      setTimeout(checkForMatch, 500)&lt;br&gt;
    }&lt;br&gt;
  }&lt;/p&gt;

&lt;p&gt;createBoard()&lt;br&gt;
})&lt;/p&gt;

&lt;p&gt;For full code you can visit&lt;br&gt;
&lt;a href="https://github.com/raghavkhanna30/Memorygame/blob/master/app.js"&gt;https://github.com/raghavkhanna30/Memorygame/blob/master/app.js&lt;/a&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>devops</category>
      <category>codenewbie</category>
      <category>codepen</category>
    </item>
  </channel>
</rss>
