<?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 Scott Brabson on Medium]]></title>
        <description><![CDATA[Stories by Scott Brabson on Medium]]></description>
        <link>https://medium.com/@scott-brabson?source=rss-e89f1c93b4de------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*AZC8pC6LQ61Q82MbC7HuZQ.jpeg</url>
            <title>Stories by Scott Brabson on Medium</title>
            <link>https://medium.com/@scott-brabson?source=rss-e89f1c93b4de------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 11:55:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@scott-brabson/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[“Houston, we’ve got a prob…we’ve got a *learning opportunity”]]></title>
            <link>https://scott-brabson.medium.com/houston-weve-got-a-prob-we-ve-got-a-learning-opportunity-cb16f6805b12?source=rss-e89f1c93b4de------2</link>
            <guid isPermaLink="false">https://medium.com/p/cb16f6805b12</guid>
            <dc:creator><![CDATA[Scott Brabson]]></dc:creator>
            <pubDate>Tue, 16 Mar 2021 21:55:59 GMT</pubDate>
            <atom:updated>2021-03-16T22:07:25.024Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a856QsaLWnW5QKRpQbUcZA.jpeg" /><figcaption>The classic Stem Gem (v4) in Joshua Tree</figcaption></figure><p>If you haven’t tried climbing, it’s amazing, it’s freeing, it makes you strong physically and mentally…it is also <em>profoundly difficult</em> to improve beyond average.</p><p>There are a few types of climbing, bouldering being my favorite. Bouldering is essentially reducing a longer traditional roped climb down to its hardest and most technical parts. No rope, no chalk bag, just your shoes and you.</p><p>In bouldering, the specific climb you’re working on is called a <em>problem. </em>You’ll see people go mad trying to solve their own, driving their bodies back up the wall, only to approach the problem in the <em>same way</em> with little rest or thought in between. As you can imagine with such an approach, expletives will be let loose, excuses will be made, a chalk bag thrown, the weather blamed, so on and so forth with no real lessons learned other than to not try that again for fear of embarrassment.</p><p>A recent discussion on LinkedIn touched on coders coping behaviors when stuck in debugging hell, which reminded me of some parallels on the wall. Having spent the last seven months in a front end developer bootcamp for 80+ hours a week, I saw and sometimes participated in the parade of outward anger, self-hate and defeatism. Problems was life.</p><p>There are more than enough posts on the concept of ‘failure’, and how it’d behoove us to reframe its traditional understanding (in other words, *use* failure to your advantage, learn from it) — so I won’t go into that. I will talk about problems though.</p><h3>Perhaps a problem is a special little thing, just for you, tailor made to examine your own weaknesses. No wonder it can make us rage.</h3><p>What is a <em>problem</em>, even? What makes it, <em>a problem</em>? Is a problem universal? Is my problem also a problem to you or vice versa? Hmm. See what’s happening? What if a problem is an illusion, or contextual — only taking shape in the eyes of the beholder?</p><p>If that’s the case, well, there is no ‘winning’ a problem — there is no ‘pinnacle’ moment. A problem presents one with potential learning. A problem is a puzzle blocking the way to a reward, and that reward being the act of learning by solving that puzzle. Oh life, so curious.</p><p>When someone screams at an inanimate climbing wall — what learning was missed? When a developer pounds their precious mechanical keyboard into smithereens because of some unresolved bug —what learning was missed? It seems like there is a more glaring <em>problem </em>in these common scenarios.</p><p>In the effort to turn our heads away from our own perceived failures, problems of their own sort I suppose, we fail to derive any learning from the problem at hand — which in my opinion is why the problem exists. In that, where nothing was learned or improved on, where we refused to accept the challenge inherent in betterment, there is a loss.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6fCCQl322RP7GJSzQ0BN7Q.jpeg" /><figcaption>Relentlessly crushed by this difficult problem in Joshua Tree — I’ll be back (Pigpen v4)</figcaption></figure><p>After 6 years of climbing, you better believe I’ve encountered innumerable problems that have stumped me harder than a lvl 3 CodeWars RegEx + 2d matrix kata (luckily katas don’t demand blood and sweat). Some I’ve solved, some I’ve let go, some I keep coming back to. Sometimes I fall off easy things, sometimes I forget a { or a ), even after all this time. But those instances are like old, wise-cracking friends who like to point out my silliest parts (<em>really? that 2 hour bug hunt was because you forgot </em><em>{} !== false?</em>).</p><p>One must read the rock, to try and understand what it’s telling you. If the hold is pointed in a strange way, how do I orient my body to make use of it, what do I need to remember to do at the critical moment(s)? Analogously, read the error message, read the code, step through it in your mind and understand it, draw on what you know and extrapolate what you do know to what you don’t, seek guidance. Ignoring these important lessons in between climbing attempts or unit tests will quickly lead to the same place regardless of profession — that plateau of eternal mediocrity, or maybe less.</p><p>The greatest leaps in improvement on the wall or coding for me have occurred by carefully examining how the problem in front of me is stopping me, letting it show me what I didn’t know and humbly accepting the facts, and using that new knowledge to implement changes even if that means being a beginner again.</p><p>After all, playing a video game on god mode for more than a minute or two is pretty god damn boring.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cb16f6805b12" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[devStudent.arrayIterators]]></title>
            <link>https://scott-brabson.medium.com/devstudent-arrayiterators-c0831af80d09?source=rss-e89f1c93b4de------2</link>
            <guid isPermaLink="false">https://medium.com/p/c0831af80d09</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[for-loop]]></category>
            <category><![CDATA[array-methods]]></category>
            <category><![CDATA[foreach]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Scott Brabson]]></dc:creator>
            <pubDate>Tue, 17 Nov 2020 02:26:23 GMT</pubDate>
            <atom:updated>2021-05-02T22:31:28.749Z</atom:updated>
            <content:encoded><![CDATA[<h3>Let’s learn about array iterators</h3><h3>Easing you into what lies beyond a `For Loop`</h3><p>For was nice while it lasted, but it’s about time that i = 0 and we move on and learn something new. Let me introduce you to its buddy and your first foray into big kid iteration, .forEach().</p><p>I could show you what MDN says, but I imagine you’re here because you’d rather not. That being the case, I’m also going to steer away from using ESMAScript6 and my favorite thicc boi arrows () =&gt; in lieu of the more familiar function().</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*Y5xarSONSiLNm20NsqmEVw.png" /></figure><h3>Side by Side: for &amp; forEach</h3><p>Let’s have a look back at a forloop. Below is one of those iterating through an array of very suspect string values:</p><pre>var noises = [&#39;toot&#39;, &#39;ssss&#39;, &#39;womp&#39;, &#39;shblirt&#39;]</pre><pre>for (i = 0; i &lt; noises.length; i++) {</pre><pre>  console.log(noises[i])</pre><pre>}</pre><pre>// output: <br>// toot<br>// ssss<br>// womp<br>// shblirt</pre><p>Not too hard. A bit of extra writing every time you’d like to iterate. It gets the job done. But busting out a for loopin a competitive tech scene is like rolling up to the Indy 500 in your Tonka truck. It’s cute, it got you there, but you’re a kid and the crowd is getting ripped on Montucky Cold Snacks, so you gotta go.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/777/1*NKEfOVyx7lwaG_kP8_4pfA.jpeg" /></figure><p>OK. So back to the drawing board. We’ve got a new method:</p><pre>var noises = [&#39;toots&#39;, &#39;ssssts&#39;, &#39;womps&#39;, &#39;shblirts&#39;]</pre><pre>noises<strong>.forEach</strong>(function(noises) {</pre><pre>  console.log(noises)</pre><pre>})</pre><pre>// output: <br>// toots<br>// ssssts<br>// womps<br>// shblirts</pre><p>So a couple things are happening. Let’s start with how the .forEach() method was called. It’s important to know that an array is an object, and in fact it is an object that has its own methods. If you don’t know, a method is essentially a function that belongs to an object…more or less. If you don’t know what an object is inside of JS, well…maybe revisit this article once you do.</p><p>When you use .pop(), .push(), you are essentially calling a method of the array object — just like when we call .forEach(). So, the syntax for calling the .forEach() method is the same as calling any of those other, more familiar methods.</p><h3>Ain’t no call-uh-back gurrrrl</h3><p>You’ll hear the word ‘<a href="https://developer.mozilla.org/en-US/docs/Glossary/Callback_function"><strong>callback function</strong></a>’ thrown around a lot. For all intensive purposes, a callback function is a function passed into another function as an argument — that callback function is executed inside of the outer function as part of the outer function’s script…WAT?</p><p>Yea, sorry about that.</p><p>So, above, the callback function is the nameless (anonymous) function just inside of the .forEach( ), below denoted with a <strong>$$</strong>callback function<strong>$$</strong>:</p><pre>var noises = [&#39;toots&#39;, &#39;ssssts&#39;, &#39;womps&#39;, &#39;shblirts&#39;]</pre><pre>noises.forEach(<strong>$$</strong> <strong>function(</strong>noises<strong>) {</strong></pre><pre><strong>  console.log(</strong>noises<strong>)</strong></pre><pre><strong>}$$</strong> )</pre><p>Bear with me. To illustrate what’s happening, the same thing can be accomplished, albeit more stupidly in this example, with a named function. Here we define noiseIterator(), the function to be used as the callback inside of the .forEach(). It does the same exact thing as the anonymous callback function above, only we’ve named and defined it outside of the .forEach():</p><pre>var noises = [&#39;toots&#39;, &#39;ssssts&#39;, &#39;womps&#39;, &#39;shblirts&#39;]</pre><pre><strong>function noiseIterator(argument) {</strong></pre><pre><strong>    console.log(argument)<br>}</strong></pre><pre>noises.forEach(<strong>noiseIterator</strong>) // there are <strong>no parenthesis</strong> - that would <br>                            // cause the function be called <br>                            // the moment that the script loads</pre><pre>// <strong>output</strong>: <br>// toots<br>// ssssts<br>// womps<br>// shblirts</pre><p>Same as before. The .forEach() is the array iterator method. We pass in the argument noiseIterator as the callback function. The callback function executes on each element, each noise, inside of the array and logs it to the console.</p><p>Whew. OK. Callbacks. Got it.</p><h3>GREAT. What’s with the variable being called whatever it wants???</h3><p>So now that we better understand what’s happening with that callback function, let’s look at the variable we’re passing into that callback function as an argument.</p><p>Inside of that anonymous callback function, we are passing in the argument noise, which is going to be a single element inside of our noises array. Inside of that anonymous callback function, for each noise within the noises array, we want to console.log() each noise.</p><p>But wait — does the AI hive mind somehow know that we are iterating over an array of noises? It somehow knows that the singular of noises is noise? What’s going on here?</p><p>No. noise is a label, it is an ephemeral variable title that represents a singular element inside of the array of elements upon which you are calling the .forEach() method. You could use any word you’d like in its place — though best practice is using something that makes sense. For example:</p><pre>var nums = [1, 2, 3, 4, 5]</pre><pre>nums.forEach(function(number) {</pre><pre>    console.log(number)<br>})</pre><pre>// Output: <br>// 1<br>// 2<br>// 3<br>// 4<br>// 5</pre><p>This could also be written as:</p><pre>var nums = [1, 2, 3, 4, 5]</pre><pre>nums.forEach(function(<strong>banana</strong>) {</pre><pre>console.log(<strong>banana</strong>)<br>})</pre><pre>// Output:<br>// 1<br>// 2<br>// 3<br>// 4<br>// 5</pre><p>Make sense?</p><h3>Alright. Making sense. What about i though? I need i.</h3><p>OK. OK, I get it. Quicker. More readable. But, what about i? I like i , I need it. What if I need the index of the given array element?</p><p><em>You think </em><em>i’d lead you astray??</em></p><p>We have access to i, and much more easily. Inside of the callback function, add a comma and then whatever you’d like to denote the index of the given array element — below we use i, because that makes sense, and interpolate it with whatever the value of the current noise is:</p><pre>var noises = [&#39;toot&#39;, &#39;ssss&#39;, &#39;womp&#39;, &#39;shblirt&#39;]</pre><pre>noises.forEach(function(noise, <strong>i</strong>) {</pre><pre>    console.log(`${<strong>i</strong>} ${noise}`)</pre><pre>})</pre><pre>// output: <br>// 0 toots<br>// 1 ssssts<br>// 2 womps<br>// 3 shblirts</pre><p>COOL!</p><p><strong>BONUS: </strong>Here’s one more trick. Let’s say you’re iterating over an array using .forEach(), but in order to get that array you needed to first .split(), then .slice(). Instead of declaring a new variable, you can reference that array by adding one more argument to that callback function, below as artArray:</p><pre>var farts = &#39;farts&#39;<br><strong>farts.split(&#39;&#39;).slice(1, 4)</strong>   // this would output [&#39;a&#39;,&#39;r&#39;,&#39;t&#39;]</pre><pre><strong>farts.split(&#39;&#39;).slice(1, 4)</strong>.forEach(function(letter, i, <strong>artArray</strong>) {</pre><pre>    console.log(<strong>artArray</strong>)   // will log [&#39;a&#39;,&#39;r&#39;,&#39;t&#39;] three times<br>})</pre><p>See, there’s magic in there. Alright, almost done. Last point.</p><h3>Like our bachelor’s degrees, .forEach() will always return NOTHING (undefined)</h3><p>OK, so remember this, <strong>.forEach() always. returns. </strong><strong>undefined. </strong>If you’re setting a variable equal to the value returned from a .forEach(), then that variable will have a value similar to your pocketbook after completing your four year bachelor’s of arts — that is nothing (speaking from experience).</p><p>Let’s have a look back at that for loop, which yes has its place…:</p><pre>var noises = [&#39;toots&#39;, &#39;ssssts&#39;, &#39;womps&#39;, &#39;shblirts&#39;]</pre><pre>for (i = 0; i &lt; noises.length; i++) {</pre><pre>  console.log(noises[i])</pre><pre>}</pre><pre>// output:<br>// toots<br>// ssssts<br>// womps<br>// shblirts</pre><p>Now, if I were trying to return a value from this for loop with the following:</p><pre>var noises = [&#39;toots&#39;, &#39;ssssts&#39;, &#39;womps&#39;, &#39;shblirts&#39;]</pre><pre>for (i = 0; i &lt; noises.length; i++) {</pre><pre>  return noises[i]<br>}</pre><pre>//output: <strong>ERROR MO FO!!!</strong></pre><p>I would get nothing save for the disappointed glares of my peers and of the ghosts of disappointment that fuel my ceaseless drive for self-betterment. Console would yell at you. Unfortunately, console does not make such an explicit point when trying to do the same thing with a .forEach():</p><pre>var noises = [&#39;toots&#39;, &#39;ssssts&#39;, &#39;womps&#39;, &#39;shblirts&#39;]</pre><pre><strong>var sounds</strong> = noises.forEach(function(noise) {</pre><pre>    return noise        <br>})</pre><pre>console.log(<strong>sounds</strong>) // output: <strong>undefined</strong></pre><p>sounds is undefined…why? Because like a for loop, .forEach() will <em>always</em> return undefined. So why use a .forEach()? Because like a for loop, you can do all sorts of things with each ‘round’ of iteration inside of the iterator:</p><pre>var noises = [&#39;toots&#39;, &#39;ssssts&#39;, &#39;womps&#39;, &#39;shblirts&#39;]</pre><pre><strong>var bestNoises = []</strong> // we simply declare that bestNoises is an empty array</pre><pre>noises.forEach(function(noise) {</pre><pre>    if (noise.length &gt; 5) {    // if current element.length &gt; 4 chars</pre><pre><strong>        bestNoises.</strong>push(noise)  // then do this<br>    }       <br>})</pre><pre>console.log(<strong>bestNoises</strong>) // output: [&#39;sssts&#39;, &#39;shblirts&#39;]</pre><p>Ahhh, so .forEach() is a tool to do <em>something</em> to other things, but <strong>not to return a single new value, or any value, ever, because it will always return undefined.</strong></p><h3>The End.</h3><p>So there you go. What benefits are offered by .forEach()?</p><ul><li>Easier to write than a for loop</li><li>i is implied for each element, though it can be accessed</li><li>Will get you into the Indy500</li><li>Is a great introduction to other array iterator methods</li></ul><p>Get out there and show ‘em who’s boss. I’ll be back soon with more on array iterator methods. If you liked this or found it helpful, please let me know!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c0831af80d09" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[So you wanna go to software development bootcamp…]]></title>
            <link>https://scott-brabson.medium.com/so-you-wanna-go-to-software-development-bootcamp-cd4efd46cb46?source=rss-e89f1c93b4de------2</link>
            <guid isPermaLink="false">https://medium.com/p/cd4efd46cb46</guid>
            <category><![CDATA[developer-stories]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[full-stack]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[students]]></category>
            <dc:creator><![CDATA[Scott Brabson]]></dc:creator>
            <pubDate>Mon, 16 Nov 2020 21:44:02 GMT</pubDate>
            <atom:updated>2020-11-17T03:02:12.226Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*Y5xarSONSiLNm20NsqmEVw.png" /></figure><p>Front end or back end, let me be the first to offer both congratulations and condolences.</p><p>Surely, there has been no shortage to the good people who, for better or for worse, have informed you of how difficult your developer education will be. I will add to that. It will be difficult, and depending on where you attend, perhaps the most difficult educational experience you’ve experienced to date.</p><p>You will have days where you feel as if you’re a god. You will have days where you realize that, if indeed I am a god, then surely my domain is meager, and ultimately the property of a greater god who has thusly created me, and perhaps without much thought.</p><p>But how hard is it <em>really?</em></p><p>I have just passed the halfway point in my Front End education at <a href="https://turing.io/">Turing School</a>. It is as difficult as it is prestigious in the tech world — it’s one of the top, if not the top, schools to attend in 2020. It’s no exaggeration to say that 80 hour weeks while class is in session is the norm, at least for the mere mortals.</p><p>You will quickly make the pivot from finding time in your calendar to study, to finding time in your calendar to brush your teeth. Forget about hobbies, those aren’t things anymore. Get in your final goodbyes with your loved ones — tell them to send reasonably nutritious, microwavable food, and bottles of vitamin D.</p><p>But if you put in the work, if you look the hard thing in its face, the demands are as edifying to meet as they are rigorous to complete — the hard becomes fun. If you can imagine it, you can make it. Literally, any app, any interaction, you can make it, it’s a matter of figuring out how.</p><p>Buuuut starting out can make such wonderful feats seem pretty far off and pretty abstract. You’ve gotta put in your time, but that being said, there is joy to be had along the way. When things start clicking. When looking at a screen of code begins inducing less anxiety, or whatever emotional extension of imposter syndrome that’d normally arise. Where you see someone refactor your code into something that makes you exclaim, somewhat embarrassingly, <em>whoa, nice!</em> Where the magic of speaking a language that has no choice but to build as it’s spoken reveals itself— that’s the good stuff. And you’ll get that in week one.</p><p>And that’s where being in a cohort of equally-deteriorating peers is a huge boon (Turing is a cohort based learning program spanning four modules, or about 7 months). You can bounce ideas off of each other, share in your stoke and in your blahs, commiserate, late night whisky refactoring nights, late night refactoring of your late night whisky refactoring nights. Your mom, your gf/bf, they love you, but try as they might, there is no interest, or any vague idea of the details of what you&#39;re doing. My gf will never understand the joy of finally understanding that this is a functionally scoped keyword. <em>Sorry babe, I love you, but IDGAF…and have you been gaining weight?</em></p><p>Whatever. And also yes.</p><p>Here’s the thing with programming. It’s <em>beautiful</em>. And I’m not trying to be dramatic. It’s attainable and consistently challenging, and it scales with your learning. It will take any and all of the hard work you give it and reward you in kind. It will take your laziness and haunt you. It will hack your brain into thinking with logic, breaking down not only code, but human behavior, climbing, cooking, sex, exercise, the way dogs behave, the weather, the cosmos, the nature of reality — all into their constituent parts. It will leave you asking more questions about life than you realized you had, and betroth you the tools with which to explore those questions. And we can all use another tool to scratch that universally persistent ontological itch.</p><p>Maybe that’s a bit grandiose, a bit naive, but I’m sure a fair bit accurate.</p><p>Next time I plan to dive a bit more into why one might elect to choose a directed course at a place like Turing rather than self-directed course. Or maybe something else altogether.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cd4efd46cb46" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>