<?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 Jaskaran Singh on Medium]]></title>
        <description><![CDATA[Stories by Jaskaran Singh on Medium]]></description>
        <link>https://medium.com/@JaskaranSingh01?source=rss-b9cf147fbc9e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*gYhq1HVEJVYiah-dDdsupw.jpeg</url>
            <title>Stories by Jaskaran Singh on Medium</title>
            <link>https://medium.com/@JaskaranSingh01?source=rss-b9cf147fbc9e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 04:30:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@JaskaranSingh01/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[3 Women Who Made The Tech Community Proud]]></title>
            <link>https://medium.com/netscrew-technologies/3-women-who-made-the-tech-community-proud-f9963ce92e77?source=rss-b9cf147fbc9e------2</link>
            <guid isPermaLink="false">https://medium.com/p/f9963ce92e77</guid>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[women-in-tech]]></category>
            <category><![CDATA[empowerment]]></category>
            <category><![CDATA[women]]></category>
            <dc:creator><![CDATA[Jaskaran Singh]]></dc:creator>
            <pubDate>Fri, 08 Mar 2019 11:19:18 GMT</pubDate>
            <atom:updated>2019-03-08T11:19:18.550Z</atom:updated>
            <content:encoded><![CDATA[<p>Technology has seeped into every facet of our life. We live in a womb of technology from day to night. The very evident question that often comes to our minds is — Who invented some of the technological marvels that we are obsessed with today?<br>The apparent answers that we are ought to receive are Thomas Edison, Charles Babbage, Benjamin Franklin, Nikola Tesla, Bill Gates, Steve Jobs, Larry Ellison and many more. But, therein lies the tragedy of the situation.<br>Nine out of ten times, it&#39;s always the men who are remembered for tech revolution and breakthroughs. It is never the women whose name is taken in first breath, although they contribute equally to the quantum as their male counterpart do.<br>Some of you might disagree. But women are equally proficient. Today, on the occasion of <strong>International Women’s Day</strong>,<strong> </strong>we present a testament for the above statement!</p><h4>1. The Compiler Queen</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YQricZsOUm7ArlGjSZc78A.jpeg" /><figcaption><strong>Admiral Grace Hopper</strong></figcaption></figure><p>Can you execute code without a compiler? The evident answer is No. Think about a programming pyramid without a compiler, it would have been a waste without an endeavor of a mental giant <strong>Admiral Grace Hopper</strong>.</p><h4>2. The First Programmer</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gto6O8ksw_mKQAbR03hkYg.jpeg" /><figcaption><strong>Ada Lovelace</strong></figcaption></figure><p>One of Charles Babbage’s (The Father of Computer) closest friends — <strong>Ada Lovelace</strong>, a brilliant Mathematician is the world’s first programmer. She translated Babbage’s paper on Analytical Engine ending up in her own notes written in a way the engine could be used for complex Mathematical number sequence. She was the one who introduced the concept of looping. She thought that it would become an interest of future generations. She died at the young age of 37 leaving a lasting impression on the course of computing.</p><h4>3. The Internet Mommy</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/816/1*NBcJFH3HUgf-IRaTl7Hb6A.png" /><figcaption><strong>Radia Perlman</strong></figcaption></figure><p>Tim Berners Lee and Vint Cerf are well — heard names in the world of internet. But many of you may not have heard the name of <strong>Radia Perlman</strong>. She is a Ph.D. in Computer Science from MIT becoming the first person to solve the problem of file sharing between two computers by ‘spanning tree protocol algorithm’ (STP) in 1985. She has over 80 patents in her name. Various contributions were made by her towards the advancement of the Internet.</p><p>Let’s take a moment to appreciate the efforts of these women on <strong>The International Women’s Day</strong>. Do not forget to applaud and share with your friends. Drop your comments below and share with us some more names that can be added to the list.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f9963ce92e77" width="1" height="1" alt=""><hr><p><a href="https://medium.com/netscrew-technologies/3-women-who-made-the-tech-community-proud-f9963ce92e77">3 Women Who Made The Tech Community Proud</a> was originally published in <a href="https://medium.com/netscrew-technologies">Netscrew</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Elucidating Arrow Functions in JavaScript]]></title>
            <link>https://medium.com/netscrew-technologies/elucidating-arrow-functions-in-javascript-236d91bcbf5d?source=rss-b9cf147fbc9e------2</link>
            <guid isPermaLink="false">https://medium.com/p/236d91bcbf5d</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[ecmascript-6]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[es2015]]></category>
            <category><![CDATA[arrow-functions]]></category>
            <dc:creator><![CDATA[Jaskaran Singh]]></dc:creator>
            <pubDate>Mon, 04 Mar 2019 19:04:08 GMT</pubDate>
            <atom:updated>2019-03-04T19:04:08.615Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZJhQ0jYOeWULgjZfRvK_lQ.jpeg" /></figure><p>Arrow Functions were introduced in ECMAScript 6 (ES2015). They are often referred to as “Fat Arrow Functions” or “Lambda Functions”.</p><p>Arrow Functions are syntactically different from the traditional ES5 functions. An ES5 function has the following syntax:</p><pre>function foo() {<br>    console.log(&quot;Bar&quot;);<br>}</pre><pre>foo(); // Bar</pre><p>However, using Arrow Functions, the functions can be made more precise and clean.</p><pre>foo = () =&gt; {<br>    console.log(&quot;Bar&quot;);<br>}</pre><pre>foo(); // Bar</pre><p>As you can see, the keyword <strong>function </strong>is omitted and =&gt; <strong>(fat arrow) </strong>is used to write Arrow Functions.</p><h4>Parameters</h4><p>The example above is the case where we require absolutely no parameters. In the case of a single parameter, the parameter can be provided inside the parenthesis or the parenthesis can just be omitted.</p><pre>foo = a =&gt; {<br>    console.log(a);<br>}</pre><pre>foo(2); // 2</pre><p>When multiple parameters are required, the parenthesis is mandatory.</p><pre>foo = (a, b) =&gt; {<br>    console.log(a + b);<br>}</pre><pre>foo(2, 4); // 6</pre><h4>Returning</h4><p>Values can be returned from the Arrow Functions using <strong>return </strong>keyword as in the case of simple ES5 functions.</p><pre><strong>// ES5 Function</strong><br>function sum(a, b) {<br>    return a + b;<br>}</pre><pre>console.log(sum(3, 4)); // 7</pre><pre><strong>// ES6 Arrow Function</strong><br>sum = (a, b) =&gt; {<br>    let c = a + b;<br>    return c;<br>}</pre><pre>console.log(sum(3, 4)); // 7</pre><p>However, if we have a single line of code inside the function, we are allowed to omit the braces and the <strong>return</strong> keyword.</p><pre>sum = (a, b) =&gt; a + b;<br>console.log(sum(3, 4)); // 7</pre><p>The above example shows how the Arrow Functions make our code compact and less verbose.</p><p>Returning objects the same way will throw an error SyntaxError: Unexpected token :</p><p>The workaround is putting an addition pair of braces () around the line of code so that the JavaScript engine can understand that this is an object, not a block of code.</p><pre>person = (name, age) =&gt; { name: name, age: age }; // Without ()<br>console.log(person(&#39;Albus Dumbledore&#39;, &#39;150&#39;));</pre><pre><strong>Output: </strong><strong>SyntaxError: Unexpected token :<br></strong></pre><pre>person = (name, age) =&gt; ({ name: name, age: age }); // With ()<br>console.log(person(&#39;Albus Dumbledore&#39;, &#39;150&#39;));</pre><pre><strong>Output: { name: &#39;Albus Dumbledore&#39;, age: &#39;150&#39; }</strong></pre><h4>Scope &amp; Context</h4><p>In the old function definitions, the keyword this was bound to different values, depending upon the context, whereas in Arrow Functions, this is lexically bound to the scope (lexical scope basically means that the scope is in the block of code). Let us understand this through the following example.</p><pre>let myObj = {<br>    a: 2,<br>    <br>    foo: function () {        <br>        setInterval(function () {<br>            console.log(this.a);<br>        }, 1000)<br>    }<br>}</pre><pre>myObj.foo();</pre><p>This shows that on calling the function foo() with myObj, it shows the output:</p><pre>undefined<br>undefined...</pre><p>This is because this is not bound to myObj, rather it is bound to the Node’s <a href="https://nodejs.org/api/timers.html#timers_class_timeout">Timeout</a> object. But, we wanted this to refer to myObj. We can achieve that using Arrow Functions.</p><pre>let myObj = {<br>    a: 2,<br>    <br>    foo: function () {        <br>        setInterval(() =&gt; {<br>            console.log(this.a);<br>        }, 1000)<br>    }<br>}</pre><pre>myObj.foo();</pre><p>Now the output will be:</p><pre>2<br>2...</pre><p>this is now bound to myObj. You can verify this by logging this in both cases.</p><h4>Can Arrow Functions replace all kinds of functions?</h4><p>No! There might be some cases where Arrow Functions are not useful.</p><p>Arrow Functions cannot be used as object methods.</p><pre>let myObj = {<br>    a: 2,<br>    foo: () =&gt; {<br>        console.log(this.a);<br>    }<br>}</pre><pre>myObj.foo(); <strong>// undefined</strong></pre><p>We get undefined because this is not bound to myObj, as expected. this does not bind to the object that called the function foo(). Hence, Arrow Functions are not useful for object methods.</p><p>There are some other cases too where Arrow Functions do not serve any purpose — Constructors and Generators.</p><h4>Summary</h4><p>Arrow Functions are an amazing feature of ES6 and change the way of writing the old boring ES5 function syntax. However, using them wherever and whenever required is completely necessary. Arrow Functions surely improve the readability of our code but they must not be used as Object Methods, Constructors and Generators.</p><p>For more information, read: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions">Arrow Functions</a></p><p>I hope you liked the article. Do not forget to applaud and share with your friends.</p><blockquote>Check out my previous article: <a href="https://medium.com/netscrew-technologies/var-let-const-an-overview-and-comparison-3f1220b21774">var, let &amp; const — An Overview and Comparison</a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=236d91bcbf5d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/netscrew-technologies/elucidating-arrow-functions-in-javascript-236d91bcbf5d">Elucidating Arrow Functions in JavaScript</a> was originally published in <a href="https://medium.com/netscrew-technologies">Netscrew</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[var, let & const — An Overview and Comparison]]></title>
            <link>https://medium.com/netscrew-technologies/var-let-const-an-overview-and-comparison-3f1220b21774?source=rss-b9cf147fbc9e------2</link>
            <guid isPermaLink="false">https://medium.com/p/3f1220b21774</guid>
            <category><![CDATA[es6]]></category>
            <category><![CDATA[var]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[etl]]></category>
            <category><![CDATA[const]]></category>
            <dc:creator><![CDATA[Jaskaran Singh]]></dc:creator>
            <pubDate>Sat, 02 Mar 2019 20:56:37 GMT</pubDate>
            <atom:updated>2019-03-02T20:56:37.639Z</atom:updated>
            <content:encoded><![CDATA[<h3>var, let &amp; const — An Overview and Comparison</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rFeip7iSqFNG_wp0AIpqsw.jpeg" /></figure><p>ECMAScript 6 (also known as ES6 or ECMAScript 2015) was finalized in <strong>June 2015</strong> and it came out with a whole bunch of new features like:</p><ul><li><em>Constants (</em><strong><em>const</em></strong><em>)</em></li><li><em>Block-scoped Variables (</em><strong><em>let</em></strong><em>)</em></li><li><em>Promises</em></li><li><em>Arrow Functions</em><br>and many more…</li></ul><p>But, let us concentrate on the first two for now.</p><p>Do you remember our old friend <strong>var</strong>? It is simply used for variable declarations.</p><pre><strong>var</strong> x <strong>=</strong> <strong>&#39;</strong>I stepped on a Corn Flake, now I&#39;m a Cereal Killer<strong>&#39;;</strong></pre><p>I know that’s not funny. Anyway, <strong>var </strong>had some issues which led to the creation of <strong>let</strong> &amp; <strong>const.</strong></p><p>Let us look over these issues in detail.</p><h4>Function-Scoped</h4><pre><strong>function</strong> test<strong>()</strong> <strong>{</strong><br>    <strong>for (var</strong> i <strong>=</strong> 0; i <strong>&lt;</strong> 5; i<strong>++) {</strong><br>        <strong>console</strong>.<strong>log(&quot;</strong>Inside the loop: <strong>&quot; + </strong>i<strong>);</strong><br>    }<br>    <strong>console</strong>.<strong>log(&quot;</strong>After the loop: <strong>&quot; +</strong> i<strong>);</strong><br><strong>}</strong></pre><p>When we run the function <strong>test()</strong>, the output will be:</p><pre>Inside the loop: 0<br>Inside the loop: 1<br>Inside the loop: 2<br>Inside the loop: 3<br>Inside the loop: 4<br>After the loop: 5</pre><p>The above example clearly illustrates that the variable <strong>i</strong> can be accessed outside the <strong>for </strong>loop, though it was declared inside that. This is because <strong>var</strong> is <strong>function-scoped</strong>. A variable declared with <strong>var</strong> can be accessed anywhere after declaration (in the same function).</p><h4>Hoisting</h4><p>Hoisting is the JavaScript’s way of automatically moving the variable and function declarations to the top of their scope before the execution of the code.</p><p>For instance, in the code below, the variable <strong>name</strong> is declared and initialized after it is used.</p><pre><strong>console</strong>.<strong>log(</strong>name<strong>);</strong><br><strong>var </strong>name <strong>=</strong> <strong>&quot;</strong>Gellert Grindelwald<strong>&quot;;</strong></pre><p>But on the execution, the declaration is moved to the top and it is interpreted as:</p><pre><strong>var</strong> name;<br><strong>console</strong>.<strong>log(</strong>name<strong>);</strong><br>name <strong>=</strong> <strong>&quot;</strong>Gellert Grindelwald<strong>&quot;;</strong></pre><p>This is the reason that <strong>name</strong> is initialized with a value of <strong>undefined</strong> and output is <strong>undefined. </strong>The code produces absolutely no errors.</p><p>These two problems are solved by using <strong>let</strong> instead of <strong>var</strong>.</p><p>In our first example let us replace <strong>var </strong>with <strong>let</strong>.</p><pre><strong>function</strong> test<strong>()</strong> <strong>{</strong><br>    <strong>for (let</strong> i <strong>=</strong> 0; i <strong>&lt;</strong> 5; i<strong>++) {</strong><br>        <strong>console</strong>.<strong>log(&quot;</strong>Inside the loop: <strong>&quot; + </strong>i<strong>);</strong><br>    }<br>    <strong>console</strong>.<strong>log(&quot;</strong>After the loop: <strong>&quot; +</strong> i<strong>);</strong><br><strong>}</strong></pre><p>If we now run the function<strong> test()</strong> again, the output will be:</p><pre>// Inside<br>Inside the loop: 0<br>Inside the loop: 1<br>Inside the loop: 2<br>Inside the loop: 3<br>Inside the loop: 4</pre><pre>// After<br>ReferenceError: i is not defined</pre><p>We get a <strong>ReferenceError</strong> for the variable <strong>i </strong>that is used outside the <strong>l</strong>oop. The reason is that <strong>let </strong>is <strong>block-scoped</strong>. The value of the variable declared with <strong>let</strong> can only be accessed in the same block where it is declared. Now, this makes sense as we would always want to keep our variables block-scoped.</p><p>Now, the second issue was the automatic initialization of the variable with <strong>undefined </strong>due to JavaScript’s hoisting behavior.</p><p>Replace <strong>var</strong> with <strong>let</strong> in this example and you will clearly see the difference.</p><pre><strong>console</strong>.<strong>log(</strong>name<strong>);</strong><br><strong>let </strong>name <strong>=</strong> <strong>&quot;</strong>Gellert Grindelwald<strong>&quot;;</strong></pre><p>In the case of <strong>let</strong>, the variables are hoisted as in the case of <strong>var</strong>, but the initialization to <strong>undefined</strong> does not occur. The variable can only be accessed after it is declared. Until then, the variable is said to be in <strong><em>Temporal Dead Zone</em></strong><em>.</em></p><p>The code above will result in a <strong>ReferenceError </strong>as the declaration has been done after the variable is logged.</p><p>In a way, <strong>let</strong> helps you follow the good practices and solves the two major issues with <strong>var</strong>. So, it can be replaced with <strong>var </strong>in most cases.</p><h4>const</h4><p><strong>const</strong> has a similar behavior to<strong> let</strong>. The variables declared with const are block-scoped and they cannot be accessed until they are declared.</p><p>However, one major difference between const and let is that the const variables maintain <strong>constant values</strong>. Once a value is initialized, you cannot re-assign or re-declare the const variable.</p><p>Let us understand this through examples.</p><pre>// using var<strong><br>var</strong> name <strong>=</strong> <strong>&quot;</strong>Bellatrix Lestrange<strong>&quot;;</strong><br>name <strong>=</strong> <strong>&quot;</strong>Mad Eye Moody<strong>&quot;;</strong><br><strong>console</strong>.<strong>log(</strong>name<strong>);</strong></pre><pre>// using let<br><strong>let</strong> name <strong>=</strong> <strong>&quot;</strong>Bellatrix Lestrange<strong>&quot;;</strong><br>name <strong>= &quot;</strong>Mad Eye Moody<strong>&quot;;</strong><br><strong>console</strong>.<strong>log(</strong>name<strong>);</strong></pre><p>In both the above examples, the output is:</p><pre>Mad Eye Moody</pre><p>But, using <strong>const </strong>will throw an error:</p><pre><strong>const</strong> name <strong>=</strong> <strong>&quot;</strong>Bellatrix Lestrange<strong>&quot;;</strong><br>name <strong>= &quot;</strong>Mad Eye Moody<strong>&quot;;</strong><br><strong>console</strong>.<strong>log(</strong>name<strong>);</strong></pre><pre>// TypeError: Assignment to constant variable.</pre><p>This proves that we cannot re-assign a constant variable.</p><p>We cannot re-declare it even using <strong>const </strong>again.</p><pre><strong>const</strong> name <strong>= &quot;</strong>Bellatrix Lestrange<strong>&quot;;</strong><br><strong>const </strong>name <strong>=</strong> <strong>&quot;</strong>Mad Eye Moody<strong>&quot;;</strong><br><strong>console</strong>.<strong>log(</strong>name<strong>);</strong></pre><pre>// SyntaxError: Identifier &#39;name&#39; has already been declared</pre><p><strong>const </strong>can replace<strong> let </strong>in many cases and it is a good practice to do so, but in some cases such as iterating variable in loops, we cannot use <strong>const</strong> as it changes the value in every iteration.</p><p>This was a simple explanation and comparison of <strong>var, let &amp; const. </strong>I hope you liked it. Do not forget to applaud and share with your friends. Coming back with more soon.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3f1220b21774" width="1" height="1" alt=""><hr><p><a href="https://medium.com/netscrew-technologies/var-let-const-an-overview-and-comparison-3f1220b21774">var, let &amp; const — An Overview and Comparison</a> was originally published in <a href="https://medium.com/netscrew-technologies">Netscrew</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The World of Pawn]]></title>
            <link>https://medium.com/netscrew-technologies/the-world-of-pawn-a80cd2731606?source=rss-b9cf147fbc9e------2</link>
            <guid isPermaLink="false">https://medium.com/p/a80cd2731606</guid>
            <category><![CDATA[programming-languages]]></category>
            <category><![CDATA[game-development]]></category>
            <category><![CDATA[scripting]]></category>
            <category><![CDATA[gaming]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Jaskaran Singh]]></dc:creator>
            <pubDate>Mon, 07 Jan 2019 09:24:30 GMT</pubDate>
            <atom:updated>2019-01-07T09:38:58.052Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/791/1*YuMRlE0pLK3JM982csx3cg.png" /><figcaption>Source: <a href="https://www.moddb.com/mods/san-andreas-multiplayer">https://www.moddb.com/mods/san-andreas-multiplayer</a></figcaption></figure><p>Most of you probably have played or at least heard about the game <strong>‘Grand Theft Auto: San Andreas’</strong>. Yes, I am talking about such an old game in 2019. We all have smashed many people and destroyed many things while driving an ambulance. This whole story, or at least, its internal parts were pre-scripted and the story is quite familiar to all of us.</p><blockquote><strong>But what if I tell you that there is another side of it?</strong></blockquote><p>You can play San Andreas Multiplayer (SA:MP) with your friends all over the world with custom stories (sometimes no story at all), custom objects, custom commands, and much more stuff. Many of you might already know about this, but for those who don’t, this is ama-zzz-zzing. There are thousands of servers for you to play on.</p><p>Just download the latest SA:MP client from <a href="http://sa-mp.com/">here</a> and install it in your GTA San Andreas folder.</p><p>But what’s more interesting is developing those servers.</p><p>Pawn is a free scripting language by <a href="https://www.compuphase.com/">CompuPhase</a> under <a href="https://opensource.org/licenses/apache2.0.php">Apache 2.0 license</a> used to develop SA:MP gamemodes. It is a simple and strong, typeless, C-like language that can perform magic and changes your GTA experience forever. Pawn is hosted on <a href="https://github.com/compuphase/pawn">GitHub</a>.</p><p>Pawn does not support object-oriented programming but is so beautifully written, that you don’t feel the need.</p><p>Stay tuned to learn the basics of Pawn scripting in my next article. Please don’t forget to provide your valuable feedback.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a80cd2731606" width="1" height="1" alt=""><hr><p><a href="https://medium.com/netscrew-technologies/the-world-of-pawn-a80cd2731606">The World of Pawn</a> was originally published in <a href="https://medium.com/netscrew-technologies">Netscrew</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>