<?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 Arsalan Khattak on Medium]]></title>
        <description><![CDATA[Stories by Arsalan Khattak on Medium]]></description>
        <link>https://medium.com/@khattakdev?source=rss-699f1ab9b73e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*QGdvXhXtkk0FcycV</url>
            <title>Stories by Arsalan Khattak on Medium</title>
            <link>https://medium.com/@khattakdev?source=rss-699f1ab9b73e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 22:27:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@khattakdev/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[How I Went From Introvert to Developer Advocate]]></title>
            <link>https://medium.com/major-league-hacking/how-i-went-from-introvert-to-developer-advocate-266131d7be2c?source=rss-699f1ab9b73e------2</link>
            <guid isPermaLink="false">https://medium.com/p/266131d7be2c</guid>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[developer-advocacy]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[major-league-hacking]]></category>
            <category><![CDATA[hackathons]]></category>
            <dc:creator><![CDATA[Arsalan Khattak]]></dc:creator>
            <pubDate>Thu, 02 Sep 2021 21:23:00 GMT</pubDate>
            <atom:updated>2021-09-02T21:23:00.279Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*X0RYOYyujTlQmckn" /></figure><p>I was 11 years old at my school’s annual kickoff event to welcome us back from summer break. I stared across the room and saw my friend, but my legs began to shake as I contemplated having to socialize with the hundreds of classmates that filled the space. The idea of having to pass countless students to have a conversation with my friend was so daunting that I could barely move my feet. Fast forward to the present day, I am currently preparing to do a live stream for GitHub. The amount I’ve grown in the last ten years is immeasurable and I owe it to the hacker community and getting involved in Developer Advocacy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*OlURSqe_MtsseiVR" /><figcaption>Arsalan in his high school in Kohat in 2015.</figcaption></figure><p>A bit about myself, I grew up in Kohat (a small city in Pakistan) where there wasn’t a lot of knowledge or resources for people interested in Computer Science. The basic consensus amongst my community was that <em>computers are used for gaming which is a waste of time</em>. This was not my thought process at all, computers were magical. They unlock innumerable possibilities and allow you to connect with people globally. While many of my classmates delved into the world of gaming, I used my computer to find resources and teach myself about coding.</p><p>That’s how I found the Microsoft Virtual Academy (you may know it as Channel 9) and started learning C#. Being able to learn virtually with a series of videos was conducive to my learning because I shied away from asking questions in classroom settings, but also made it challenging when I hit a wall and didn’t know how to proceed. It ended up taking me 3–4 years to complete the tutorials because I’d get stuck and have to start over, reteaching myself the same concepts and relying on Google to help me through it. No matter how challenging it was or how long it took me, this was my first big step to becoming a coder and finding the developer community and I couldn’t be happier that I persevered and finished them.</p><p>The more I learned, the hungrier I was to learn. I moved away from C# and started diving into JavaScript and web development which I taught myself through Udemy courses. It was at this time that I started to realize the progress I was making and felt like a real coder. I wasn’t sitting at my computer gaming, I was building things! I had projects to show people (notably my cloned website of BBC News) and I could show others that I wasn’t wasting my time. I was graduating from high school and ready to find a community of other coding enthusiasts at university.</p><p>In 2018, I left Kohat and moved to Islamabad (the capital of Pakistan) where I continued to “waste my time” (as my neighbors would’ve said) and pursued a Bachelor’s degree in Computer Science. I was faced with a new city and new people and I was terrified and overwhelmingly excited. I was surrounded by a diversity of people and thoughts.</p><p>Knowing nobody, I was looking for ways to meet people with similar interests and came across a meetup on Facebook for the <a href="https://www.facebook.com/groups/IslamabadDevC/">Facebook Developer Circle, Islamabad</a>. I went back and forth on attending but am so glad that I did. Not only was their food at the event (a hacker’s favorite!) but I was exposed to a totally different mindset that I had not found at home in Kohat where local tech meetups were non-existent. Getting to meet new people and learn alongside them with the same passion and excitement is something I’ll never forget and made me want to immerse myself in communities of like-minded people. I had been missing that for so long and here, in this new city, I found it and found myself.</p><p>From that point on, I attended almost every event with the DevC community. With each meetup, I got more and more comfortable with the people I met, sharing my own personal experiences and projects. It’s crazy to think that a year later, I presented my first talk. I went from the shy student who couldn’t make his way across the courtyard to having a classroom of people listening to me speak! Trust me, I was very nervous but the excitement was next level. Where I had previously taken small steps, this was a huge leap for me and gave me the boost of confidence I needed to start doing more public speaking.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WPxyBvY7jlTi3tcr" /><figcaption>Arsalan <a href="https://medium.com/@arsalankhattak/attending-fb-build-day-as-speaker-react-360-2a75b39f11d3">giving a talk on React 360</a> at the Facebook Hackathon in Islamabad, Pakistan in 2019</figcaption></figure><p>Once I realized that I could help others grow, I became hooked on getting involved. I threw myself into every community I could find from <a href="https://education.github.com/experts">GitHub Campus Experts</a> to <a href="https://developers.google.com/community/dsc">Google Developer Students Club</a> to <a href="https://studentambassadors.microsoft.com/">Microsoft Gold Student Ambassador</a> to now, being an <a href="https://fellowship.mlh.io/">MLH Fellowship alumni</a> and current Pod Leader. I spend my days helping other coding enthusiasts find the resources they need and supporting them on their hacker journey. Not only has this helped me learn about Developer Advocacy but it has helped me to expand my network larger than the young introvert in me ever thought possible.</p><p>The ways in which I’ve grown over the last three years through these communities are incredible and have turned me into the Developer Advocate I am today. I now regularly share my thoughts in <a href="https://dev.to/khattakdev">articles and blog posts</a>, I do live streams with well-respected companies (<a href="https://www.twitch.tv/videos/1132282145?collection=4M0HyjHrhxZbFQ">GitHub</a>, ThePracticalDev, and the MLH Fellowship), and I even co-founded a community with my friends (<a href="https://www.facebook.com/mlsaislamabad/">Microsoft Student Ambassador, Islamabad</a>) where we empower others in the area to code and learn about different technologies.</p><p>Now, as a senior at the National University of Modern Languages, Islamabad (NUML), it is crazy to look back on how much has happened since that first presentation. As scary as it can be to put your hand in the air and put yourself out there, the rush of realizing you could do it all along is amazing. My confidence and abilities have grown because I continue to search out opportunities for growth and push myself to be seen. I am no longer that shy student from Kohat and at times, I need to remind myself of that. But that’s okay, we all have moments of doubt. In those times, we have to remind ourselves that we are capable of more than we think and that there is always room for growth.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*WpHHt3wiT8_XpYMf" /><figcaption>Arsalan gives a talk at Chrome Dev Extended in December 2019</figcaption></figure><p>So, where do you go from here? Raise your hand in class. Share what you’re learning even if you think no one is reading your posts or tweets. Finish those online tutorials (no matter how many times you have to start them over). Walk across the room and say hi to your friend! The more you do, the easier it will become, and before you know it, you’ll be the one giving a presentation at the front of the room.</p><p>If you’d like to connect with me, you can find me on all platforms as @khattakdev</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=266131d7be2c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/major-league-hacking/how-i-went-from-introvert-to-developer-advocate-266131d7be2c">How I Went From Introvert to Developer Advocate</a> was originally published in <a href="https://medium.com/major-league-hacking">Major League Hacking</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Show additional details about your page on search engines?]]></title>
            <link>https://medium.com/@khattakdev/show-additional-details-about-your-page-on-search-engines-10b815028339?source=rss-699f1ab9b73e------2</link>
            <guid isPermaLink="false">https://medium.com/p/10b815028339</guid>
            <category><![CDATA[search]]></category>
            <category><![CDATA[seo]]></category>
            <category><![CDATA[google]]></category>
            <category><![CDATA[engine]]></category>
            <dc:creator><![CDATA[Arsalan Khattak]]></dc:creator>
            <pubDate>Sun, 05 Jul 2020 08:02:37 GMT</pubDate>
            <atom:updated>2020-07-05T08:02:37.281Z</atom:updated>
            <content:encoded><![CDATA[<p>If you want your web pages to show additional data just like this image, then you definitely need to know about Structured Data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/306/1*MijYmKKw4AeBN0h3xQRm2w.png" /><figcaption>Your Recipe Page on Search Engine</figcaption></figure><p>You can add additional details at the top of your page to help google search to understand more about your web page. These additional details are known as structured data and you will learn about it today.</p><p><strong>These additional details is detected by every search engine but this article is focused on Google Search Engine.</strong></p><h3>Table of Content</h3><ul><li>What is Structured Data?</li><li>Structured Data Format</li><li>Generating Structured Data</li><li>Implementation</li><li>Debugging and Testing</li></ul><h3>What is Structured Data?</h3><p>Structured Data is a standardized set of additional markups that you can put on your page to tell machines like GoogleBot, BingBot, etc more about your page.</p><h3>Structured Data Format</h3><p>There are three different formats you can use to structured data. These are the followings:</p><ul><li>JSON-LD</li><li>Microdata</li><li>RDFa</li></ul><p>Among these three, <strong>JSON-LD </strong>is recommended by Google, it is easily detected by GoogleBot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/994/1*_BoKet24NqxcWtJ2QgZcMQ.png" /><figcaption>JSON-LD example (developers.google.com)</figcaption></figure><h3>Generating Structured Data</h3><p>So now you know about different types of structured data, you might be thinking about how to generate this data? Let’s talk about that.</p><p>There are many ways to generate structured data. However, we will look into one of them which is using <strong>Custom Javascript</strong>.</p><p>To generate structured data using javascript, visit <a href="https://developers.google.com/search/docs/guides/search-gallery"><em>developers.google.com</em></a><em>, </em>and choose the category that your website best fits in.</p><p>For example, if your page has a recipe for an amazing dish, select <strong>Food &amp; Drinks </strong>from the categories.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q5-XQC-B7SXK0S1QAuskBA.png" /><figcaption>Select website Category</figcaption></figure><p>Next, scroll down to recipe and press Get Started.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/915/1*tg2Lagcxmcon5LDMdeIb2w.png" /><figcaption>Recipe Feature</figcaption></figure><p>You’ll be redirected to a recipe page, which has all the information related to recipe’s Structured Data.<br>If you scroll down, you’ll see an <a href="https://developers.google.com/search/docs/data-types/recipe#guided-example"><em>example</em></a><em>. </em>You can copy that example and modify it for your recipe. If you scroll down more, you can see the list of required properties for <a href="https://developers.google.com/search/docs/data-types/recipe#recipe-properties"><em>Recipe’s Structured data</em></a>.</p><h3><strong>Implementation</strong></h3><p>Let’s talk about implementation. <br>You can implement custom Javascript data by either adding it directly into your HTML file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/1*TX0TOGm1UsJgZfngqrGtCw.png" /><figcaption>Direct Implementation (example from developers.google.com)</figcaption></figure><p>or you can make an API call to fetch the data and insert it into your HTML.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/545/1*Uef2yJf_-Jsa1zfwyHLS-Q.png" /><figcaption>Fetching Structured Data developers.google.com)</figcaption></figure><h3>Debugging and Testing</h3><p>Now you have a basic understanding of structured data, let’s see how you can debug and test your Structured Data.<br>Google provides an <a href="https://search.google.com/structured-data/testing-tool"><em>amazing tool</em></a> to test your data, so GoogleBot can easily detect your additional data. Where you can either paste your web page URL or code snippet directly to test your data. It is recommended to test your data using URL to avoid CORS policy error. In case if you added Structured data directly into HTML, you can copy data and use code snippet to debug and test it. Here’s an example</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OWPc2KA5whVDPTrWHN4Uvg.png" /><figcaption>Testing data</figcaption></figure><p>You can see here, the example has 0 errors and 0 warnings, which means the data is correct and valid.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=10b815028339" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[7 Tips for Junior Developers]]></title>
            <link>https://medium.com/@khattakdev/7-tips-for-junior-developers-8eb944d6cc1b?source=rss-699f1ab9b73e------2</link>
            <guid isPermaLink="false">https://medium.com/p/8eb944d6cc1b</guid>
            <category><![CDATA[tips]]></category>
            <category><![CDATA[beginner-developers]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[clean-code]]></category>
            <category><![CDATA[junior-developer]]></category>
            <dc:creator><![CDATA[Arsalan Khattak]]></dc:creator>
            <pubDate>Wed, 29 Apr 2020 05:00:03 GMT</pubDate>
            <atom:updated>2020-04-29T05:03:13.619Z</atom:updated>
            <content:encoded><![CDATA[<p>So you are a Junior Developer who wants to Ace it in his first year? Well, everyone wants to do so. Here are some of the tips that will help you with doing that.<br>These are some of the common mistakes that Junior Developers often make.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7EEVpvfqJ63mH6mqTPC4jw.jpeg" /><figcaption>Photo from <a href="https://www.pexels.com/photo/man-in-white-shirt-using-macbook-pro-52608/">Pexels</a></figcaption></figure><h3>Long Term Thinking</h3><p>Don’t be someone who just solves problems daily. Be a long term thinker. Think ahead, it’s not that you will write code and you will never touch it again. You or someone from your team will surely come back to that piece of code in the future and make some changes due to requirement change, improvement, etc. So let’s see how you can do that, how can you think ahead of time, because that’s what separate senior developers from a junior developer. Senior developers don’t just fix the problems they think ahead. They don’t’ just fix the bug, they also keep the code neat and clean. It’s not very complex to achieve, you just need to maintain your code and have it well structured, refactor it more often before it becomes spaghetti code.</p><h3>1. Proper Variable Names</h3><p>You declare, define, and change the values of variables daily. Variables are everywhere in your code. So it’s better to name them properly rather than just using single a, b, or c. Yeah, I know naming can be hard sometimes, but thinking for a minute might save you from the headache in the future when you come back to the code to fix the bug and you don’t know what is happening here.</p><p><strong>Bad Examples</strong></p><pre>var userAuth = false;<br>var email = &quot;&quot;;<br>var password = &quot;&quot;;</pre><p><strong>Good Examples</strong></p><pre>var isUserAuthenticated = false;<br>var userEmail = &quot;&quot;;<br>var userPassword = &quot;&quot;;</pre><p><strong>isUserAuthenticated</strong>, just by looking at names you can say that it’s a Boolean whereas <strong>userAuth </strong>doesn’t reflect either it’s a boolean, object, function, string, or number?<br><strong>userEmail </strong>clearly shows that it is a variable that is used for saving user Email and it gives a clear idea of what the variable is, whereas <strong>email </strong>is more of a temporary variable that is used for slicing or trimming the original value, and then it’s job is done, and the same goes for userPassword and password.</p><h3>2. Indentations</h3><p>This is more common in beginners who just started learning how to code. Indentations play a vital role in code readability. Consider the following example:</p><p><strong>Bad Example:</strong></p><pre>input.addEventListener(&quot;keyup&quot;, function(event) <br>{ if (event.keyCode === 13) { event.preventDefault();<br>document.getElementById(&quot;myBtn&quot;).click();}});</pre><p>In the above example, code is so messed up just because of wrong indentations. Code blocks are not properly organized and it’s hard to figure out what’s going on, on the first look.</p><p><strong>Good Example:</strong></p><pre>input.addEventListener(&quot;keyup&quot;, function(event) {</pre><pre>if (event.keyCode === 13) {</pre><pre>event.preventDefault();</pre><pre>document.getElementById(&quot;myBtn&quot;).click();</pre><pre>}</pre><pre>});</pre><p>Everything is structured properly. At first glance, the reader can see there is an event listener which has an if statements.</p><h3>3. Code Comments 📝</h3><p>Your code should speak itself but code can only speak “<strong>WHAT</strong>” not “<strong>WHY.</strong>” That’s why code comments are necessary to make sure the reader understands why is this function called here or why they are pushing values to an array.<br><strong>Bad Example:</strong></p><pre>// save user data into an object named userData</pre><pre>const userData = {</pre><pre>email: &quot;info@somerandomwebsite.com&quot;,</pre><pre>password: &quot;******&quot;,</pre><pre>gender: 1,</pre><pre>dateOfBirth: 09/09/1999     // It&#39;s not mine :)</pre><pre>age: 20</pre><pre>}<br>// Convert the userData&#39;s Object into JSON<br>const userDataJSON = JSON.stringify(userData);</pre><p>In this example, the comment on the first line is useless. It’s clear from the code that we are saving user’s data into an object. The reader might be asking himself, why are we storing data in an object, the comment should answer to that question.</p><p><strong>Good Example:</strong></p><pre>// Preparing JSON Object to send in POST REQUEST</pre><pre>const userData = {</pre><pre>email: &quot;info@somerandomwebsite.com&quot;,</pre><pre>password: &quot;******&quot;,</pre><pre>gender: 1,</pre><pre>dateOfBirth: 09/09/1999     // It&#39;s not mine :)</pre><pre>age: 20</pre><pre>}</pre><pre>const userDataJSON = JSON.stringify(userData);</pre><p>Here from the first line’s comment, the reader can understand why are we creating an object and then converting it into JSON. This will save the reader’s time, he will just look at the comment and understand what’s happening rather than scrolling and digging into the code to see what’s going on.</p><h3>4. Keeping Functions Minimum 💄</h3><p>Your functions should not be hundreds of lines of code which perform all kind of things, instead, it should be divide into parts and every function should be focus only on one specific objective.<br>Let’s say you are accepting data from a user, your first job is to verify if the data is authentic and then you make some changes in the Database. Now don’t do this in just one function. These are two different tasks.<br>1. Verifying user’s data<br>2. Making changes to the database</p><p>If you try to do it in one function, you will face hard time naming your function (because it will be doing more than one task), you will have a huge function (performing multiple tasks), your function won’t be reusable (you have to write that verification algorithm in every single function where verification is required).</p><pre>// Verify if user is authentic and update his last name<br>function verifyUserAndUpdateLastName (userData) {<br>   // Verification Algorithm<br>  //  Updating DB to change last name</pre><pre>}</pre><p>So by keeping your functions minimum will make your code more readable and clean.</p><pre>// Verify if User data is authentic<br>function verifyUserData(userData) {<br>  // Verification Algorithm<br>};</pre><pre>// Update user&#39;s last name<br>function updateUserLastName(userData) {<br>  // Code for updating DB<br>}</pre><p>Now for the reader, it’s straightforward to understand what’s going on here in each function, the function names are well defined. updateUserLastName doesn’t care about verification, it’s task is to just update the last name. In this above example, you have two different functions with a different job you can now use them together where you want to.</p><h3>5. Refactoring your code ♻️</h3><p>Refactoring your code is like taking the trash out of the home. Your code needs to be refactored once you finish a task but we don’t do that. Once you complete a task, refactor it.<br>Let’s take the example discussed in the previous point, verification, and updating the user’s last name. When writing code for that, your priority is to get the job done. Once you have a working code then it’s time to refactor it. So at first, you can have all the code in just one function <strong>that’s fine</strong>,<strong> </strong>but once you complete the task, it’s time to refactor it. Then you should focus on readability. <br>Refactoring involves:<br>1. Breaking down your functions<br>2. Removing Old/commented code (Please do that, there is no reason to keep commented code)<br>3. Writing comments</p><h3>6. Clean Git Commits Messages</h3><p>Writing meaningful git messages will help you a lot. Often you need to go back to previous commits to check code. To write clean messages, make sure you commit your code more often, commit it when your task is complete. So just like functions, your commit message will define what happened in this change.<br>If you commit your code after creating 2 or 3 APIs then you are planning future headaches for yourself. Now, in this case, you can’t write a clean commit message which defines the changes. Moreover, you have to look through a bunch of files because you wrote a large amount of code. So to avoid that headache just commit your code once you add a new feature, make changes to UI, fix a bug, etc and add more meaning full message rather than just “<strong>Bug Fixed</strong>”, you can write “ 🐛 <strong>Fixed Annotations not showing up sometimes</strong> ”.</p><h3>7. Testing Before Deployment 🚀</h3><p>Another very important tip that you shouldn’t ignore, please test your code before you deploy it. I’m pretty sure you don’t want debuggers in your code which will pause the execution if your user has dev tools open (imagine that scenario). So before you deploy your code, make sure you remove all the unnecessary console messages, debuggers, and imports that you don’t need. If you are using something like webpack, the warnings are pretty much helpful. Pay close attention to them and remove them all before you deploy the code.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8eb944d6cc1b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Inspecting Animations (Chrome Dev Tools)]]></title>
            <link>https://medium.com/@khattakdev/inspecting-animations-chrome-dev-tools-d290222a6500?source=rss-699f1ab9b73e------2</link>
            <guid isPermaLink="false">https://medium.com/p/d290222a6500</guid>
            <category><![CDATA[css]]></category>
            <category><![CDATA[tools]]></category>
            <category><![CDATA[dev]]></category>
            <category><![CDATA[chrome]]></category>
            <category><![CDATA[animation]]></category>
            <dc:creator><![CDATA[Arsalan Khattak]]></dc:creator>
            <pubDate>Sun, 19 Apr 2020 16:43:01 GMT</pubDate>
            <atom:updated>2020-05-01T14:27:32.709Z</atom:updated>
            <content:encoded><![CDATA[<p>It’s a big pain to navigate back and forth between your browser and your favorite editor while working with animations.<br>With Chrome Dev Tools, you can inspect and modify animations. Chrome Inspector currently detects CSS animations, transitions, and web animations</p><p>Let’s see how you can do that.</p><h3>Animation Group</h3><p>First, let’s understand what is the animation group. A group of animations that appears to be related to each other is known as an <strong>animation group</strong>. In other words, all the animations triggered on a specific event are grouped. So, animations on page load are grouped. Animations, when a button has hovered, are grouped. The animation inspector predicts animation groups based on their start time.</p><h3>Opening Animation Inspector</h3><p>To open animation inspector<br>1. Press F12 or Ctrl + Shift + I (CMD + Shift + I)<br>2. Press Ctrl + Shift + P and type animation</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/557/1*0ZGMYSVS_mdLKWwrWXSFTQ.png" /><figcaption>Show Animations</figcaption></figure><p>3. Selection Show Animations.</p><p>Animations Inspector will open.</p><h3>Grouping</h3><ol><li>Controls — You can Clear all animation groups, change animation speed.</li><li>Overview — You can see animations groups here and select one of them to modify in Details pane.</li><li>Timeline — You can pause or play animation here or jump to a specific time.</li><li>Details — You can see animation details here, modify and inspect them.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/737/1*U90A0qfAm-6MMQ2jd_2oRg.png" /></figure><h3>Diving Deeper</h3><p>So now you have a basic understanding of animation groups and different sections of animation inspectors. The question is how will inspector detects an animation. It detects automatically whenever it triggers. If an animation triggers on page load, you can simply refresh the page. Animations will be detected only when the inspector is open.<br>I have this simple page with 4 buttons, each of them has its animation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aGAeWSZJQk67i1Mey62WQA.png" /><figcaption>Animation Page</figcaption></figure><p>Now when I hover on any button, animation triggers and that animation is capture by the inspector.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OnOsDhQo51zcqU5Dfb2lxw.gif" /><figcaption>Capturing Animations</figcaption></figure><p>When you select a group from the <strong>Overview </strong>tab, you see all the animations in the <strong>Details </strong>tab.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/734/1*3zCv5ts8nZDMTx2K8t_Oqw.png" /><figcaption>Animations Details</figcaption></figure><p>Clicking on any of the animations in the <strong>Details </strong>panel takes the focus to the HTML element.<br>There are two parts of the animation in <strong>Details</strong> panel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/737/1*Uwns3bRseUJsqVQud6WfNA.png" /><figcaption>Animation Parts</figcaption></figure><ol><li>The Left Dark Part — This is the actual animation</li><li>The Right Light Part — This is the repetition of Animation.</li></ol><h3>Modifying Animation</h3><p>To change the animation speed, you have three options available in the <strong>Controls </strong>panel, 100% (normal), 25% and 10%.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/738/1*PtVSC0zVjaV34-97IaMGfA.png" /><figcaption>Animation Speed</figcaption></figure><p>To change the animation duration, hold the first or last (filled) circle of the dark part and move it horizontally.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/733/1*BTfjKf4cKJpWSF2Ips3WFA.gif" /><figcaption>Adjusting Duration</figcaption></figure><p>To add animation delay, hold anywhere except the circles, and move it back and forth. This will add delay to animation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/733/1*qO4owFZKeLQLSG1oFvxMtg.gif" /><figcaption>Animation Delay</figcaption></figure><p>Please Clap, if you find this helpful.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d290222a6500" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JavaScript — Scopes]]></title>
            <link>https://medium.com/@khattakdev/javascript-scopes-90d6cf9a1d7b?source=rss-699f1ab9b73e------2</link>
            <guid isPermaLink="false">https://medium.com/p/90d6cf9a1d7b</guid>
            <category><![CDATA[lexical-scope]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[scopes]]></category>
            <category><![CDATA[dynamic-scope]]></category>
            <dc:creator><![CDATA[Arsalan Khattak]]></dc:creator>
            <pubDate>Fri, 20 Sep 2019 13:39:47 GMT</pubDate>
            <atom:updated>2019-09-20T13:39:47.561Z</atom:updated>
            <content:encoded><![CDATA[<h3>JavaScript — Scopes</h3><p>Let’s take a look at Scopes in General and then in JavaScript.<br>We’ll learn how and where to access functions, variables, and objects in our code.</p><h3>What Are Scopes?</h3><p>Scopes are determining where variables, functions, and object lies in your code. Every variable, function, and object is scoped to a very specific place in your code. For our ease and to not make this blog very long, we will take a look at variables only, functions and objects work the same way. You might be able to access a variable anywhere in your code or you might be able to access it in a very short piece of code only. How to find a variable scope? Let’s learn it.</p><h3>Types of Scope</h3><p>There are two types of scopes in programming, the first one is Dynamic Scope and the other one is Lexical or static scope.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YiNiI7yIrKwggnsWUagOvw.png" /><figcaption>Types of Scope</figcaption></figure><p>JavaScript uses Lexical scope, so let’s dive into it. We will also learn what is Dynamic Scoping and the difference between both as well later.</p><h3>Lexical Scope</h3><p>Scopes are further divided into two subtypes.<br><strong>Global Scope</strong><br><strong>Local Scope</strong></p><h3>Global Scope</h3><p>If a variable is defined at a global level we can say that it’s scope is global. Didn’t get it? Let me explain it.<br>If we define a variable at top of code, it can be accessed anywhere in the file.<br>For Example, we have an <strong>index.js</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/686/1*cEZ2m4VuUlaeGWGaC1jnPg.png" /><figcaption>Global Variable — Arsalan Khattak</figcaption></figure><p>Here, we have a variable <strong>a</strong> which is defined at a global level thus its scope is global scope. We can access this variable anywhere in our file. If you execute this above code, you will get the following result</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/152/1*YJM55_UMLQtYNpzeXWeQMw.png" /><figcaption>Result</figcaption></figure><p>Got it? Let’s take a look at another example and let’s also learn how the global variable will be access.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/256/1*k1pmFPAGbZYJM_D6Ojry6w.png" /><figcaption>Global Scope — Arsalan Khattak</figcaption></figure><p>So here we have a nested function <strong>child </strong>inside <strong>mainFunc<br></strong>When we execute mainFunc, it will call the <strong>child </strong>function, where it console log a.<br>Let’s see how this child function will access the global variable <strong>a</strong>.<br>First, it will find <strong>a </strong>in <strong>child</strong>, in this case, we don’t have any variable <strong>a</strong>, so it will jump to parent function <strong>mainFunc</strong> and find <strong>a</strong> in that function. Again, we don’t have <strong>a</strong> variable in function. It will jump to global scope (out of function) and there we have <strong>a</strong>, it will get the value and print it out.</p><h3>Local Scope</h3><p>Okay, let’s move on to local scope and see how does that works<br>A variable is defined to be a local variable if it is declared at a local level i.e inside a function and that variable is only scoped to that specific function.<br>Here is the first example</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/1*WV9u_gPXtq3rE6mM8b_PbQ.png" /><figcaption>Local Scope — Arsalan Khattak</figcaption></figure><p>In this example, we have two <strong>a, </strong>one is inside function (local level) and the other one is outside (at a global level). <br>On executing this chunk of code, <strong>myFunc </strong>will be called, where a new variable <strong>a </strong>will be declared and then <strong>console.log(a)</strong> will be called which will look for an inside the function which we have in this case, so it will use that <strong>a </strong>and don’t move out of function scope. So the result will be “<strong>Inside Function</strong>”.</p><p>Here is a complex example (not really complex)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/682/1*kqkXUtEqFqIyc1rw5CH0UQ.png" /><figcaption>Local Scope — Arsalan Khattak</figcaption></figure><p>So in this chunk of code, we have a variable <strong>a </strong>declared three-time, one at global level, second and third at local functions. On calling <strong>myFunc </strong>a new variable <strong>myOtherFunc </strong>will be called and we will into that nested function. Here we will have third <strong>a </strong>in the stack. I think at this point you can explain which <strong>a</strong> will be called and how it will be called, right? but let me still try to explain.<br>So here <strong>console.log </strong>will search for <strong>a </strong>at the local scope which we have in this case and it will fetch the value and log it.<br>Imagine if we remove that declaration from nested function, in that case, <strong>a </strong>will be searched for inside the nested function, on not finding it, the search will be transferred to the upper level (<strong>myFunc</strong>) from where it’s value will be fetched.</p><h3>Dynamic vs Lexical</h3><p>Let’s quickly take a look at the difference, So</p><p><strong>Dynamic </strong>scope means from where the variable is called from and <strong>Lexical </strong>Scope means where the variable is called at<br>Let’s understand this by an example</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/584/1*8EGFYOaY3yO9hzg6f6ib9A.png" /><figcaption>Dynamic Scope — Arsalan Khattak</figcaption></figure><p>In dynamic scope, this chunk of code will print 20 and in the lexical scope, it will print 10.<br>You already know how lexical scope will print 10, it will look for <strong>a </strong>in <strong>func</strong>, on not finding it, it will start looking for it in the global scope.<br>In case of Dynamic scope, it will look for <strong>a</strong> in <strong>func</strong>, on not finding it, it will look for it at the place from where <strong>func </strong>was called from which is func2, there we have it with the value of 20, so 20 will be printed.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=90d6cf9a1d7b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Most Simple Todo App (Javascript)]]></title>
            <link>https://medium.com/@khattakdev/most-simple-todo-app-javascript-34669aad676c?source=rss-699f1ab9b73e------2</link>
            <guid isPermaLink="false">https://medium.com/p/34669aad676c</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[frontend]]></category>
            <category><![CDATA[to-do-list-app]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Arsalan Khattak]]></dc:creator>
            <pubDate>Thu, 29 Aug 2019 08:25:28 GMT</pubDate>
            <atom:updated>2020-05-07T14:30:30.709Z</atom:updated>
            <content:encoded><![CDATA[<p>Internet is full of Todo App tutorials and here is the most simple yet very fancy Todo App.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h5yjV72ZBjfLPae2joE2UQ.png" /></figure><h3>Prerequisites</h3><p>A little bit of HTML, CSS and Javascript knowledge is enough to follow along. I will try to explain every line of code as much as possible. So let’s get started.</p><h3>Folder Structure</h3><p>We will have just 3 files (index.html, style.css, and index.js) all within the same directory.</p><h3>Giving Our App a shape</h3><p>So let’s first start with our Markup and design.<br>We will be using <strong>Bootstrap </strong>and <strong>Google Fonts</strong>, so let’s import that first.</p><p>Copy this code and paste it into your HTML file.</p><pre>&lt;!doctype html&gt;</pre><pre>&lt;html lang=&quot;en&quot;&gt;<br>&lt;head&gt;</pre><pre>&lt;!-- Required meta tags --&gt;</pre><pre>&lt;meta charset=&quot;utf-8&quot;&gt;<br>&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1, shrink-to-fit=no&quot;&gt;</pre><pre>&lt;!-- Bootstrap CSS --&gt;</pre><pre>&lt;link rel=&quot;stylesheet&quot; href=&quot;https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css&quot; integrity=&quot;sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T&quot; crossorigin=&quot;anonymous&quot;&gt;</pre><pre>&lt;!-- Google Fonts --&gt;</pre><pre>&lt;link href=&quot;https://fonts.googleapis.com/css?family=Cabin&amp;display=swap&quot; rel=&quot;stylesheet&quot;&gt;</pre><pre>&lt;link rel=&quot;stylesheet&quot; href=&quot;style.css&quot;&gt;<br>&lt;title&gt;Todo App!&lt;/title&gt;</pre><pre>&lt;/head&gt;</pre><pre>&lt;body&gt;</pre><pre>&lt;!-- jQuery first, then Popper.js, then Bootstrap JS --&gt;<br>&lt;script src=&quot;https://code.jquery.com/jquery-3.3.1.slim.min.js&quot; integrity=&quot;sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo&quot; crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;</pre><pre>&lt;script src=&quot;https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js&quot; integrity=&quot;sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1&quot; crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;</pre><pre>&lt;script src=&quot;https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js&quot; integrity=&quot;sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM&quot; crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;</pre><pre>&lt;script src=&quot;./index.js&quot;&gt;&lt;/script&gt;</pre><pre>&lt;/body&gt;</pre><pre>&lt;/html&gt;</pre><p>So this is our basic HTML file. I have added comments to make it easy for you to understand the code.</p><p>Let’s give some styling to our HTML body.</p><pre>html, body {</pre><pre>background: #FF416C;  /* fallback for old browsers */</pre><pre>background: -webkit-linear-gradient(to bottom, #FF4B2B, #FF416C);  /* Chrome 10-25, Safari 5.1-6 */</pre><pre>background: linear-gradient(to bottom, #FF4B2B, #FF416C); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */</pre><pre>background-size: cover;</pre><pre>background-position: center;</pre><pre>height: 100vh;</pre><pre>font-size: 62.5%;</pre><pre>box-sizing: border-box;</pre><pre>font-family: &#39;Cabin&#39;, sans-serif;</pre><pre>letter-spacing: 1.3px;</pre><pre>}</pre><p>I am sure you already know what does this block of CSS do. It will change the background color to a gradient and set it’s the height to full heigh of browser windows, change the font family, font size and spacing between letters.</p><p>This is how our app looks right now.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F_hCJSGRsljVJr3nhLvcAw.png" /><figcaption>The initial look of Todo App</figcaption></figure><p>Now let’s add the main thing.</p><p>Now Insert the following Code into body</p><pre>// Add a container<br>&lt;div class=&quot;container&quot;&gt;</pre><pre>// Make the this div Flex, justify and align the content to center <br>&lt;div class=&quot;row d-flex flex-column justify-content-center align-items-center&quot;&gt;</pre><pre>// Make a card, set its background to white, text to center, give padding of 5, and margin bottom of 3<br>&lt;div class=&quot;card bg-white text-center p-5 box mb-3&quot;&gt;</pre><pre>// Add a h1 heading with margin bottom of 5<br>&lt;h1 class=&quot;mb-5&quot;&gt;Todo App&lt;/h1&gt;</pre><pre>// Padding of 3, red background color, white text and hide it. This will appear when user try to add a Todo without any name.<br>&lt;p class=&quot;p-3 mb-2 bg-danger text-white&quot; style=&quot;display: none;&quot;&gt;Unable to Add Todo without any Name&lt;/p&gt;</pre><pre>// Add an unordered list.<br>&lt;ul class=&quot;list-items&quot;&gt;</pre><pre>// Our Javascript Will target this area<br>&lt;/ul&gt;</pre><pre>// A delete button<br>&lt;button class=&quot;btn btn-outline-secondary clear&quot;&gt;Delete All&lt;/button&gt;</pre><pre>&lt;/div&gt;</pre><pre>// Add a card with white background, padding of 4, centered text and a custom class box<br>&lt;div class=&quot;card bg-white p-4 text-center box&quot;&gt;</pre><pre>// Make a group div with margin bottom of 3<br>&lt;div class=&quot;input-group mb-3&quot;&gt;</pre><pre>// A div container to be attached on left of input<br>&lt;div class=&quot;input-group-prepend&quot;&gt;</pre><pre>&lt;div class=&quot;input-group-text&quot;&gt;</pre><pre>&lt;label class=&quot;mr-3&quot; for=&quot;iscomplete&quot;&gt;Is Complete&lt;/label&gt;</pre><pre>&lt;input type=&quot;checkbox&quot; name=&quot;iscomplete&quot; id=&quot;iscomplete&quot;&gt;</pre><pre>&lt;/div&gt;</pre><pre>&lt;/div&gt;</pre><pre>// Input field<br>&lt;input type=&quot;text&quot; class=&quot;form-control todoText&quot; placeholder=&quot;Name of Activity&quot; aria-label=&quot;Recipient&#39;s username&quot; aria-describedby=&quot;button-addon2&quot;&gt;</pre><pre>// Another div to be attached on right of input field<br>&lt;div class=&quot;input-group-appends&quot;&gt;</pre><pre>&lt;button class=&quot;btn btn-outline-secondary addTodo&quot; type=&quot;button&quot; id=&quot;button-addon2&quot;&gt;Add Todo&lt;/button&gt;</pre><pre>&lt;/div&gt;</pre><pre>&lt;/div&gt;</pre><pre>&lt;/div&gt;</pre><pre>&lt;/div&gt;</pre><pre>&lt;/div&gt;</pre><p>You can take a look at bootstrap official docs to know more about bootstrap classes. I used only two custom classes which are <strong>box</strong> and <strong>todoText</strong>.<br>Let’s take a look at our app now.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RAcPC8p1otoVK66z4xfgpA.png" /><figcaption>Todo App without any custom CSS</figcaption></figure><p>Not bad, but still needs improvement. Now let’s add our CSS Code</p><pre>.container,<br>.row {<br>height: 100%;<br>}</pre><pre>h1 {<br>font-size: 2.8rem;<br>}</pre><pre>.box {<br>width: 50%;<br>}</pre><pre>ul {<br>list-style-type: none;<br>font-size: 1.8rem;<br>padding: 0;<br>}</pre><pre>li:hover {<br>box-shadow: 2px 2px 10px 2px #8a8a8a48;<br>transition: box-shadow .2s;</pre><pre>}</pre><pre>p,<br>label {<br>margin-bottom: 0;<br>font-size: 1.6rem;</pre><pre>}</pre><pre>.todoText,<br>.btn {<br>font-size: 1.6rem;</pre><pre>}</pre><p>Let’s append this code in the CSS file and take a look at our App again.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7K8DZKP6M1pGB5QhgOfSBA.png" /><figcaption>The final look of the Todo App</figcaption></figure><p><strong>Boom<br></strong>I love CSS (right now only).</p><p>So we are done with Structuring and Styling our App.</p><h3>Adding Logic</h3><p>It’s time to step into the world of Javascript.<br>The very first thing to do is to define variables.</p><pre>const todoName = document.querySelector(&quot;.todoText&quot;);<br>const addTodoButton = document.querySelector(&quot;.addTodo&quot;);<br>const isComplete = document.querySelector(&quot;#iscomplete&quot;);<br>const clearButton = document.querySelector(&#39;.clear&#39;);<br>const warningMessage = document.querySelector(&#39;.bg-danger&#39;);<br>const todoList = document.querySelector(&quot;.list-items&quot;);</pre><p>These are all query selector to target our HTML classes and ids. <br>If you never worked with DOM Manipulation, let’s try to understand these query selectors together. Add above code into your index.js file, then open your app in the browser and open developers tool. There just type any of the above variables and you will see that HTML element being highlighted and also it’s HTML code will show up with low opacity in the Developers tool.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z71pGVt8FgOsF1RvlHJbAg.png" /><figcaption>Chrome Developer Tool</figcaption></figure><p>I’m sure you get it now. Let’s move forward.<br>Let’s first add functionality to <strong>Add Todo</strong> button. For that, we need to add a click <a href="https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener"><em>event listener</em></a>.</p><pre>/ Add Todo<br>addTodoButton.addEventListener(&quot;click&quot;, e =&gt; {</pre><pre>// List Item<br>const liItem = document.createElement(&quot;li&quot;);<br>liItem.className = &quot;card py-2 px-4 mb-3&quot;;<br>liItem.style.animation = &#39;fadeIn .5s linear&#39;;</pre><pre>isComplete.checked === true ? liItem.classList.add(&#39;bg-success&#39;): null;</pre><pre>// Todo Name<br>const pItem = document.createElement(&quot;p&quot;);<br>pItem.className = &quot;d-flex justify-content-between align-items-center&quot;;<br>const text = document.createTextNode(todoName.value);</pre><pre>// Delete Button<br>const deleteButton = document.createElement(&quot;button&quot;);<br>deleteButton.className = &quot;btn btn-secondary&quot;;<br>deleteButton.appendChild(document.createTextNode(&quot;Delete&quot;));</pre><pre>// Append Text to Paragraph<br>pItem.appendChild(text);</pre><pre>// Append Paragraph to List Item<br>liItem.appendChild(pItem);</pre><pre>// Append Delete to List Item<br>pItem.appendChild(deleteButton);</pre><pre>// Append List Item to Unordered List<br>todoList.appendChild(liItem);</pre><pre>// Add Event Listner to Delete Button<br>deleteButton.addEventListener(&quot;click&quot;, e =&gt; {</pre><pre>// Add animation css to liItem when button is clicked<br>liItem.style.animation = &#39;fadeOut .5s linear&#39;;</pre><pre>// remove list Item from DOM after 5ms.<br>setTimeout(() =&gt; {<br>e.target.parentElement.parentElement.remove();<br>}, 500);</pre><pre>});</pre><pre>});</pre><p>So by adding this code, we are now able to Add and Delete a Todo Item (try using Todo App). <br>You might have noticed that the animation isn’t working properly. That’s because we don’t have CSS, so let’s append the following code to our CSS.</p><pre>@media screen and (max-width: 996px) {<br>.box {<br>width: 90%;<br>}<br>}</pre><pre>@keyframes fadeIn {<br>from {<br>opacity: 0;<br>}</pre><pre>to {<br>opacity: 1;<br>}<br>}</pre><pre>@keyframes fadeOut {<br>from {<br>opacity: 1;<br>}</pre><pre>to {<br>opacity: 0;<br>}</pre><pre>}</pre><p>Now we have a nice Delete Animation.</p><p>Let’s add functionality to our <strong>Delete All</strong> button.</p><pre>clearButton.addEventListener(&#39;click&#39;, (e) =&gt; {</pre><pre>todoList.innerHTML = &#39;&#39;<br>})</pre><p>This will remove all the Todo items.<br>We are all set up now.</p><p>This is the most simple Todo App. Please Checkout Youtube video if you want to improve the App by Todos permanently, refactoring code etc.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=34669aad676c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Top Web Development Courses on Udemy]]></title>
            <link>https://medium.com/@khattakdev/top-web-development-courses-on-udemy-8e27c12e5696?source=rss-699f1ab9b73e------2</link>
            <guid isPermaLink="false">https://medium.com/p/8e27c12e5696</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[udemy]]></category>
            <dc:creator><![CDATA[Arsalan Khattak]]></dc:creator>
            <pubDate>Wed, 07 Aug 2019 06:41:51 GMT</pubDate>
            <atom:updated>2019-08-07T06:41:51.921Z</atom:updated>
            <content:encoded><![CDATA[<p>If you are planning to start your web development career, Udemy is the best place to start from but there are tons of courses available, so which one to take? Here I have listed down some Top Rated Courses which were featured as <strong>Best Seller</strong> or <strong>Top Rated.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*lcmYiDgEmg767JFO" /><figcaption>Photo by <a href="https://unsplash.com/@cdr6934?utm_source=medium&amp;utm_medium=referral">Chris Ried</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3><strong>1.Build Responsive Real World Websites with HTML5 and CSS3</strong></h3><p>Instructor: Jonas Schmedtmann<br>Course Length: 12 hours<br>1 Big Project Included</p><p>This course will teach you everything that comes under the category of <strong>Basics, </strong>you will learn all this by making a real-world website.<br><a href="https://www.udemy.com/design-and-develop-a-killer-website-with-html5-and-css3/"><strong>Course Link</strong></a></p><h3>2.Advanced CSS and Sass: Flexbox, Grid, Animations and More!</h3><p>Instructor: Jonas Schmedtmann<br>Course Length: 28 hours<br>3 Projects Included</p><p>Another gift from Jonas, this course will help you cover advanced topics such as Responsive Design, Grids, Flexbox, Sass and some cool CSS tricks. You will be working on 3 different projects which you can add to your portfolio as well.<br><a href="https://www.udemy.com/advanced-css-and-sass/"><strong>Course Link</strong></a></p><h3>3.The Modern JavaScript Bootcamp (2019)</h3><p>Instructor: Andrew Mead<br>Course Length: 29.5 hours<br>3 Apps Included</p><p>Andrew Mead knows his job. The best thing about his courses is that he takes you along with him. Almost every video has a challenge for you to do to make sure you are learning what he is teaching. This course includes everything that you need to learn in Javascript from Basic Syntax to Asynchronous coding.<br>It includes a <strong>Todo App</strong>, <strong>Notes App</strong>, and a <strong>Hangman Game.<br></strong><a href="https://www.udemy.com/course/modern-javascript/"><strong>Course Link</strong></a><strong><br></strong>Alternative:<strong> </strong><a href="https://www.udemy.com/the-complete-javascript-course/"><strong>The Complete JavaScript Course 2019: Build Real Projects!</strong></a></p><h3>4.React — The Complete Guide (incl Hooks, React Router, Redux)</h3><p>Instructor: Maximilian Schwarzmüller<br>Course Length: 44.5 hours<br>1 Large Application Included</p><p>Maximilian not just writes and explain code but also focus on theory. If you really want to get a grip on React, this course is highly recommended for you. Maximilian is one of the Top Instructor of Udemy and besides having 25+ courses, you will never find any of course out-dated. In this course, you will learn everything about React including React Hooks. You will also make one large Application (Burger Builder). This course not only includes react but also some bonus lectures such as <strong>Jest</strong>, <strong>webpack </strong>and much more.<br><a href="https://www.udemy.com/react-the-complete-guide-incl-redux/"><strong>Course Link</strong></a></p><p>He also has a course on <a href="https://www.udemy.com/the-complete-guide-to-angular-2/"><strong>Angular</strong></a>, and <a href="https://www.udemy.com/vuejs-2-the-complete-guide/"><strong>Vue</strong></a>.</p><h3>5.NodeJS — The Complete Guide (incl. MVC, REST APIs, GraphQL)</h3><p>Instructor: Maximilian Schwarzmüller<br>Course Length: 36 hours<br>2 Apps Included</p><p>A special Thanks required to Maximilian for making this course. This course is in-depth and in detail covering not only Nodejs and Express but SQL Databases, NoSQL Databases, REST APis, GrapQL, MVC and much more. In this course, you will make an e-commerce app and a blog. <br><a href="https://www.udemy.com/course/nodejs-the-complete-guide/"><strong>Course Link</strong></a><strong><br></strong>Alternative: <a href="https://www.udemy.com/the-complete-nodejs-developer-course-2/"><strong>The Complete Node.js Developer Course (3rd Edition)</strong></a></p><h3>Instructors</h3><p>Here is a list of Top-Rated Instructors, you can check it out in case you are looking for a course that I didn’t list here.</p><ol><li><a href="https://www.udemy.com/user/brad-traversy/">Brad Traversy</a></li><li><a href="https://www.udemy.com/user/coltsteele/">Colt Steele</a> (Check out his Bootcamps)</li><li><a href="https://www.udemy.com/user/sgslo/">Stephen Grider</a></li><li><a href="https://www.udemy.com/user/maximilian-schwarzmuller/">Maximilian Schwarzmuller</a></li><li><a href="https://www.udemy.com/user/jonasschmedtmann/">Jonas Schmedtmann</a></li><li><a href="https://www.udemy.com/user/andrewmead/">Andrew Mead</a></li></ol><p>Note: The instructors are listed randomly.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8e27c12e5696" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Attending FB Build Day as Speaker (React 360)]]></title>
            <link>https://medium.com/@khattakdev/attending-fb-build-day-as-speaker-react-360-2a75b39f11d3?source=rss-699f1ab9b73e------2</link>
            <guid isPermaLink="false">https://medium.com/p/2a75b39f11d3</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[react-360]]></category>
            <category><![CDATA[facebook]]></category>
            <category><![CDATA[community-challenge]]></category>
            <dc:creator><![CDATA[Arsalan Khattak]]></dc:creator>
            <pubDate>Tue, 06 Aug 2019 17:59:38 GMT</pubDate>
            <atom:updated>2019-08-22T05:40:27.377Z</atom:updated>
            <content:encoded><![CDATA[<h3>Attended FB Build Day as Speaker (React 360)</h3><p>This Saturday, I attended Facebook Build Day 2019 (Community Challenge) Islamabad as a Speaker of React 360 and here is my experience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LojFIAeDREB_6GKBXSqztw.jpeg" /><figcaption>Developer Circles Community challenge</figcaption></figure><h3>Background</h3><p>You will always find me in tech events, especially Facebook events and when it comes to something related to <strong>Reactjs</strong>, you can’t stop me from attending that event. Yes, I am a fan of Reactjs.</p><p>Back in April 2018, I switched to Web Development. After learning the basics, I was confused between Angular and React. I did my research on jobs ratio and surveys and I decided to learn React. Since then I totally started loving this technology and not just Reactjs but everything that is related to Reactjs.</p><p>Now Coming back to the main topic. So, a week before build day, I received an invitation by facebook to join <strong>Facebook Build Day Islamabad</strong> as a facilitator (that was a really exciting moment for me). I was provided by a presentation and a tutorial which was really short so I had to do some research on React 360, read the docs to understand it.</p><h3>Event</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s6eWmxHVy-Pa68fwPIWQkA.jpeg" /><figcaption>React 360 Talk</figcaption></figure><p>The event was on 3rd August 2019. So the Agenda of my Talk was<br>Facebook and VR<br>What is React 360?<br>React 360 examples<br>Where to find React 360 Apps<br>Some Hands-On Coding (My Fav Part)</p><p>The presentation went well. Since I never used React 360 before so my plan was to make a simple Slideshow as an example but due to the shortage of time I was not able to make it (I wish I had more time). So I just explained File structure and basic components.</p><p>Overall Event was very awesome. I had a great experience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9AqmnmxfAXNgxpxqiUAu3g.jpeg" /><figcaption>Spark AR Talk</figcaption></figure><h3>Wrap Up</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FPkAGHHoyfgnf6S6rvR%2Ftwitter%2Fiframe&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FPkAGHHoyfgnf6S6rvR%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FPkAGHHoyfgnf6S6rvR%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="244" frameborder="0" scrolling="no"><a href="https://medium.com/media/624cbc4282430ed083ba3338c41845b2/href">https://medium.com/media/624cbc4282430ed083ba3338c41845b2/href</a></iframe><p>I am thankful to my Leads and Facebook to considering me eligible to feature React 360. I am looking forward to more events from <strong>Facebook </strong>and <a href="https://www.facebook.com/groups/IslamabadDevC"><strong>Developer Circles Islamabad</strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eqfA5lu_iuHIfGD1FHkx2Q.jpeg" /><figcaption>Facilitators</figcaption></figure><h3>My Review on React 360</h3><p>You know the story of Reactjs. It’s in trending from years now. React 360 has very few components right now but I believe the documentation and overall library will be improved with time. I will surely invest my time on React 360, how about you?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2a75b39f11d3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Setting Your Web Development Environment]]></title>
            <link>https://medium.com/@khattakdev/setting-your-web-development-environment-39a25aa4685?source=rss-699f1ab9b73e------2</link>
            <guid isPermaLink="false">https://medium.com/p/39a25aa4685</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[visual-studio]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[code]]></category>
            <category><![CDATA[enviroment]]></category>
            <dc:creator><![CDATA[Arsalan Khattak]]></dc:creator>
            <pubDate>Sat, 10 Nov 2018 08:10:36 GMT</pubDate>
            <atom:updated>2018-11-10T08:10:36.549Z</atom:updated>
            <content:encoded><![CDATA[<p>The First task to do before you start programming is to set up your development environment which we will do together. Now I am going to tell you about Web Development Environment, obviously for Android or iOS or for Game Development you have to download other software that is totally different from what we will download now.</p><p>We will need the following software.</p><ol><li>A Web Browser</li><li>An Editor</li><li>Node.js ( use for Javascript Programming )</li></ol><h3>1. A Web Browser</h3><p>So I am sure that you already have a web browser installed because without it you won’t be able to read my article. So I won’t talk much about the web browser. I am using Google Chrome, you can use it as well or Firefox is also a good option. Please don’t use IE or Edge because most of CSS doesn’t work on it.<br>Just make sure that your browser is up to date.</p><h3>1. An Editor</h3><p>We can even code on the notepad (windows), gedit (Linux) or TextEdit (macOS) but that is so boring, a white background with plain text.<br>So we will install an editor and there are a number of editors available in which we can code our website such as Subline, Atom, Brackets, <strong>vscode</strong>.<br>I personally recommend <strong>VSCODE </strong>that is made by <strong>Microsoft. </strong>You can use any editor you like. <strong>vscode</strong> is available on Windows, Mac and Linux and it also comes with built-in <strong>git</strong> support also there are tons of cool plugins that we can use to make our coding more fun and interesting.<br>To download <strong>vscode </strong>just visit the official website by clicking <a href="https://code.visualstudio.com/">here</a> and download it now. Since I am using Linux Ubuntu so it is showing me .deb and .rpm file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tTal8tIrERJBciSUsWWa1Q.png" /><figcaption>Vscode official page</figcaption></figure><p>Once the download is complete, open the file and install it, after the installation complete, open it and you will get windows like this.</p><p>Congrats, your editor is ready to use. Now I will come back to how to use it but first let me tell you about <strong>Node.js.</strong></p><h3>2.Node.js</h3><blockquote>Node.js is an open-source, cross-platform JavaScript run-time environment that executes JavaScript code outside of a browser.<br>- Wikipedia</blockquote><p>We all know that <strong>Javascript</strong> is the only programming language that is used for Front-End Web Development. Node.js allows us to use <strong>Javascript</strong> outside the browser in the <strong>console</strong>.<br>You will come to know how and why to use <strong>Node.js</strong> more clearly once we start learning <strong>Javascript</strong>. For now, we will just download and install it.<br>For installation, click <a href="https://nodejs.org/en/">here</a> and it will redirect you to <strong>Node.js</strong> official page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m_ESucs4Pr5hMLsHKN8QHg.png" /><figcaption>Node.js Official page</figcaption></figure><p>Click and Download the version that is Recommender for Most Users, you can see that is on the left side and it’s 10.13.0 LTS ( at the time of writing this article).<br>Once the download is complete, install it and you’re done.</p><h3>Writing our HELLO WORLD</h3><p>So now we are all set up, so let’s try to make our first hello world website and I will also show you a useful <strong>vscode </strong>plugin that you need to install.<br>Create a folder on your desktop or anywhere else where you want to save your project files and right click on it and open it as <strong>vscode</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mY9d7vmxfEzLOGEeOTEjdw.png" /><figcaption>Vscode User Interface</figcaption></figure><p>Now click on new File (as shown below) and name your file <strong>index.html</strong>. Click on the newly created file and write down the following code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/219/1*mK5IJ6ArVgypttqHf5qMzQ.png" /><figcaption>Create New File</figcaption></figure><pre>&lt;!DOCTYPE html&gt;</pre><pre>&lt;html&gt;</pre><pre>&lt;head&gt;</pre><pre>&lt;meta charset=”utf-8&quot; /&gt;</pre><pre>&lt;meta http-equiv=”X-UA-Compatible” content=”IE=edge”&gt;</pre><pre>&lt;title&gt;Page Title&lt;/title&gt;</pre><pre>&lt;meta name=”viewport” content=”width=device-width, initial-scale=1&quot;&gt;</pre><pre>&lt;link rel=”stylesheet” type=”text/css” media=”screen” href=”main.css” /&gt;</pre><pre>&lt;script src=”main.js”&gt;&lt;/script&gt;</pre><pre>&lt;/head&gt;</pre><pre>&lt;body&gt;</pre><pre>&lt;/body&gt;</pre><pre>&lt;/html&gt;</pre><p>Wow, that whole lot of code. Let’s save our time, instead of writing this on every new HTML file, we can use a very cool plugin that is known as <strong>HTML Snippet. </strong>Go to Plugins section and search for <strong>HTML Snippet</strong> and click on install button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vfWR4Z2aa6JoYUMhEy0n5w.png" /><figcaption>HTML5 Snippet</figcaption></figure><p>Once installed, reload the vscode and we are ready to use it. As we are talking about plugins, let’s also add another plugin that is known as Live Server and install the first one, reload it again.</p><p>now let’s go back to our HTML file and type <strong>HTML </strong>and you will see a list popups</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*JO8KXjKuRJFhpwROIkC7sg.png" /></figure><p>choose on the 2nd option ( the one with page icon) and you will get all the code that I told you to write.<br>I will tell you about each line in detail in my next article, here we are just going to make our first hello world website.<br>In between body tags write down</p><pre>&lt;h1&gt;Hello World&lt;/h1&gt;</pre><p>And our code will look like this</p><pre>&lt;!DOCTYPE html&gt;</pre><pre>&lt;html&gt;</pre><pre>&lt;head&gt;</pre><pre>&lt;meta charset=&quot;utf-8&quot; /&gt;</pre><pre>&lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=edge&quot;&gt;</pre><pre>&lt;title&gt;Page Title&lt;/title&gt;</pre><pre>&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot;&gt;</pre><pre>&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; media=&quot;screen&quot; href=&quot;main.css&quot; /&gt;</pre><pre>&lt;script src=&quot;main.js&quot;&gt;&lt;/script&gt;</pre><pre>&lt;/head&gt;</pre><pre>&lt;body&gt;</pre><pre>&lt;h1&gt;Hello World&lt;/h1&gt;</pre><pre>&lt;/body&gt;</pre><pre>&lt;/html&gt;</pre><p>It’s time to see it in action. Save the file and right click on <strong>index.html</strong> and select <strong>Open with Live Server. </strong>Congratulation! you just made your first Hello World Website.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KsUTuLhaDuhE0MToR2TqOw.png" /><figcaption>First Hello World Project</figcaption></figure><p><strong>NOTE: </strong>I suggest you reading instruction of the two plugins that we just installed especially HTML Snippet, there are a lot of things for you to learn that will make your life much easier.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=39a25aa4685" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>