<?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 Issa Sangare on Medium]]></title>
        <description><![CDATA[Stories by Issa Sangare on Medium]]></description>
        <link>https://medium.com/@issabmsangare?source=rss-16df8a2856c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*AaiwRvQqGUVhjr1L-yc4sQ.png</url>
            <title>Stories by Issa Sangare on Medium</title>
            <link>https://medium.com/@issabmsangare?source=rss-16df8a2856c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 21:25:01 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@issabmsangare/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[Understanding Git (Local Repo) and GitHub (Remote Repo)]]></title>
            <link>https://medium.com/swlh/git-local-repo-and-github-remote-repo-eae1c948fbf5?source=rss-16df8a2856c------2</link>
            <guid isPermaLink="false">https://medium.com/p/eae1c948fbf5</guid>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[command-line]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Issa Sangare]]></dc:creator>
            <pubDate>Tue, 02 Feb 2021 01:13:00 GMT</pubDate>
            <atom:updated>2021-02-08T04:27:14.007Z</atom:updated>
            <content:encoded><![CDATA[<p>In this tutorial, you are expected to know the basics of Git and how to use the terminal. If you are not familiar with what I am talking about here, I strongly recommend you to my blog posts about CLI: <a href="https://issabmsangare.medium.com/how-to-use-the-command-line-interface-cli-9c8b70e568e">“<em>How to use the Command Line Interface</em>”</a> and <a href="https://medium.com/swlh/understanding-version-control-system-vcs-git-local-repo-d1be01808cc1">Understanding Version Control System(VCS) &amp; Git (Local Repo)</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mtsk3fQ_BRemFidhkel3dA.png" /></figure><h4>Create a new repository on GitHub :</h4><p>1. Go to the GitHub website(www.github.com) to create an account, it’s free.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SDT-E3jw81FKE81ZYCEyLQ.png" /></figure><p>2. Once you have created an account and signed in, go to the top-right and click on the plus arrow to a create a new repository.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TuIzFt4wiQx744dY73mtjQ.png" /></figure><p>3. After clicking on a new repository, a new tab will be opened and you need to name your repo. I maned mine my-git-project. Next, scroll down and click on Create repository (green button)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J6wgR8BFalreuJ1b3iA80A.png" /></figure><p>4. After creating your repo, the following image would be displayed on your screen. It would give the choice to create a new repository on the command line or push an existing repository from the command line. Since I already have a local repo, I am going to use the latter which is to push that local repo from the command line to my GitHub. For now, what you need to is just copy the second code snippet, we will get back to it shortly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cszwgPqsLl5pY608guu8iQ.png" /></figure><p><strong>Illustration about what we have done so far</strong>: The following picture describes our move up until now. I have a local repo (<strong>.git</strong>) and just created an empty remote repo (<strong>GitHub</strong>). At this point, both repos are not connected to each other yet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*DL22cEyPH18On-iln-zvJg.png" /></figure><h4>Pushing local to the remote repo</h4><p>First things first, let’s head to my terminal and cd into my local repo which is my-git-project. I used ls command to print files I have in my local directory and git log to see how many commits I have done so far.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p3s8lOWAITs5VOJ4N5ppaw.png" /></figure><p>As you know, we are going to push an existing repo from the command line to GitHub. To do that, I would copy the snippet code below from my GitHub and paste it into my local directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E2dvXoTLDGiifsO4R0u6vw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mFpLF51ePoRDdJO-rtGOAQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*57P03o-tuZGEIwkmAXi4pg.png" /></figure><p><strong>Illustration about what we have just done</strong>: From the command line I just pushed my local repo(<strong>.git</strong>) to the remote repo (<strong>GitHub</strong>).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/618/1*CGEmZKsnb3dC-nBkBneSNQ.png" /></figure><p><strong>Back to GitHub</strong></p><p>We could see that we have transferred all commits from my local repo to my GitHub repo.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mym6YKvz_AExHFIiqBYp5Q.png" /></figure><p>By clicking on a file you could see how many commits you have made in that file. Let’s check it out chapter1.txt</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q6TRbdspKiLi8wx1Q2OtUQ.png" /></figure><h4>Local and remote repo are linked now</h4><p>Since both repos are linked, we can create a new file on the local repo, make a commit and then push right away to the remote repo. For the next example, I have created a new file, named it chapter4.txt , and then wrote the following sentence: I teach python and JavaScript.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lVfVVvxP555yxNN7gbup0Q.png" /></figure><p>Next, I have used git add. and git commit commands</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EKpMWc7EKYpxFC1YgYCZsg.png" /></figure><p>Now, let’s git push the commit I have just made from my local repo to my GitHub repo.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xkWTyvK_b11yAZgVQMHlRg.png" /></figure><p>Back to my GitHub repo, we could see that our remote repo has been updated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9x04OQfbA5GYE-cDlUFFoA.png" /></figure><h4>Branching and merging</h4><p><strong>git branch</strong>: Shows which branch you are working on</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b0VxiNLty4Wz3RFFFpLxEg.png" /></figure><p><strong>git branch &lt;name of the branch you want to create&gt;</strong>: Will create a new branch. I am going to create a new branch and name working-branch</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_vRasCDa4bGvtUXmIrtsTA.png" /></figure><p>By using git branch, it shows below that we have two branches main or master and working-branch. The asterisk sign let us know which branch you are working on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*87L4pHXfnO-PYXzUDHsz7A.png" /></figure><p><strong>git checkout</strong>: it makes you switch from one branch to another. Now, let’s switch to my working-branch.</p><p><strong>syntax</strong>: git checkout &lt;name of the branch you would like to switch to&gt;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u6hMIQEymFH41kEHk_klZQ.png" /></figure><p>We would see that with the asterisk sign we are now on the working branch .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/968/1*y4K1MqbldKJmkgWBFOcxJQ.png" /></figure><p>While on my working branch, I have changed chapter4.txt file by adding one more sentence.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*he6Gf_OlHkmH9NPqgJAMhA.png" /></figure><p>Next, I am going to use respectively the following commands : git add., git status and git commit. At this point, you are familiar with those commands and I am not going to comment on them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*htYgmy0HMeuFB1gx52J16Q.png" /></figure><p><strong>Merging</strong></p><p>We need to switch to the main or master branch before we could initiate any merging.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Sn3PCavra0Uwq7BsOeN9eg.png" /></figure><p><strong>git merge &lt;name of the branch you would like to merge with&gt;</strong>:</p><p>I am going to merge my working-branch with the main one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YHMg_TPAax7E5zM-NXANZw.png" /></figure><p>After merging both branches, I git push to transfer from my local repo to my GitHub repo the commit I have made.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gJVRRHKol2Rc_6ZBAYaT6A.png" /></figure><p>Back to the GitHub repo, you can see that it has been updated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*31mfyBVMBXJVSxZ4Lae2mw.png" /></figure><p>That’s all for this tutorial. Thank you for reading me and I hope you enjoy it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eae1c948fbf5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/git-local-repo-and-github-remote-repo-eae1c948fbf5">Understanding Git (Local Repo) and GitHub (Remote Repo)</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Version Control System(VCS) & Git (Local Repo)]]></title>
            <link>https://medium.com/swlh/understanding-version-control-system-vcs-git-local-repo-d1be01808cc1?source=rss-16df8a2856c------2</link>
            <guid isPermaLink="false">https://medium.com/p/d1be01808cc1</guid>
            <category><![CDATA[local-repository]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[terminal]]></category>
            <category><![CDATA[version-control]]></category>
            <category><![CDATA[commit]]></category>
            <dc:creator><![CDATA[Issa Sangare]]></dc:creator>
            <pubDate>Sun, 03 Jan 2021 12:42:09 GMT</pubDate>
            <atom:updated>2021-02-08T04:41:35.726Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*qK2rCSO2DlYPUMqC5YkweA.jpeg" /><figcaption>Photo Credit: @PERFORCE</figcaption></figure><h4>What’s Version Control System?</h4><p><a href="https://git-scm.com/book/en/v2/Getting-Started-About-Version-Control">Scott Chacon and Ben Straud is their excellent book “<strong>Pro Git</strong>”</a>, define version control as: a system that records changes to a file or set of files over time so that you can recall specific versions later. It allows you to revert selected files back to a previous state, revert the entire project back to a previous state, compare changes over time, see who last modified something that might be causing a problem, who introduced an issue, and when, and more. Using a VCS also generally means that if you screw things up or lose files, you can easily recover. In addition, you get all this for very little overhead.</p><p>There are several VCS tools out there but for this tutorial, we are going to use Git which is one of the most popular VCS tools in use today. Git is a <em>Distributed</em> VCS, a category known as DVCS.</p><h4>What’s Git?</h4><p>According to <a href="https://git-scm.com/book/en/v2/Getting-Started-About-Version-Control">Scott Chacon and Ben Straud</a>: Git thinks of its data more like a series of snapshots of a miniature filesystem. With Git, every time you commit or save the state of your project, Git basically takes a picture of what all your files look like at that moment and stores a reference to that snapshot. To be efficient, if files have not changed, Git doesn’t store the file again. Git thinks about its data more like a <strong>stream of snapshots</strong>.</p><h4>Using Git on the Command Line Interface (CLI)</h4><p>“There are a lot of different ways to use Git, for this lesson we will be using use Git on Command Line Interface. We will expect you to know how to use the terminal, if you don’t know what we are talking about here, I strongly recommend you to my blog post about CLI: <a href="https://issabmsangare.medium.com/how-to-use-the-command-line-interface-cli-9c8b70e568e">“<em>How to use the Command Line Interface</em>”</a>.</p><h4>Pre-work</h4><p>From my home directory, I am going to cd into Desktop directory, create a new directory and then name it my-git-project, after that, I will cd into my-git-project , create a new file and then call it chapter1.txt.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dqvFBY4XJm94V8M0dA8PfA.png" /></figure><p>Now, let’s open chapter1.txt and write in it one sentence.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yLW9nfoYLD5NN3h8TtTbpg.png" /></figure><h4>Time to get busy with Git Basics</h4><p><strong>Repository (repo for short)</strong>: A directory or folder of files that are <em>tracked</em> by Git.</p><p><strong>git init:Initializes a Git Repository</strong></p><p>Git operates on a directory level. My current working directory is my-git-project and we want to track our files in. To meet that goal we need to <em>initialize </em>the directory<em> as </em>a Git repository and then Git will pay attention to what goes on in the directory which for this example my-git-project.</p><p><strong>Syntax</strong>: git init + return/enter</p><p>Let’s initialize an empty Git repo inside my-git-project directory .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6WQsU1iqwlsNmul9NHTgtg.png" /></figure><p>Since Git is a hidden repo instead of using ls command, this time around we need to use ls -a to list all files and directories even hidden ones inside my-git-project directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eQOgCEpk2SmDp1CZL8_eeQ.png" /></figure><p><strong>git status:</strong> <strong>Checks the status of a repository</strong></p><p>Now that we have Git watching my-git-project, let’s use git status command to check the status of our directory. Git showed us, in<strong> red</strong>, that we have an untracked file presents in our directory, moreover, it even suggested us to use git add in order to start tracking our files. As a reminder, we have already created chapter.txt file in my-git-project directory.</p><p><strong>Syntax</strong>: git status + return/enter</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a2VkPWNb1QyopsngMT6Bgg.png" /></figure><p><strong>git add: Keeps track of file changes/ pushes files into a staging area</strong></p><p>As you know, the file in my current working directory is not being tracked yet and it’s time to tell Git about all files we want him to keep track of and to do that we are going to use git add command to push chapter1.txt into a <strong>staging area</strong>.</p><p><strong>Syntax</strong>: git add &lt;name of the file to be tracked&gt;+ return/enter</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7w_fpYq4nONC412vziTSyg.png" /></figure><p>We have used git add and git status and it showed us, in <strong>green</strong>, that we have a new file chapter1.txt in the <strong>staging area</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T2jnP0PICKv0JkTg1z7rqw.png" /></figure><p><strong>git commit: Creates a commit</strong></p><p>At this point, we are going to use git commit to move our file from the staging area into the local repo. As a reminder, our local repo is .git directory that we have already initialized with git init.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*81LgXdC57Uv0CfXw99F6ig.png" /></figure><p><strong>Syntax:</strong> git commit -m&quot;message&quot; + return/enter. By convention, your message should always be in the present tense. In this example, our message is “initial commit” since it’s our first commit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ir4hg2Pxc9HkCyFIlq5dvQ.png" /></figure><p>Now, if we type git status, we&#39;ll see that it is at a &quot;clean state&quot;, and there is nothing to commit and no new changes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/992/1*DXUeu-KYF6-jyIxZA9NcNQ.png" /></figure><p><strong>git log: The record of what happened in each commit</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1002/1*lqCoorD2b1RIQ10hggI6yg.png" /></figure><p><strong>git add . : pushing several files into the staging area at the same time</strong></p><p>In order to use git add . command, we are going to create 2 more files in our working directory and name them chapter2.txt &amp; chapter3.txt.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*hBWfOr37p9kUpZasxYJI9A.png" /></figure><p>Now, let’s open up both files and bring some changes in by writing one sentence inside each file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/946/1*tzsxMqndjh6tJI-Orxw2Lg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/952/1*i_ucWutV4evrsWWt95SDMQ.png" /></figure><p>Now that we have some new files with some contents, let us use git status to check the status. It turned out that, in <strong>red</strong>, we have two untracked files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FjKRqPeQYIxcJShskDmbAQ.png" /></figure><p>Now, let us use git add . to push those untracked files into the staging area in one go.</p><p><strong>Syntax</strong> : git add . + return/enter</p><p>After using git add . &amp; git status , we could read in the terminal that there are, in <strong>green</strong>, two files in the <strong>staging area</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/952/1*XLP2AvfRx-9jKiZKdSOmRw.png" /></figure><p>Now that we have our files in the <strong>staging area</strong>, let’s push them into our local<strong> repo</strong> by using git commit command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*odN8UmcyY35VtiU0Ku73fw.png" /></figure><p>Finally, we are going to use git log to see how many commits we have made so far. We can see below our two commits as long as their messages. The second commit message is “<strong>complete chapter 2 &amp; 3</strong>” and the first commit message is “ <strong>initial commit</strong>”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5UivXPyQrcZ9cfBCjBynbQ.png" /></figure><p><strong>git diff</strong> : Short for “difference,” the “diff” of a file is all the changes that happened in it since the last <em>commit</em>. The “diff” of a repo is all the diffs in all the <em>tracked</em> files in the <em>repo</em> that have been made, but which have not yet been <em>committed</em>.</p><p>Before using git diff, let’s bring some changes in our one of our files. In chapter3.txt I am going to manually replace the sentence “<strong>Issa is Software Engineer</strong>” with “<strong>Balla is a freelancer and he does a great job</strong>”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/976/1*iGqPj36CJ5WTjDPngskrcg.png" /></figure><p>Now that we have changed the content of chapter3.txt let’s use git diff command.</p><p><strong>Syntax</strong>: git diff &lt;name of the file&gt; + return/enter.</p><p>It <strong>red</strong>, it shows us the sentence which has been deleted and in <strong>green</strong> the part which has been added.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u3kmgWmW3yz6NaMqryzyoQ.png" /></figure><p><strong>git checkout</strong>: <strong>rolling back the file to its previous version</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Pa1_dsTZWBeKHuynY8cwYw.png" /></figure><p>This time, let’s say I want to get back to the previous state of chapter3.txt which was “<strong>Issa is Software Engineer”. </strong>In order to achieve that goal, we are going to use<strong> </strong>git checkout command.</p><p><strong>Syntax</strong>: git checkout &lt;name of the file&gt; + return/enter</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HS-Hwdk3D1pO1OkqsHVCjg.png" /></figure><p>After using git checkout , let’s open up chapter3.txt to check out its content, we could see below that we have the original sentence back.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/922/1*pO4ukuaJrhCsPRjLse5kmw.png" /></figure><p><strong>Conclusion</strong>: We have just covered some basics commands of Git and I hope you enjoyed reading it. In my next blog post, I will walk you through the relation between <strong>Git</strong> and <strong>GitHub</strong> in other words <strong>local</strong> and <strong>remote repo</strong>.</p><p><strong>Resources</strong> :</p><p><a href="https://git-scm.com/book/en/v2">https://git-scm.com/book/en/v2</a></p><p><a href="https://www.learn.co/tracks/module-1-web-development-immersive-3-0/fswd-prework-2-0/git-getting-and-adding-to-code/git-basics">https://www.learn.co/tracks/module-1-web-development-immersive-3-0/fswd-prework-2-0/git-getting-and-adding-to-code/git-basics</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d1be01808cc1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/understanding-version-control-system-vcs-git-local-repo-d1be01808cc1">Understanding Version Control System(VCS) &amp; Git (Local Repo)</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Use the Command Line Interface (CLI)]]></title>
            <link>https://medium.com/swlh/how-to-use-the-command-line-interface-cli-9c8b70e568e?source=rss-16df8a2856c------2</link>
            <guid isPermaLink="false">https://medium.com/p/9c8b70e568e</guid>
            <category><![CDATA[command-line]]></category>
            <category><![CDATA[console]]></category>
            <category><![CDATA[terminal]]></category>
            <category><![CDATA[command-prompt]]></category>
            <category><![CDATA[command-line-interface]]></category>
            <dc:creator><![CDATA[Issa Sangare]]></dc:creator>
            <pubDate>Sun, 20 Dec 2020 08:49:03 GMT</pubDate>
            <atom:updated>2021-02-08T04:46:43.123Z</atom:updated>
            <content:encoded><![CDATA[<p>There is a saying that says: “<em>you can truly call yourself a developer if you know at least how to use the command line</em>”, base on that saying let me walk you through the basics of the command line.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*joFdi2szu_2-39CsobfKAQ.jpeg" /></figure><p>At this point, it’s assumed that you have already the CLI installed on your computer. About Mac’s users, you have already the command line application. If you’re not familiar with CLI and don’t know how to get access to the terminal, visit the following website: “<a href="https://www.businessinsider.com/how-to-open-terminal-on-mac">https://www.businessinsider.com/how-to-open-terminal-on-mac</a>”. For windows’ users, you will need to install it and there are so many tutorials out there, please just google “<strong>how to install command line tools windows</strong>”.</p><p><strong>What’s the Command Line Interface?</strong></p><p><a href="https://www.codecademy.com/articles/command-line-interface">The command line interface is a program on your computer that allows you to create and delete files, run programs, and navigate through folders and files. On a Mac, it’s called Terminal, and on Windows, it’s Command Prompt</a>.</p><p>In this tutorial, we are going to walk you through some of the commonly used command line commands. To recall, for the rest of this lesson whenever we refer to directory we just mean folder.</p><p><strong>1. pwd</strong> (<strong>Print Working Directory</strong>):</p><p><strong>Syntax</strong> : pwd + enter/return</p><p><strong>Where are we?</strong> In the terminal, you are always working in a directory, or folder, on your computer. First things first, let’s use pwd command to find out my current working directory. pwd shows us that we are inside my root directory which is issasangare&#39;s folder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pRFkhlmtC43alOEHNfLYaw.png" /></figure><p><strong>2. ls</strong> (<strong>List</strong>): ls is the command which lists all files and directories in the current working directory.</p><p><strong>Syntax</strong> : ls+ enter/return</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B_CJVEkBzJpun0gB-aedpA.png" /></figure><p><strong>3. ls -a</strong> : Lists all contents in the working directory, including hidden files and directories.</p><p><strong>Syntax</strong> : ls -a+ enter/return</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zy4OdCvLL5Rl5T1vAVXBAg.png" /></figure><p><strong>4. cd</strong> (<strong>Change directory</strong>)</p><p><strong><em>a) To navigate from one directory to another</em></strong>: We use cd command and it takes a directory name as an argument, and switches into that directory.</p><p><strong>Syntax</strong> : cd &lt;name of the directory&gt; + enter/return. Now let us navigate to my Desktop folder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TAJLRWr4eOHCw_E9S9XjRw.png" /></figure><p>Let’s check out my current working directory by using pwd command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4RnVFscyHI1znbJmGYp7kg.png" /></figure><p>At this point, we can use ls command to list all files and folders that are inside my Desktop.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Gda9NpTA0Kmi9uhReLZe-g.png" /></figure><p><strong>b)</strong> <strong><em>To navigate from one directory to the root directory</em></strong>:</p><p><strong>Syntax</strong> : cd + enter/return.</p><p>In this example, we have used first pwd to print my current working directory and then cd command. Once in my root directory, we have used pwd command one more time to display my working directory which is my issasangare’s directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FxRUJPMfCiNVFV0S17Zf9Q.png" /></figure><p><strong>5. cd .. (Change directory one level back)</strong></p><p><strong>Syntax</strong> : cd .. + enter/return.</p><p>In this example, we started inside my docs directory, which is located inside bootstrap-4.0.0 folder, which is also inside Desktop directory and finally my Desktop which is located inside my root directory. First things first, let us find out where we are by using pwd command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9PuYg3HyHUFPy4lXtVXAYw.png" /></figure><p>For the next step, we have used cd .. command to navigate one level back and then pwd which shows that we are inside my bootstrap-4.0.0 directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KU8pNSDXFY8J8wnl94AJYQ.png" /></figure><p>And finally, we used cd .. command again to navigate from bootstrap-4.0.0 toDesktop directory which is also one level back and then printed out my current working directory by using pwd.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WIVhWW0qpqyr1-RUXUxTZA.png" /></figure><p><strong>6. mkdir</strong> (<strong>Make a directory</strong>)</p><p>Since we are at my Desktop directory, let us create a new directory and name it coding. We are going to use mkdir to create a new directory, it takes in a directory name as an argument and then creates a new directory in the current working directory.</p><p><strong>Syntax</strong> :mkdir &lt;name of the directory to be created&gt; + enter/return</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_Xnw4hpqGi2AtXDjVC1k2A.png" /></figure><p>After creating coding directory and cd into it, let’s use the service of our good friends pwd and ls commands to print out my current working directory and check out if there is any file or folder inside coding directory. It turns out that we are inside coding folder and it’s an empty directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*saS6nDKw_mUUEJxC_yBKNQ.png" /></figure><p><strong>7. touch</strong> (<strong>Creating file</strong>)</p><p>In our new directory created coding which is empty, let us create some files in it. We are going to use touch, it takes in a file name as an argument, and then creates a new empty file in the current working directory.</p><p><strong>Syntax</strong>: touch &lt;file name to be created&gt; + enter/return</p><p>In this example, we used touch command to create a new file named text.txt inside coding directory and then ls to list files or folders of coding directory. We can see it below, coding folder has only one file which is Text.txt .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vwNLD3lYzV8ehBMFalX--g.png" /></figure><p><strong>8. open (Opening file</strong>)</p><p>To open a file we use open command.</p><p><strong>Syntax</strong>:open &lt;the name of the file to be opened &gt; + enter/return</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l1Lt8upRNfJbJxev6GiaHQ.png" /></figure><p><strong>9. rm</strong> (<strong>Removing file</strong>)</p><p>To remove a file, we use rm command.</p><p><strong>Syntax</strong>:rm + &lt;the name of the file to be removed&gt; + enter/return.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_SggUoLSqAmW7sOY3xhYYA.png" /></figure><p><strong>10. rm *</strong> (<strong>Removing several files</strong>)</p><p><strong>Syntax</strong> : rm *+ enter/return.</p><p>Back again in coding directory, we have created three new files(Text1.txt, text2.rft &amp; Text3.js) and used rm * command to delete all files located inside coding folder in go. After using rm *, we have used ls to check out if it remains any file or folder inside coding directory and it turned out it’s an empty folder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RY7jrbj7_-tbOWR8x4BMmQ.png" /></figure><p><strong>11. rm -r</strong> (<strong>Removing directory</strong>): Deletes a directory and all of its child directories.</p><p><strong>Syntax</strong>:rm -r + &lt;name of the file to be deleted&gt; + enter/return.</p><p>This time around, we are going to use rm -r command to delete coding directory. Since we cannot delete a directory while inside that same directory, let us first navigate to myDesktop directory where coding folder is located and use rm -r.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MkhfWE-hbDawn1DJ4oOvHA.png" /></figure><p><strong>12. mv</strong> (<strong>Moving File</strong>): To move a file into a directory, we use mv command with the name of the file as the first argument and the destination directory as the second argument.</p><p><strong>Syntax</strong>:mv &lt;name of the file to be moved&gt; &lt;destination directory name&gt;. In this example, we have created first aaa.txt inside our root directory and then used the commands mv to move it into Desktop folder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ap_CiEovfEZAqbl3GXGaVg.png" /></figure><p>We have reached the end of this tutorial, I hope you found this informative and useful. Thanks for reading!!</p><p>P.S: My next blog’s topic is: “<strong>Understanding</strong> <strong>Version Control &amp; git</strong>”. stay tuned.</p><p>resources:</p><p><a href="https://www.codecademy.com/articles/command-line-commands">https://www.codecademy.com/articles/command-line-commands</a></p><p><a href="https://www.codecademy.com/articles/command-line-interface">https://www.codecademy.com/articles/command-line-interface</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9c8b70e568e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/how-to-use-the-command-line-interface-cli-9c8b70e568e">How to Use the Command Line Interface (CLI)</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[jQuery, Write Less & Do More]]></title>
            <link>https://medium.com/swlh/jquery-write-less-do-more-4f3d4a347e37?source=rss-16df8a2856c------2</link>
            <guid isPermaLink="false">https://medium.com/p/4f3d4a347e37</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[selectors]]></category>
            <category><![CDATA[events]]></category>
            <category><![CDATA[jquery]]></category>
            <category><![CDATA[beginner]]></category>
            <dc:creator><![CDATA[Issa Sangare]]></dc:creator>
            <pubDate>Tue, 08 Dec 2020 05:08:44 GMT</pubDate>
            <atom:updated>2021-02-08T04:50:51.771Z</atom:updated>
            <content:encoded><![CDATA[<p><em>If you are a JavaScript developer and want to write less code and do more, this tutorial is for you.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zS0RVdCH7bGYkETLjI7zlg.jpeg" /></figure><h4><strong>What’s jQuery?</strong></h4><p>jQuery is a Javascript library and was created in 2006 by John Resig with a nice motto: <strong>Write less, do more</strong>. Its purpose is to make it much easier to use <em>JavaScript</em> on your website. According to jQuery’s <a href="https://jquery.com/">official documentation</a>, jQuery is a fast, small, and feature-rich JavaScript library. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.</p><p>The jQuery library contains the following features: HTML/DOM manipulation, CSS manipulation, HTML event methods, Effects and animations, AJAX, and Utilities.</p><p>In this lesson, our file structure is set as below with three files: HTML, CSS and JavaScript file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SfQbdvGLcSZsB1NTPj3EUA.png" /></figure><h4>Install jQuery</h4><p>Since jQuery is a library, we need to download or install it first in our project before we could benefit from its handy features. There are a couple of methods to get started with jQuery:</p><ol><li><strong>Local Installation:</strong> You can directly download the jQuery library from their official website and include it in your HTML code.</li><li><strong>Package managers</strong>:</li></ol><p>npm install jQuery and import it like this import * as jQuery from &#39;jQuery&#39;</p><p>3.<strong> Link to a CDN:</strong> You can add jQuery library in your HTML code from Content Delivery Network. For this current project, we are going to use <a href="https://developers.google.com/speed/libraries#jquery">Google CDN</a>, copy and paste the &lt;script&gt; tags in our HTML file like below(line 17).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8U27RofJRenRVehr5jovfA.png" /></figure><h4>Summary</h4><p>In this lesson, we’ll be covering the following fundamentals: jQuery selectors, jQuery methods, jQuery events, and jQuery effects.</p><h4>jQuery selectors</h4><p>jQuery Selectors are used to select and manipulate HTML elements by using jQuery() or $() function. Both functions play the same role; but for the stake for “write less, do more” we will be using, for the rest of this project, $().</p><p><strong>$() vs </strong><strong>document.querySelector()</strong></p><p>In regular JavaScript, to select HTML elements we use some functions such as: document.querySelector(), document.querySelectorAll(), document.getElementById() or document.getElementByClass(). Unlike JavaScript, in jQuery, we use $() it replaces all the above JavaScript functions for selecting HTML elements. For instance, in jQuery, we write $(&quot;h1&quot;) to select h1 tags unlike JavaScript we do<br>document.querySelector(&quot;h1&quot;) , I hope you understand what’s beneath the motto: “Write less, do more”. Now, let’s head to google DevTools to get used to jQuery selectors.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7JKzVLs1Y_Q6fnKkq-GlIA.png" /></figure><h4>jQuery methods</h4><p>There are several jQuery methods, we’ll be covering some of the most commonly used.</p><p><strong>1.</strong> <strong>jQuery Methods — addClass()</strong>: The addClass() method is used to add one or more classes to the selected element. Inside our styles.css file we have two classes: big-title &amp; margin-50.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*20MowaSca0uY2EcPssyGSQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1016/1*RpMA2oAiyadOGldPWRB3Ng.png" /></figure><p>Let’s select &lt;h1&gt; jQuery fundamentals &lt;/h1&gt; with jQuery $() selector and add some classes by invoking addClass().</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Yw2unhAruU2V42EbvXaZlQ.png" /></figure><p><strong>2.jQuery Methods — text()</strong>: The jQuery text() method is used to set or return the text content of the selected elements. For this example, to return h1text content which is “<strong>jQuery fundamentals</strong>”, we will select again h1 tags and call text() on it. Secondly, for setting h1 text content to “<strong>I love jQuery</strong>”, we will select back again h1 and then invoke text() on h1 with “<strong>I love jQuery</strong>” as an argument.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yjIJ3eUi-3tPSLfp-SplBQ.png" /></figure><p><strong>3.jQuery Methods — html()</strong>: The jQuery html() method is used to set or return the entire content of the selected elements.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a8zuN_kpA9xYAkpNdnjSBw.png" /></figure><p><strong>4. jQuery Methods — attr()</strong>: The jQuery attr() method is used for getting and setting attributes of the selected elements. In our HTML file, there is &lt;a&gt; tag with href attribute set to an empty string. In this example, we are going to return the href the initial value, then set href value to my personal blog’s link and finally return the updated href value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/886/1*EyzpYiiQRNKfa5ZkRErAHw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V3ZBDS7HkVJ07BchmAeNJw.png" /></figure><p><strong>5.jQuery Methods — before()</strong>: The jQuery before() method is used to insert the specified content before the opening tag of the selected elements. Let’s add button tag before our h1 tags.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fOxXow_sOx4lMI29KV6z5Q.png" /></figure><p><strong>6.jQuery Methods — after()</strong>: The jQuery after() method is used to insert specified content after the selected element. Let’s add another button tag after our h1 tags.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L3xewTalvpdfJ8GMWgeV2w.png" /></figure><p><strong>7.jQuery Methods — css()</strong>: The jQuery css() method is used to get or set style properties for selected elements. Let’s select this time around our &lt;h2&gt; By Issa, software engineer &lt;/h2&gt; and set its color and background color.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wVoQLaBfHPy2WspEeCH9NQ.png" /></figure><h3>jQuery Events</h3><p>There are several jQuery events, we’ll be covering the most commonly used events: click(), keypress() and on().</p><p><strong>1.jQuery events — click()</strong>: When you click on a selected element, the click event occurs by executing a function or a set of statements.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tzF5sRtTLirvIwFsfqHbiw.png" /></figure><p><strong>2.jQuery events — keypress()</strong>: The jQuery keypress() event is executed when a character is entered. In this example, we add event to the whole document and body tag, but you can add it to any HTML element you would like to.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_2FikwnOuf1kd3coRPuWCw.png" /></figure><p><strong>3</strong>.<strong>jQuery events — on()</strong>: The jQuery on() event takes two parameters, the first one is the event we are looking for to listen for and the second is the callback function. For this example, let’s use mouseover event.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_mt21q5nb2q1LXVEM_hoSw.png" /></figure><h3>jQuery Effects</h3><p>There are several jQuery effects, we’ll be covering some of the most commonly used effects.</p><p><strong>1.jQuery effects — hide()</strong>: The jQuery hide() method is used to hide the selected elements.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hsTvoi-eriLtPdeJr0pTxA.png" /></figure><p><strong>2. jQuery effects - show()</strong>: The jQuery show()method is used to display the selected elements.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g33hP5w6DiXXaXYuZ4M1fQ.png" /></figure><p><strong>3.jQuery effects — toggle()</strong>: The jQuery toggle() method is used to toggle between the hide() &amp; show() method, it displays the hidden selected elements and hides the visible selected element.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jiOlS4zsKOCsd7poOqzZ6Q.png" /></figure><p><strong>4.jQuery effects — slideUp(), slideDown() &amp; slideToggle()</strong>: The jQuery slideUp() method is used to slide up the selected element, slideDown() is to slide down the selected element and slideToggle() is to toggle between the slideDown() &amp; slideUp() methods.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sjKF35rHVYV6UcPdBAu9iw.png" /></figure><p>Dear readers, with this we come to the end of this tutorial. I hope you found this informative and useful. Thanks for reading.</p><p>resources:</p><p><a href="https://jquery.com/">https://jquery.com</a></p><p><a href="https://www.w3schools.com/jquery/">https://www.w3schools.com/jquery</a></p><p><a href="https://blog.logrocket.com/using-jquery-in-2019/">https://blog.logrocket.com/using-jquery-in-2019</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4f3d4a347e37" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/jquery-write-less-do-more-4f3d4a347e37">jQuery, Write Less &amp; Do More</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[React-Redux]]></title>
            <link>https://levelup.gitconnected.com/react-redux-d6a88f99adff?source=rss-16df8a2856c------2</link>
            <guid isPermaLink="false">https://medium.com/p/d6a88f99adff</guid>
            <category><![CDATA[redux]]></category>
            <category><![CDATA[reduce]]></category>
            <category><![CDATA[store]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[state]]></category>
            <dc:creator><![CDATA[Issa Sangare]]></dc:creator>
            <pubDate>Tue, 01 Dec 2020 04:59:49 GMT</pubDate>
            <atom:updated>2021-02-08T04:56:38.708Z</atom:updated>
            <content:encoded><![CDATA[<p><em>If you want to avoid Prop Drilling which is to pass props from React parent component to its children or grand children component, you do want to read this tutorial about React-Redux.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JMNBj5SS16PBH4kWD4v74Q.png" /></figure><h3>What is Redux?</h3><p>According to Redux <a href="https://redux.js.org/tutorials/essentials/part-1-overview-concepts">documentation</a>, Redux is a pattern and library for managing and updating application state, using events called “actions”. It serves as a centralized store for state that needs to be used across your entire application, with rules ensuring that the state can only be updated in a predictable fashion.</p><p>In this tutorial, we’re going to set up our file structure like below with a folder for reducers which we will talk about later on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/542/1*JljmCJVuUPxZkBC1kfTuxw.png" /></figure><p>First things first, we need to install react-redux and redux’s library:</p><p>npm install redux and npm install react-redux and then let’s start our journey with <strong>index.js </strong>file.</p><h4><strong>index.js file:</strong></h4><p>Here, we have imported Provider Component from react-redux. What’s Provider? This is a context wrapper which we are going to use to wrap up our entire application and which receives the <strong>store</strong> as a property. Its sole purpose is to make Redux store available to the rest of our App via Redux’s methods.</p><p>Now, let’s talk about Redux store. The <a href="https://redux.js.org/tutorials/fundamentals/part-4-store">Redux store</a> brings together the state, actions, and reducers that make up your app. Store is like an external state container where every React <strong>components</strong> can get access to it. Very important and to recall, you’ll only have a single store in a Redux application.</p><p><strong>Create a store</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BjzznWiWyk7RNPMQ6Kp0vQ.png" /></figure><p>In line 7, we have imported createStore from redux. CreateStore is a function that creates a Redux store and will take as an argument reducer function. In this time around, we have passed in rootReducer. What’s rootReducer? it’s also a reducer function but for now, let’s put that question on hold and we will get back to it shortly. In line 10, we used createStore function to create our Redux store and assigned it to the variable store. In line 13, we passed our store as props or property to the Provider Component, thus that Redux store would be accessible to every single component of our whole App via some Redux functions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0VtNb1GB6Z4H7NDlbi_wAg.png" /></figure><h4><strong>Reducers folder:</strong></h4><p>In this folder, there are two files: <strong>imageReducer.js</strong> and <strong>rootReducer.js.</strong></p><p><a href="https://redux.js.org/recipes/structuring-reducers/basic-reducer-structure#basic-reducer-structure"><strong>What’s reducer</strong></a><strong>: </strong>Reducer is a redux function that will be passed into createStore as the argument.<strong> </strong>To recall, you could have numerous reducers but you can pass into createStoreonly a single reducer function. We’ll cover this later on in this blog.</p><ol><li><strong>imageReducer.js:</strong> In this file in line 1, we have just set an initialState because every reducer needs some initial state. In line 5, we have passed into our ImgReducer function as arguments the initialState and the action. So far, ImgReducer is the only reducer function for our App. To remember, reducers normally use <a href="https://redux.js.org/tutorials/fundamentals/part-3-state-actions-reducers"><strong>ES6 default argument syntax</strong></a> to provide the initial state: (state = initialState, action).</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zJOkCH_Uv8jYADDwCVheGw.png" /></figure><p>2. <strong>rootReducer.js: </strong>In this file rootReducer.js, the first thing we have done was to import ImgReducer from <strong>“./imageReducer”. </strong>In here, we have another Reducer function which is reducer. As stated above, we can only pass one reducer as an argument into createStore function, since we have two reducers we will need another function that can combine our two reducers into one. For this reason, we have to import combineReducers function from redux. The <a href="https://redux.js.org/api/combinereducers">combineReducers</a> helper function turns an object whose values are different reducing functions into a single reducing function you can pass to createStore.</p><p>In line 26, we have passed our two reducers ImgReducer &amp; reducer into combineReducers and assigned it to the variable rootReducer and finally, we made that rootReducer exportable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lrGihOspw4Hofp5y52Z9zQ.png" /></figure><h4><strong>Back to index.js file:</strong></h4><p>In line 8, we have imported rootReducer inside index.js file. In line 10, we have passed rootReducer as an argument into createStore function and assigned it to our Redux store. At this point, our Redux store encompasses our state, actions, and rootReducer (combineReducers). And finally, we have passed that store as property to the Provider Component in order to make it reachable, throughout the whole application, to all components.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gtUFFOmKacr-ZHn_M7ZYrw.png" /></figure><h4><strong>Count.js file:</strong></h4><p><strong>How components get access to Redux store’s data?</strong></p><p>React-redux provides us another function connect() which components can use to get access to store’s data. The connect() function connects a React component to a Redux store. It has two purposes: it will connect the component to store so that it gets data from the store and dispatch information to store. Let’s consider connect as a connector or bridge between React component and Redux store.</p><p>Now let’s find out how we can connect our functional component <strong>Counter</strong> to our Redux store and get can data from it. First things first, we need to import connect from &#39;react-redux&#39; (line2).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C754nSm-yYViIILqGjPlOg.png" /></figure><p><a href="https://react-redux.js.org/7.1/api/connect#connect">Connect</a> accepts four different parameters, all optional. By convention, they are called:</p><ol><li>mapStateToProps?: Function</li><li>mapDispatchToProps?: Function | Object</li><li>mergeProps?: Function</li><li>options?: Object</li></ol><p>In this example, we are going to use the first two: mapStateToProps and mapDispatchToProps.</p><h3><strong>mapStateToProps</strong></h3><p>It is a function and by convention, it will be the first parameter of the connect function. Your mapStateToProps functions are expected to return an object. This object, normally referred to as <a href="https://react-redux.js.org/7.1/api/connect#connect">stateProps</a>, will be merged as props to our connected component which is here Counter component.</p><p>Since we are using connect() to connect our Counter component to store, let’s name the parameter we have passed to mapStateToProps as store and console.log it (you can give whatever name you would like).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kQCfh5KT3YDbisVw3ZenpA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nWwE-5omOz_x_S8fSS3aRw.png" /></figure><p>It turned out that our store encompasses our rootReducer (ImgReducer and reducer) where our state is located. Since mapStateToProps is expected to return state our goal here is to get access to state from rootReducer and return it.</p><p><strong>Accessing to State from our reducers:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WjuqQK89s3TGgLAdkMbF9A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PpZVh79QXyi0U0YUGSYStg.png" /></figure><p><strong>Returning State: </strong>For this component we only need count field for our Counter component and we know count is inside reducer that will be easy to retrieve. As we know mapStateToProps will return an object therefore let’s name the key of this object count and its value will be store.reducer.count.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Kw6QEiLIh3lMkxYjOfj-Ng.png" /></figure><p>As stated above, whatever mapStateToProps return will be a props for our Counter component. Let’s check it out inside the developer tools if there is any props. As you can see below our Counter component has now count as props.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/814/1*2EFafWlMiBuF6FDaTOZdBw.png" /></figure><h3><strong>mapDispatchToProps</strong></h3><p>Conventionally, the second parameter connect() takes is mapDispatchToProps. To recall, your component will receive dispatch by default for instance you do not provide a second parameter to connect().</p><p>If your <a href="https://react-redux.js.org/7.1/api/connect#connect">mapDispatchToProps</a> is declared as a function taking one parameter, it will be given the dispatch of your store. Your <a href="https://react-redux.js.org/7.1/api/connect#connect">mapDispatchToProps</a> functions are expected to return an object, each field of the object should be a function, calling which is expected to dispatch an action to the store. Whatever it returns will be merged as props to your connected component which here Counter component.</p><p>Dispatch: it takes as argument action. <a href="https://redux.js.org/tutorials/fundamentals/part-3-state-actions-reducers">Actions </a>are plain JavaScript objects that have a type field. You can think of an action as an event that describes something that happened in the application. On top of that, actions have also payload field and we put any extra data needed to describe what’s happening into the action.payload field. This could be a number, a string, or an object with multiple fields inside.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ttL0il0_TGll0cO5K9Ajkw.png" /></figure><p>Since the return of mapStateToProps and mapDispatchToProps functions will be merged as props to your connected Counter component, let’s open up our DevTools and check it out. We can see below that our component has some props: count, decrement and increment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/956/1*ZK3jFglEGNIPi8EZJQ7nRQ.png" /></figure><blockquote>Let’s console.log inside our connected Counter component those props we have received from mapStateToProps and mapDispatchToProps by using connect function.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CY5qT7CyMCqhO7eMMkESwA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W59o6j4FL_HQqGCWz1wv-Q.png" /></figure><h4>rootReducer.js:</h4><p>Let me walk you through our reducer function. It takes two arguments state and action. We used Switch case statement to check the condition, if action.type is “inc” we want our reducer function to return the current state first and then update count field by increasing it. In this example, we have used spread operator to make a copy of our current (…state).On the other hand, if action.type is “dec”, we want our reducer to return the current state and update count field by decreasing it. If none of those conditions are not met our reducer function will return by default the current state.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OM-V4Kzsw-C8ZqOYdkq--w.png" /></figure><p>At this point, though, I hope you can see how Redux makes our life more easier by avoiding the so-called <a href="https://medium.com/javascript-in-plain-english/how-to-avoid-prop-drilling-in-react-using-component-composition-c42adfcdde1b">Prop Drilling</a> which is to pass data from one part of the React Component tree to another by going through other parts that do not need the data but only help in passing it around</p><p>If you made it this far, thanks for reading!</p><p>PS: I shared below the ImgComponent and it’s not going to be commented it since we have already covered the same process inside counter.js file throughcounter Component.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A3U539Q277ZR93LM7EawSw.png" /></figure><p>resources: <a href="https://redux.js.org/introduction/getting-started">https://redux.js.org/introduction/getting-started</a>,</p><p><a href="https://redux.js.org/tutorials/fundamentals/part-3-state-actions-reducers">https://redux.js.org/tutorials/fundamentals/part-3-state-actions-reducers</a>,</p><p><a href="https://react-redux.js.org/7.1/api/connect#connect">https://react-redux.js.org/7.1/api/connect#connect</a>,</p><p><a href="https://react-redux.js.org/7.1/introduction/why-use-react-redux">https://react-redux.js.org/7.1/introduction/why-use-react-redux</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d6a88f99adff" width="1" height="1" alt=""><hr><p><a href="https://levelup.gitconnected.com/react-redux-d6a88f99adff">React-Redux</a> was originally published in <a href="https://levelup.gitconnected.com/">Level Up Coding</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Strict vs Loose equality in JavaScript]]></title>
            <link>https://issabmsangare.medium.com/strict-vs-loose-equality-in-javascript-3b9ef876766b?source=rss-16df8a2856c------2</link>
            <guid isPermaLink="false">https://medium.com/p/3b9ef876766b</guid>
            <category><![CDATA[strick-vs-loose]]></category>
            <category><![CDATA[type-coercion]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[type-conversion]]></category>
            <category><![CDATA[equality-operators]]></category>
            <dc:creator><![CDATA[Issa Sangare]]></dc:creator>
            <pubDate>Mon, 23 Nov 2020 02:05:09 GMT</pubDate>
            <atom:updated>2020-11-23T02:05:09.260Z</atom:updated>
            <content:encoded><![CDATA[<p><em>In this tutorial, you are going to learn the difference between strict </em><em>=== and loose </em><em>== equality operators in JavaScript and understand how they compare operands.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-Arv0Le3bPA9Ae_-p6OThA.png" /></figure><p>In JavaScript we use triplet equals === known as strict equality or double equals ==known as loose equality to compare two or more operands, they look similar but they are different.</p><h3>Strict Equality (===)</h3><p>When comparing two operands, triple equals=== returns true only if<strong> </strong>both <strong>values </strong>and <strong>types</strong> are identical for the two operands being compared. For instance20 === &quot;20&quot;, here we are comparing a number which is 20 to a string which is &quot;20&quot;, strict equality returns false because their types are different string and number.</p><p>Unlike the above example, let’s compare 20 to20 by using again triple equals. This time around, we are comparing a number to another one. Thus, triple equals operator returns true because both operands have same value and type. More examples are listed below👇 👇 👇</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d7loJEq3Z2YevEa6uiH7Pw.png" /></figure><h3>Loose Equality (==)</h3><p>When using double equals in JavaScript, it performs type coercion . <a href="https://developer.mozilla.org/en-US/docs/Glossary/Type_coercion">Type coercion</a> means that two values are compared only <strong>after</strong> attempting to convert them into a common type.</p><p>Let’s use loose equality to compare number and string. Let’s say 20 is the value of our number and the string value is &quot;20&quot;. In this case, first things first, JavaScript will try to convert our values into a common type . The string value of &quot;20&quot; can easily be converted into the number value of 20. Since 20equals 20, double equals operator returns true. Find more examples below👇 👇 👇</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uZC1gjzw_iM23G-Hh3IETw.png" /></figure><h3><strong>Falsy values with loose equality</strong></h3><p>There are only six Falsy values in Javascript: <strong>false </strong><strong>boolean</strong>, number zero 0, an empty string &quot;&quot;, null, undefined and NaN (Not A Number).</p><ol><li>When comparing any of the following falsy values: false, 0and empty string “” with loose equality, they will always be equal! That’s because these values will all coerce into a false boolean.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EKmgMz8jjvk7O7Nd9MsU4A.png" /></figure><p>2. When comparing null and undefined, they are only equal to themselves and each other. To recall, trying to compare null to any other value, it will return false</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PUdK0K_I0WosuwGfYr81fQ.png" /></figure><p>3. NaN is not equivalent to any value even itself, it will always return false when using loose equality.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9RdF_nfjtbEAgJPlCXAxHA.png" /></figure><h3><strong>Tips:</strong></h3><p>Unless you absolutely need to use loose equality, otherwise it always better you use strict equality.</p><p>That’s all for post, I hope you enjoyed reading it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3b9ef876766b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[React Hook (useState)]]></title>
            <link>https://issabmsangare.medium.com/react-hook-usestate-b60199fe5ee4?source=rss-16df8a2856c------2</link>
            <guid isPermaLink="false">https://medium.com/p/b60199fe5ee4</guid>
            <category><![CDATA[usestate-hook]]></category>
            <category><![CDATA[beginner]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Issa Sangare]]></dc:creator>
            <pubDate>Mon, 16 Nov 2020 22:49:10 GMT</pubDate>
            <atom:updated>2020-12-19T03:19:17.651Z</atom:updated>
            <content:encoded><![CDATA[<h3>React Hooks (useState)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/941/1*ijY1TUF9Lwp04Almp2m0jg.jpeg" /></figure><p><strong>What is a Hook?</strong> A Hook is a special function or in-built function that lets you “hook into” React features. For instance, <strong>useState</strong> is a Hook that lets you add React state to functional components.</p><p><strong>When should we use a Hook?</strong> If you have a functional component and realize that you need to add some state to it. Back in the days, you had to convert that functional component to a class component. With the release in February 2019 of React 16.8 we no longer need to convert function to class component, you can now use a Hook inside the existing function component in order to get some state.</p><p>In this tutorial, you are going to learn <strong>useState</strong> by comparing this functional component to an equivalent class component.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K1ZLnxSrHnOwAbkBRAQqqg.png" /></figure><h3><strong>Equivalent Class Component</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ynyua0H9Lox23YUlokpB3A.png" /></figure><p>First things first, we need to import ‘<strong>useState</strong>’ Hook from react which will be invoked inside our function in order to get some state.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GTOMBwvMzc7LiZN3Pdjebw.png" /></figure><h3><strong>Declaring a State Variable</strong></h3><p>In our class component, we initialize the count state to 0 by setting <strong>this.state</strong> to <strong>{count : 0 }</strong> in the constructor:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J5kcTBU5kU_T2TZ6mjVAQg.png" /></figure><p>In our function component, since we have no <strong>this </strong>we call the useState Hook directly inside our function to declare our state variable:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tJRtDQvFt64Wvyr4MZN09w.png" /></figure><p><strong>What does useState do? useState </strong>has the exact same capabilities that <strong>this.state</strong> provides in a class. It declares a “<strong>state variable</strong>”, in this example our variable is called <strong>count </strong>and<strong> setCount </strong>is the function which will be used to update our state variable.</p><p><strong>What should we need to pass to useState as an argument? </strong>The only argument to pass to the useState Hook is the initial state and it could be number or a string unlike with classes, where the state should be an object.</p><p><strong>What does useState return? </strong>It returns a pair of values: the current state and a function that updates it. In our example, we declare a state variable called <strong>count</strong> and set it to <strong>0</strong>. <strong>SetCount</strong> is a function we will using to updates the current count.</p><h3><strong>Reading State</strong></h3><p>When we want to display the current count in a class, we read <strong>this.state.count</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iWgb1sjic2Tkz2vgOLRnmw.png" /></figure><p>In a function, we can use count directly:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s9OXAGDOcKJpLd63TxlcHw.png" /></figure><h3>Updating State</h3><p>In a class, we need to call <strong>this.setState()</strong> to update the count state:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UtI1PMAiZdVxre-R2DEcHg.png" /></figure><p>In a function, we already have <strong>setCount() </strong>and this is a one we will<strong> </strong>invoke to change count state:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4rzJltWkNw9MUCcAp2VW5A.png" /></figure><p>We can also create another function which sole purpose once invoked is to update the state. For this time around let’s call that function ‘<strong>handleChange</strong>’ and inside that function we will call the function setCount to change the state:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1berBfUGj6mxyGbbFsQluA.png" /></figure><p>I hope you enjoyed reading through this tutorial.</p><p>resources:</p><p><a href="https://reactjs.org/docs/hooks-state.html">https://reactjs.org/docs/hooks-state.html</a></p><p><a href="https://www.smashingmagazine.com/2020/04/react-hooks-api-guide/">https://www.smashingmagazine.com/2020/04/react-hooks-api-guide/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b60199fe5ee4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I wish I knew imposter syndrome before joining Coding Bootcamp]]></title>
            <link>https://issabmsangare.medium.com/i-wish-i-knew-imposter-syndrome-before-joining-coding-bootcamp-69d23e878dcd?source=rss-16df8a2856c------2</link>
            <guid isPermaLink="false">https://medium.com/p/69d23e878dcd</guid>
            <category><![CDATA[codingbootcamp]]></category>
            <category><![CDATA[flatiron-school]]></category>
            <category><![CDATA[imposter-syndrome]]></category>
            <dc:creator><![CDATA[Issa Sangare]]></dc:creator>
            <pubDate>Tue, 01 Sep 2020 16:14:48 GMT</pubDate>
            <atom:updated>2020-09-01T16:14:48.908Z</atom:updated>
            <content:encoded><![CDATA[<p>Here we are, I am at fifth and final Module at Flatiron School’s software engineering precisely one week from graduation. In fact, last module or Mod5 is the period when students spend three weeks on a solo project (final project), no more code challenges, lectures or labs... Right now, I am at second week of fifth Module and I have been facing the so-called “<strong>Imposture Syndrome</strong>”.</p><p>What’s the imposture syndrome, according to <a href="https://blog.hubspot.com/marketing/impostor-syndrome-tips"><strong>Lindsay Kolowich Cox</strong></a><strong>: ‘ </strong><em>People who suffer from this syndrome often feel like frauds — despite being smart, skilled, capable professionals who actually deserve whatever commendations and praise they’re given. Rather than celebrating their accomplishments, they worry that they’ve somehow tricked people into thinking they’re good enough. As a result, they live in fear of being “found out” or “exposed’’</em>.’</p><p>I decided to write about this topic because I went through this syndrome, I know how difficult it is to cope with it. Mine starts at the beginning of Mod5 by questioning myself constantly: do I belong here? do I have enough skills to start and finish up my final project in solo? Should I retake everything from module 1 to 5 again in order to be more confident and more geared up? etc. Even though I knew I went through code challenge during each module (four in total), code challenges are like an exam to test how comfortable students are with materials they have exposed to during one module before they go to the next one. Therefore, a student could retake the same module if instructors or technical coaches judge that student did not embrace enough knowledge to step in to the next module.</p><h4><strong><em>Tips for Coping With Impostor Syndrome</em></strong></h4><p><strong><em>Knowing the signs is the first step</em></strong>: According to Lindsay Kolowich Cox, you might suffer from impostor syndrome if:</p><ul><li>You feel like you “got lucky” when you actually prepared well and worked hard.</li><li>You find it hard to accept praise.</li><li>You apologize for yourself when you didn’t actually do something wrong.</li><li>You hold yourself to incredibly — sometimes impossibly — high standards.</li><li>You find the fear of failure paralyzing.</li><li>You avoid expressing confidence because you think people will see it as overcompensating or obnoxious.</li><li>You’re convinced you’re not enough.</li></ul><p><strong><em>Be kind to yourself</em></strong>: take the pressure off your shoulders, programming is journey and you cannot in three months turn into that developer you have been dream of. Stop comparing to others, rather compare yourself to yourself how you were before joining the coding bootcamp and how you are the while you are facing the imposture syndrome. Stop negative self-talk such as :I am not smart enough, I am dumb, instead of practice positive self-talk.</p><p><strong><em>Talk to your project manager, instructor or coach</em></strong>: You don’t want to suffer alone rather you do want to share your thoughts and experiences to your mentor, coach or instructor… because some of them have been in your shoes, they can help you to be better equipped to deal with your impostor syndrome.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=69d23e878dcd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Nodes vs Elements in the DOM]]></title>
            <link>https://issabmsangare.medium.com/nodes-vs-elements-in-the-dom-1865885d0b9b?source=rss-16df8a2856c------2</link>
            <guid isPermaLink="false">https://medium.com/p/1865885d0b9b</guid>
            <category><![CDATA[elements]]></category>
            <category><![CDATA[node]]></category>
            <dc:creator><![CDATA[Issa Sangare]]></dc:creator>
            <pubDate>Mon, 27 Jul 2020 14:02:44 GMT</pubDate>
            <atom:updated>2020-07-27T14:02:44.270Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>In my early JavaScript learning process, I came across two objects: ‘nodes’ and ‘elements’ which triggered some confusion in my mind. I thought both objects were the same, when in fact, it turns out they are not technically the same because there is a clear distinct difference between both. Let’s sort out that difference between nodes and elements.</blockquote><p><strong><em>What’s a node?</em></strong><em> </em>it is the name of any type of object in the DOM tree. It could be one of the built-in DOM elements such as the <strong>document</strong> itself, <strong>document.head </strong>or <strong>document.body. </strong>A node could be an HTML tag specified in the HTML such as <strong>&lt;input&gt;</strong>, <strong>&lt;div&gt;,&lt;h2&gt;,</strong> <strong>&lt;p&gt; </strong>or it could be a comment node, text node… In fact, a <strong>node</strong> is any DOM object and every node has a parent, every node is allowed to have one or more children or even zero children.</p><p><strong><em>What’s an element? </em></strong>An element is a specific type of node, one that can be directly specified in the HTML with an HTML tag and can have properties like an <strong>id</strong> or a <strong>class</strong>. can have children, etc.</p><p><strong><em>Nodes vs Elements</em></strong>: Nodes are all the different components that a webpage is made up of and elements are one type of node.</p><p>Let’s have a look on some types of node, their value and description</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X_ympEz5_GosfhZbWJutjw.png" /></figure><p>The following html element has two children: head (line 3) and body (line 10) and these are two ‘nodes’. The head and body are element nodes. Inside the body (line 12) there is a comment (navbar), it’s one children of the body and it’s a comment node</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AMTL8KxEnkT0bSXtwEfqjw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y__S37NDQDDGlSP7i2QkQg.png" /></figure><p>Since every node has properties, therefore let’s find out in the console the ones for element node ‘body’.</p><ol><li><strong>.nodeName property </strong>has a return value “Body”</li><li><strong>.nodeType </strong>property returns a value of 1 which means that body is ELEMENT_NODE.</li><li><strong>.parentNode </strong>shows this element node “Body” has <strong>parentNode </strong>which is the html element.</li><li><strong>.children</strong> property returns HTML collection,</li><li><strong>.COMMENT_NODE</strong> has a return value of 8, which states that we have comment node as of the children of the body.</li></ol><p>That’s all for this topic and thank you for reading this blog.</p><p>resources:</p><ol><li><a href="https://www.youtube.com/watch?v=y3itGTCseAk">https://www.youtube.com/watch?v=y3itGTCseAk</a></li><li><a href="https://stackoverflow.com/questions/9979172/difference-between-node-object-and-element-object#:~:text=So%2C%20in%20a%20nutshell%2C%20a,and%20a%20nextSibling%20and%20previousSibling.">https://stackoverflow.com/questions/9979172/difference-between-node-object-and-element-object#:~:text=So%2C%20in%20a%20nutshell%2C%20a,and%20a%20nextSibling%20and%20previousSibling.</a></li><li><a href="https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType">https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1865885d0b9b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>