<?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 Christopher Osborne on Medium]]></title>
        <description><![CDATA[Stories by Christopher Osborne on Medium]]></description>
        <link>https://medium.com/@chaosborne?source=rss-e333fa1e3d0c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*jXvOk77CXXzIsYyaNtSMQg.jpeg</url>
            <title>Stories by Christopher Osborne on Medium</title>
            <link>https://medium.com/@chaosborne?source=rss-e333fa1e3d0c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 22 Nov 2026 18:01:27 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@chaosborne/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How I found myself in another boot-camp! (Part 2)]]></title>
            <link>https://medium.com/@chaosborne/how-i-found-myself-in-another-boot-camp-part-2-943851ae9632?source=rss-e333fa1e3d0c------2</link>
            <guid isPermaLink="false">https://medium.com/p/943851ae9632</guid>
            <category><![CDATA[codingbootcamp]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[general-assembly]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Christopher Osborne]]></dc:creator>
            <pubDate>Thu, 03 Nov 2016 03:27:42 GMT</pubDate>
            <atom:updated>2016-11-03T03:27:42.281Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*J1tsRRnTHms6BfDCn5aJyg.jpeg" /></figure><blockquote>This is Part 2 of the blog post. If you’d like to catch up please feel free to read Part 1 <a href="https://medium.com/@chaosborne/how-i-found-myself-in-another-boot-camp-part-1-f72a1e5c9b32#.9k1uj1uk3">here!</a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*147sXvDkM-v0tFGE8O3BhA.jpeg" /></figure><p>I found myself in parts of the world I wouldn’t have imagined and had some great experiences along the way. The work life balance wasn’t bad either. I usually worked 60–90 days on and 60 days off. The hardest part was the constant traveling and not being able to find the perfect balance. During this time I had the opportunity to invest in a couple of startups which led me down a path of learning everything I could on business, startups, investing, and the technical side. Most people wouldn’t take that risk of investing in startups but I did and that same risk taking mentality has been with me since the beginning. Once I started needing more and more education on business I decided I should go back to school and learn as much as I could. Once in school I realized the slow pace really isn’t what I was looking for considering the high paced life I had been living since high school. I did two semesters and it felt like I really got no where during that year. Prior to the semester ended I wanted to find ways to get more involved in startups and the primary way is to have programming knowledge, design, or marketing would be the easier ways in which I would be interested in. At the same time I was also working on my own startup and found out really quickly how expensive it was to hire programmers for some of my own projects. I then made the decision I should look into learning to code so that I could benefit myself and potentially find my way into another startup to gain some real world experience. A friend of mine who has been heavily involved with a few different startups mentioned looking into coding boot-camps. He then showed me General Assembly(GA) which I then read through their programs and the Web Development Immersive course would be starting at the perfect time over the summer. I then signed up for a tour of the GA campus and have an introductory interview. I was given some minor homework with some small coding challenges to make sure I was committed to actually attending. I completed those fairly quickly and then was issued a interview time. Once I toured the campus and thought it would be a good fit I gave a confirmation to GA and they mentioned they would review the coding challenge I was given and see if they thought I could handle the course. About a week later I got an email stating I was accepted into the course. Less than a month later I was sitting at a table in a General Assembly classroom starting the next 13 weeks of intense programming education. Now I am sitting here and I have written four blog posts and working on my fifth as well as coded five or so projects that have been incorporated into my portfolio. There has been a lot of struggle at least in the Austin market with coding boot-camp grads and the amount of junior web development positions that are available. Not to mention the amount of boot-camps that have sprung up just in the Austin area is quite interesting. Some focus on different aspects of coding which does help us who graduate but knowing there is a long process to find a job is a bit intimidating.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cOn4wszikMZRYCKY9TdrFw.jpeg" /></figure><p>Those 13 weeks were some of the hardest but most fun weeks I have had in a while. It was something completely different than what I had been used to. I wasn’t running the risk of driving over an IED, getting shot at, or risking my life over something completely stupid that makes absolutely no sense. I was starting my life over to be something I had never done before and wanting to have a new career and future. I will also say I was very lucky to have a smaller class of 10 other students/friends. From the get go we were all there to help each other out. There was never anyone who was trying to out do anyone else and be the spotlight ranger as we called it in the military. At any point if I was struggling during the course (which happened quite frequently) I could look over and see Christian (the guy making the gang signs in the pic), Bob (guy leaning over in the black shirt), or Colin (not pictured because he’s sleeping in class somewhere) and we’d all just give each other weird confused faces and laugh. This class was really intensive but by the end of it the entire group built ever lasting relationships. So far we are 2 months out of the course and we have 1 guy who had a job prior to course end, 3 other’s have jobs, and 1 doesn’t count since he’s back in college. So we’re sitting at about 50% and the rest should hopefully be gainfully employed soon.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NlCA2VU4DwrVQZKDkn5Z1Q.jpeg" /><figcaption>Class of WDI6 — ATX and Instructors at graduation!</figcaption></figure><p><em>Sorry this took so long to finish up but I have been busy doing the fun thing of job hunting and sending massive amounts of applications into the black hole of these Austin tech companies. If you’d like to see what projects I have worked visit my </em><a href="http://chrisosbor.ne/"><em>portfolio</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=943851ae9632" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I found myself in another boot-camp! (Part 1)]]></title>
            <link>https://medium.com/@chaosborne/how-i-found-myself-in-another-boot-camp-part-1-f72a1e5c9b32?source=rss-e333fa1e3d0c------2</link>
            <guid isPermaLink="false">https://medium.com/p/f72a1e5c9b32</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[bootcamp]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[army]]></category>
            <category><![CDATA[veterans]]></category>
            <dc:creator><![CDATA[Christopher Osborne]]></dc:creator>
            <pubDate>Tue, 23 Aug 2016 21:40:21 GMT</pubDate>
            <atom:updated>2016-09-26T21:01:37.182Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/360/1*lTYoHJgRH1U1mMGXXU8sUg.gif" /></figure><p>So I realized I forgot to introduce myself on my blog which just started having technical blog posts from my experience at General Assembly’s Web Development Immersive boot-camp. As part of our curriculum and homework we are supposed to have 4 blog posts during our time here. Three of them are technical as you’ve seen and one of them can be more personal. I chose to wait till the end to do my personal one even though I should have used it first to introduce myself, where I came from, and how I found myself in another boot-camp. So here my mini story goes.</p><p>You may be asking yourself why is he saying another boot-camp? No I have not attended another web dev boot-camp. The boot-camp I have done was for the US Army which is a lot different than what I am currently doing. I completely understand why they do call them boot-camps however its not anything like what I have experienced before. I joined the Army straight out of high school due to a couple of reasons. One, I didn’t have a lot of money growing up so I knew if I went to college I would be forced to go the student loans route and more than likely be really miserable right now trying to pay those off. Second, I honestly didn’t have a clue as to what I wanted to do at the time while my peers all had a pretty good idea by the time we were in 11th grade. Now I know a lot of them changed their minds part way through college and that’s fine but I didn’t have the slightest idea so I personally didn’t want to waste time just going to school with no direction. Last, I have always dreamed of being in the military as a kid growing up. I loved playing soldier with my GI Joes and dressing up with them. My brother was also in the Army prior to me graduating so that helped as I got to see some of the fun things he did. He however forgot to mention the stupid shit he had to do which may have turned me away from the Army. While in the Army I also wanted to have a job that I could potentially fall back on when I got out so I chose the job of Combat Medic. The job is exactly how it sounds meaning I was the medic who was on the front lines treating any of my soldiers, friendlies, and even enemy combatants if they were injured. I also didn’t just want to be a just a regular medic. I wanted to be part of the best unit the Army has to offer for a young soldier straight off the streets. I chose to volunteer for the 75th Ranger Regiment (here’s a quote from their website).</p><blockquote>THE 75TH RANGER REGIMENT IS A UNIQUE SPECIAL OPERATIONS FORCE COMPRISED OF SPECIALLY SELECTED AND WELL TRAINED SOLDIERS CONSTANTLY TESTED FOR THE PRIVILEGE OF SERVING IN OUR REGIMENT. OUR FOUR-TIME VOLUNTEER FORCE PROVIDES THE NATION A RANGE OF CAPABILITIES NOT FOUND IN ANY OTHER SPECIAL OPERATIONS OR CONVENTIONAL FORCE. WE CONDUCT LARGE-SCALE JOINT FORCIBLE ENTRY OPERATIONS WHILE SIMULTANEOUSLY EXECUTING SURGICAL SPECIAL OPERATIONS RAIDS ACROSS THE GLOBE.</blockquote><p>Once I decided that&#39;s what I wanted to do I knew I had to also volunteer for airborne training. Which means I had to learn how to jump out of an airplane with a parachute on. Now this may sound like fun but you’ve got remember it is still Army training and they know how to take the fun out of it. However it helped me learn how to manage fear like I have never done before up until that point. Looking out of the door of the plane you know is perfectly capable of landing you safely on the ground and knowing you have to jump is a bit confusing at times.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/604/1*dXIQA26xG5pjuaxVAoLpMw.jpeg" /><figcaption>A selfie before selfies were a thing.</figcaption></figure><p>However when you get slapped on the butt and told to go there’s no more thinking involved and just reaction. You just jump out the door hoping the parachute opens. After airborne training I then proceeded to Ranger Indoctrination Program (RIP) which just like the acronym reads is almost like a death sentence for a month. The entire program is what we call a “smokefest” to weed out any soldiers who aren’t mentally and physically ready to join the ranks of the 75th Ranger Regiment. It was one of the worst best experiences I have had but now looking back I loved it the entire thing. After graduation I was able to dawn the coveted Tan beret which is something we have all been waiting for. From there I was then assigned the Headquarters and went to Special Operations Combat Medical course (SOCM) which is the first half of the Special Forces medical course (18D). This is a 6 month long process that is more mentally taxing versus physically but they make sure to incorporate both during the entire time there. Once I graduated the SOCM course I then was assigned to 1st Ranger Battalion in Savannah, GA who were halfway through their training cycle and getting ready to deploy when I arrived. I had a short amount of time to get all my gear, get trained up, and meet the platoon I would be deploying with. I had three months to catch up to where everyone else has had an additional 3–4 months to be prepared for this next deployment. I was fortunate enough to be assigned to Charlie Company 3rd platoon which had 3 guys I was in RIP with so it made the transition a little easier. They all had 1 deployment under their belt and a few of them already had gone to Ranger School and earned their Ranger tabs which puts them at a higher rank than I was. Even with that they welcomed me knowing it took me 6+ months to get through medical training. After my first deployment I officially got assigned to Charlie Company as a company medic and then took over for the 2nd Platoon medic who then became the Company Senior medic. That man became one of my best friends and a huge mentor to me for transitioning into that role. I then deployed for my second time but first as an actual platoon medic who was in charge of the entire platoon medically. After I returned from that deployment I was sent to <a href="https://en.wikipedia.org/wiki/Ranger_School">Ranger School</a> which is again another 62 days of suck. It’s the Army’s premier leadership course that breaks soldiers down mentally, physically, and feeds them little food to manage. This is supposed to show the soldiers they can lead men in the worst conditions possible and still have the results needed to be successful. I made it through the course first time go which is no small task considering its historically had a 50% graduation rate which includes recycles. A statistic I heard while in the school was that roughly 30% of the course passes first time go. After graduation I came back to 1st Battalion and started training for our next deployment. All said and done I ended with 4 combat deployments, hundreds of combat missions, and experiences I’ll never forget. I decided I wanted to get out of the service to go to college and find a more stable life. I went to college for one semester and found myself broke and needing a way to make money. Which I then did what a majority of other veterans do and started down the path of private security contracting. This put me in a position to make a lot of money but at the expense of my freedom. I was in a small camp that had pretty good food, gym, and other amenities but still could feel like the walls were closing in on you. The only somewhat freedom we did get is when we would go on a mission which as a contractor meant we were taking out Diplomats from the Embassy to meetings throughout the city of Baghdad. This was usually pretty fun until you find yourself sitting in a crowded theater in the middle of Baghdad watching a movie you can’t understand and assigned to protect a person who doesn’t want you there. Regardless we have a job to do and that’s to protect the diplomats which we did. I loved the job and the guys I worked with but later found an opportunity to move into another contracting job. I moved into the new job and loved every minute of it.</p><p><em>I stopped writing after seeing how long this blog was. I went ahead and broke it down into two parts. The second part will be released shortly as I am still finishing it up. So if you like to finish the story please watch for the second part. If you’d like to see what projects I have worked visit my </em><a href="http://chrisosbor.ne/"><em>portfolio</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f72a1e5c9b32" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Do not Passport(JS) Go, Do not Collect Data!]]></title>
            <link>https://medium.com/@chaosborne/do-not-passport-js-go-do-not-collect-data-3c343554d5a1?source=rss-e333fa1e3d0c------2</link>
            <guid isPermaLink="false">https://medium.com/p/3c343554d5a1</guid>
            <category><![CDATA[authentication]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Christopher Osborne]]></dc:creator>
            <pubDate>Wed, 20 Jul 2016 17:56:38 GMT</pubDate>
            <atom:updated>2016-09-26T21:01:09.691Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*lSDoWtTMuLnRZwy2FuvZeQ.gif" /></figure><p>Over the last few weeks I have learned quite a bit about some interesting and important features to add to certain applications if needed. One of my favorite is passportJS and the flexibility it brings to the table with allowing users to have options for signing up or logging in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/621/1*P5qZ92OvPISvD23hOx1MbA.png" /><figcaption>Medium’s sign up form.</figcaption></figure><p>It also provides a level of security that isn’t solely put on the owner of the application. This allows other companies to have more control over their data and what they are willing to release during logins and sign ups to other sites or applications. It also is a huge benefit to these companies allowing the applications to use their logins since they’ll be receiving more data and it makes their company more valuable with people relying on using one account to sign in to multiple applications. To help facilitate this passportJS was created</p><blockquote>“Passport is authentication middleware for Node.js. Extremely flexible and modular, Passport can be unobtrusively dropped in to any Express-based web application. A comprehensive set of strategies support authentication using a <a href="http://passportjs.org/docs/username-password">username and password</a>, <a href="http://passportjs.org/docs/facebook">Facebook</a>, <a href="http://passportjs.org/docs/twitter">Twitter</a>, and <a href="http://passportjs.org/docs/providers">more</a>.”</blockquote><p>This quote breaks it down perfectly as to what they do. So how to use it? Well its actually quite simple. You first go to their official page and view their <a href="http://passportjs.org/">strategies</a> sections to find which login you’d like to incorporate. Once there you will see at least 307 strategies(at the time this blog was written) you can choose from to implement into your application. The ones I’ll be covering here are the main ones we usually see on a daily basis. Once you choose which strategy you’d like you then get linked to a GitHub documentation page that walks you through step by step on how to implement this into your code. They all start the same way from what I have seen which is:</p><pre>$ npm install passport-facebook<br>$ npm install passport-twitter<br>$ npm install passport-linkedin<br>$ npm install passport-github2</pre><p>Here I have included three that I see quite regularly and one (GitHub) that I have been noticing more of now that I started programming. Once you have installed them into your express app you now need to add them into your app.js file to make sure they’re communicating in your app when you do try and use them. I have included the four different strategies I mentioned.</p><pre>passport.use(new FacebookStrategy({<br>    clientID: FACEBOOK_APP_ID,<br>    clientSecret: FACEBOOK_APP_SECRET,<br>    callbackURL: &quot;http://localhost:3000/auth/facebook/callback&quot;<br>  },<br>  function(accessToken, refreshToken, profile, cb) {<br>    User.findOrCreate({ facebookId: profile.id }, function (err, user) {<br>      return cb(err, user);<br>    });<br>  }<br>));</pre><pre>////////////////////////////////////////////////////////////////</pre><pre>passport.use(new TwitterStrategy({<br>    consumerKey: TWITTER_CONSUMER_KEY,<br>    consumerSecret: TWITTER_CONSUMER_SECRET,<br>    callbackURL: &quot;http://127.0.0.1:3000/auth/twitter/callback&quot;<br>  },<br>  function(token, tokenSecret, profile, cb) {<br>    User.findOrCreate({ twitterId: profile.id }, function (err, user) {<br>      return cb(err, user);<br>    });<br>  }<br>));</pre><pre>/////////////////////////////////////////////////////////////</pre><pre>passport.use(new LinkedInStrategy({<br>    consumerKey: LINKEDIN_API_KEY,<br>    consumerSecret: LINKEDIN_SECRET_KEY,<br>    callbackURL: &quot;http://127.0.0.1:3000/auth/linkedin/callback&quot;<br>  },<br>  function(token, tokenSecret, profile, done) {<br>    User.findOrCreate({ linkedinId: profile.id }, function (err, user) {<br>      return done(err, user);<br>    });<br>  }<br>));</pre><pre>/////////////////////////////////////////////////////////////////</pre><pre>passport.use(new GitHubStrategy({<br>    clientID: GITHUB_CLIENT_ID,<br>    clientSecret: GITHUB_CLIENT_SECRET,<br>    callbackURL: &quot;http://127.0.0.1:3000/auth/github/callback&quot;<br>  },<br>  function(accessToken, refreshToken, profile, done) {<br>    User.findOrCreate({ githubId: profile.id }, function (err, user) {<br>      return done(err, user);<br>    });<br>  }<br>));</pre><p>As you can see these all have essentially the same exact code with some minor changes for the particular companies user info. One thing I want to mention is the section where it shows:</p><pre>LINKEDIN_<strong>API_KEY</strong> || GITHUB_<strong>CLIENT_ID</strong></pre><pre>&amp;</pre><pre>FACEBOOK_APP_<strong>SECRET</strong></pre><p>This is where some differences come into play but for the most part they are the same. The first one is going to be the clientID/consumerKey and the second part is the clientSecret/consumerSecret which you would get these from the client themselves but specifically for you. You usually have to register for these and want to keep them private if you can. If you didn’t care about that then you could easily replace the basic values after the ID/Key and Secret with the ones given to you. However if you if you’d like to keep them private you can create a .env file and set your information you have to the exact values that are provided already. Then you would create a .gitignore and put .env in there to keep that file from being published on GitHub. After we have these set up we need to add another portion to the app.js so we can use them. These lines of code are again similar for each one with maybe some slight differences but the purpose of this code is to route you to the company who’s login information you’re trying to use and allows that person to verify and authenticate their information for that application, which is saying you as the user are allowing this new application to get and use some of your information for that other application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/460/1*x_Kvs6Dx47mIJx2VpYqX8g.gif" /></figure><p>Once verified you will be redirected back to the original application once you have been authenticated and should now be able to use your new login with the imported data from the authenticated site(ie. Facebook). Twitter, Facebook, and LinkedIn had essentially identical authentication portions of code and the only difference I found was with GitHub and it was a scope addition which limits the initial request to what information you as the app owner are allowed to receive from that user. I am not sure if GitHub has other information you are allowed to receive or if that is it. On the documentation I could not find any other options to put into the scope. Twitter as well isn’t showing in the documentation what other data points you could receive from the user. However Facebook and LinkedIn have some additional documentation which allows you to access more information from the user’s profile.</p><pre>app.get(&#39;/auth/twitter&#39;,<br>  passport.authenticate(&#39;twitter&#39;));<br><br>app.get(&#39;/auth/twitter/callback&#39;, <br>  passport.authenticate(&#39;twitter&#39;, { failureRedirect: &#39;/login&#39; }),<br>  function(req, res) {<br>    // Successful authentication, redirect home.<br>    res.redirect(&#39;/&#39;);<br>  });</pre><pre>/////////////////////////////////////////////////////////////</pre><pre>app.get(&#39;/auth/github&#39;,<br>  passport.authenticate(&#39;github&#39;, { scope: [ &#39;user:email&#39; ] }));<br><br>app.get(&#39;/auth/github/callback&#39;, <br>  passport.authenticate(&#39;github&#39;, { failureRedirect: &#39;/login&#39; }),<br>  function(req, res) {<br>    // Successful authentication, redirect home.<br>    res.redirect(&#39;/&#39;);<br>  });</pre><p>So on the first part below you’ll see the profileFields (emboldened code) which would be added to the original portion of code I posted at the beginning and this allows you to grab the data points you would like to have for your app.</p><pre>new FacebookStrategy({<br>  clientID: FACEBOOK_APP_ID,<br>  clientSecret: FACEBOOK_APP_SECRET,<br>  callbackURL: &quot;http://localhost:3000/auth/facebook/callback&quot;,<br>  <strong>profileFields: [&#39;id&#39;, &#39;displayName&#39;, &#39;photos&#39;, &#39;email&#39;]</strong><br>}), ...)</pre><pre>////////////////////////////////////////////////////////////</pre><pre>passport.use(new LinkedInStrategy({<br>    // clientID, clientSecret and callbackURL<br>    <strong>profileFields: [&#39;id&#39;, &#39;first-name&#39;, &#39;last-name&#39;, &#39;email-address&#39;, &#39;headline&#39;]</strong><br>  },<br>  // verify callback<br>));</pre><p>I have included the parts of code that were explained more in detail later on in the documentation for LinkedIn and Facebook which makes theirs look similar to GitHub’s. I wasn’t able to find why GitHub puts that information in there already and why the others make it an option. My guess is so that they limit the application from trying to receive any and all data points versus the other companies.</p><pre>app.get(&#39;/auth/linkedin&#39;,<br>  passport.authenticate(&#39;linkedin&#39;, { scope: [&#39;r_basicprofile&#39;, &#39;r_emailaddress&#39;] }));</pre><pre>//////////////////////////////////////////////////////////////////</pre><pre>app.get(&#39;/auth/facebook&#39;,<br>  passport.authenticate(&#39;facebook&#39;, { scope: [&#39;user_friends&#39;, &#39;manage_pages&#39;] }));</pre><p>Overall it is a fairly simple process to incorporate another sign in option to your application and allows the user to easily keep track of which sign in they’d prefer. Since most people have one of the four I have included in this blog you could potentially see the benefits of using this in your application. I don’t have any hard facts if others have done this but I know for myself I have shied away from using an application because I have to fill out another sign up form(remembering another login and password) without an account I can easily use that I already have.</p><p><em>Thanks to the special few who decide to read these blog posts as I know they can be brutal at times. I attempt to make them a pleasurable experience to read as I have started to really enjoy blogging about the portions of code I don’t fully understand and any other topics that I believe should be shared. If you’d like to see what projects I have worked visit my </em><a href="http://chrisosbor.ne/"><em>portfolio</em></a><em>. I am still learning to code and am currently in week 8 of my dev bootcamp and as I did in my first few blog posts and will continue to do here’s a gif to distract you from this last paragraph.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*hgYUmo2BWlWkedELDWP5QA.gif" /><figcaption>Authentication DENIED!!!!</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3c343554d5a1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Diving into my first Hackathon.]]></title>
            <link>https://medium.com/@chaosborne/diving-into-my-first-hackathon-39e6c6f779d6?source=rss-e333fa1e3d0c------2</link>
            <guid isPermaLink="false">https://medium.com/p/39e6c6f779d6</guid>
            <category><![CDATA[general-assembly]]></category>
            <category><![CDATA[austin]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[hackathons]]></category>
            <dc:creator><![CDATA[Christopher Osborne]]></dc:creator>
            <pubDate>Fri, 15 Jul 2016 22:50:22 GMT</pubDate>
            <atom:updated>2016-09-26T21:00:30.487Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/368/1*ZEO6159mSUxppaFfsTll9g.gif" /></figure><p>At the end of my 6th week (which was my first group project week) at <a href="https://generalassemb.ly/">General Assembly</a>’s(GA) Web Development Immersive I had the opportunity to participate in a Hackathon put on by GA and <a href="http://wayblazer.com/">Wayblazer</a> for any alumni and current students. I figured why not go ahead and dive in head on even with the limited knowledge I had. The instructors were very encouraging to us current students to attend to gain the experience and to network to help us grow as developers. It was a weekend event put on at the <a href="https://www.wework.com/locations/austin/congress">WeWork offices in downtown Austin</a> which is where our classes are anyways so it was an easy transition. The general concept was to use Wayblazer’s API and create unique travel apps and then demo them to judges on Sunday evening. The first and second place winners would get the opportunity to then showcase the apps at the Wayblazer headquarters to their Executive and Engineering staff.</p><h3>Friday</h3><p>As I mentioned I just came off of an entire week of group project which we built an ExpressJS app. We had roughly a two hour break from when class ended to when the hackathon started so the class particpants and I went and grabbed a drink to help ease the nervousness about attending our first event. We showed up on time and got to grab more drinks and meet other developers who were attending. Then Wayblazer introduced themselves and their API to us and gave us some limited instructions. They then set up a random system to build the teams which was kind of like drawing straws but with colors. I reached into the bag and pulled out the first of five green colored straws. From there I watched as others guys started pulling theirs out as well. I saw another classmate reaching into the bag and pulled out the second of five green straws. We met up together and watched the bag flow around the room and continued to watch as the third and fourth straw were drawn again by two other current classmates of ours. We all started laughing and met up together and started chatting about who is left. We have one straw left in the bag and there were a few other more senior developers left standing and we were hoping to grab one of them. As the last senior guy reached in he pulled out another colored straw. We were then watching as our last classmate reached in and we all started joking about watch him grab a green straw. Low and behold he pulled out the remaining green straw. The four of us busted out laughing and the last guy looked up with a confused look on his face until we all showed him our straws. Shortly thereafter the teams were built and were told they could move to any area they would like to start the process. Our team which was made up of all current WDI students met up in our usual classroom and started throwing around ideas and laughing about how we somehow got put on a team. Once we had a basic idea we started to wireframe, build user stories, and ERDs. We broke ourselves up into two front-end, two back-end, and one API groups so we could tackle the problems without stepping on each others toes. The three of us who were back-end and API were all wanting to do the API so we decided to have an intense ping pong match to decide who gets to tackle that. I was first on the chopping block and won the first match. Feeling pretty pumped up I knew I would need to bring my A game for the next guy. He plays against another classmate quite often and is really good. So we started playing and I was up and feeling good. Maybe a little too good and on the side of cocky to where I started trying new things that I shouldn’t have. He then came back and crushed me but the score was closer than I thought I would have ended up anyhow. We came back to the classroom and then decided we’d all three tackle both back-end and API so the ping pong ended up being just for fun. We then went ahead and setup our express app and created a GitHub repo so we could all collaborate on the project. The group then got setup on our own local machines so we could push and pull to the GitHub repo. It was about 10:30pm and we decided to call it a night considering we were all exhausted from the prior week.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cOn4wszikMZRYCKY9TdrFw.jpeg" /><figcaption>Team Nativ on Friday night brainstorming ideas for our app.</figcaption></figure><h3>Saturday</h3><p>I got a late start Saturday morning and showed up around 10:45am and by that time the Wayblazer team did a walk through of their API and how the teams may be able to use it. There was also a recent UX/UI grad who needed a team and the guys from the team who were here volunteered our team to her and she accepted. So by the time I showed up they were already working on some mock-up revisions due to the information given from the Wayblazer team and how we were going to use their API with what we originally wanted to do. The front-end team jumped right into getting everything set up and looking good so that when the back-end team could parse into the API data we could start rendering it to the different pages. The back-end team had a huge task in front of us and that was to actually get into the API. From what we had learned up to this point most APIs were fairly simple to get into and find the information you want to show, however using this API was different than what we were used to. The process of getting the API parsed took us nearly 6 hours to figure out what exactly was going on and how to handle it properly. Since this was something we didn’t fully understand we had to do a lot of research with a lot of trial &amp; error and us banging our heads against our macbooks. We were able to get a lot done but there were some times that we would get stuck in areas we really had no idea about and then needed to get some help from a GA instructor and a Wayblazer developer who were both there to help out during the hackathon.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*BOTk4vcmYV7-tdUI9ka9Bw.gif" /></figure><p>So from 11:30 to about 5:30 we were heads down getting that done. Once we finally parsed into the API and started seeing data points we wanted, it was a pretty big celebration which we obviously danced our way to the keg to have one of many celebratory beers. At this point we had a little less than one day left in the hackathon and getting into the API took a huge chunk of our development time. We knew after those delicious beers that we needed to pick up the pace if we wanted to deliver a minimal viable product(MVP) during the demo. Surprisingly enough we started knocking out a good majority of the code we needed and then got everything connected to the front-end and started previewing sections of the API so that the front-end team could continue the design process while the back-end team continued to track down some images that were nested very deep in the json. By 11pm that night we had our MVP working how we had been hoping for and decided to end on a good note and not attempt anything else that night. Between everyone being tired still from the night before and the good amount of celebratory beers we figured it’s in everyone’s best interest to not touch anymore code. Four of us decided to hit up a bar for a drink or two prior to leaving downtown mainly cause we wanted to celebrate.</p><h3>Sunday</h3><p>We were all pretty pumped still from the night before so everyone came in ready to work Sunday. All of us were there by 10am when the doors were open for us and started immediately applying finishing touches and bonus features we wanted to incorporate. We had to be done with all coding portion by 3pm to start the demos so we wanted to make sure anything we messed with would function correctly before adding it to the master repo. We also had to prepare a presentation which our UI/UX developer started doing that morning. The day went by pretty quickly with everything we were doing and we made sure we got slotted in the third position to present. It was 2pm and we had the two front-end guys making last minute changes to our results page while the back-end and the UI/UX dev were going over the presentation and who’d be doing what. 3pm rolls around and we made sure everything was set up and ready to go and headed to the demo area. We all grabbed some beers to help kill the jitters prior to presenting for the first time. The demos started and the first team up was made entirely of android developers (Team Travlr) and they created a pretty unique app that was surprisingly similar to our app. For not seeing what they were building and them not knowing what we were building I thought it was pretty cool to see two teams come up with something very similar. The second team up (<a href="https://medium.com/@susannahwaite2/my-first-hackathon-ed9a79d48fd#.18ysov5ap">Team Gathervant</a>) which had two of our classmates in that team along with some alumni and they created a pretty cool app that allowed travel groups to create a group trip and all be included on the process. If you’d like to read more on them check out one of my classmates blog posts about her experience and click on their team name. Now it was our turn to present which we were all excited about and a little nervous since the android team already presented something similar. Starting out we had some technical difficulties with getting everything on the projector since we were using one computer to do a power point slideshow and then one of the developers computers to run the app. We finally just jumped right into the app and gave a pretty good demonstration of how things were working. We then answered some questions regarding our app and some things we did. We then were able to show our power point and finish our demo feeling good. The fourth team then came up and presented their app. During the hackathon they had some conflicts between some personalities and lost a few of their guys so they weren’t able to finish completely but had a pretty cool idea with more of an adventure style travel app. After the presentations the judges went to tally up the scores and discuss the winners. While they were doing that everyone grabbed another beer and congratulated each other with what they had completed. We were then told to come back so they could announce then winners. Once everyone was seated and ready the Wayblazer team got up there and congratulated and thanked everyone for attending and participating. They then started with the second place winner which ended up being our team. Once we heard our team name get called we all looked at each other and cheered, high-fived, and had huge smiles on our faces. They then had everyone do a drum roll for the the first place winner and then called out Team Travlr the android team. It was pretty cool to see them win and us come in second considering we had very similar ideas. Afterwards the teams took pics with the Wayblazer team and our team went ahead and grabbed a team pic. We were all super pumped with the second place finish considering we were a group of current students that randomly got put on a team together and did as well as we did. Shortly there after everyone started leaving one by one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zD1B5udg3mJqgW6scmNuJg.jpeg" /><figcaption>Team Nativ (middle) with Wayblazer (bookends) !</figcaption></figure><h3>Conclusion</h3><p>Overall I had an amazing time with my first hackathon even if it wasn’t a huge one like others I’ve read about and seen photos of. I’m even more excited how well our team did with our experience level compared to some of the other teams. We didn’t win the prize money that the first place team won but we do get the opportunity along with the first place team to attend Wayblazer’s office and present our demo to their executive team, engineering team, and possibly the entire company which will be a whole other nerve wracking but exciting experience. Considering I would like to build a career in this field I am going to use this experience to my advantage and see what comes out of it. I also now will be less timid about going to other hackathons now that I know how they more or less operate.</p><p>Check out my portfolio at <a href="http://chrisosbor.ne/">http://ChrisOsbor.ne</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*sYPCQAXfq_ojAramgwtU7g.jpeg" /><figcaption>Team Nativ showing off our app after a second place victory!</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=39e6c6f779d6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Let me Express(JS) the differences of a Static and Dynamic page so we all Node(JS)!]]></title>
            <link>https://medium.com/@chaosborne/let-me-express-js-the-differences-of-a-static-and-dynamic-page-so-we-all-node-js-aac2262386ce?source=rss-e333fa1e3d0c------2</link>
            <guid isPermaLink="false">https://medium.com/p/aac2262386ce</guid>
            <category><![CDATA[expressjs]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[backend-development]]></category>
            <category><![CDATA[nodejs]]></category>
            <dc:creator><![CDATA[Christopher Osborne]]></dc:creator>
            <pubDate>Tue, 28 Jun 2016 14:04:14 GMT</pubDate>
            <atom:updated>2016-09-26T20:58:30.536Z</atom:updated>
            <content:encoded><![CDATA[<p>So you may recall in my first blog post <a href="https://medium.com/@chaosborne/global-vs-local-34a18c33f71c#.hatndspqn">Global vs. Local</a> I mentioned I was taking a web dev immersive course and it was like drinking water from a fire hose. Well two weeks later it’s no longer like drinking from the hose but more like trying to catch that hose so you can control it. However just when you think you’ve got it under control you notice that you really don’t.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*CKzR8DovO1juIuEp2aqSLA.gif" /></figure><p>So one thing that can get confusing when trying to figure out what goes where is the whole Static and Dynamic pages and what exactly each of them mean and do. Static files are usually found in the /public directory which will contain the client side JavaScript, CSS files, and images. When you see those files you may think how are those static when they are technically doing something. That is true but compared to other parts of the Models Views Controller (MVC) architecture they don’t have a lot of operations going on. To set this up we will have to make sure the code knows where to look when needing to retrieve code from the public directory. First you’ll want to make sure you have required Express with:</p><pre>var express = require(&#39;express&#39;);</pre><p>Once you have Express required along with any others that need to be required you can move on to your public directory like:</p><pre>app.use(express.static(path.join(__dirname, &#39;public&#39;)));</pre><p>This is now ready to use any file that is placed in the public directory and needs to be rendered. Another part of the static portion is the Views of the MVC architecture which has some HTML on the server side. It again is considered static because there isn’t any data being processed in that file. It however does accept forms and allows users to input their data which then goes into a more dynamic file which is usually the models directory. Now me being a prior military guy when I heard the word dynamic the first thing that came to my mind was how we breached some target houses. When we signaled that we were going dynamic it meant there was going to be a lot of moving pieces and this is where things can go wrong quickly. Here’s a little snippet of what going dynamic means in the Army.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*rEkntZZIe0SUSATKihBnqA.gif" /></figure><p>Now I know that dynamic doesn’t necessarily mean we are using explosive breaches on the doors to gain entry into the data but it has the same fundamentals. The dynamic part allows us to have separate files to access different data and route it to where it needs to be. So once again we start off by requiring them:</p><pre>var routes = require(&#39;./routes/index&#39;);</pre><pre>app.use(&#39;/&#39;, routes);</pre><p>This points us towards our routes directory which is a js file that now has code in it that is doing something similar to the app.js file. Which we have to require code in here as well:</p><pre>var express = require(&#39;express&#39;);<br>var router = express.Router();<br>var Product = require(&#39;../models/product&#39;);</pre><p>These are very similar to what we’ve seen before minus the last line which is directing us to the models directory. The models directory is for the most part where we are storing the data until we need to use any of it. The routes file has some functions in it which again makes it dynamic as it is getting data and directing it to another location. That piece of code looks like:</p><pre>router.post(&#39;/cart&#39;, function(req, res, next) {<br>   var temp = parseInt(req.body.id);<br>   var product = Product.find(temp);<br>   req.session.cart.push(product);<br>   res.redirect(&#39;/&#39;);<br>});</pre><p>So to show this is dynamic this code is parsing into another data structure and then finding that piece of data needed. It then is pushing that data into another file which is being posted possibly to a static file and then you are being redirected to the index file. So when I say dynamic I mean there is a lot happening in a short amount of time and if something is not functioning properly or defined properly other parts of the code will not function either. Where as the static pages will still display something but it will not be showing the correct data if the dynamic pages are not operating as they should.</p><p><em>Thanks again for reading my blog post. I am still a coding novice that is learning more and more everyday and try to write about topics I want to understand more. As far as I know the information I have written is correct to the ability I am able to explain it at this moment (five weeks into the course), if it is not please let me know and I will correct any misinformation I have posted. If you’d like to see what projects I have worked visit my </em><a href="http://chrisosbor.ne/"><em>portfolio</em></a><em>. As I did in my first blog post and will continue to do here’s a gif to distract you from this last paragraph.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*YW6wpCNYPXGKRwBkM18c4A.gif" /><figcaption>Monte Brento, Italy</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aac2262386ce" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Global vs. Local]]></title>
            <link>https://medium.com/@chaosborne/global-vs-local-34a18c33f71c?source=rss-e333fa1e3d0c------2</link>
            <guid isPermaLink="false">https://medium.com/p/34a18c33f71c</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[general-assembly]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Christopher Osborne]]></dc:creator>
            <pubDate>Tue, 14 Jun 2016 05:00:52 GMT</pubDate>
            <atom:updated>2016-09-26T20:57:40.188Z</atom:updated>
            <content:encoded><![CDATA[<p>I recently started learning to code taking a web development immersive course and let me tell you it’s like drinking water from a fire-hose. Not sure how many have ever tried it, but it’s not fun.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/1*5N9pWikYL8IIpurGM1IICA.gif" /></figure><p>One of the drops of water I’ve tried to catch is the JavaScript Global Scope vs. the Local Scope Variables. I’m not 100% clear on them but I am going to try and explain them to the best of my ability. When you look at the word Global most would think broad or fully encompassing which global variables do just that.</p><p>Global variables are set outside of functions so that they can be used throughout the code.</p><pre>var blog = &quot;I&#39;m global&quot;;</pre><pre>//function written below</pre><p>Local variables are set within a function to be used solely by that function.</p><pre>var blog = &quot;I&#39;m global&quot;;</pre><pre>function blogScope() {<br>   var blog = &quot;I&#39;m local&quot;;<br>}</pre><p>As you can we used the same variable name and some people may get confused on which one will get used in this code as I did thinking the global would take precedence over the local but it’s actually the opposite. When that variable is inside a function it will be called first and the code will work its way out from there until it finds the match it is looking for. Another issue young programmers run into is potentially not setting the variable in the function and really just reassigning the original variable.</p><p>Can you see the difference from this code to the one written above?</p><pre>var blog = &quot;I&#39;m global&quot;;</pre><pre>function blogScope() {<br>   blog = &quot;I&#39;m local&quot;;<br>}</pre><pre>blogScope();</pre><pre>console.log(blog);</pre><p>In this code since you’re not setting the variable in the function you eventually reassign the global variable to what the local variable is . As I’ve learned this can negatively effect your code if you’re needing a specific variable to be called and it is wiser to use more local variables when you can and less global variables due to this issue.</p><p><em>I am Chris Osborne a web developer novice and I appreciate you reading my first blog post on one of the topics I have learned this far and needed more clarification on myself. As far as I know the information I have written is correct to the ability I am able to explain it at this moment (two weeks into the course), if it is not please let me know and I will correct any misinformation I have posted. If you’d like to see what projects I have worked visit my </em><a href="http://chrisosbor.ne/"><em>portfolio</em></a><em>. To distract you from this last paragraph here is a gif of me.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/912/1*ipkBrHUqpRREY903Q-Ybxw.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=34a18c33f71c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>