<?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 Tyler Cookson on Medium]]></title>
        <description><![CDATA[Stories by Tyler Cookson on Medium]]></description>
        <link>https://medium.com/@tyler.cookson?source=rss-29aafb61fa26------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*p_jXDH8o4VjVTqrPRhntrQ.jpeg</url>
            <title>Stories by Tyler Cookson on Medium</title>
            <link>https://medium.com/@tyler.cookson?source=rss-29aafb61fa26------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 02:47:09 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tyler.cookson/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[Gitting Git (part 2)]]></title>
            <link>https://medium.com/@tyler.cookson/gitting-git-part-2-5c54b64f7392?source=rss-29aafb61fa26------2</link>
            <guid isPermaLink="false">https://medium.com/p/5c54b64f7392</guid>
            <category><![CDATA[git]]></category>
            <category><![CDATA[github]]></category>
            <dc:creator><![CDATA[Tyler Cookson]]></dc:creator>
            <pubDate>Tue, 01 Mar 2016 04:03:31 GMT</pubDate>
            <atom:updated>2016-03-01T04:03:31.106Z</atom:updated>
            <content:encoded><![CDATA[<p>While part 1 of this series had a few different things you can do with Git, I wanted to make a completely new post to focus one particular part of using Git…..unscrewing what you screwed up. Specifically, how to undo things in Git.</p><ol><li><strong>Undoing changes made in your working directory</strong></li></ol><p>Lets say you make some changes to a document, but then realize you are going down a rabbit hole and need to find a way out. You think to yourself … “Boy, wouldn’t it be lovely if I could just start over with the last committed version of this file?”</p><p>Git makes this easy with the <strong>git checkout</strong> command. Note that <strong>checkout</strong> is used for a lot of different things (like with branches) so don’t get confused by how it is used here. Essentially what checkout does is go to the repository and get the thing that you specify (like a specific file or even a branch) and make your working directory look like it does in the repository.</p><p>So lets say you made a bunch of changes to a hypothetical <strong>beautifulCode.js</strong> file in your working directory, but realized that the wonderful lasagna you previously made, staged, and committed is now a bowl full of spaghetti that makes no sense and does nothing. To get back to that lasagna (aka the previous committed version of <strong>beautifulCode.js)</strong>, simply type the following command:</p><pre>$ git checkout -- beautifulCode.js</pre><p>This will bring down that version of <strong>beautifulCode.js</strong> that you had committed in your repository and throw out all that spaghetti you written since your last commit.</p><p><strong>2. How to unstage the things you have staged</strong></p><p>Lets reuse my previous hypothetical. However, instead of realizing you made a mess while just in the working directory, lets say that you actually went ahead and staged the changes you made (by using <strong>git add</strong>). So how do you unstage the mess you added?</p><pre>$ git reset HEAD beautifulCode.js</pre><p>Note that this does not get rid of the mess you made, only unstages the mess. This means that your working directory will still look like spaghetti, but atleast now that spaghetti can be reworked into a better tasting italian cuisine before being staged or can be thrown out like we did earlier.</p><p>Typically you will use this command not when you have written bad code, but when you are wanting to organize a commit. For instance, assume you made changes to three files called <strong>something.js</strong>, <strong>something_too.js</strong>, and <strong>not_related.js</strong> and staged them all at once. However, the changes you made in <strong>not_related.js</strong> have nothing to do with the changes you made in the other two files. Instead of including it in the commit with those files, you unstage <strong>not_related.js</strong>……then commit <strong>something.js</strong> and <strong>something_too.js </strong>with their own message…..then go back to <strong>not_related.js</strong>…stage it (<strong>git add not_related.js</strong>) and make the changes to that file its own commit with its own message.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5c54b64f7392" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Greenfield Project — Trip Planner]]></title>
            <link>https://medium.com/@tyler.cookson/greenfield-project-trip-planner-7234958ec74a?source=rss-29aafb61fa26------2</link>
            <guid isPermaLink="false">https://medium.com/p/7234958ec74a</guid>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Tyler Cookson]]></dc:creator>
            <pubDate>Tue, 01 Mar 2016 04:01:02 GMT</pubDate>
            <atom:updated>2016-03-01T04:01:02.012Z</atom:updated>
            <content:encoded><![CDATA[<p>We just finished up our Greenfield Project today (with presentation happening tomorrow). What is a Greenfield Project you might ask? Basically it is defined as a project that lacks constraints imposed by prior work. Even more simply put…..’anything you want to make’.</p><p>My team (Cobra) decided to take on the challenge of creating a trip planning app, which we so eloquently called “Trip Planner”, or “TP” for short. The idea behind the app is that people love to go on vacations to eliminate stress. However the act of planning a vacation oftentimes creates additional stress….did I book my flight? …where should I stay? …where should I eat once I’m there? With Trip Planner, we wanted to help eliminate some of that stress by allowing the user to create a pre-trip checklist and search for and store activities to do at their chosen locale.</p><p>Trip Planner was created with the MEAN Stack and beefed up with APIs from Yelp, Google Maps, and Mail Gun. When we started this project we broke into two different groups working on both the front and back end. Once we had a skeletal MVP up, we split off to add additional functionality to the site.</p><p>One of the individual challenges I took on was implementing an email service that would provide notifications to the user as well as send reminders prior to the trip departure date. It definitely was a obstacle, but a obstacle worth taking on. I was able to learn a completely new thing (to me at least) while also digging through the parts of the app I hadn’t touched up until that point.</p><p>I utilized the Nodemailer module and MailGun API, and in the end, was able to send a welcome email upon signup and also an alert email when an account had been logged into. The alert email was a product of my own growing experience with this project. You see, at one point I also had an email reminder that would automatically send the user an email 14 days prior to departure. However, my luck was pretty terrible last week. One of the unlucky circumstances I found myself in was that the account I had set up with a different mail tracking API was hacked. I ended up having to delete both the email and the API account and essentially start over. While it caused a lot of frustration, looking back I wouldn’t change a thing. I learned both a valuable programming lesson and a lot about handling adversity.</p><p>If you want to check out Team Cobra’s website, go here:</p><p><a href="http://www.tripplanner.ninja/#/signin">http://www.tripplanner.ninja/#/signin</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7234958ec74a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Gitting Git]]></title>
            <link>https://medium.com/@tyler.cookson/gitting-git-db85874df32f?source=rss-29aafb61fa26------2</link>
            <guid isPermaLink="false">https://medium.com/p/db85874df32f</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[git]]></category>
            <dc:creator><![CDATA[Tyler Cookson]]></dc:creator>
            <pubDate>Tue, 23 Feb 2016 07:20:37 GMT</pubDate>
            <atom:updated>2016-02-23T08:16:49.277Z</atom:updated>
            <content:encoded><![CDATA[<p>Git ‘er done….Git some….Git it……all perfectly acceptable puns to use when successfully, or more often than not, unsuccessfully trying to utilize Git. While this post won’t be a tell all on how to get Git, it will list some things that I’ve learned that may be useful.</p><ol><li>How to find out where Head is pointing.</li></ol><p>First of all, is Head? Well Head is what is referred to in Git world as the ‘tip of the currently checked out branch’. What Head points to is really the parent of your next commit. So how can you easily find out where your Head is pointing?</p><p>First thing you want to do is go to the top of your repo where the .git file is located and type:</p><pre>$ cd .git<br>$ ls -la</pre><p>The first command moves you into the .git file while the second command allows you to see what is in there. Here is an example of what you may see.</p><pre>drwxr-xr-x 13 Tyler staff 442 Feb 22 22:02 .<br>drwxr-xr-x 6 Tyler staff 204 Feb 22 21:47 ..<br>-rw-r — r — 1 Tyler staff 348 Feb 22 22:02 COMMIT_EDITMSG<br>-rw-r — r — 1 Tyler staff 23 Feb 22 21:42 HEAD<br>drwxr-xr-x 2 Tyler staff 68 Feb 22 21:42 branches<br>-rw-r — r — 1 Tyler staff 137 Feb 22 21:42 config<br>-rw-r — r — 1 Tyler staff 73 Feb 22 21:42 description<br>drwxr-xr-x 11 Tyler staff 374 Feb 22 21:42 hooks<br>-rw-r — r — 1 Tyler staff 145 Feb 22 22:01 index<br>drwxr-xr-x 3 Tyler staff 102 Feb 22 21:42 info<br>drwxr-xr-x 4 Tyler staff 136 Feb 22 21:48 logs<br>drwxr-xr-x 10 Tyler staff 340 Feb 22 22:02 objects<br>drwxr-xr-x 4 Tyler staff 136 Feb 22 21:42 refs</pre><p>So easy to understand what all that is, right? Anyway, if you look close enough you will see on the 4th line down there is a file called HEAD. That file is what git uses to know where the HEAD is pointing. Now take a look inside that file by typing the following command:</p><pre>$ cat HEAD</pre><p>So what does that show? Well for me it shows this:</p><pre>ref: refs/heads/master</pre><p>While this doesn’t point to a current commit, it does tell me what branch the HEAD is on. So in essence it is saying that the HEAD is pointing to a commit within my master branch.</p><p>What it also tells us is the file path to find out exactly where we need to go to find out the specific commit that our HEAD is pointing to. So lets flesh that out, first by typing:</p><pre>$ cd refs<br>$ ls -la</pre><p>Which brings up the following for me:</p><pre>drwxr-xr-x 4 Tyler staff 136 Feb 22 21:42 .<br>drwxr-xr-x 13 Tyler staff 442 Feb 22 22:02 ..<br>drwxr-xr-x 3 Tyler staff 102 Feb 22 22:02 heads<br>drwxr-xr-x 2 Tyler staff 68 Feb 22 21:42 tags</pre><p>Then lets navigate into the heads folder and look inside:</p><pre>$ cd heads<br>$ ls -la</pre><p>Which shows…..</p><pre>drwxr-xr-x 3 Tyler staff 102 Feb 22 22:02 .<br>drwxr-xr-x 4 Tyler staff 136 Feb 22 21:42 ..<br>-rw-r — r — 1 Tyler staff 41 Feb 22 22:02 master</pre><p>Once again, lets dive in and see what is inside master</p><pre>$ cat master</pre><p>And….viola…</p><pre>8c2df37079abe6f0775e14d60420389262d12574</pre><p>What you see above is the current commit that HEAD is pointing to. I’m not going to get into what this 40 character letter number combo is. Just know that each time you make a commit, git sends that commit through an algorithm which returns that long letter/number combo as a reference to that commit.</p><p>2. How to see changes made in your code.</p><p>Lets say you have a file called <strong>first_file.md</strong> that is already in your repository, but then you make some changes to it. Lets then say the fire alarm in your building went off so you left your computer (I know, I know…what programmer would leave their computer….your cat maybe, but you would never leave your computer). Instead of standing outside your building waiting for the fire department to show up and tell you its a false alarm, you go across the street to have a beer. One beer, two beer, three beeer,,,foour….next thing you know you wake up on your couch and</p><p>Now that you are finally back to your computer, you can’t really remember what changes you were making prior to the previous day’s false alarm. So you type in:</p><pre>$ git status</pre><p>Which brings up this:</p><pre>On branch master<br>Changes not staged for commit:<br>  (use “git add &lt;file&gt;…” to update what will be committed)<br>  (use “git checkout — &lt;file&gt;…” to discard changes in working  <br>   directory)</pre><pre>      <strong>modified: first_file.md</strong></pre><pre>no changes added to commit (use “git add” and/or “git commit -a”)</pre><p>Ok, so you know the only thing that you had changed was in <strong>first_file.md. </strong>But how do you find out exactly what that file looked like before and what you changed? This is where <strong>git diff</strong> comes in handy. This simple command allows you to see what <strong>first_file.md</strong> is in your repository (aka the version that HEAD is pointing at) compared to what is in your working directory. Lets see it in action:</p><pre>$ git diff</pre><pre><strong>diff — git a/first_file.md b/first_file.md<br>index b8b57d6..22c844c 100644<br>- — — a/first_file.md<br>+++ b/first_file.md<br></strong>@@ -1,3 +1,5 @@<br> Just messing around right now.</pre><pre>-Now adding stuff to test out the commit message.<br>\ No newline at end of file<br>+Now adding stuff to test out the commit message.<br>+<br>+I am now writing some more stuff in here…but oh wait I think the fire alarm is going off…….</pre><pre>\ No newline at end of file</pre><p>What this tells me is that the stuff with the (-) next to it is the version that is in the repository while the stuff with the (+) next to it is the stuff that is in the working directory (aka the new stuff I put in).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=db85874df32f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[It’s been a while — MVP Edition]]></title>
            <link>https://medium.com/@tyler.cookson/it-s-been-a-while-mvp-edition-9be695cff190?source=rss-29aafb61fa26------2</link>
            <guid isPermaLink="false">https://medium.com/p/9be695cff190</guid>
            <category><![CDATA[mvp]]></category>
            <category><![CDATA[startup]]></category>
            <dc:creator><![CDATA[Tyler Cookson]]></dc:creator>
            <pubDate>Tue, 16 Feb 2016 00:09:54 GMT</pubDate>
            <atom:updated>2016-02-16T00:09:54.370Z</atom:updated>
            <content:encoded><![CDATA[<p>Yes, it has been a awhile since I’ve written a blog post. Like all plans, sometimes things don’t get finished ( like the 4 drafts I have currently going), sometimes things get in the way (like the 16 hours a day I spend trying to keep pace with the HRR program), and sometimes your scope is just too big (which ties in nicely to this blog post).</p><p>Today we started our MVP (minimal viable product) project. This is our first solo sprint and will last only 36 hours. By 6:30pm tomorrow hopefully I have “a thing that does a thing”.</p><p>One of the main points of this sprint is to understand scoping. By that I mean balancing what you want to accomplish with the amount of time you have to accomplish it. My original idea to post blogs on review topics I wanted to go over was probably not scoped properly. I didn’t really take into consideration how much review I wanted to do in the little amount of extra time I have to do it…..then create an extra hour in the day to blog about it.</p><p>When it comes to scoping and this MVP, I feel like its hard to gauge how much scoping I need to do. For one, I’ve never built an app from the ground up on my own. Every sprint that we have done in HRR has included a skeleton repo that just requires us to focus on implementing the thing we are learning. Another thing is that I am not quite sure how everything I’ve learned comes together. The next 26 hours are going to be interesting.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9be695cff190" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Beginning]]></title>
            <link>https://medium.com/@tyler.cookson/the-beginning-82b7afd01acb?source=rss-29aafb61fa26------2</link>
            <guid isPermaLink="false">https://medium.com/p/82b7afd01acb</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[hack-reactor]]></category>
            <dc:creator><![CDATA[Tyler Cookson]]></dc:creator>
            <pubDate>Mon, 01 Feb 2016 07:11:28 GMT</pubDate>
            <atom:updated>2016-02-02T03:20:54.714Z</atom:updated>
            <content:encoded><![CDATA[<p>I’ve been sitting here staring at this screen, trying to come up with what will be my first ever blog post. Coming with any idea can be difficult itself, but trying to think of one specifically related to the past three weeks of my life has proved to be much more taxing than I thought…so much has happened, my brain is tired, it’s really all been a blur.</p><p>So I started to bounce around several ideas, such as giving an overview of what I have learned the past three weeks, or maybe just discussing a single something in depth, or even describing my own personal “how I survived” tale. While thinking about each of these topics, I keep coming back to the fact that if this blog is to be some kind of story, it really needs some kind of beginning.</p><p>I probably could go in depth on where I grew up, where I went to college, my likes/dislikes, my plans for the future, etc. But it’s getting late and I have a lot more review to do before I go to bed, so I will give the abbreviated version</p><p>I grew up in Southeast Missouri, graduated with a biology degree at Missouri State University, went to law school at Southern Illinois University, and up until about 4 weeks ago I was working as an attorney in a small firm close to my hometown. Then, through personal study, a preparatory course I took last summer, and a series of interviews this past fall, I was accepted into Hack Reactor’s Remote Program. If you don’t know anything about Hack Reactor, just check out their <a href="http://www.hackreactor.com/">website</a> or read their reviews <a href="http://www.yelp.com/biz/hack-reactor-san-francisco">here</a>, <a href="https://www.switchup.org/bootcamps/hack-reactor">here</a>, or <a href="https://www.quora.com/Reviews-of-Hack-Reactor">here</a>.</p><p>Since my cohort (HRR13) began on January 11th, its been a whirlwind of learning new concepts, new terminology, new processes, and meeting new people. Every two days are broken down into ‘sprints’ where we are introduced to something new, try to implement that something, then quickly move on. The easiest way I could explain what happens in those two days can be broken down into inspiration, frustration, realization, and beef jerky.</p><ol><li><strong>Inspiration</strong>: Even if I am not exactly sure what I am learning is in the beginning, I am always inspired by what it can do. This leads to a yearning to want to dig deeper and the personal need to fully understand it. Which leads to…</li><li><strong>Frustration</strong>: There is no way to fully understand anything in two days. Nor is it possible to seamlessly grasp what you are learning so that you can implement it to perfection. Which leads to…</li><li><strong>Realization</strong>: I know more today about something than I did yesterday. While I am far from mastering that something, I do have enough skills to be able to utilize that something down the road and work towards mastery.</li><li><strong>Beef</strong> <strong>Jerky</strong>: This whole process requires lots and lots of beef jerky. It is delicious <em>(Krave is personally my favorite)</em>, fairly healthy <em>(11g protein w/ only 70 calories per serving)</em>, and is also about the only thing I have time to ‘make’ <em>(which by ‘make’ I mean walking to the cabinet and grabbing another package)</em>.</li></ol><p>While this summation may not provide specifics of what my first 3 weeks as an HRR student has been, hopefully it lays the foundation for the story I will be telling over the next few weeks. Maybe during that time I can come back and also give an overview on some of the topics covered we have already covered like Data Structures, D3, Time Complexity, etc.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=82b7afd01acb" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>