<?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: gntorres</title>
    <description>The latest articles on DEV Community by gntorres (@gntorres).</description>
    <link>https://dev.to/gntorres</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%2F544224%2F44cc3962-c6fd-4e02-aff7-67b94430787d.jpeg</url>
      <title>DEV Community: gntorres</title>
      <link>https://dev.to/gntorres</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/gntorres"/>
    <language>en</language>
    <item>
      <title>Self and Scope</title>
      <dc:creator>gntorres</dc:creator>
      <pubDate>Tue, 02 Mar 2021 03:44:46 +0000</pubDate>
      <link>https://dev.to/gntorres/self-and-scope-3i41</link>
      <guid>https://dev.to/gntorres/self-and-scope-3i41</guid>
      <description>&lt;p&gt;The keyword "self" in Ruby always refers to the current object within that context. Self can be referenced to a class as well as  an instance &lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Cz79GIel--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/61tx0p0hckxs46s5s04r.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Cz79GIel--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/61tx0p0hckxs46s5s04r.png" alt="anime.rb - code [WSL_ Ubuntu] - Visual Studio Code 3_1_2021 9_41_54 PM (2)"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Scope refers to the level of accessibility our variables have. Allowing our program to have different levels of scope allow certain variables to be accessed or referenced at different times. 3 types of scope would be local, instance, and class&lt;/p&gt;

&lt;p&gt;Local&lt;br&gt;
Refers to a variable that is declared within a method and cannot be accessed outside of said method &lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--L8cQI6gT--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uv6e84p3ltx2utkt4otx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--L8cQI6gT--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uv6e84p3ltx2utkt4otx.png" alt="anime.rb - code [WSL_ Ubuntu] - Visual Studio Code 3_1_2021 9_17_50 PM (2)"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Class &lt;br&gt;
Refers to variables that are accessed within all instances of our class. An easy way to detect a class variable is by the "@@" character next to our variable &lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s---Jx1cjtJ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n755kjxzdpaqxrco8toj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s---Jx1cjtJ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n755kjxzdpaqxrco8toj.png" alt="anime.rb - code [WSL_ Ubuntu] - Visual Studio Code 3_1_2021 9_20_57 PM (3)"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Instance &lt;br&gt;
Instance variables values are only used within specific instances of an object. Similar to our class variable we use a single "@" in order to declare our instance variable &lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ixNu6Shr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ckqv1lq0nvkq29ql2jz9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ixNu6Shr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ckqv1lq0nvkq29ql2jz9.png" alt="anime.rb - code [WSL_ Ubuntu] - Visual Studio Code 3_1_2021 9_20_57 PM (4)"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Top 50 Anime Gem</title>
      <dc:creator>gntorres</dc:creator>
      <pubDate>Tue, 02 Mar 2021 02:46:05 +0000</pubDate>
      <link>https://dev.to/gntorres/top-50-anime-gem-4g14</link>
      <guid>https://dev.to/gntorres/top-50-anime-gem-4g14</guid>
      <description>&lt;p&gt;The gem I created helps users look at the top 50 anime from the past year. The system uses the run method to get things going as well as use my "get_data" method from my API class.  &lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--IPCHN10d--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3ul07zm70l8ca6l3vx0l.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--IPCHN10d--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3ul07zm70l8ca6l3vx0l.png" alt="api.rb - code [WSL_ Ubuntu] - Visual Studio Code 3_1_2021 8_41_41 PM (2)"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The user is first greeted and then can continue on to be presented with the list if they wish to continue. The "anime_list" method I created first tells the user to select an anime and the is able to output the anime's title and index. &lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s---b4jp6zI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8jzqjm3p5s2shsr7sd4g.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s---b4jp6zI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8jzqjm3p5s2shsr7sd4g.png" alt="cli.rb - code [WSL_ Ubuntu] - Visual Studio Code 3_1_2021 6_13_02 PM (2)"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;From there the user is able to input the index or title of the anime in order to gather more information. I had created a conditional statement that can take in the title, index, and also exit if the user wishes to &lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--U7fxKV3M--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4hrk82vabq9nr66btzhs.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--U7fxKV3M--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4hrk82vabq9nr66btzhs.png" alt="cli.rb - code [WSL_ Ubuntu] - Visual Studio Code 3_1_2021 8_17_41 PM (2)"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Depending on the input the user is then greeted with one of 3 methods &lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--QC8LaaaY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/l1ww4poj1ejrfior37ue.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--QC8LaaaY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/l1ww4poj1ejrfior37ue.png" alt="cli.rb - code [WSL_ Ubuntu] - Visual Studio Code 3_1_2021 8_17_41 PM (3)"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;After selecting one of the conditional statements the user is then greeted with a second menu that allows them to continue searching and puts them into a loop. &lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--0YCSuh1U--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/068upiv2hslqptvyhdvf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--0YCSuh1U--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/068upiv2hslqptvyhdvf.png" alt="cli.rb - code [WSL_ Ubuntu] - Visual Studio Code 3_1_2021 8_17_53 PM (2)"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Once the user is done searching he or she can exit the loop by typing in either "exit" or "n" depending on where they are in the loop.&lt;/p&gt;

&lt;p&gt;When exiting the program the user is given a goodbye message saying "We hope to see you again". &lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--8fxraDVb--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ex5dh23g4qrtw83h9zjj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--8fxraDVb--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ex5dh23g4qrtw83h9zjj.png" alt="cli.rb - code [WSL_ Ubuntu] - Visual Studio Code 3_1_2021 8_17_53 PM (3)"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>I don't know how to code yet</title>
      <dc:creator>gntorres</dc:creator>
      <pubDate>Sun, 20 Dec 2020 23:41:19 +0000</pubDate>
      <link>https://dev.to/gntorres/i-don-t-know-how-to-code-yet-1cgi</link>
      <guid>https://dev.to/gntorres/i-don-t-know-how-to-code-yet-1cgi</guid>
      <description>&lt;p&gt;At the beginning of my coding boot camp course I've been able to learn how frustrating and rewarding it can be to code. I hope I can keep growing with time and absorb as much knowledge as possible. I'm really excited to see what the future has in store for me with my coding journey. &lt;/p&gt;

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