<?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 Feyza Afacan on Medium]]></title>
        <description><![CDATA[Stories by Feyza Afacan on Medium]]></description>
        <link>https://medium.com/@feyzafacan?source=rss-1840d287ff67------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*MSo28IZij0zlOwY8dKxp7Q.jpeg</url>
            <title>Stories by Feyza Afacan on Medium</title>
            <link>https://medium.com/@feyzafacan?source=rss-1840d287ff67------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 16:09:01 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@feyzafacan/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[Introduction to Git| Part 2| Day 30| #100DaysOfCode]]></title>
            <link>https://medium.com/@feyzafacan/introduction-to-git-part-2-day-30-100daysofcode-4cc2a1ab1ffd?source=rss-1840d287ff67------2</link>
            <guid isPermaLink="false">https://medium.com/p/4cc2a1ab1ffd</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[100daysofcode]]></category>
            <dc:creator><![CDATA[Feyza Afacan]]></dc:creator>
            <pubDate>Fri, 09 Dec 2022 10:35:51 GMT</pubDate>
            <atom:updated>2022-12-09T10:35:51.729Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*aZYmc7C4GjaqZAeG.jpeg" /></figure><p>Hello, everyone. My name is Feyza and I am a computer engineering student at Politecnico di Torino in Italy. I’ve been learning web development for a while. I started with HTML and CSS. Then, I studied JavaScript. When I felt good about these things, I started React. In this process, I saw that people share their knowledge and experiences on Medium and Linkedin and I decided to be part of it. I am going to share what I learn day by day with the #100DaysOfCode challenge.</p><p>Today I will explain what I learned on day 30. Let’s begin!</p><p><em>Suggestion: Before you read this you can check the part 1 version.</em></p><h4><strong>Short status</strong></h4><p>First, we did some changes to our files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/878/1*cO8d6zIxOweQssC2-G-11Q.png" /></figure><p>Now we see the changes shorter than in the previous image. The left side represents the staging area. The right side represents the working directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/885/1*TvCu79osFv5fF0bvSnqdLQ.png" /></figure><p>Then, I added file one to the staging area. It is green now.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/914/1*Bxu79vPxBjDirgQK9gSOdg.png" /></figure><p>I did one more change in file 1 (<strong>MM</strong>). Then, again I added the staging area.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GavNq1vgr1CXHu5f51tdVg.png" /></figure><p>Now we added file 2 too. M means modified, and A means added.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6O06bpyySoQz6p0KkVLFHw.png" /></figure><h4><strong>Viewing staged and unstaged changes</strong></h4><p>Git diff –staged</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/916/1*xrNIVugXPdbpMZzRXFYp5g.png" /></figure><p>I wrote something in file 1. Let’s look at the difference.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/939/1*kk-u_EiQrRzthCvVcZu4tQ.png" /></figure><h4><strong>Visual diff tools</strong></h4><p>Popular tools are,</p><ul><li>KDiff3</li><li>P4Merge</li><li>WinMerge (Windows only)</li><li>VSCode</li></ul><p>We will use VSCode today.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PpZv_jTBLWx0tSum2fL_Vg.png" /></figure><p>I opened the changes in vs code. It looks better than the terminal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oXKGpwvTWN8hJgxiY--FhA.png" /></figure><p>Here is the staged difference.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ylR8NKZd-4A4s1YJ8LlMJA.png" /></figure><h4><strong>Visual diff tools</strong></h4><p>We use the git log command to see the history. You can go to the next page with space and quit with ”q”.</p><p>Also, you can see the summary with git log –oneline,</p><p>git log –oneline –reverse will reverse the order of your commits.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/946/1*IglqvlRM7bYjDDNusUXKXg.png" /></figure><h4><strong>Viewing a commit</strong></h4><p>git show</p><p><strong><em>HEAD~1</em></strong> means one step back.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/919/1*c5uIZQj6WTlMwEIbbHVPdQ.png" /></figure><p>Git objects: commits, blobs (files), trees (directories), tags</p><h3>Summary</h3><p>Yes, we did a very quick introduction to Git. You can continue with Programming with Mosh. I will continue with another <a href="https://www.coursera.org/learn/introduction-git-github?specialization=google-it-automation&amp;utm_source=gg&amp;utm_medium=sem&amp;utm_campaign=11-GoogleITwithPython-ROW&amp;utm_content=B2C&amp;campaignid=9733806670&amp;adgroupid=119184274733&amp;device=c&amp;keyword=&amp;matchtype=&amp;network=g&amp;devicemodel=&amp;adpostion=&amp;creativeid=507191775308&amp;hide_mobile_promo&amp;gclid=Cj0KCQiA1sucBhDgARIsAFoytUu4h0DCqfqcU2HnzGxbFlhl7jEkVMfhwE49XWrrzkzQ3-BZzAj4jOoaAsfHEALw_wcB">course from Google</a> and certified. Thank you Mosh for your beginner-friendly git course. I learned a lot.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FkH6CqYiquZawmU1HI6%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FkH6CqYiquZawmU1HI6%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FkH6CqYiquZawmU1HI6%2Fgiphy.gif&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="199" frameborder="0" scrolling="no"><a href="https://medium.com/media/a2db0b51925be2af331acdb513bbdda1/href">https://medium.com/media/a2db0b51925be2af331acdb513bbdda1/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4cc2a1ab1ffd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction to Git| Part 1| Day 28| #100DaysOfCode]]></title>
            <link>https://medium.com/@feyzafacan/introduction-to-git-and-github-part-1-day-28-100daysofcode-5c73a6c85f8?source=rss-1840d287ff67------2</link>
            <guid isPermaLink="false">https://medium.com/p/5c73a6c85f8</guid>
            <category><![CDATA[git]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[100daysofcode]]></category>
            <category><![CDATA[learning-to-code]]></category>
            <category><![CDATA[computer-science]]></category>
            <dc:creator><![CDATA[Feyza Afacan]]></dc:creator>
            <pubDate>Wed, 07 Dec 2022 11:29:55 GMT</pubDate>
            <atom:updated>2022-12-09T10:17:59.945Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/910/0*QCjcyXryIw3hztNE.jpeg" /></figure><p>Hello, everyone. My name is Feyza and I am a computer engineering student at Politecnico di Torino in Italy. I’ve been learning web development for a while. I started with HTML and CSS. Then, I studied JavaScript. When I felt good about these things, I started React. In this process, I saw that people share their knowledge and experiences on Medium and Linkedin and I decided to be part of it. I am going to share what I learn day by day with the #100DaysOfCode challenge.</p><p>Today I will explain what I learned on day 28. Let’s begin!</p><h3>What is Git?</h3><p>Git is a version control system. Git helps you keep track of code changes. Git is used to collaborating on code.</p><p><a href="https://www.w3schools.com/git/">W3Schools.com</a></p><p>Git’s working environment was the same as movies, it looks like the screen of the programmers. :)</p><h3>What source did I use?</h3><p>This course provides a basic overview of Git in one hour. You can find the rest of the course on the instructor’s website.<br>I am also enrolled in another course, but I will talk about this in another article.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F8JJ101D3knE%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D8JJ101D3knE&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F8JJ101D3knE%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/596ac46aec55fe5a828b0c061a0f51fc/href">https://medium.com/media/596ac46aec55fe5a828b0c061a0f51fc/href</a></iframe><h3>Let’s start</h3><p>First, you should install<a href="https://git-scm.com/"> Git</a>. Maybe it’s already on your computer. To check that,</p><pre>git --version    // for control the version </pre><p>Then we can give some information about the user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/696/1*JLrZw1MqidBrX_avMxyP9g.png" /><figcaption>You can write these lines step by step (with your information)</figcaption></figure><p>git config — global -e</p><p>The last command will open your vs code or what you arranged when you installed it. If you close the window you can continue.</p><h4><strong>Computer optimization</strong></h4><p>This optimization is explained very well in the video. Shortly, to communicate our colleague’s computer much more efficiently.</p><p>git config — global core.autocrlf true // if you are in windows</p><p>git config — global core.autocrlf input // if you are in MacOS</p><h4><strong>Inıtializing a Repository</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/794/1*MmqnuLAtmB-AgypzRLIMgQ.png" /><figcaption>I opened a <strong>Projects</strong> folder then, the <strong>Moon</strong> file.</figcaption></figure><p>git init // to add git our project.</p><p>I will be using Git Bash from now on. (Because of some errors.)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/907/1*KExgikPT_E_WTQSIq22Qig.png" /></figure><p>*On my computer “open” was not found so I did a quick search. “start” is the correct one for me.</p><p>**“start git” will open your git file.</p><p>rm -rf .git //this will delete your git.</p><p>If you delete you can add it again with “git init”</p><h4><a href="https://frontendmasters.com/courses/git-in-depth/working-area-staging-area-repository/#:~:text=The%20working%20area%20is%20where,occur%20for%20the%20next%20commit.">Understanding the stage area</a></h4><p>The working area is where files that are not handled by git. These files are also referred to as “untracked files.” The staging area is files that are going to be a part of the next commit, which lets git know what changes in the file are going to occur for the next commit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*adl0v6SfRB5M-vHV.png" /></figure><h4>Create Files</h4><p>We created 2 txt files. To see that we use git status. They are red because they are not in the staging area.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/791/1*gFSKt5I5FN3rJf85N7mWSg.png" /></figure><p>Now it is green because we added it to the staging area.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/804/1*BICcJ9i8No8DrwTk1QnnoA.png" /></figure><p>At the staging area, we have the first version of file 1. We changed file 1 so we should add it to the staging area. It will be the second version.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/797/1*sRq2OBtVhmLmVfYVuNIMJQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/633/1*OFRGVZ1JBHEkqMukfqePLw.png" /><figcaption>Now it is committed.</figcaption></figure><h4><strong>Committing</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/897/1*5qDM5uupqOrlgzw3fN_bpg.png" /><figcaption>I wrote my first commit</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/649/1*4TtTHGuvCsa4dG88jDtmuQ.png" /></figure><p>Additional info: Developers use the present tense when they are committing.</p><p>&quot;fixed the bug&quot; //past tense</p><p>&quot;fix the bug&quot; //present tense</p><h4><strong>Skipping the staging area</strong></h4><p>You should only do that when you are really sure. 99% you will be stage your code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/896/1*_EtZkMkFKtLpDVV5V1S7DA.png" /></figure><h4><strong>Removing files</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/770/1*pZeXywvWZvl_YIc5bj48rA.png" /></figure><p>We removed files but you will still see file 2 because it is still in the stage. To remove that we should say git add file2.txt. but Git won&#39;t find file 2 because we delete it. So it will also delete from the stage.</p><p><strong>Renaming or Moving Files</strong></p><p>mv file1.txt main.js</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/892/1*DdPNx7fn_Zt7dHxFs83mjw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/959/1*axAWiH5JM2LQlqRwXQ5PAw.png" /></figure><h4>Ignoring files</h4><p>To ignore “logs/” we should change the gitignore with the directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/879/1*qMBsHxPnCNxa46SlRCYrhg.png" /></figure><p>code .gitignore will open your VS code. then you can add the “logs/”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/894/1*TrICcI5_tsHUyrU2WL1qpA.png" /></figure><h3>Summary</h3><p>The articles I write are mostly in a way that I can use when I want to remember what I have learned. You can find the unclear places by searching on google. I will talk about,</p><ul><li>Short Status</li><li>Viewing the Staged and Unstaged Changes</li><li>Visual Diff Tools</li><li>Viewing the History</li><li>Viewing a Commit</li><li>Unstaging Files</li><li>Discarding Local Changes</li><li>Restoring a File to an Earlier Version</li></ul><p>in my next post. (You can find these parts in the video that I mentioned at the beginning.)</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FkH6CqYiquZawmU1HI6%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FkH6CqYiquZawmU1HI6%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FkH6CqYiquZawmU1HI6%2Fgiphy.gif&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="199" frameborder="0" scrolling="no"><a href="https://medium.com/media/a2db0b51925be2af331acdb513bbdda1/href">https://medium.com/media/a2db0b51925be2af331acdb513bbdda1/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5c73a6c85f8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning Bootstrap| Day 26| #100DaysOfCode]]></title>
            <link>https://medium.com/@feyzafacan/learning-bootstrap-day-26-100daysofcode-fa3c367ad7fb?source=rss-1840d287ff67------2</link>
            <guid isPermaLink="false">https://medium.com/p/fa3c367ad7fb</guid>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[bootstrap]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[html]]></category>
            <dc:creator><![CDATA[Feyza Afacan]]></dc:creator>
            <pubDate>Mon, 05 Dec 2022 15:21:20 GMT</pubDate>
            <atom:updated>2022-12-05T15:21:20.161Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*64Pe58O6U8P01xYowpPNFA.jpeg" /></figure><p>Hello, everyone. My name is Feyza and I am a computer engineering student at Politecnico di Torino in Italy. I’ve been learning web development for a while. I started with HTML and CSS. Then, I studied JavaScript. When I felt good about these things, I started React. In this process, I saw that people share their knowledge and experiences on Medium and Linkedin and I decided to be part of it. I am going to share what I learn day by day with the #100DaysOfCode challenge.</p><p>Today I will explain what I learned on day 26. Let’s begin!</p><h3>What is Bootstrap?</h3><p><a href="https://www.w3schools.com/whatis/whatis_bootstrap.asp"><strong>Bootstrap</strong></a> is the most popular <strong>CSS Framework</strong> for developing responsive and mobile-first websites.</p><p><strong>Bootstrap 5</strong> is the newest version of Bootstrap.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1005/1*atEviIVxkBRha7wwji1dnA.png" /><figcaption>getbootstrap.com</figcaption></figure><p>Before I started I was not aware of the conveniences of bootstrap. The modal, navbar, responsive features, and more that we feature in Javascript are much easier with just bootstrap.</p><h3>What source did I use?</h3><p>This course is so easy to learn and covers so many things in just 70 minutes. To start to write Bootstrap you should go to the video and get the CDN links and CSS codes in the description box.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FJyvffr3aCp0%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DJyvffr3aCp0&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FJyvffr3aCp0%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/1416e7cebe0a831f8308069d87859b09/href">https://medium.com/media/1416e7cebe0a831f8308069d87859b09/href</a></iframe><h3>Let’s start</h3><p>First I want to suggest you an extension to see all autofill that makes us more familiar with the framework. You can install <strong>“HTML CSS Support”</strong> from VS Code extensions.</p><h4>Breakpoints</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1005/1*JqiDbwG5l_QC0XUSeB9lmA.png" /></figure><p>You should add CND links to import bootstrap easily. Also, you can install it from the website but I think this way is better to begin.</p><p>I add a comment about the script tag. If you want to add your script tag to the head you have to add “defer” to run it.</p><p>Almost everything happening in the container div. We will give so many classes to give styles.</p><h4>Cols</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WdO01xm6Bx2Sd93SvjSymA.png" /></figure><p>We have box styles in the CSS file. So we can create some boxes to understand. We can change the box size with the col- class. In this example, the second box has col-6 class.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dm0LXQLs62CuDQWjn_Zhiw.png" /></figure><p>If we arrange col-auto the size will be automatic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nHrkYM4PJtBg6TnS0YTxLg.png" /></figure><p>If we want to change our col sizes when the screen change we can add class. In this example when the screen is large first col will be 4, but the default size will be 7. (You will also find the screen sizes in the CSS files.)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*spQ-wWVef1wcaP8ORtiD5g.png" /></figure><p>The offset will give space between your items.</p><h4>Rows</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fj1uFo_xunnsHbjf3bG5cQ.png" /></figure><p>Row-cols allow us to arrange rows. You can also add more row features for the other screen size as we do before for cols. (eg. “row row-cols-2 row-cols-lg-4”) Also, you can give a gap with gy-, gx- and g-. X and y mean axis. g- means both axis. (eg. g-2, gy-3, gx-2, gy-lg-3)</p><ul><li><em>The order should be container → row → col. Your content should be inside of the col.</em></li></ul><h4><strong>Tables</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1010/1*_xLTzJnLsDZ_y53VJDNNuA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q2_Va77tE8QNpnFUFCl9jQ.png" /></figure><p>Class table will make our content more readable automatically. Table-danger made our table red color. (eg. table-primary →blue)</p><p>table-striped made our rows dark and light. You can do the same thing with table-striped-columns.</p><p>You can also use table-active and table-hover.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xmRyuqpTahxdh-WHtHw_lA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wjjwd609ziRJAdFKbx9Ggw.png" /></figure><p>Table-border and table-borderless look like this.</p><p>You can also try table-sm. if you wrap your table with a div class table-responsive it will help you to organize much more data. You can create a divider with a class table-group-divider.</p><h4><strong>Forms</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ztql02c2Mc-AMxaWIzoCZg.png" /></figure><p>Form-label and form-control give us some styling<strong>.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/1*WMgpRwHhMdbqWZQ8afPhRA.png" /></figure><p>Form-select gives styling too.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UPjhc1kU92St485y6ks8eA.png" /></figure><p>For the checkboxes. If you add form-switch into the div class the checkbox will be switch btn.</p><p><strong>Input Groups</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1018/1*_LafP3LjwfNf_BGSmn6pxw.png" /><figcaption>Form-floating</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/997/1*ComARIxsdWMqmUFQ-w18WA.png" /></figure><ul><li>You should also check invalid and valid feedback features. In addition, we can add some JavaScript to do validation.</li></ul><p>There are so many components in Bootstrap but we will cover six of them which is commonly used.</p><h4><strong>Buttons</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/987/1*W4QZfkByw5fOXgDlvBcvBg.png" /></figure><p>As you see the button looks like same. İf you want to create a button you can use one of them. The first button is also a toggle btn.</p><p>· In addition we can wrap all buttons with div class btn-group or btn-group -vertical.</p><h4><strong>Alerts</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/973/1*indWuVVeJDtKPlcUHgjTJA.png" /></figure><p>You can close this alert without javascript.</p><h4><strong>Cards</strong></h4><p>You can add images class card-img-top or card-img-bottom . İf we give card-image-overlay class to card-body text and image will be nested.</p><p>Card-header, card-footer are another features of bootstrap.</p><p>We can group cards with a card-group class. (wrap cards)</p><h4><strong>Modals</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YpfjuusQavBs0ptY8XHE2w.png" /></figure><p>You can open and close the modal with just bootstrap 😊.</p><h4><strong>Collapse</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*PupIDF0SAGivUthBYgB8qA.png" /></figure><p>You can open and close the box if you click the toggle button.</p><h4><strong>Navbars</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1019/1*9t76KwEhnygmbNqpT9x9ZQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tYu8iWKp2Sqgg9AP_m1rdQ.png" /></figure><h4><strong>Utilities</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fVRkTLZtkEda0YsV8I-eOg.png" /></figure><p>You can style,</p><ul><li>control opacity with bg or text opacity</li><li>border and border-color</li><li>edges with rounded-</li><li>-d (display).</li></ul><h3>Summary</h3><p>Yes, we did a quick introduction to Bootstrap. If you ask me, I like that we can write some of the most used features that we need to write with javascript so easily. I definitely plan to include it in my projects.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2Fl4FGlrnsf6xR3U2EU%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2Fl4FGlrnsf6xR3U2EU%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2Fl4FGlrnsf6xR3U2EU%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="435" frameborder="0" scrolling="no"><a href="https://medium.com/media/bc33785dd94032af8185d1e262de5d2e/href">https://medium.com/media/bc33785dd94032af8185d1e262de5d2e/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fa3c367ad7fb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[React map() function and “key” attribute| Day 6–7| #100DaysOfCode]]></title>
            <link>https://medium.com/@feyzafacan/react-map-function-and-key-attribute-day-6-7-100daysofcode-243acee33312?source=rss-1840d287ff67------2</link>
            <guid isPermaLink="false">https://medium.com/p/243acee33312</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[learning-to-code]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[100daysofcode]]></category>
            <dc:creator><![CDATA[Feyza Afacan]]></dc:creator>
            <pubDate>Thu, 17 Nov 2022 08:08:33 GMT</pubDate>
            <atom:updated>2022-11-17T08:08:33.997Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Lw0Cu790lpRFdHe5Tsabiw.jpeg" /></figure><p>Hello, everyone. My name is Feyza and I am a computer engineering student at Politecnico di Torino in Italy. I’ve been learning web development for a while. I started with HTML and CSS. Then, I studied JavaScript. When I felt good about these things, I started React. In this process, I saw that people share their knowledge and experiences on Medium and Linkedin and I decided to be part of it. I am going to share what I learn day by day with the #100DaysOfCode challenge.</p><p>Today I will explain what I learned on days 4 and 5. Let’s begin!</p><h3>map() function</h3><p>The map() the function is used to iterate over an array and manipulate or change data items. In React, the map() function is most commonly used for rendering a list of data to the DOM.</p><p>In my project, I aimed to create a new array that related to another array. This function makes our job much easier.</p><pre>{props.items.map((expense) =&gt; (<br>        &lt;ExpenseItem<br>          title={expense.title}<br>          amount={expense.amount}<br>          date={expense.date}<br>        /&gt;<br>      ))}<br><br>/// We can delete the hard coded items below. Because map() will do for us.<br><br>      &lt;ExpenseItem<br>        title={props.items[0].title}<br>        amount={props.items[0].amount}<br>        date={props.items[0].date}<br>      /&gt;<br>      &lt;ExpenseItem<br>        title={props.items[1].title}<br>        amount={props.items[1].amount}<br>        date={props.items[1].date}<br>      /&gt;<br>      &lt;ExpenseItem<br>        title={props.items[2].title}<br>        amount={props.items[2].amount}<br>        date={props.items[2].date}<br>      /&gt;<br>      &lt;ExpenseItem<br>        title={props.items[3].title}<br>        amount={props.items[3].amount}<br>        date={props.items[3].date}<br>      /&gt;<br></pre><p><a href="https://www.pluralsight.com/guides/how-to-use-the-map()-function-to-export-javascript-in-react">How to Use the Map() Function to Export JavaScript in React</a></p><h3>“key” attribute</h3><p>A “key” is a special string attribute you need to include when creating lists of elements in React.<br>Keys are used in React to identify which items in the list are changed, updated, or deleted.<br>In other words, we can say that keys are used to give an identity to the elements in the lists.</p><pre>filteredExpenses.map((expense) =&gt; (<br>          &lt;ExpenseItem<br>            key={expense.id}<br>            title={expense.title}<br>            amount={expense.amount}<br>            date={expense.date}<br>          /&gt;<br>))</pre><p><a href="https://www.geeksforgeeks.org/reactjs-keys/">ReactJS | Keys - GeeksforGeeks</a></p><p>They also explained the correct and incorrect usage very well on this website.</p><h4>Summary</h4><p>My days pass very quickly and are full of information. It is not possible for me to describe in detail everything I learned here. But I’m trying to create a diary by adding the main topics and my own ideas. Keep coding!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F3oKIPnAiaMCws8nOsE%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2F3oKIPnAiaMCws8nOsE%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2F3oKIPnAiaMCws8nOsE%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="456" frameborder="0" scrolling="no"><a href="https://medium.com/media/4f93074b49925362899227ba1890eed1/href">https://medium.com/media/4f93074b49925362899227ba1890eed1/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=243acee33312" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[React States and Working with Events| SASS | Day 4–5 | #100DaysOfCode]]></title>
            <link>https://medium.com/@feyzafacan/react-states-and-working-with-events-sass-day-4-5-100daysofcode-c321de481bb1?source=rss-1840d287ff67------2</link>
            <guid isPermaLink="false">https://medium.com/p/c321de481bb1</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[sass]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Feyza Afacan]]></dc:creator>
            <pubDate>Thu, 17 Nov 2022 07:40:24 GMT</pubDate>
            <atom:updated>2022-11-17T07:40:24.551Z</atom:updated>
            <content:encoded><![CDATA[<h3>React States and Working with Events| SASS | Day 4–5| #100DaysOfCode</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KvzhqCgMKnDFqZtsCmg5ag.jpeg" /></figure><p>Hello, everyone. My name is Feyza and I am a computer engineering student at Politecnico di Torino in Italy. I’ve been learning web development for a while. I started with HTML and CSS. Then, I studied JavaScript. When I felt good about these things, I started React. In this process, I saw that people share their knowledge and experiences on Medium and Linkedin and I decided to be part of it. I am going to share what I learn day by day with the #100DaysOfCode challenge.</p><p>Today I will explain what I learned on days 4 and 5. Let’s begin!</p><h4>Adding Events</h4><p>React events are written in camelCase syntax: onClick instead of onclick.</p><p>React event handlers are written inside curly braces: onClick={shoot} instead of onClick=&quot;shoot()&quot;.</p><p>When we add an event to the React (on…) we do not use the inline function. We create a function above the return<br>then we use the name of the function not name().</p><p><a href="https://www.w3schools.com/react/react_events.asp">React Events</a></p><p>When we add an event to the HTML (on…) we do not use the inline function. We create a function above the return<br>then we use the name of the function not name().</p><pre>&lt;input type=&quot; text &quot; onChange={titleChangeHandler}&gt;&lt;/input&gt;<br><br>//titleChangeHandler is our function that defined.</pre><p>This function does the same work with document.getElementById.addEventListener at Vanilla Js.</p><h4>event.preventDefault()</h4><pre>const submitHandler = (event) =&gt; {<br> event.preventDefault();<br> };</pre><p>event.preventDefault() prevents reloading of the page when we click the submit button.</p><p><a href="https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault#:~:text=Browser%20compatibility-,Event.preventDefault(),as%20it%20normally%20would%20be.">Event.preventDefault() - Web APIs | MDN</a></p><h4><a href="https://www.w3schools.com/react/react_state.asp">States</a></h4><p>React components has a built-in state object. The state the object is where you store property values that belong to the component. When the state object changes, the component re-renders.</p><pre>    // const [enteredTitle, setEnteredTitle] = useState(&quot;&quot;);<br>    // const [enteredAmount, setEnteredAmount] = useState(&quot;&quot;);<br>    // const [enteredDate, setEnteredDate] = useState(&quot;&quot;);<br>    const [userInput, setUserInput] = useState({<br>        enteredTitle: &quot;&quot;,<br>        enteredAmount: &quot;&quot;,<br>        enteredDate: &quot;&quot;<br>    });<br><br>    const titleChangeHandler = (event) =&gt; {<br>        // setEnteredTitle(event.target.value);<br><br>        // setUserInput({<br>        //     ...userInput,<br>        //     enteredTitle: event.target.value,<br>        // })<br><br>        setUserInput((prevState) =&gt; {<br>            return { ...prevState, enteredTitle: event.target.value};<br>        });<br>    };</pre><p>I did the same thing for other states.</p><p>Using setUserInput((prevState) is much safer than the commended code before itself. It will give us the latest state snapshot.</p><pre>setEnteredTitle(&quot;&quot;);<br><br><br>&lt;div className=&quot;new-expense__control&quot;&gt;<br>          &lt;label&gt;Title&lt;/label&gt;<br>          &lt;input<br>            type=&quot; text &quot;<br>            value={enteredTitle}<br>            onChange={titleChangeHandler}<br>          &gt;&lt;/input&gt;<br>&lt;/div&gt;</pre><p>Adding value to the div will provide us with clear data when we click the submit button. What we wrote in the input place won’t stay after clicking.</p><h4>SASS</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/980/1*uoDAQE5CHw3Sg8oDpUcsuQ.jpeg" /></figure><ul><li><strong>Sass</strong> stands for <strong>S</strong>yntactically <strong>A</strong>wesome <strong>S</strong>tyle<strong>s</strong>heet</li></ul><p><a href="https://sass-lang.com/">Sass: Syntactically Awesome Style Sheets</a></p><h3>Why Use Sass?</h3><p>Stylesheets are getting larger, more complex, and harder to maintain. This is where a CSS pre-processor can help.</p><p>Sass lets you use features that do not exist in CSS, like variables, nested rules, mixins, imports, inheritance, built-in functions, and other stuff.</p><pre>/* define primary colors */<br>$primary_1: #a2b9bc;<br>$primary_2: #b2ad7f;<br><br>/* use the variables */<br>.main-header {<br>  background-color: $primary_1; // here you can put an inline comment<br>}</pre><pre>// SASS:<br><br>$general-font: &quot;Helvetica, sans-herif&quot;;<br>$my-color: #a5a5a5;<br><br>p {<br> font-family: $general-font;<br> color: $my-color;<br>}<br><br>// CSS Output:<br><br>p {<br> font-family: &quot;Helvetica, sans-herif;<br> color: #a5a5a5;<br>}</pre><h4>Courses that I found</h4><p>Both of them look really good. I think I will learn the details with the first one.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FjfMHA8SqUL4%3Fstart%3D28&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DjfMHA8SqUL4&amp;image=http%3A%2F%2Fi.ytimg.com%2Fvi%2FjfMHA8SqUL4%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/5c7ffa0601efaeca2c559cc8e1695d3c/href">https://medium.com/media/5c7ffa0601efaeca2c559cc8e1695d3c/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F_a5j7KoflTs%3Fstart%3D34%26feature%3Doembed%26start%3D34&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D_a5j7KoflTs&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F_a5j7KoflTs%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/1601c67eb821b54f0f52ab5455b7c2d1/href">https://medium.com/media/1601c67eb821b54f0f52ab5455b7c2d1/href</a></iframe><h4>Summary</h4><p>I am getting better day by day. Also, everything gets complicated too. However, I can handle it. At first, every code comes hard but I will understand better soon.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FumYMU8G2ixG5mJBDo5%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FumYMU8G2ixG5mJBDo5%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FumYMU8G2ixG5mJBDo5%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="435" frameborder="0" scrolling="no"><a href="https://medium.com/media/62e9d5cbf28df73b2c1f9a2d941c716b/href">https://medium.com/media/62e9d5cbf28df73b2c1f9a2d941c716b/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c321de481bb1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding of React Project Structure| Day 2–3| #100DaysOfCode]]></title>
            <link>https://medium.com/@feyzafacan/understanding-of-react-project-structure-day-2-3-100daysofcode-e50fc818287?source=rss-1840d287ff67------2</link>
            <guid isPermaLink="false">https://medium.com/p/e50fc818287</guid>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[100daysofcode]]></category>
            <dc:creator><![CDATA[Feyza Afacan]]></dc:creator>
            <pubDate>Tue, 15 Nov 2022 11:40:04 GMT</pubDate>
            <atom:updated>2022-11-15T11:40:04.273Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3ybqqoBFDvp2RzLH5HlBrQ.jpeg" /></figure><p>Hello, everyone. My name is Feyza and I am a computer engineering student at Politecnico di Torino in Italy. I’ve been learning web development for a while. I started with HTML and CSS. Then, I studied JavaScript. When I felt good about these things, I started React. In this process, I saw that people share their knowledge and experiences on Medium and Linkedin and I decided to be part of it. I am going to share what I learn day by day with the #100DaysOfCode challenge.</p><p>Today I will explain what I learned on days 2 and 3. Let’s begin!</p><h4>Project 1 — Expenses Tracker</h4><p>First of all, I have already finished this project, so the photos I added will be the finished version. However, I am going to explain the part we should focus on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-FmlY2BJ5fzOUyTTi1kRtA.png" /></figure><p>The left side is our folders and files. I wrote my codes inside of them. I know it looks complicated but it is not. Actually, we are doing this to be not complicated.</p><ul><li>I showed the App.js file. If I want to render my function on the screen (local host) I should import it into App.js. I have many files so I added them too.</li><li>We should use &lt;import React from “react”;&gt; to use react tools.</li></ul><h4>Making reusable our component</h4><p>I would like the render data so I want to use arrays to make it easy. I can directly write my code which is not dynamic but, my aim is to make my project more dynamic. The hard code and dynamic code differences are the same in React as I learned in the JavaScript course. To make code more dynamic we use {} and write inside our variables.</p><p>Arrays are used to make code reusable. Of course, we can just copy and paste but the data will not change. If we want to render different data but use one function we should use arrays.</p><ul><li>First, we should write indexes in our component.</li><li>Then, we should use props to connect them.</li><li>Last, change the inside of {} like (props.title).</li></ul><pre>import ExpenseItem from &quot;./ExpenseItem&quot;;<br>import &quot;./Expenses.css&quot;;<br> <br>  function Expenses(props) {<br>    return(<br>        &lt;div className=&quot;expenses&quot;&gt;<br>      &lt;ExpenseItem<br>        title={props.items[0].title}<br>        amount={props.items[0].amount}<br>        date={props.items[0].date}<br>        /&gt;<br>      &lt;ExpenseItem<br>        title={props.items[1].title}<br>        amount={props.items[1].amount}<br>        date={props.items[1].date}<br>        /&gt;<br>      &lt;ExpenseItem<br>        title={props.items[2].title}<br>        amount={props.items[2].amount}<br>        date={props.items[2].date}<br>        /&gt;<br>      &lt;ExpenseItem<br>        title={props.items[3].title}<br>        amount={props.items[3].amount}<br>        date={props.items[3].date}<br>        /&gt;<br>    &lt;/div&gt;<br>    );<br> <br>}<br>export default Expenses;</pre><h4>toLocaleString()</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aHqthgRPQQVec1_4UkIQvQ.png" /><figcaption>toLocaleString() makes dates human-readable format.</figcaption></figure><pre>const month = props.date.toLocaleString(&quot;en-US&quot;,{month: &quot;long&quot;});</pre><h4>Formatting your codes</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tB6d3H4IIRpebin9Njk0mg.png" /><figcaption>Prettier Code Formatter</figcaption></figure><p>Shift + Alt + F shortcut format your code.<br>This shortcut did not work the first time. Then I research how to fix that.<br>First, I installed the Prettier ShortCut extension. Then, I went to settings and wrote formatter. I changed the default formatter and activate the format on save.</p><h4>Splitting Components</h4><p>Actually, we can write all our codes inside one component. However, it will become bigger and bigger. To prevent that, we are splitting components and making our code more organized. Importing process is really easy.</p><p>As I mentioned before in one project we have so many components and we just import them inside of each other.</p><h4>Inheritance</h4><p>Children props and composition gives us the flexibility that we need to customize a component’s look and behavior.</p><h4>JSX</h4><p>Basically, JSX converts HTML tags into react elements.</p><pre>const name = &quot;Feyza&quot;;<br>const element = &lt;h1&gt;Hello, {name}&lt;/h1&gt;</pre><p><a href="https://www.w3schools.com/react/react_jsx.asp">React JSX</a></p><p>React doesn’t require using JSX, but most people find it helpful as a visual aid when working with UI inside the JavaScript code. It also allows React to show more useful error and warning messages.</p><h4>Looking at the project</h4><p>I made a brief summary of my notes. When I am writing that, it became complicated for me. However, to solve this I will add my GitHub link and you can check all projects from there.</p><p><a href="https://github.com/feyzafacan">feyzafacan - Overview</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yZoYBcmQZtop_7b_PT8z1w.png" /><figcaption>my project</figcaption></figure><h4>Motivation</h4><p>I hope I will be an ultra-pro programmer one day. 👩‍💻</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2Fwcgn5fVDjvR7pdvz4C%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2Fwcgn5fVDjvR7pdvz4C%2Fgiphy.gif&amp;image=https%3A%2F%2Fmedia0.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExbXc1djJqb3Y2eWc5ZnQ2d3dxZTdpb3phOGU5cHBrOXoxanh4dTdseCZlcD12MV9naWZzX2dpZklkJmN0PWc%2Fwcgn5fVDjvR7pdvz4C%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="324" frameborder="0" scrolling="no"><a href="https://medium.com/media/10959c78f2a165575ec253621ce9c64f/href">https://medium.com/media/10959c78f2a165575ec253621ce9c64f/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e50fc818287" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating a React App | Day 1 | #100DaysOfCode]]></title>
            <link>https://medium.com/@feyzafacan/creating-a-react-app-day-1-100daysofcode-cfe00c855372?source=rss-1840d287ff67------2</link>
            <guid isPermaLink="false">https://medium.com/p/cfe00c855372</guid>
            <category><![CDATA[learning-to-code]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[100daysofcode]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Feyza Afacan]]></dc:creator>
            <pubDate>Sun, 13 Nov 2022 08:06:47 GMT</pubDate>
            <atom:updated>2022-11-15T09:34:04.912Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1O0RTWlZGD1VxKwmD81Ulw.jpeg" /></figure><p>Hello, everyone. My name is Feyza and I am a computer engineering student at Politecnico di Torino in Italy. I’ve been learning web development for a while. I started with HTML and CSS. Then, I studied JavaScript. When I felt good about these things, I started React. In this process, I saw that people share their knowledge and experiences on Medium and Linkedin and I decided to be part of it. I am going to share what I learn day by day with the #100DaysOfCode challenge.</p><h3>What is React?</h3><p>React is a JavaScript library created by Facebook. React is using by large companies like Facebook, Skype, Instagram, Tesla, etc. . After learning Javascript I should have chosen a framework. I did research then, I decided to start with React. You should check the link for more details about what React is.</p><p><a href="https://www.w3schools.com/whatis/whatis_react.asp">W3Schools.com</a></p><p><strong>create-react-app</strong></p><p>First of all, you should install the Node.js to write a React code.</p><p><a href="https://nodejs.org/en/">Node.js - Run JavaScript Everywhere</a></p><p>To make a quick start the React I learned that I should use create-react-app command. I tried on the command prompt on my computer but it didn’t work. we should exactly write this,</p><pre>npx create-react-app my-app</pre><p>my-app part is optional. You can give a name you want. In my course lecture everything went well, a folder had been created. However, I got many errors when I tried. Yes, this is what coding is.</p><h3>Problems about starting</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iVYPZVUq4tVVmCS-5yFVEQ.png" /><figcaption>The errors</figcaption></figure><p>I did so much research on the internet. I went <a href="https://stackoverflow.com/"><strong>https://stackoverflow.com/</strong></a><strong> , </strong><a href="https://reactjs.org/"><strong>https://reactjs.org/</strong></a><strong> , </strong>and some discord servers<strong>. </strong>I asked my friends and some people that I don’t know from Linkedin. Luckily, they tried to help me. However, I couldn’t solve the problem.</p><ul><li>I uninstalled the React.js and then, installed it again.</li><li>I wrote many commands like nmp init, npm install etc..</li><li>I wrote many paths in the environment variable. You can google how to go there on your computer.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/868/1*EdZ0BQjovp1u4OyCA-WcPg.png" /><figcaption>So many paths that do not work</figcaption></figure><p>Trying to solve the problem took 2 days from me but, it can never steal my motivation.<br>In those days my computer did not work well. So, I back up my data and reset my computer. I installed everything again like VS Code, Node.js . I tried one more time and it went well. Maybe you can say it is cheating but I solved the problem. Additionally, my computer is better now.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/656/1*3zLs2seNJiYNd2I5lyFGeA.png" /><figcaption>Your folder should look like that</figcaption></figure><h3>Motivation</h3><p>I was too motivated so I did not give up. The learning code is really challenging but fun. There is still much to learn and I am at the beginning of the road. I work every day to achieve this with dedication.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FvrxxqQbyRxYi6scCjT%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FvrxxqQbyRxYi6scCjT%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FvrxxqQbyRxYi6scCjT%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="319" frameborder="0" scrolling="no"><a href="https://medium.com/media/4a5c2724d6a82e5dc1e48cc0cd3c9a11/href">https://medium.com/media/4a5c2724d6a82e5dc1e48cc0cd3c9a11/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cfe00c855372" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>