<?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 Alex Montgomery on Medium]]></title>
        <description><![CDATA[Stories by Alex Montgomery on Medium]]></description>
        <link>https://medium.com/@alex.montgomery?source=rss-93f262161b7b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*OmTckMWp0pfXz7H2K24quA.jpeg</url>
            <title>Stories by Alex Montgomery on Medium</title>
            <link>https://medium.com/@alex.montgomery?source=rss-93f262161b7b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 21:55:50 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@alex.montgomery/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[SoundCloud API Project — Closing out Front End]]></title>
            <link>https://medium.com/@alex.montgomery/soundcloud-api-project-closing-out-front-end-a439aa35df7f?source=rss-93f262161b7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/a439aa35df7f</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[the-iron-yard]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[soundcloud]]></category>
            <dc:creator><![CDATA[Alex Montgomery]]></dc:creator>
            <pubDate>Wed, 21 Jun 2017 15:10:48 GMT</pubDate>
            <atom:updated>2017-06-21T15:10:48.195Z</atom:updated>
            <content:encoded><![CDATA[<p>Our final project for the Front End Fundamentals portion of The Iron Yard course was to create a site that allows the user to search for an artist and play their tracks by using the SoundCloud.com API.</p><p>This was definitely one of those <em>bang your head against the desk until it works</em> type of projects. I had to just take it one step at a time. My general feeling is that this is how programming, and development in general, will be. Implement one functionality. Confirm it works. Then, implement the next functionality. Using this strategy, I was able to develop a site that I feel pretty good about…kinda. There is one major flaw with the SoundCloud API that hinders the site drastically. I had to include the following disclaimer on the Home Page due to this issue:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mWDibT3WgsFTjd9AQfF99g.png" /></figure><p>SoundCloud recently implemented the “Go” feature that allows certain (most) artists to have a premium account that would require you to pay a monthly fee to stream their content. Because of this, the site that I developed only allows you to stream a very limited number of artists. If you search for “John Mayer” on my site, you will find his profile. When you select his profile to pull up the tracks, it will return this result:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Bcds21fXaCVa3sXZaKcsMw.png" /></figure><p>This is more than mildly frustrating, because it really limits the usability of the site. Essentially, the site only works for indie bands and artists that are less popular. Here are a couple of the artist that do work though:</p><ul><li>Post Malone</li><li>Paul Wall (shoutout to H-Town)</li><li>Chance the Rapper</li><li>Bang Bangz</li><li>Lanco (30 second previews only)</li><li>Thrice (30 sec. previews)</li><li>Forrest.</li></ul><p>Now, for the meat and potatoes of how the site was actually developed:</p><h3>The Coding!</h3><p>Javascript was used to perform the Get requests from the SoundCloud API. A big lesson that was learned during this project was that sometimes accessing the API is not exactly straightforward. Even though SoundCloud’s API documentation is pretty thorough, it took a bit of guess/test to determine which URL to use to query the API for artists and then which one to use to access their tracks. Here is what the opening page of the site looks like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u-d8HDiJsVNn0_3o6zgxPA.png" /></figure><p>I titled the site <em>MusicStorm</em>, which I felt gave it a hip, start-up kind of vibe. Once the user searches for an artist, it pulls up a result of the 6 most relevant SoundCloud user profiles. These profiles are pulled by performing a query in the SoundCloud API:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EMPYsVQiBxvDazuuDz8hfA.png" /></figure><p>I include the number of available tracks for each profile result. I think this feature allows the user to weed out which profiles are the ‘legit’ ones and correctly determine which profile to move forward with. Once the user clicks on a profile, another Get request is performed to the SoundCloud API using the specific ID number of that profile. This number can only be found after performing the initial query. With the user ID #, a Get request then pulls all of the available tracks for that user:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*icdCrK-X4gQ14mPjSUxc0w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Tjn83C3ReEIxbvcGBpVP_g.png" /></figure><p>The tracks are not returned in any discernible order. Thus, for an improved user interface, I used a sort function to display the tracks in alphabetical order. This was accomplished using the following JavaScript code:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DIShwSLcXxZPzP8rv4zayQ.png" /></figure><p>By placing the Json results of the tracks in an array, I am able to sort the tracks using the JavaScript sort function. The track information is then written to the HTML by running through the array with a ‘for’ loop and template literal. Unfortunately, template literal is an ES6 feature that is not yet supported on many mobile browsers or Internet Explorer for the desktop. This severely limits the compatibility of the site, but it was a requirement assigned to us for this project.</p><p>Next, the user selects a track. That ‘stream URL’ for that track is then loaded into the source of the audio player, upon which it begins autoplaying. That is accomplished by calling the <em>playTrack</em> function that I wrote below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FwUhJ8G8FJEvM4g8EQk8aQ.png" /></figure><p>We then have the track you selected streaming!:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cSeFPy561Q1GPTwn6Eie5A.png" /></figure><p>Now, let’s get to the bad news for you guys &amp; gals. Unfortunately, I won’t be able to upload a link for you to view the site live with. Well, I could but it won’t function properly. This is because I am using a personal token to perform Get requests from the SoundCloud API. In uploading this project to GitHub, I had to follow standard protocol and hide my API token. If you <em>really</em> want to view the site you could do the following:</p><ol><li>Pull all of my code down from GitHub.</li><li>Request your own token for the SoundCloud API.</li><li>Assign your newly acquired token to the variable ‘mykey’ on the first line of the ‘main.js’ file.</li></ol><p>Here a few additional screenshots from the site for your viewing pleasure:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PCitvffPJHvB-INnQfG9Yg.png" /><figcaption>Forrest Frank (Forrest.) — A friend of a friend that I know</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6vVIblYHfAHT4SJ7Pqk3LQ.png" /><figcaption>Lanco — one of my current favorite artists. “Greatest Love Story” by Lanco is the best country song on the radio right now. Check it out!</figcaption></figure><p>If you would like to check out all of the code I wrote for this project (or create a copy of this site using your own token), go to the project on my GitHub:</p><p><a href="https://github.com/alexhmontgomery/soundcloud">alexhmontgomery/soundcloud</a></p><p>And now the moment you have all been waiting for, a relevant meme. Anyone that uses GitHub knows about that <em>initial commit</em>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*mE6kQg2C80tBBP6Ez_ULQQ.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a439aa35df7f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[No, I’m not talking about that API]]></title>
            <link>https://codeburst.io/no-im-not-talking-about-that-api-2513d97d9f6?source=rss-93f262161b7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/2513d97d9f6</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[the-iron-yard]]></category>
            <dc:creator><![CDATA[Alex Montgomery]]></dc:creator>
            <pubDate>Thu, 15 Jun 2017 14:28:06 GMT</pubDate>
            <atom:updated>2017-06-15T20:38:43.339Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6NWO6O0I12Y7BXWJfY8Lxw.png" /></figure><p>Up until May of this year, the only API that I ever referred to was the ‘American Petroleum Institute.’ They set the standards in and influence public policy for the U.S. oil and natural gas industry. That API has now gone by the wayside for me. The API that we were focused on yesterday (and I will be in the future) is the ‘Application Programming Interface.’</p><p>We were referring, more specifically, to the API of websites. A website API allows developers to reference and pull data from that website for use in their own applications. Using JavaScript, developers are able to ‘fetch’ the API from other websites, view the data, pull in the information they need, and analyze or display it.</p><p>Fetching API data can get very complicated very quickly. This is the first concept that we’ve covered wher I feel I only have a very surface level understanding. Here are the complications with fetching API data:</p><ol><li>It takes time. This can interfere with the run order of the functions you that you are calling. A normal function might only take 5 milliseconds to run. Fetching data from an API might take 500 milliseconds (or 1/2 a second). Because of this, it’s necessary to tell the program to delay certain functions until all of the data has been acquired. This is where the ‘.then’ command comes into play.</li><li>Due the first issue, we have to manage the ‘call stack’ and the ‘queue.’ We have to operate in asynchronous manner. This is the concept that is really difficult to grasp. Because I don’t want to give you bad information, I won’t dive into it much deeper for now, other than providing a little picture of what is going on behind the scenes as JavaScript is operating:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XDJRehrElL3Gm7Da_k1C4Q.png" /><figcaption>Visual representation of the ‘call stack’, pulling ‘web APIs, and the ‘queue</figcaption></figure><p>So, what did I actually code yesterday? Well, I’m glad you asked. Our project for the day was to create a fictional internal company directory that pulls 12 random profiles from the API of <a href="https://randomuser.me/">https://randomuser.me/</a>. This involved, fetching the data from the API and displaying it on a page I created. I wrote the JavaScript to pull the data, choose the information I wanted, and create the HTML tags to properly display it. I used a ‘for’ loop that ran 12 times to pull 12 random user profiles. Here is the JS code I wrote:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FNr2TgrIHgAYu_AlBtvN7g.png" /></figure><p>When you combine that code with the HTML and the bit of CSS styling that I wrote, you get a website that looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D8PdYRjUyf6GV00p8DfMdw.png" /></figure><p>Scrolling down the page, you would see a total of 12 random user profiles. Every time you refresh the page, you should receive 12 completely new (and fake) people. I even blurred out the social security numbers to protect the identities of our made-up employees. You can check out a live version at the following address: (**Though I made this site responsive to mobile, I’ve seen a few issues with it not loading all 12 profiles when viewed on a cell phone. Thus, I would suggest accessing this on a desktop/laptop for now.**)</p><p><a href="https://alexhmontgomery.github.io/customer-database/">Customer Database</a></p><p>Give it a shot. Remember to refresh the page, for new profiles. You can access the code I wrote here:</p><p><a href="https://github.com/alexhmontgomery/customer-database">alexhmontgomery/customer-database</a></p><p>Did you think I forgot a related meme? Wrong!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/259/1*xKpyNgJPsjEmGFXZUhN3Pg.jpeg" /><figcaption>Always assume the API is broken first</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2513d97d9f6" width="1" height="1" alt=""><hr><p><a href="https://codeburst.io/no-im-not-talking-about-that-api-2513d97d9f6">No, I’m not talking about that API</a> was originally published in <a href="https://codeburst.io/">codeburst</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Algorithm — The word I never spell right on the first try]]></title>
            <link>https://medium.com/@alex.montgomery/algorithm-the-word-i-never-spell-right-on-the-first-try-e2423b858ed0?source=rss-93f262161b7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/e2423b858ed0</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[the-iron-yard]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Alex Montgomery]]></dc:creator>
            <pubDate>Wed, 14 Jun 2017 00:15:42 GMT</pubDate>
            <atom:updated>2017-06-14T00:15:42.946Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Now that I have you all caught up on the first three weeks of my training to become a Developer at The Iron Yard, I’ll be cranking out a blog every day (hopefully) reviewing what I learned.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/454/1*OvKT7_sFuYHbx3M5VzV8rw.jpeg" /></figure><p>Little know fact: Algorithms are named after Al Gore, since he created the first one…Okay, maybe that’s not actually true. He only invented the internet.</p><p>Algorithms are explicit and sequential step-by-step instructions for performing a specific task. There are many algorithms in computer science that have become very popular over the years. Computer scientists study the most popular of these and learn how they work so that the algorithms can be applied when necessary.</p><p>Some of the categories of these popular algorithms in the programming world include:</p><ul><li>Sorting/search</li><li>Hashing</li><li>Binary exponentiation</li><li>String matching/parsing</li></ul><p>Algorithms are developed when someone has a problem and they are looking for the most efficient way to solve that problem. So, let’s find a problem and figure out a way to solve it. How about we take an array of random numbers and figure out how to sort them from smallest to largest:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/738/1*faLYqFUklq6ah9_aCiJbaQ.png" /><figcaption>Array of numbers ready to be sorted</figcaption></figure><p>I decided to write a script that sorts these numbers using the <strong><em>Bubble Sort algorithm</em></strong>. Bubble Sort accomplishes this task by comparing each number to the two numbers directly adjacent to it and rearranging them based on which number is larger/smaller. Thus, it will have to go through each number individually and test it against the numbers on either side. Below is the script I wrote for sorting this array:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/432/1*U6ijZZ85mN6f6UL4wTNmWg.png" /><figcaption>Bubble sort in action!</figcaption></figure><p>Here is our executed script showing the initial array of numbers and the sort array:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mN808HdsL-QFGvdWyJcH2w.png" /><figcaption>It sorted successfully!</figcaption></figure><p>Is this the most efficient way to do this? Probably not. Did it work? Absolutely. That means we successfully applied the Bubble Sort algorithm.</p><h3>Daily Project — Blackjack Hand Calculation</h3><p>The project for today was to develop an algorithm for determining the value of a given hand in a game of blackjack. What does the point total come to? This is fairly simple for all cards, except that tricky Ace card. Does the Ace card equal 1 point or 11 points? That is dependent on the total value of all of the other cards in the hand. Let’s see what I wrote:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/1*1Q5A8L3URs1hR5KCN_vDOg.png" /><figcaption>My code for determining the blackjack hand value</figcaption></figure><p>Let’s test it out using the following inputs:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/508/1*3xJqproecrymp8D6RKFHAQ.png" /></figure><p>When we run the function, here is the output that we receive:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PiRrSPMXD5Lqzt3p3c0LDQ.png" /></figure><p>The output lists the array with the points assigned to each card and then the sum of the hand below it. We can see that in the first hand, the algorithm applied a value of ‘1’ to the Ace. This was because ‘11’ would have caused the hand to bust. In the second hand, a value of ‘11’ was applied to the Ace. This provides the highest value to the hand, without busting. Honestly, you should probably go ahead and hit on Hand Two. Don’t sit there and hope the dealer busts.</p><p>As always, here is the code from this project:</p><p><a href="https://github.com/alexhmontgomery/blackjack">alexhmontgomery/blackjack</a></p><p>And, as always, here is another meme to remind you that programmers have a <em>great</em> sense of humor:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*WD1nUgsIoNvNS3NeSVMkuA.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e2423b858ed0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[3rd Week at The Iron Yard — Time to do some real programming. JavaScript!]]></title>
            <link>https://medium.com/@alex.montgomery/3rd-week-at-the-iron-yard-time-to-do-some-real-programming-javascript-3e82fc44844f?source=rss-93f262161b7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/3e82fc44844f</guid>
            <category><![CDATA[the-iron-yard]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Alex Montgomery]]></dc:creator>
            <pubDate>Tue, 13 Jun 2017 22:13:47 GMT</pubDate>
            <atom:updated>2017-06-13T22:13:47.177Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*DI5qzdJQKNA8xcYwTXkiTg.jpeg" /></figure><p>Finally, in our 3rd week at The Iron Yard, we got into what most people would consider ‘real coding’. I’m talking about ‘for’ loops, ‘if’ statements, and ‘while’ loops. I’m talking about assigning variables and using counters. This is the fun stuff, people. Let’s walk through the 3rd week.</p><h3>JavaScript Intro</h3><p>Maybe I should have titled this blog <em>LiveScript, </em>because that is what JavaScript was initially named. JavaScript was written by Brendan Eich in an astonishing 10 days while he was employed by Netscape Communications in 1995. Initially, I thought JavaScript was in some way tied to or related with the Java language. Apparently, that is what Netscape wanted me to think. In fact, at the time JavaScript was developed, Java was the hot new language and Netscape thought that changing the name of their language from LiveScript to JavaScript would give it some street cred. Nowadays, all it does is confuse amateurs (like myself) that are just starting out in coding.</p><p>Along with HTML and CSS, JavaScript is one of the three core technologies of the internet. Most sites employ it, and all modern browsers support it. Essentially, JavaScript is THE programming language of the worldwide web. With JavaScript we finally had the opportunity to start writing some real, actionable code.</p><h3>Functions &amp; Complex expressions</h3><p>Functions are the backbone of any programming language. They are what make a program a program, the ability to perform and execute functions. JavaScript is one of the easier languages to write functions in. The controls are not nearly as strict as other languages.</p><p>A function is really just a repeatable set of instructions. It is some action that you are going to need to do multiple times and can save time by calling/invoking it each time, rather than rewriting the code every time. We have essentially written functions in our mind to follow. I learned how to make a pot of coffee one time. Now, every morning, I wake up and invoke the <strong>makeCoffee() </strong>function. I don’t really think about how to make the coffee. I already know how to do it and just call the function. POOF! Fresh coffee. It’s a good thing too, because I need the coffee that I making before I try to learn anything new. Combining that with an “if” statement would probably look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/920/1*ZfUceLpq2xJTFd5tmdBvVw.png" /><figcaption>My morning routine!</figcaption></figure><h3>Arrays &amp; Loops</h3><p>The later half of the 3rd week was spent <em>mastering</em> loops and arrays. Okay, maybe not mastering, but at least getting our feet wet. Arrays are essentially just a collection of data. What arrays do in programming though, is give you a bucket to store, sort, adjust and analyze data. Having a firm grasp of arrays is paramount to programming. Without that, you can’t really use the full functionality of the language.</p><p>Loops, on the other hand, can make some people break down in tears from the initial frustration. Until you <em>get it</em> with loops, you don’t <em>get it</em> at all. The power of ‘for’ and ‘while’ loops is incredible. They are what really make a computer do the amazing things that it can. Computers accomplish a task in milliseconds that would take a human hours. And I am not even talking about some complicated task, just repetitive, boring ones. I am talking about sorting a jumbled list of 150 integers from largest to smallest. That can be performed with a function of JavaScript that is 10 lines of total code (and even less if you invoked the “sort” function in JS). It’s just incredible really.</p><h3>Weekly Project — Calculator</h3><p>Easily my favorite project to date! This made me feel like I could tell my friends that I am a real, certifiable programmer. The goal was to build a fully functional calculator using Javascript, HTML, and CSS. The calculator had be able to add/subtract, multiply/divide, perform modulo, and perform square roots. Let’s see what the final product looks like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R41B-mlShmGROdOaro7-CA.png" /><figcaption>My calculator!</figcaption></figure><p>The JS code is what gives this calculator its functionality. The program listens for click using an e<em>ventListener</em> and then determines whether you clicked on operator or a number. By storing each value that is clicked on in an array, I am able maintain complex calculations and evaluate them. Using a whole host of ‘for’ loops, ‘if’ statements, functions, and a couple of arrays, it determines what to do with the buttons that you clicked on. I hope you go to my GitHub live page and give the calculator a shot. Hopefully, you will even find my very obvious <em>easter egg </em>(hint: try clicking on the infinity symbol):</p><p><a href="https://alexhmontgomery.github.io/Calculator/">MI-83+ Calculator</a></p><p>If you would really like to dive in the code and see how the JavaScript for this actually works, feel free. Comment on this post with any suggestions or changes you would like to see and I will try to make them happen:</p><p><a href="https://github.com/alexhmontgomery/Calculator">alexhmontgomery/Calculator</a></p><p>As always, I can’t leave you without a great gif or meme. Here is what I sometimes feel like (and probably look like) at The Iron Yard:</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=3e82fc44844f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[2nd Week at The Iron Yard — Let make this look good on mobile!]]></title>
            <link>https://medium.com/@alex.montgomery/2nd-week-at-the-iron-yard-let-make-this-look-good-on-mobile-6aacb33ea7d3?source=rss-93f262161b7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/6aacb33ea7d3</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[the-iron-yard]]></category>
            <category><![CDATA[houston]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Alex Montgomery]]></dc:creator>
            <pubDate>Tue, 13 Jun 2017 14:03:22 GMT</pubDate>
            <atom:updated>2017-06-13T14:03:22.905Z</atom:updated>
            <content:encoded><![CDATA[<p>The second week at The Iron Yard (Week 1, if you’re counting along from 0) was a deeper dive into HTML &amp; CSS. We also focused on some broader skills and tools that developers use. Let’s break it down.</p><h3>Mobile Responsiveness</h3><p>Let’s be honest with ourselves here. Fewer and fewer people are viewing websites on a desktop or a laptop everyday. According to the web analytics firm StatCounter, around mid 2016 is when mobile &amp; tablet devices overtook desktops in terms of page view count.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*chz01ffVYru0IpYfYcYxwA.png" /></figure><p>What does that mean? That means that if you build a website, more people are going to view it on a mobile/tablet device, than are going to view it on a desktop. We also see no evidence that this trend is going to stop. That is why websites in 2017 are designed to be viewed on mobile devices and built to be “responsive” to desktops/laptops.</p><p>Building a website that is responsive to different screen sizes (usually detected by the pixel width) involves add responsive controls to the CSS. The HTML itself is likely no different, but the styling of the page is changed. As a developer, it is critical to keep this in mind throughout the entire design process. Based on the styling you use, you can reduce the code required significantly if you plan ahead for mobile responsiveness. Instead of setting your fonts by pixel count, consider using a % or ‘em’. Instead of using inline-block, maybe flex-box display is the better option. Below is an example of a project where the site page is displayed differently in mobile (left), tablet (right), or desktop (bottom) view.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gydS3JjgC20czMo92K28cQ.png" /><figcaption>The layout has to be adjusted so that it is displayed properly for the device it is being viewed with.</figcaption></figure><p>Responsive design is a concept whose importance cannot be overstated in 2017. For the average site, the rule is usually: Design for mobile, respond to desktop.</p><h3>Dev Tools are a developer’s best friend</h3><p>Development tools are available in almost every browser today. These allow you to inspect and modify the code being used by the website in real-time. This means that for any website that you are viewing, you can open the developer tools and inspect the code that supports the site and ADJUST it in real time. I will give you an example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dIuYUpiQzWN0hho8-j--sw.png" /><figcaption>I won the Internet!!</figcaption></figure><p>Look, I finally made it to the front page of the Drudge Report! No, that was not done with Photoshop. I did that by editing the HTML in the Dev Tools of Google Chrome. Of course, nobody else saw that because it was singular to my browser. For a developer though, being able to adjust properties in the browser and see their immediate effects is an invaluable tool. Also, the fact that I have the access to see how any website is laid out and designed is pretty incredible. It is like being able to look at any other team’s playbook at any moment. Just fascinating!</p><h3>Git &amp; Version Control</h3><p>Version control. Topics like this are why I chose to attend a coding bootcamp. How to formulate code and write programs are things that can be self-taught. Sure they take time, but if you want to be a coder, you know that you need to learn how to code. Version control, on the other hand is a topic that a self-taught programmer might not be very familiar with. They might not understand how important it is to a company looking to hire a developer that you fully grasp the concept of version control. This is how The Iron Yard creates well-rounded developers that are versed in all of the traits companies are looking for.</p><p>Git is the most popular version control system in the industry. It allows teams to collaborate, share and maintain code. It is critical to have strict version control so that code does not overlap or duplicate. After a bit of time, I had a pretty solid grasp of Git and version control in general. Obviously there is more to learn, but I am comfortable with it now. Speaking of Git and version control, now is a great time to plug my GitHub account. This is where I will be posting the code for all of the projects that I develop from this point forward. Feel free to pop in anytime and see what I have created:</p><p><a href="https://github.com/alexhmontgomery">alexhmontgomery (Alex Montgomery)</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7a71GbgIGELxkYil_uX7hg.png" /></figure><h3>Agile Development — What is this ‘scrum’ you speak of?</h3><p>The last unique topic we covered in the 2nd week at TIY was agile development. If you don’t work at a software development company or in the tech industry, you might think this is some sort of coding term. Actually, it isn’t. Agile development is just the term for the way most software and development teams are managed. It is quickly becoming the industry standard these days.</p><p>There are really two schools of thought for software development management: 1) Waterfall 2) Agile Development. Agile development is quickly phasing out the waterfall approach. It involves sprint reviews, scrums, team velocities, testing, and even the Fibonacci sequence in a way. Many in the industry feel that agile development is more efficient, faster, provides continuous visibility of the product, and even reduces risk. If you are interested in learning more about this method, you should absolutely spend some time researching it.</p><h3>Week One Project — Film Club</h3><p>Similarly to our first weekend project, we were provided with mock-ups of 3 pages and asked to write the HTML/CSS for the site. This fictional site is for a film club that gets together to watch and discuss classic movies. The goals of this project were to create pages that were responsive to a desktop, tablet, and mobile environment. Personally, I used the flex-box display quite persistently to accomplish this. Flex-box is such a useful tool for spacing in the responsive design environment. As I stated earlier, because of the current state of the industry, the CSS was written for a mobile environment and designed to be responsive to a tablet and desktop. Always design for the device the user is most likely to view from. Let’s take a look at the pages and some of the code:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xSuARQPmE8yp_Gf09HevjQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iO325bhQAvQuAhaGESRhnw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2jARk6vNJhxIMVGsVHxqAw.png" /><figcaption>The Home Page laid out showing the variations in the displays. Mobile (Left — side by side). Tablet (Middle — side by side). Desktop (Right — top and bottom)</figcaption></figure><p>Obviously, it’s difficult to properly display screenshots of a page that is meant for scrolling, but you get the idea. The content itself does not change between viewing platforms, but the layout and sizes adjust. The navigation bars were actually surprising difficult to get to a point where I felt good about them. These required quite a bit of tinkering. It really made me appreciate a beautifully laid out ‘nav bar’. <br>Do you want to see some of the code? I’ve got you covered friend:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d-eYiJdcC_DLZJcSXtUfBQ.png" /><figcaption>The HTML &amp; CSS for the Home Page</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tDOMmAQYrhzjCTY2uqkl7g.png" /><figcaption>More HTML &amp; CSS for the Home Page.</figcaption></figure><p>As you can see, I did not lie about my preference for flex-box display. You can also tell how much tinkering with the padding and margins was required. Margins and padding are so much about using the “guess and test” theory. You really just have to see what works because each page will be different. I also leaned on the ‘rem’ font-size unit because of its assistance in responsive design.</p><p>To see a live view of the Film Club site (regardless of your device) check it out here:</p><p><a href="https://alexhmontgomery.github.io/FilmClub/">Film Club</a></p><p>If you want to dive deeper into the code, feel free to check this project out on my GitHub page:</p><p><a href="https://github.com/alexhmontgomery/FilmClub">alexhmontgomery/FilmClub</a></p><p>It looks like that wraps up the summary from the second week at TIY. Stay tuned for more updates!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/339/1*zvZYrWNL6uHujZ-K8ZgyPQ.jpeg" /><figcaption>That is CSS for “Things aren’t always black and white.”</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6aacb33ea7d3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Week 0 at The Iron Yard. Website = HTML + CSS]]></title>
            <link>https://medium.com/@alex.montgomery/week-0-at-the-iron-yard-website-html-css-510d407537f3?source=rss-93f262161b7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/510d407537f3</guid>
            <category><![CDATA[houston]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[the-iron-yard]]></category>
            <dc:creator><![CDATA[Alex Montgomery]]></dc:creator>
            <pubDate>Mon, 12 Jun 2017 04:51:30 GMT</pubDate>
            <atom:updated>2017-06-12T20:42:11.486Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Since I decided to start this blog 3 weeks into my journey at The Iron Yard, I will be writing a blog summarizing each of the first 3 weeks to catch you up to where we are now.</em></p><p>As I mentioned previously, my whole life has shifted. I no longer count from 1. I start at 0, because that is what the computer I am talking to every day understands. Week Zero at TIY was a head-first dive into the following:</p><ul><li>Navigating the Terminal</li><li>HTML (HyperText Markup Language)</li><li>CSS (Cascading Style Sheets)</li></ul><h3>The Terminal</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b6U8-1_Se3sXfrGbs8VN3w.png" /></figure><p>Any real developer works primarily from the CLI (command line interface). At this point, the GUI (graphical user interface) is for noobs, in my opinion.</p><p>Monday was primarily devoted to getting comfortable in the terminal and using the CLI. The CLI is the cat’s pajamas. For the last 3 weeks, if I could “cd”, “mkdir”, or “ls” it, I did it. Working in the terminal allows you to control the computer at a base level. But be careful! Because you can also “rm -rf” something, and there is no “undo” for that.</p><p>For my terminal, I set the preferences to the black background with the green font. This gives me a classic MS-DOS feel. Am I an expert in the terminal yet? No. Do non-developers/non-programmers think that I am when they see me using it? Probably.</p><h3>HTML</h3><p>The next two days were spent learning how to build the skeleton of any website using HTML. I was surprised at how easy HTML was to pick-up. The commands are quite straightforward and simple to grasp. It is all about structuring your webpage. The key to HTML is thinking ahead and giving yourself options. It‘s’ about determining what to put in a Div and how you are going to reference each tag. Does it need to share a Class? Will it require its own individual ID? This is why “wireframing” it such an important concept.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/539/1*ckv7lfepoxv12D8mbicZag.gif" /></figure><p>If I can provide advice to anyone preparing to lay down their HTML code, it’s to wireframe it first. Wireframing is like writing down your outline before you write a 20-page paper. Organize your ideas and you will make your life much easier. Instead of re-writing your HTML, you can just write it once with a bit of time spent wireframing.</p><p>HTML is like framing out a house. Sure, you can’t see what the wall colors are going to be or what the tile in the kitchen is going to look like when you finish framing. But what you can see is where the bathroom will be. You get an idea of how the house is going to flow when you walk through it. If you start off with a poorly framed house, you are going to be fighting an uphill battle throughout the rest of the build.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OhxLq_9Biboi0OMyMXpTYA.png" /></figure><p>This was the result of the first code that I wrote at The Iron Yard.</p><p>Is it sexy? No. It is the first step though. Crawl → Walk → Run → Win the Boston Marathon. That’s how it goes. So, this is me crawling.</p><h3>CSS (Cascading Style Sheets)</h3><p>The last half of the first week was spent getting our feet wet in CSS. This is how style is added to the HTML that has been written. CSS is a bit more difficult to get a grasp of than HTML. This is simply due to the fact that there are so many things you can do in CSS. This is where all of your display options come into play. Do you want everything to appear in a row across the screen? Do you want your information to appear vertically? What colors would you like to use? What fonts would you like to apply?</p><p>CSS is tricky on several levels. First, there are so many different options for every aspect.</p><blockquote>Oh, you’re trying to decide on the font size of the section titles. How about setting the font size to <em>12 point</em>? Wait go with <em>16 pixels</em> instead. Actually, <em>1em</em> will look better. Scratch that, set the font to <em>100%</em>. Just go with <em>font-size: Medium</em> and be done with it. Oh, those all make the font the same size on the current display?</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*J5CStKcTBasdU1Ouk4AYsQ.jpeg" /></figure><p>Now, you can see some of the headaches with CSS. Another frustrating aspect of CSS that most people struggle with is the interdependency of everything. Every change that you make affects something else. Every margin you increase pushes something else down the page. Every line you adjust throws off that line below it that you just spent 30 minutes adjusting until it was perfect.</p><p>Any developer that has allowed CSS to consume hours of their life tweaking details that in the end they are not sure will even make a difference can appreciate the picture above.</p><h3>Weekend Project — Bent Creek Ceramics page</h3><p>Every Thursday, we are assigned a project that encompasses the previous week’s lessons. This is the chance to show off everything we learned. Or expose and highlight our weaknesses? Let’s hope it is usually the former. Project #1 was the Bent Creek Ceramics site. We were handed mock-ups of 3 static pages for a fictional ceramics company’s website. Our job was to write the HTML and CSS for these 3 pages.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*ElJk0fC7xx2XwWt8uwXB6Q.jpeg" /></figure><p>If I’m being completely honest, I loved doing this first project. I had a hoot of a time. I finally had something to show my wife, my friends, and my family. I had proof that I could actually create something tangible.</p><p>On top of that, I felt really good about the work I had done. What I created actually looked professional. I hadn’t felt this way about the work I was doing in oil and gas much in the past 2 years, which made it that much more refreshing. I was hooked. At the end of Week Zero, there was no doubt in my mind that I had made the right decision. I’m going to be just fine doing this developer thing.</p><p>For each project, I will post some screenshots below and a link to a GitHub of the project:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vgq1xCz0Im8slk5GznJVnA.png" /><figcaption>Home Page</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4B3erRQAfcCiWM5lkUgepg.png" /><figcaption>About Page</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pitfYKDFkqc0XtkKZB-2Jw.png" /><figcaption>Newsletter Page</figcaption></figure><p><a href="https://github.com/alexhmontgomery/BentCreekCeramics">https://github.com/alexhmontgomery/BentCreekCeramics</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=510d407537f3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Counting from 0.]]></title>
            <link>https://medium.com/@alex.montgomery/counting-from-0-9fe6ef54c37?source=rss-93f262161b7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/9fe6ef54c37</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[the-iron-yard]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[houston]]></category>
            <dc:creator><![CDATA[Alex Montgomery]]></dc:creator>
            <pubDate>Sun, 11 Jun 2017 23:55:24 GMT</pubDate>
            <atom:updated>2017-06-11T23:55:24.651Z</atom:updated>
            <content:encoded><![CDATA[<p>May 8, 2017 was the day I turned in my 2 week notice of resignation to the small oil &amp; gas operator I had been working at for the previous 2 years. I guess you could say that was when my career as a developer/coder/programmer officially began, because that was day I put all of my chips in the middle of the table. We can call that Day Zero. Previously, I would have referred to it as Day One, but not anymore. Now I count from zero.</p><h3>Let’s just briefly review how I got to this point. Here are some highlights:</h3><ul><li>August 1985: Born</li><li>January 1997: Green Bay Packers won their first Super Bowl in my lifetime</li><li>September 2008: Met the beautiful woman in a golf class that I would eventually marry</li><li>May 2009: Graduated from Texas A&amp;M University with a B.S. in Petroleum Engineering. Moved to Houston and began my career as an “oilman”</li><li>February 2011: Green Bay Packers won their second Super Bowl in my lifetime</li><li>April 2013: Broke my ankle trying to ride a skateboard on a half pipe. Have not been on a skateboard (or backyard built half-pipe) since</li><li>September 2013: Married that pretty woman from golf class</li><li>February 2017: Found out that pretty woman from golf class was pregnant with our first child</li><li>May 2017: Officially registered to attend The Iron Yard coding bootcamp in Houston, TX and resigned from my position as an Operations Engineer at an oil and gas company.</li><li>May 22, 2017: Day Zero of The Iron Yard</li></ul><h3>Now, let’s answer some questions:</h3><p><strong><em>Why are you doing all of this, Alex?</em></strong></p><p>I have spent the first 8 years of my “adult life” as a petroleum engineer. Oil and gas has been good to me. It has taken me all over the world <em>(Brazil, Trinidad &amp; Tobago, Malaysia, offshore platforms in the middle of the Gulf of Mexico)</em>. It provided my wife and I with the finances to buy a fantastic house in the Oak Forest neighborhood of Houston. I’ve met and worked with fascinating and amazing people. Eventually though, I realized that I was being called to do something else with my life. I started exploring other career options. Time and time again, I kept coming back to the idea of coding and web/software development. I loved the logic and challenge of coding.</p><p>There is a great quote that says <em>“It’s not the things you do and fail at that you will regret. It’s the things that you never do that you will truly regret.”</em> With a baby girl on the way, I’ve been thinking more and more about the lessons I want to teach her. This is right up there in the top ten. Why can’t I start over? Why can’t I begin a whole new career right now? Maybe it is best summed up by the advice Brad Pitt is giving his child in the movie Benjamin Button:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/912/1*shDeXpBEaAUABtPEWPYkRw.png" /></figure><p>Will I be successful in my journey to become a developer? I sure think so. Will I regret giving it a shot? Absolutely not.</p><p><strong><em>What is The Iron Yard and why did you choose to attend?</em></strong></p><p>The Iron Yard is a coding bootcamp located in the quirky Montrose neighborhood of Houston, TX. I am enrolled in the 12 week Front and Back End Web Developer course.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*Ybsyvu2dYwWm35JqVpV1mA.png" /></figure><p>After <em>many hours</em> of research (and probably as many conversations with my wife), I decided that The Iron Yard was the best fit for me. The Iron Yard has an outstanding reputation in the industry of training and providing developers with the base of knowledge and a portfolio to begin a career in the web and software development industry. Their goal is not to teach you how to code in a specific language. Their goal is to teach each student how to think like a developer and give them the skills to teach themselves any programming language that they need to learn. That is what drew me to TIY. They aren’t just cranking out Ruby developers or Front End Developers. They are training students how to learn and how to think like developers. I am convinced that when I complete my training at The Iron Yard, I will have the skill set and knowledge that a company looking for junior developer will be willing to take a chance on. If you are considering attending a coding bootcamp, go check out The Iron Yard: <a href="https://www.theironyard.com/">https://www.theironyard.com/</a></p><p><strong><em>What is this blog going to be about?</em></strong></p><p>In this blog, you are going to get a front seat ride along my journey through the coding bootcamp at The Iron Yard (and afterwards). You are going to see things through the eyes of a brand new developer. You are going to see me question what I know about the world of programming. You are probably going to see me get overwhelmed. And then you are going to watch me come out of it and celebrate my amazing achievements. Hopefully, you will be entertained with some super sweet gifs and memes along the way. With that being said, I will preview the two future states of this blog with one of my favorite programming memes:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/1*601KknNPXAsbJDFt_orF3g.jpeg" /></figure><p>Let’s ride!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9fe6ef54c37" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>