<?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 Johnathon Dirstein on Medium]]></title>
        <description><![CDATA[Stories by Johnathon Dirstein on Medium]]></description>
        <link>https://medium.com/@johnathond?source=rss-5c662926fa58------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ClGTZqlfY3YJGnNeexJQRg.jpeg</url>
            <title>Stories by Johnathon Dirstein on Medium</title>
            <link>https://medium.com/@johnathond?source=rss-5c662926fa58------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 09:23:41 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@johnathond/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[5 things I learned about React.Js]]></title>
            <link>https://medium.com/@johnathond/5-things-i-learned-about-react-js-a0af6dd59b30?source=rss-5c662926fa58------2</link>
            <guid isPermaLink="false">https://medium.com/p/a0af6dd59b30</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Johnathon Dirstein]]></dc:creator>
            <pubDate>Mon, 27 Mar 2017 07:18:06 GMT</pubDate>
            <atom:updated>2017-03-27T07:18:06.227Z</atom:updated>
            <content:encoded><![CDATA[<p>Before starting my journey at a coding bootcamp in Toronto, the only thing I knew about React was that Facebook made it.</p><p>It was just another library in a massive pool of libraries. However, I constantly read about how great it is and about this cool thing called JSX. Apparently it shocks most developers at first because it mixes your HTML into your Javascript (completely opposite of how we’ve learned to code).</p><p>When you think about it, it just sounds messy, but React has done a great job of making it feel natural, and you grow used to it very quickly.</p><p>Take a look at Stack Overflows 2017 Developer Survey to see just how happy people are with React.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/739/1*64Xl4kt7qnAtYCqzmYXBsg.png" /></figure><p>As someone who’s new to React, i’m quickly becoming familiar with it, and really enjoy and see the massive potential. With my coding bootcamp ending soon, the ideas are spinning through my head for what I can make.</p><p>With that said, I’ve learned a lot about React, but I’d like to share the fundamentals of what I’ve learned and still trying to grasp.</p><h3>1. React is very reuseable</h3><p>My favourite thing about react is how easy it is to make reuseable code. Components can be built from the ground up and used all over your site. In a way React reminds me a lot of BEM in that with BEM you can plop class names everywhere, and your site can come together really fast.</p><h3>2. It has great documentation</h3><p>I find one of the hardest things about React is figuring out the way the data flows. Where do I add State? Where do I add props? I feel like this is something i’ll struggle with for a while, but React has great resources like here: <a href="https://facebook.github.io/react/docs/thinking-in-react.html">https://facebook.github.io/react/docs/thinking-in-react.html</a> which help my brain a little bit.</p><h3>3. The React developer tools saves a lot of headaches</h3><p>We’re used to the developer tools for regular websites, and how they can help you work out a bug. Luckily React also has developer tools: <a href="https://chrome.google.com/webstore/detail/react-developer-tools/fmkadmapgofadopljbjfkapdkoienihi?hl=en">https://chrome.google.com/webstore/detail/react-developer-tools/fmkadmapgofadopljbjfkapdkoienihi?hl=en</a></p><p>Today I was stuck on something for a lot longer than I’d like to admit, but after looking at the React developer tool, I found the bug in seconds. All of my pain was caused by one uppercased letter. I appreciate all the pain from bugs like this though, because I typically don’t get caught by them again.</p><h3>4. React is amazing with Firebase</h3><p>In my recent React project, I learned to create a cloud database with Firebase. At first I was overwhelmed learning two new technologies at once, but now I really appreciate how well the two work together. Creating a login and authenticating is a lot easier than I could’ve imagined and Firebase is free, with a generous amount of space.</p><h3>5. It’s not good in every situation</h3><p>From what I’ve gathered (and it makes a lot of sense), React isn’t meant for every site. React excels at 1 page web apps, but it might be way overboard to make a site using React for the local window cleaner.</p><p>React would be great for a more ambitious app that has multiple people working on it. Or a cool api project that changes views without reloading like a netflix clone.</p><p>I’m still really new to React and even web development, but I’m trying to pick up a little bit at a time and really understand it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a0af6dd59b30" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Basics of git and local file restoration.]]></title>
            <link>https://medium.com/@johnathond/basics-of-git-and-local-file-restoration-a3dcbcf66e82?source=rss-5c662926fa58------2</link>
            <guid isPermaLink="false">https://medium.com/p/a3dcbcf66e82</guid>
            <category><![CDATA[git]]></category>
            <category><![CDATA[github]]></category>
            <dc:creator><![CDATA[Johnathon Dirstein]]></dc:creator>
            <pubDate>Fri, 03 Feb 2017 02:35:09 GMT</pubDate>
            <atom:updated>2017-02-03T18:25:18.001Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>What is Git?</strong></h3><ul><li>Git is a version control system which stores changes made to the files within a project folder.</li></ul><p>NOTE: Git is NOT github. Git is the system, while github stores the git repository (it’s like Dropbox for developers).</p><p><strong>Installation and Github:</strong></p><ol><li>Install git from <a href="https://git-scm.com/"><strong>https://git-scm.com</strong>/</a> (works on Mac and PC.)</li></ol><p>Mac users will use a program called “<strong>Terminal</strong>”</p><p>Windows users will use “<strong>Git bash</strong>”</p><p>2. Make sure git is installed by typing <strong>git –version</strong></p><p>3. Create an account and a new repository on Github (https://github.com/)</p><p>4. Create a project locally with the same name you used on Github.</p><p>Now that your repository is created and you have a folder with your files, you can configure your Git account.</p><p><strong>Configure account:</strong></p><ol><li>Open terminal (Mac) or Git Bash (PC) and type:</li><li>Type: <strong>git config — global user.nam</strong>e “Firstname Lastname” <strong>*</strong>Push enter<strong>*</strong></li><li>Type: <strong>git config — global user.email</strong> address<a href="/service/mailto:username@email.com">@email.com</a> *Push enter*</li></ol><p><strong>Initialize a Git repository:</strong></p><ol><li>Use the command line to find your project folder. <strong>TIP</strong>: In your command line, type <strong>cd</strong> (now you can drag and drop your folder — make sure there is a space after cd)</li><li>Type <strong>git init </strong>(This creates an invisible folder in your project that stores your project files.)</li><li>Type <strong>git remote add origin</strong> [link to your github project] (this points your git to the correct location when you PUSH it later on).</li></ol><p><strong>Very Basic git workflow:</strong></p><p>Before Git saves your history, you must stage then commit.</p><p>To see what needs to be staged, type: <strong>git status</strong></p><p>To add a file to the staging area, type:<strong> git add -A </strong>or <strong>git add [filename]</strong></p><p>To commit a file, type:<strong> git commit -m ‘insert a message here’</strong></p><p>To push to github, type:<strong> git push origin master</strong></p><p><strong>TIP: </strong>Make sure your git is pointed to the correct github server.</p><p><strong>Point your git to the correct github repository:</strong></p><p>If your git is pointed to an alternate github repository that you were previously working in — Type: <strong>git remote set-url origin [project link here]</strong></p><p><strong>TIP</strong>: type <strong>git remote -v</strong> in Terminal or Git Bash to check which repository you’re pointed to.</p><p><strong>Basic command line shortcuts:</strong></p><p>pwd = Print Working Directory</p><p>cd = Change Directory</p><p>ls = List files in directory</p><p>mkdir = Make Directory</p><p>This is a very basic introduction, but it should help get you started and the <strong>TIPS </strong>are things that I became stuck on at one point or another.</p><p><strong>File restoration!</strong></p><p>What happens if you accidentally delete all of your html or css? Luckily, git has an amazing command that will completely restore the lost files. When you ran <strong>git init</strong> previously, git made an invisible folder.</p><p>If you find that your files were accidentally deleted. Access that folder in the command line, and type: <strong>git checkout dashdash .</strong></p><p>(medium doesn’t format that command correctly — it’s git checkout [space] dashdash [space] period</p><p>NOTE: In order to return your latest saved data, make sure to add your files to the staging area and commit!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a3dcbcf66e82" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>