<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Terrance Corley</title>
    <description>The latest articles on DEV Community by Terrance Corley (@terrancecorley).</description>
    <link>https://dev.to/terrancecorley</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F98399%2Fcea0033f-0312-472f-8f7f-7f3632a448f2.jpeg</url>
      <title>DEV Community: Terrance Corley</title>
      <link>https://dev.to/terrancecorley</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/terrancecorley"/>
    <language>en</language>
    <item>
      <title>How I Got Into Tech</title>
      <dc:creator>Terrance Corley</dc:creator>
      <pubDate>Sat, 22 Feb 2020 17:11:44 +0000</pubDate>
      <link>https://dev.to/terrancecorley/how-i-got-into-tech-58il</link>
      <guid>https://dev.to/terrancecorley/how-i-got-into-tech-58il</guid>
      <description>&lt;p&gt;Hi everyone!&lt;/p&gt;

&lt;p&gt;Today I uploaded a video talking about how I got into tech. My main goal with this video was to show that if a degree-less, uncertain, unfocused, mid-twenty-year-old can figure things out and carve a path into tech, you can too. As long as you're genuinely curious and put in the work, I have no doubts you can get your foot in the door. &lt;/p&gt;

&lt;p&gt;I hope you enjoy the video and please reach out if you have any suggestions on future content you'd like to see, one nice thing of currently having a low sub count is that I can read all the comments haha.&lt;/p&gt;

&lt;p&gt;Happy coding!&lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/9-m4CIOEecA"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>beginners</category>
      <category>discuss</category>
      <category>codenewbie</category>
    </item>
    <item>
      <title>Hello World</title>
      <dc:creator>Terrance Corley</dc:creator>
      <pubDate>Wed, 19 Feb 2020 05:20:16 +0000</pubDate>
      <link>https://dev.to/terrancecorley/hello-world-4e47</link>
      <guid>https://dev.to/terrancecorley/hello-world-4e47</guid>
      <description>&lt;p&gt;Hi there!&lt;/p&gt;

&lt;p&gt;I recently decided to try my hand at YouTube. I’ve been feeling like something has been missing lately, and I think for me that’s been community and a sense of helping others and giving back, so that’s what I want my channel to be, a way to give back. This video is just a short intro but I’d love to hear your suggestions on what kind of content you’d like to see. Please let me know in the comments.&lt;/p&gt;

&lt;p&gt;Happy coding!&lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/75Fb4VwZNZg"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>youtube</category>
      <category>discuss</category>
      <category>beginners</category>
    </item>
    <item>
      <title>JavaScript: .find()</title>
      <dc:creator>Terrance Corley</dc:creator>
      <pubDate>Thu, 18 Apr 2019 15:32:12 +0000</pubDate>
      <link>https://dev.to/terrancecorley/javascript-find-4og1</link>
      <guid>https://dev.to/terrancecorley/javascript-find-4og1</guid>
      <description>&lt;p&gt;If you need to search through an array and find a unique item in the dataset then you should consider using the .find() method, and here's why.&lt;/p&gt;

&lt;h2&gt;
  
  
  Examples
&lt;/h2&gt;

&lt;h3&gt;
  
  
  .find()
&lt;/h3&gt;



&lt;div class="highlight"&gt;&lt;pre class="highlight javascript"&gt;&lt;code&gt;    &lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;people&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;sally&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;tom&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;brent&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;james&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;];&lt;/span&gt;  

    &lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;personIWant&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;people&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;find&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="nx"&gt;person&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nx"&gt;person&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;brent&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;});&lt;/span&gt;
    &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;personIWant&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="c1"&gt;// 'brent'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;The .find() method searches our array looking for the &lt;em&gt;first&lt;/em&gt; instance of the item that matches our conditional, in this case we are telling JavaScript to search for &lt;code&gt;'brent'&lt;/code&gt;. If a match is found in the array, that match will be returned and the loop will break.&lt;/p&gt;

&lt;h3&gt;
  
  
  .forEach()
&lt;/h3&gt;



&lt;div class="highlight"&gt;&lt;pre class="highlight javascript"&gt;&lt;code&gt;    &lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;people&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;sally&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;tom&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;brent&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;james&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;];&lt;/span&gt;

    &lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;personIWant&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nx"&gt;people&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;forEach&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="nx"&gt;person&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;person&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;brent&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="nx"&gt;personIWant&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;person&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;We can achieve the same result as the .find() method by using a .forEach() method, but there is no direct way to break out of this type of loop once we've found the item we're looking for. As the name states, forEach loops are meant to run over each item in the array, so even when the loop finds the value we want ('brent'), we still continue to execute the loop for every item in the array.&lt;/p&gt;

&lt;h3&gt;
  
  
  Traditional For Loop
&lt;/h3&gt;



&lt;div class="highlight"&gt;&lt;pre class="highlight javascript"&gt;&lt;code&gt;    &lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;people&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;sally&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;tom&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;brent&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;james&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;];&lt;/span&gt;

    &lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;personIWant&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;i&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nx"&gt;i&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="nx"&gt;people&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;length&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nx"&gt;i&lt;/span&gt;&lt;span class="o"&gt;++&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;people&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nx"&gt;i&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;brent&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="nx"&gt;personIWant&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;brent&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
            &lt;span class="k"&gt;break&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;};&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;Another type of loop where you can have the same functionality as the .find() method is a traditional for loop. You do however have to add your own break case, and the code for this is a little more lengthy.  &lt;/p&gt;

&lt;h3&gt;
  
  
  The Takeaway
&lt;/h3&gt;

&lt;h2&gt;
  
  
  If you are looking for a single unique item in an array or just looking to see if that item exists, the .find() method might just be what you're looking for.
&lt;/h2&gt;

&lt;p&gt;Thank you for taking the time to read my post today if you've made it this far! Happy coding! &lt;em&gt;Originally posted at &lt;a href="https://terrancecorley.com/blog/2019-04-17-javascript-find-method/"&gt;https://terrancecorley.com/blog/2019-04-17-javascript-find-method/&lt;/a&gt;&lt;/em&gt;.&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>blog</category>
      <category>showdev</category>
    </item>
    <item>
      <title>Freelancers, do you host and maintain client websites? Why or why not?</title>
      <dc:creator>Terrance Corley</dc:creator>
      <pubDate>Sun, 30 Sep 2018 22:04:16 +0000</pubDate>
      <link>https://dev.to/terrancecorley/freelancers-do-you-host-and-maintain-client-websites-why-or-why-not-5f7a</link>
      <guid>https://dev.to/terrancecorley/freelancers-do-you-host-and-maintain-client-websites-why-or-why-not-5f7a</guid>
      <description>&lt;p&gt;I'm considering diving into freelancing and I've heard opinions on both sides of the fence. Just wanted to know the community's take on it. General freelancing tips are also welcomed. &lt;/p&gt;

&lt;p&gt;Thanks!&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>freelancer</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Web development boot camp grad, ask me anything.</title>
      <dc:creator>Terrance Corley</dc:creator>
      <pubDate>Sun, 09 Sep 2018 17:32:21 +0000</pubDate>
      <link>https://dev.to/terrancecorley/web-development-boot-camp-grad-ask-me-anything-139k</link>
      <guid>https://dev.to/terrancecorley/web-development-boot-camp-grad-ask-me-anything-139k</guid>
      <description>&lt;p&gt;I completed a 5 month full-stack web development boot camp this past August. I was self-teaching for about 2 years on the side and working in the medical field before committing to the program.&lt;/p&gt;

&lt;p&gt;Ask me anything.&lt;/p&gt;

</description>
      <category>ama</category>
      <category>bootcamp</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
