<?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 Devesh Jadon on Medium]]></title>
        <description><![CDATA[Stories by Devesh Jadon on Medium]]></description>
        <link>https://medium.com/@jadon.devesh98?source=rss-290a064d95b9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*RDPiIWgevV3VFuJDWEpQfw.png</url>
            <title>Stories by Devesh Jadon on Medium</title>
            <link>https://medium.com/@jadon.devesh98?source=rss-290a064d95b9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 03:19:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jadon.devesh98/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[Real Time Communication Cheat Sheet]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-snippet">When it comes to providing real time experience through our apps we need to make a choice out of 3 options. The motive of this article is&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@jadon.devesh98/real-time-communication-cheat-sheet-39572582b8ce?source=rss-290a064d95b9------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@jadon.devesh98/real-time-communication-cheat-sheet-39572582b8ce?source=rss-290a064d95b9------2</link>
            <guid isPermaLink="false">https://medium.com/p/39572582b8ce</guid>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[realtime]]></category>
            <category><![CDATA[websocket]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Devesh Jadon]]></dc:creator>
            <pubDate>Wed, 16 Feb 2022 12:48:16 GMT</pubDate>
            <atom:updated>2022-02-16T12:58:06.306Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Does using let and const really prevent hoisting?]]></title>
            <link>https://medium.com/beginners-guide-to-mobile-web-development/does-using-let-and-const-really-prevent-hoisting-1ff0696dd803?source=rss-290a064d95b9------2</link>
            <guid isPermaLink="false">https://medium.com/p/1ff0696dd803</guid>
            <category><![CDATA[es6]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Devesh Jadon]]></dc:creator>
            <pubDate>Thu, 29 Mar 2018 13:48:41 GMT</pubDate>
            <atom:updated>2018-04-02T11:35:03.900Z</atom:updated>
            <content:encoded><![CDATA[<p>While going through ES6, I came to know about let and const keywords and it was mentioned there that with these keywords we no longer have to worry about hoisting. This made me curious to know how exactly do they do that.</p><p>While looking for possible explanations i came across this.</p><p>It appears that let declarations (and const, which works the same way) may not be hoisted, since a variable declared using let does not appear to exist before it is assigned a value. <strong>however let and const are hoisted</strong> (like var, class and function), but there is a period between entering scope and being declared where they cannot be accessed. This period is the <strong>temporal dead zone (TDZ)</strong>.</p><p><strong>What’s TDZ now? <br></strong>ES6 mentions so called <em>TDZ</em> (stands for <em>Temporal Dead Zone</em>) — this is the region of a program, where a variable or a parameter <em>cannot be accessed</em> until it’s <em>initialized</em> (i.e. received a value).</p><p>We’ll understand the above statement by going through this example</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d03d1dc4a6601278a7994da12ffffb25/href">https://medium.com/media/d03d1dc4a6601278a7994da12ffffb25/href</a></iframe><p>Here we have two scopes, one is the global scope and the other is the scope of function f.<br>When control flow encounters this line</p><pre>console.log(a)</pre><p>It checks for a’s declaration inside<strong> </strong>f(), after failing to find it there it checks for it’s declaration in global scope but a is declared after invocation of f().</p><p>It will give <strong>ReferenceError </strong>instead of<strong> ReferenceError: a is not defined </strong>which is the error that JavaScript throws when it is unable to locate the declaration of<strong> </strong>currently accessed variable. It answers one thing that our control flow is aware about the declaration of variable we are currently accessing and that’s what <strong>hoisting </strong>is.</p><p>Only problem that our control flow is facing is that even after being aware about declaration of a it is not able get a reference of a. The reason behind this is that variable a has entered a temporal dead zone right at the start of the global scope and only comes out of it when control flow encounters this line</p><pre>let a = 1;</pre><p>If it had not been initialized with any value then it would have been assigned undefined because that’s the default value a variable is assigned in JavaScript.</p><p>Now, if we take a look at another example</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4aebd2949e0331ebda093df6463468ee/href">https://medium.com/media/4aebd2949e0331ebda093df6463468ee/href</a></iframe><p>After running this example we’ll not get <strong>ReferenceError </strong>because a has already been declared and called out of the temporal dead zone before invoking f() and our control flow is able to get the reference of a<strong>.</strong></p><p><strong>Why only Temporal Dead Zones?</strong></p><ul><li>To catch programming errors: Being able to access a variable before its declaration is strange. If you do so, it is normally by accident and you should be warned about it.</li><li>For const: Making const work properly is difficult. Quoting Allen Wirfs-Brock: “TDZs ... provide a rational semantics for const . <a href="https://esdiscuss.org/topic/performance-concern-with-let-const">There was significant technical discussion</a> of that topic and TDZs emerged as the best solution.” let also has a temporal dead zone so that switching between let and const doesn’t change behavior in unexpected ways.</li></ul><p>I would recommend reading <a href="https://esdiscuss.org/topic/performance-concern-with-let-const">this technical discussion</a>, It will give you a better insight into the things.</p><p>I hope my this effort made you more aware about what happens behind the scenes. From now on if somebody says that let and const are good because they avoid hoisting, just give them a tour of the temporal dead zones.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1ff0696dd803" width="1" height="1" alt=""><hr><p><a href="https://medium.com/beginners-guide-to-mobile-web-development/does-using-let-and-const-really-prevent-hoisting-1ff0696dd803">Does using let and const really prevent hoisting?</a> was originally published in <a href="https://medium.com/beginners-guide-to-mobile-web-development">Beginner&#39;s Guide to Mobile Web Development</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Exactly is GitHub Anyway?]]></title>
            <link>https://medium.com/beginners-guide-to-mobile-web-development/what-exactly-is-github-anyway-e7d0ef459002?source=rss-290a064d95b9------2</link>
            <guid isPermaLink="false">https://medium.com/p/e7d0ef459002</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[version-control-system]]></category>
            <dc:creator><![CDATA[Devesh Jadon]]></dc:creator>
            <pubDate>Fri, 09 Mar 2018 20:41:23 GMT</pubDate>
            <atom:updated>2020-12-30T09:26:27.672Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I6rxWgpXmKeGi3_JqNvmnA.jpeg" /></figure><p>Today, the U.S. leads the world in software developers, with about 3.6 million. India has about 2.75 million. But by the end of 2018, India will have 5.2 million developers and the U.S. will have 4.5 million.</p><p>Don’t worry i am not trying to scare you. We developers are a peace loving community and most of us work toward a same goal of making world a better place by working collaboratively. Being smart peacekeepers we chose our tools wisely, One of them is GitHub.</p><p><strong>Wait, I have heard git somewhere. Are they anyhow related?</strong></p><p><a href="https://git-scm.com/video/what-is-git">Git</a> is an open-source <a href="https://git-scm.com/book/en/v2/Getting-Started-About-Version-Control">version control system</a> that was started by Linus Trovalds - the same person who created Linux.</p><p>Git is a command-line tool, but the center around which all things involving Git revolve is the hub - GitHub - where developers store their projects and network with like minded people.</p><p>Without wasting much time, let’s get started.</p><p>After you are done signing up on <a href="https://github.com/">GitHub</a> you’ll see the following view but without any repositories.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h9z9Dtf-QFPgrFImPXmuNw.png" /></figure><blockquote>A repository (usually abbreviated to “repo”) is a location where all the files for a particular project are stored. Each project has its own repo, and you can access it with a unique URL.</blockquote><p>A repository can only be one of two types i.e public or private. All of the open source projects found on GitHub are public. Every account holder on GitHub has to upgrade their account to be gain the privilege of making private repositories.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qDbCdshjIuGUtYWQsXPTGg.png" /></figure><p><strong><em>While naming a repository try following the following conventions</em></strong><em><br>- Use lower case<br>- Use dashes i.e my-first-repo looks way better that myfirstrepo or my_first_repo.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/949/1*ivWkAPWbnebZgiJANtvFRg.png" /></figure><p>Once you are done with naming your repo and adding a license to it then you’ll have a good looking repo like we have here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aTGMthwXUp9N0V93mXPvsA.png" /></figure><p><strong><em>I know you are tempted to know what all these new options are for, well we’ll go through them one by one.</em></strong></p><p><strong>Issues:<em> </em></strong>This section is one of the most popular bug tracker in the world. It provides the owners of a repository the ability to organize, tag and assign to milestones issues. If you open an issue on a project managed by someone else, it will stay open until either you close it (for example if you figure out the problem you had) or if the repo owner closes it.</p><p><strong>Settings: </strong>This section has it’s own set of options, first we’ll cover the collborators section. Remember we talked about the peacekeepers? well this is your team of reckoning. You can find these fellas by just typing their github username.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5Zhh9Fw5Dw0U3lvtffHzaA.png" /></figure><p>They will recieve an invite from your side and on accepting it they attain the right to contribute to the project.</p><p><a href="https://git-scm.com/book/en/v1/Git-Branching-What-a-Branch-Is">Branches</a> display all the git branches that are present in your repository. This is where the fun part starts, you don’t have to depend on another feature to be delivered before you could start working on your own features.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-SmPfNCYyLoEQfPbpyBD3Q.png" /></figure><p>Another option that we have here is webhooks. Webhooks allow external services to be pinged when certain events happen in the repository, like when code is pushed, a fork is made, a tag was created or deleted. When an event happens, GitHub sends a POST request to the URL we told it to use.</p><p>A common usage of this feature is to ping a remote server to fetch the latest code from GitHub when we push an update from our local computer. We push to GitHub, GitHub tells the server we pushed, the server pulls from GitHub.</p><p><strong>Pull Requests:</strong> Pull requests let you tell others about changes you’ve pushed to a GitHub repository.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*avf_up2ckPX42WK3sCk_IQ.png" /></figure><p>Once a pull request is sent, interested parties can review the set of changes, discuss potential modifications, and even push follow-up commits if necessary.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kySBhRuTbTKtVccm0xYYpg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ry2dX6swdhrFYo9lLriwYg.png" /></figure><p>After the changes are approved, the next step is to merge these changes to the target branch. After merging these changes you can see the commits of source branch under commits of target branch.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WqQK_8D27pu4N2uFfMF_1Q.png" /></figure><p><strong>Finishing Up <br></strong>GitHub is an amazing tool and service to take advantage of, a real gem in today’s developer toolset. This effort will help you start, but the real experience of working on GitHub on open source (or closed source) projects is something not to be missed.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FIiqobsQscr4PK%2Ftwitter%2Fiframe&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FIiqobsQscr4PK%2Fgiphy.gif&amp;image=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FIiqobsQscr4PK%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="182" frameborder="0" scrolling="no"><a href="https://medium.com/media/d78f3aa330b075a707997170b1f34c59/href">https://medium.com/media/d78f3aa330b075a707997170b1f34c59/href</a></iframe><p>This is my first attempt in writing a tech blog, looking forward to your feedback. I am writing this blog while being a part of Udacity’s Mobile Web India Scholarship. <br>Slack Handle: @Devesh</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e7d0ef459002" width="1" height="1" alt=""><hr><p><a href="https://medium.com/beginners-guide-to-mobile-web-development/what-exactly-is-github-anyway-e7d0ef459002">What Exactly is GitHub Anyway?</a> was originally published in <a href="https://medium.com/beginners-guide-to-mobile-web-development">Beginner&#39;s Guide to Mobile Web Development</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>