<?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: Josh Phelps</title>
    <description>The latest articles on DEV Community by Josh Phelps (@jugtuttle).</description>
    <link>https://dev.to/jugtuttle</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%2F290628%2F09b661a3-774b-4b88-9ec3-e670b370b97d.jpg</url>
      <title>DEV Community: Josh Phelps</title>
      <link>https://dev.to/jugtuttle</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jugtuttle"/>
    <language>en</language>
    <item>
      <title>Ruby Methods: Each, Map, Select, and Reject Explained</title>
      <dc:creator>Josh Phelps</dc:creator>
      <pubDate>Mon, 30 Dec 2019 17:52:18 +0000</pubDate>
      <link>https://dev.to/jugtuttle/ruby-methods-each-map-select-and-reject-explained-10op</link>
      <guid>https://dev.to/jugtuttle/ruby-methods-each-map-select-and-reject-explained-10op</guid>
      <description>&lt;p&gt;Here are four Ruby methods you should know when working with arrays:&lt;/p&gt;

&lt;p&gt;Each vs. Map  &lt;/p&gt;

&lt;p&gt;The main difference between map and each is in the return value. Using each will return the original array while map will return a new array. &lt;/p&gt;

&lt;p&gt;Example:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--NW2Owqx1--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/p7lrkwkyrgwwrj0c514m.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--NW2Owqx1--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/p7lrkwkyrgwwrj0c514m.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Select&lt;/p&gt;

&lt;p&gt;The select method will return a new array that contains the elements of the original array for which the given block returns a true value. &lt;/p&gt;

&lt;p&gt;Example:  &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--8BhFuj4C--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/nt6mixfji06af03dt89y.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--8BhFuj4C--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/nt6mixfji06af03dt89y.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In this example, we selected all the elements in the original array unless the element equaled "a".&lt;/p&gt;

&lt;p&gt;Here is another example:  &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--7-gzYQHl--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/o7mlpo5r991pe6e97z5m.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--7-gzYQHl--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/o7mlpo5r991pe6e97z5m.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Reject &lt;/p&gt;

&lt;p&gt;Reject is the opposite of select. It will return a new array that contains the elements of the original array for which the given block returns a value that is not true. &lt;/p&gt;

&lt;p&gt;Example: &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--gw6Dob-E--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/r45y6d6xforfcel25vg1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--gw6Dob-E--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/r45y6d6xforfcel25vg1.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In this example, we are returning all the odd numbers in the original array. &lt;/p&gt;

&lt;p&gt;There are many more methods that can be called on an array. For more array methods visit &lt;a href="https://ruby-doc.org/core-2.4.1/Array.html"&gt;https://ruby-doc.org/core-2.4.1/Array.html&lt;/a&gt;&lt;/p&gt;

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

</description>
    </item>
    <item>
      <title>My First Blog Post </title>
      <dc:creator>Josh Phelps</dc:creator>
      <pubDate>Mon, 16 Dec 2019 16:59:54 +0000</pubDate>
      <link>https://dev.to/jugtuttle/my-first-blog-post-fgc</link>
      <guid>https://dev.to/jugtuttle/my-first-blog-post-fgc</guid>
      <description>&lt;p&gt;Hello there! I’m excited to be a new member of the DEV community and would like to celebrate by contributing my first blog post. I am currently attending Flatiron School in Seattle and loving it. I’ll take opportunity to share how I got here and why I made the decision to pursue a career in software development. &lt;/p&gt;

&lt;p&gt;If you were to tell me ten years ago I would be back in school learning to be a software developer, I would have thought you were crazy. It’s not that I don’t enjoy learning new things, I do. My surprise, and probable disappointment, would have come from the combination of vowing never to go back to school and an unwavering desire to endlessly tour the world in the greatest band ever known to man, Lanford Black. Unfortunately, unless you are my mom or one her friends, it’s likely you’re wondering “Who the hell is Lanford Black?”. This fact is a major contribution as to why I’m here today. &lt;/p&gt;

&lt;p&gt;My 20’s were largely spent bouncing around from job to job, balancing taking time off work for tour and making enough money to pay for recording and daily expenses. It’s not the easiest way of living, but when you have a passion for something, it’s all worth it. Sadly, Lanford Black never became what I imagined, but I never gave up on the dream. I joined another band and we started gaining a little traction, even getting radio play in various cities across the U.S. As I got older, I put off the some of the personal responsibilities that typically go along with it, i.e., getting health insurance, maintaining a savings account, and general consideration of my future well-being. I was wholly satisfied with my path and embraced the minimalist lifestyle. Much to my surprise, however, that all changed the day I met a wonderful person named Lauren. &lt;/p&gt;

&lt;p&gt;It’s amazing how quickly priorities and perspectives can shift when you are no longer just worrying about yourself. I’m not saying I used to be selfish, but I really only had myself and the success of the band to consider. Suddenly, I wanted to provide a stable and comfortable future. The dream of “making it big” dwindled to an afterthought as the reality of financial&lt;br&gt;
stability reared its ugly head. I wasn’t alone anymore and I was all the better for it. It was time for me to find a job that provided a good income.&lt;/p&gt;

&lt;p&gt;I began the search for a new career and didn’t really know where to start. I had a difficult time deciding what would keep me happy and satisfy my sense of creativity. Fortunately, I had a conversation with a friend of mine who was a software developer. He convinced me to look into coding and I decided to give it a shot. I learned a bit on my own and it kept my interest going. I decided to take the next step and began looking for coding bootcamps. There were a lot of different options and after some research, I thought Flatiron would be the best choice for me going forward. So far, I am extremely happy with my decision to pursue software development and am eager to learn more. I can’t wait to see what will come from completing this bootcamp and am happy I found something beyond music that I am passionate about. &lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
