<?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: Inee Ader 🐌</title>
    <description>The latest articles on DEV Community by Inee Ader 🐌 (@ineeader).</description>
    <link>https://dev.to/ineeader</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%2F493736%2F0698eadb-2da7-4548-a80f-1473e5ec6e02.jpeg</url>
      <title>DEV Community: Inee Ader 🐌</title>
      <link>https://dev.to/ineeader</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ineeader"/>
    <language>en</language>
    <item>
      <title>Like, so confused...</title>
      <dc:creator>Inee Ader 🐌</dc:creator>
      <pubDate>Mon, 05 Apr 2021 19:18:49 +0000</pubDate>
      <link>https://dev.to/ineeader/like-so-confused-j1j</link>
      <guid>https://dev.to/ineeader/like-so-confused-j1j</guid>
      <description>&lt;h1&gt;
  
  
  &lt;code&gt;LIKE&lt;/code&gt; operator
&lt;/h1&gt;

&lt;p&gt;I'm taking a SQL Essential Training course on LinkedIn Learning, and I &lt;strong&gt;BRIEFLY&lt;/strong&gt; got confused about the &lt;code&gt;like&lt;/code&gt; operator. &lt;/p&gt;

&lt;p&gt;I kept forgetting what was what in terms of where the &lt;code&gt;%&lt;/code&gt; went. &lt;/p&gt;

&lt;p&gt;I'm using &lt;a href="https://sqlitestudio.pl/"&gt;SQLStudio&lt;/a&gt; and following this &lt;a href="https://www.linkedin.com/learning/sql-essential-training-3/about-sql"&gt;tutorial&lt;/a&gt;. &lt;/p&gt;

&lt;p&gt;Here are my notes: &lt;/p&gt;

&lt;h2&gt;
  
  
  %[search_term]% - CONTAINS
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT Name, Continent FROM Country WHERE Name LIKE '%island%';
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Human sentence: "Show the Name and Continent column of the Country table that CONTAINS 'island'..."&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;code&gt;%&lt;/code&gt; on either side envelopes the key search word, so 'contain' here makes sense.&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--45AxWc-6--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/c729ui8shs6ygysko5lu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--45AxWc-6--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/c729ui8shs6ygysko5lu.png" alt="Screen Shot 2021-04-05 at 1.05.31 PM"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;results that **contain&lt;/em&gt;* 'island' in any way*&lt;/p&gt;

&lt;h2&gt;
  
  
  %[search_term] - ENDS WITH
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT Name, Continent FROM Country WHERE Name LIKE '%island';
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Human sentence: "Show me the Name and Continent column of the Country table that ENDS with 'island'..."&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;code&gt;%&lt;/code&gt; only at the beginning of the search term takes the place of the rest of the text, meaning that &lt;code&gt;%&lt;/code&gt; at the beginning means 'island' at the end.&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--j8J_ya8C--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6q02eqqnjlo47qtj5m9o.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--j8J_ya8C--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6q02eqqnjlo47qtj5m9o.png" alt="Screen Shot 2021-04-05 at 1.10.15 PM"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;only results that **end&lt;/em&gt;* with 'island'*&lt;/p&gt;

&lt;h2&gt;
  
  
  [search_term]% - BEGINS WITH
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT Name, Continent FROM Country WHERE Name LIKE 'island%';
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Human sentence: "Show me the Name and Continent column of the Country table that STARTS with 'island'..."&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;code&gt;%&lt;/code&gt; only at the end of the search term means 'island' is at the beginning of the Name column.&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--TqTw5TUa--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ozsnmfobfujhday64b2i.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--TqTw5TUa--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ozsnmfobfujhday64b2i.png" alt="Screen Shot 2021-04-05 at 1.11.27 PM"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;we get a big whopping zilch for this one...I guess there's no Country Name that BEGINS with the word 'island'.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;But let's add one for fun to make sure it works...&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--_rQJPxtd--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xpe7a1jtmqj0k5ed0lqp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--_rQJPxtd--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xpe7a1jtmqj0k5ed0lqp.png" alt="Screen Shot 2021-04-05 at 1.13.54 PM"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Ok so now we have the fictional 'Island of the Blue Dolphins' which was now returned&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;For some reason it's hard for me to remember which term it searches for based on where the &lt;code&gt;%&lt;/code&gt; is located.&lt;/p&gt;

&lt;p&gt;Hope this helps, but mostly this is for me :)   &lt;/p&gt;

</description>
      <category>sql</category>
      <category>operator</category>
      <category>like</category>
      <category>sqlite</category>
    </item>
    <item>
      <title>Sweet Cards with CSS</title>
      <dc:creator>Inee Ader 🐌</dc:creator>
      <pubDate>Thu, 28 Jan 2021 19:06:35 +0000</pubDate>
      <link>https://dev.to/ineeader/sweet-css-38am</link>
      <guid>https://dev.to/ineeader/sweet-css-38am</guid>
      <description>&lt;p&gt;Hey all! Today I'm going to give you several simple tips for styling a dashboard page involving multiple "cards". I'm using Rails backend (doesn't matter) and React frontend. &lt;br&gt;
We'll also import a Google font into our App file! &lt;/p&gt;

&lt;p&gt;I have minimal "styling" right now, but I wouldn't even call it styling. This page is the user's dashboard page to display their PLANT collection. &lt;/p&gt;

&lt;p&gt;We're going to make neat containers and cards to hold it all together! (if your Dev settings are in light mode you can't see the edges of the below screenshots as clearly)&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Feq1sm4olc4iagch7hpif.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Feq1sm4olc4iagch7hpif.png" alt="Screen Shot 2021-01-28 at 9.48.24 AM"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h1&gt;
  
  
  DASHBOARD div
&lt;/h1&gt;

&lt;p&gt;First, let's make our biggest container: the page itself! Here's the basic structure, you can ignore all the React-y stuff. Just notice that PlantContainer component is one layer inside "dashboard" div.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;render() {
        return (
            &amp;lt;div className="dashboard"&amp;gt;
                &amp;lt;div&amp;gt;
                    &amp;lt;h2 className="user-name-icon"&amp;gt;&amp;lt;img className="user-dashboard-icon" src={user.icon} /&amp;gt;
                    {this.props.user.username}&amp;lt;/h2&amp;gt;
                &amp;lt;/div&amp;gt;
                &amp;lt;div className="dashboard-btn-div-top"&amp;gt;
                    &amp;lt;button className="dash-add-plant-btn" &amp;gt;Add Plant&amp;lt;/button&amp;gt;
                    &amp;lt;button className="greenhouse-btn" &amp;gt;Greenhouse&amp;lt;/button&amp;gt;
                &amp;lt;/div&amp;gt;
                &amp;lt;PlantContainer 

                /&amp;gt;
                &amp;lt;br&amp;gt;&amp;lt;/br&amp;gt;
                &amp;lt;div className="dashboard-btn-div-bottom"&amp;gt;
                    &amp;lt;button className="dash-edit-&amp;gt;Edit User&amp;lt;/button&amp;gt;
                    &amp;lt;button className="dash-logout-btn"  &amp;gt;Logout&amp;lt;/button&amp;gt;
                &amp;lt;/div&amp;gt;
            &amp;lt;/div&amp;gt;
        );
    }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The outermost wrapper has the class of "dashboard". To start, I just want to get the content off the left EDGE of the page...I hate that it's touching. In your CSS file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.dashboard {
     padding: 40px;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Padding &lt;strong&gt;pushes in&lt;/strong&gt; content from the border of the element. (Margin &lt;strong&gt;pushes out&lt;/strong&gt; from the border, and border is the actual edge of your element) &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fxttf7afojbw8ogxj1fcm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fxttf7afojbw8ogxj1fcm.png" alt="Screen Shot 2021-01-28 at 10.10.19 AM"&gt;&lt;/a&gt; &lt;/p&gt;

&lt;h1&gt;
  
  
  PLANT CONTAINER div
&lt;/h1&gt;

&lt;p&gt;Ok now let's look at the next container -- the Plant Container component. This one returns a div with class of "plant-container". I want that box to contain all the plants I have in my collection! &lt;/p&gt;

&lt;p&gt;CSS:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.plant-container {
     padding: 20px;
     margin: 20px;
     border: 1px solid black;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;So I've made a border to outline the container, I've &lt;strong&gt;pushed out&lt;/strong&gt; from the container with margin 20px, and &lt;strong&gt;pushed in&lt;/strong&gt; some padding inside so the content isn't RIGHT on the edge of the container. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Few7rjvo9bb3a6fnzkrc7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Few7rjvo9bb3a6fnzkrc7.png" alt="Screen Shot 2021-01-28 at 10.16.24 AM"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Cool, so now we have a box inside of another box. I want the edges of my boxes to be &lt;em&gt;soft&lt;/em&gt;, so I'll add &lt;code&gt;border-radius: 10px;&lt;/code&gt; to soften the edges in &lt;code&gt;.plant-container&lt;/code&gt;. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F6datyo1gkwxv2twkihvr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F6datyo1gkwxv2twkihvr.png" alt="Screen Shot 2021-01-28 at 10.20.34 AM"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  PLANT CARD div
&lt;/h1&gt;

&lt;p&gt;Nice. Now, let's go another level deeper and get the cards themselves boxed in. My plant cards are being rendered in the PlantContainer component, so you won't see it in the above snippet.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.plant-card-dashboard {
         border: 1px solid rgb(0, 0, 0);
         border-radius: 10px;
         padding: 15px;
         margin: 10px;
         width: 200px;
         background-color: rgb(255, 255, 255);
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;So I want the card to &lt;strong&gt;push out&lt;/strong&gt; each other by margin 10px, &lt;strong&gt;pushed inside&lt;/strong&gt; itself with padding 15px, I'm setting a stiff width so they're all the same, outlining with black border, and rounding the edges with border-radius.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fbqrzl8tatdsrk3t4nt7i.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fbqrzl8tatdsrk3t4nt7i.png" alt="Screen Shot 2021-01-28 at 10.25.16 AM"&gt;&lt;/a&gt;&lt;br&gt;
Round boyzzz.&lt;/p&gt;
&lt;h1&gt;
  
  
  CARD CONTAINER div
&lt;/h1&gt;

&lt;p&gt;Inside the Plant Container div, I made ANOTHER box with class &lt;code&gt;card-container&lt;/code&gt; to wrap all the cards. The reason I did this was so that the title "Your Plant Collection" would be inside the .plant-container.  &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F8qswq91hgg1r61bh5nfm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F8qswq91hgg1r61bh5nfm.png" alt="Screen Shot 2021-01-28 at 10.27.04 AM"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The cards are all stacked on top of each other, and I want them to display side by side. &lt;br&gt;
So we got Dashboard &amp;gt; Plant Container &amp;gt; Card Container:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.card-container {
    display: inline-flex;
    flex-wrap: wrap;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The inline flex let's it display side by side, and flex-wrap allows the next card added to go down to the next row in the container. I added a plant to demonstrate: &lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Ffn8oazanjkap5il7s21l.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Ffn8oazanjkap5il7s21l.png" alt="Screen Shot 2021-01-28 at 10.31.32 AM"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now I want to add more juicy style...how about a background image? Let's get back up to our &lt;code&gt;.dashboard&lt;/code&gt; class styling and add an image. I have the images locally in my styles directory. I set the image size to "contain" so that it shows the whole picture, and it automatically repeats itself underneath (even though it doesn't look like it in the screenshot).&lt;br&gt;
Here's our dashboard styling:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.dashboard {
    padding: 40px; 
    background: url(./images/zz2.jpg);    
    background-size: contain;
} 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now she looks like this: &lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fhx3kbz6vdx48f2xpofk0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fhx3kbz6vdx48f2xpofk0.png" alt="Screen Shot 2021-01-28 at 10.34.22 AM"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If we look back up into our .plant-container CSS group, we're going to add a few more things:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.plant-container {
     padding: 20px;
     margin: 20px;
     border: 1px solid black;
     background-color: rgba(255, 255, 255, 0.521);
     backdrop-filter: blur(5px);
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The "background-color" is white with about half the opacity, which will fade out our background image (which is in .dashboard div). As a final touch, I wanted the PlantContainer to also BLUR the background a bit, so that's what "backdrop-filter" is doing...it's an expensive effect though, so try not to use it more than once on a page. &lt;/p&gt;

&lt;h1&gt;
  
  
  PLANT IMAGE styling
&lt;/h1&gt;

&lt;p&gt;Let's work on that plant image now...it's a bit SQUARE isn't it? On my plant card, the image class is &lt;code&gt;plant-image-dashboard&lt;/code&gt; and here's how it's styled:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.plant-image-dashboard {
    width: 200px;
    height: 200px;
    object-fit: fill;
    border: 1px solid rgb(0, 0, 0);
    border-radius: 15px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 
                0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;So I set the height and width so it's a square, set the image fit to "fill". SIDENOTE: &lt;em&gt;I uploaded already square images, if you have rectangular images, setting height and width to square and choosing &lt;code&gt;object-fit: fill&lt;/code&gt; will probably squish your image down and warp it all weird.&lt;/em&gt; Then we added a black border, made it ROUNDER with 15px, and added a little box shadow so the image popped out slightly. Now it looks like this: &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F2mdzlfrc82razi9dfcew.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F2mdzlfrc82razi9dfcew.png" alt="Screen Shot 2021-01-28 at 10.41.10 AM"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  GOOGLE FONT TIME
&lt;/h1&gt;

&lt;p&gt;Whew! Almost there. Let's import a Google Font. It's a little more involved for a React app. I liked "Nanum Myeongjo" -- sounds Korean ^_^ &lt;br&gt;
Click on &lt;code&gt;Download Family&lt;/code&gt; and you'll get a little zip file dropped in your downloads.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fnkmfv5suj5sy6j5s7ws3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fnkmfv5suj5sy6j5s7ws3.png" alt="Screen Shot 2021-01-28 at 10.43.29 AM"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Open that up into a little folder. You'll see a few font .ttf files. I just wanted the "regular" one. Make a folder in your &lt;code&gt;style&lt;/code&gt; directory called &lt;code&gt;fonts&lt;/code&gt; and drag-n-drop the file(s) into your fonts directory. For me, the style folder is inside the &lt;code&gt;src&lt;/code&gt; directory. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fv6w1kfr5fh1gv36o4s2e.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fv6w1kfr5fh1gv36o4s2e.png" alt="Screen Shot 2021-01-28 at 10.46.39 AM"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now find the javascript file that loads your App.js. My React App came with &lt;code&gt;bootstrap.js&lt;/code&gt; (even though I'm not using Bootstrap) and that's the one that loads my App.js (which then loads all my other components). &lt;br&gt;
Import your font into your file that loads your App.js like so, routing the path from where my &lt;code&gt;bootstrap.js&lt;/code&gt; lives: &lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F4l5ssoc4r0xsta5yhnek.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F4l5ssoc4r0xsta5yhnek.png" alt="Screen Shot 2021-01-28 at 10.48.33 AM"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;THEN, you can put &lt;code&gt;font-family: 'Nanum Myeongjo', serif;&lt;/code&gt; in your App styling for site-wide font-ing! &lt;br&gt;
Now we got a nicely styled Dashboard page that displays your beloved plant collection. Boom. &lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Ft0jqujconyny9qe3boah.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Ft0jqujconyny9qe3boah.png" alt="Screen Shot 2021-01-28 at 10.55.18 AM"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I hope this was helpful to anyone just learning CSS. I'm using pure vanilla CSS in this project, no Bootstrap or Bulma, so it's been a challenge to learn it! &lt;/p&gt;

&lt;p&gt;I did a similar thing to my feed page which displays other user's new plants! &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fz3llhtk2rjtr42i6rao2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fz3llhtk2rjtr42i6rao2.png" alt="Screen Shot 2021-01-28 at 11.08.15 AM"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;(((Are you a fellow plant-lover interested in co-partnering with me to work on my House Plant Social Media app, FacePlant? I'm interested in collaborating, as I feel this project could have some traction. See this &lt;a href="https://www.youtube.com/watch?v=QobMlju2xlM&amp;amp;t=4s&amp;amp;ab_channel=IneeAder" rel="noopener noreferrer"&gt;demo video&lt;/a&gt; of the app, tell me what you think! )))&lt;/p&gt;

</description>
      <category>css</category>
      <category>javascript</category>
      <category>react</category>
      <category>styling</category>
    </item>
    <item>
      <title>Nerdtrition</title>
      <dc:creator>Inee Ader 🐌</dc:creator>
      <pubDate>Sun, 03 Jan 2021 23:27:24 +0000</pubDate>
      <link>https://dev.to/ineeader/nerdtrition-55e8</link>
      <guid>https://dev.to/ineeader/nerdtrition-55e8</guid>
      <description>&lt;p&gt;This post is about nutrition for those who spend many hours in front of the computer! Maybe I tried too hard to be clever about the title. &lt;/p&gt;

&lt;h1&gt;
  
  
  LUTEIN
&lt;/h1&gt;

&lt;p&gt;You might think it's a type of protein based on the spelling, but nah. Maybe you heard of it being associated with eye health! Lutein is a xanthophyll (yellow pigment) in the carotenoid family, along with beta-carotene, zeaxanthin, meso-zeaxanthin, lycopene, and astaxanthin. &lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F1fxmvdn5o45n23s5mjhp.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F1fxmvdn5o45n23s5mjhp.jpg" alt="Papaya-for-Babies-scaled"&gt;&lt;/a&gt; &lt;br&gt;
Carotenoids are orange/yellow/pink pigments that give pumpkins, carrots, marigolds, corn, daffodils, tomatoes, shrimp, salmon, and flamingos their bright colors! Lutein is part of what gives marigolds and egg yolks that yellow color! Why is it important to coders?? IT SAVES YOUR PRECIOUS EYES!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fr2g0lpjuyxbeyo167tz3.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fr2g0lpjuyxbeyo167tz3.jpg" alt="OM_Marco_Suppl_November_A01_Fig02"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;This picture shows the macula and the yellow is lutein pigment!&lt;/em&gt; &lt;/p&gt;

&lt;p&gt;Lutein is a pigment that concentrates in the macula of the eyes, which acts as a blue light filter and blocker! We have heard about the damaging effects of "blue light"...how does that work? Well, during the day, the sun actually emits some blue light naturally, but the harmful stuff mostly comes from our SCREEEEEEEEEENS...computers, phones, tablets, etc. This blue light frequency is very damaging to the macula of the eye, causing eye tension and fatigue, macular degeneration, and even disruptions to sleep. &lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Ftnhn20hdlu8093ucnc99.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Ftnhn20hdlu8093ucnc99.png" alt="Screen Shot 2021-01-03 at 2.59.57 PM"&gt;&lt;/a&gt; &lt;/p&gt;

&lt;h4&gt;
  
  
  This is an aside comment on Sleep:
&lt;/h4&gt;

&lt;p&gt;See, the blue light tricks your body into thinking it's still day time, and when you're staring at a blue light rectangle after dark, it delays your body's natural production of melatonin--the sleep hormone. Melatonin is produced by your body when the day starts to get dark, but your eyes and brain don't know what TIME it is, so it holds off on making that sleep hormone until it gets dark enough. Clean up your sleep hygiene by dimming the lights around the house, and utilizing apps like &lt;a href="https://justgetflux.com/" rel="noopener noreferrer"&gt;Flux&lt;/a&gt; on your screens to minimize that confusing blue light! &lt;/p&gt;

&lt;p&gt;Back to lutein...what I'm trying to share is that Lutein concentrates in the macula of the eye and helps block/filter that blue light. Another cool thing to mention...the concentration of lutein in the macula is DIRECTLY reflective of the lutein content in your BRAIN! That's right, lutein is not only good for your eyes, but also your brain--supporting memory, intelligence, and alertness. &lt;/p&gt;

&lt;h4&gt;
  
  
  BUT WAIT, THERE'S MORE!
&lt;/h4&gt;

&lt;p&gt;Lutein ALSO deposits in the skin! Well, if it blocks/filters blue light in the eyes, it does it in the skin too! We need sunlight, humans are wired to enjoy time in the sun, but unfortunately everyone's been brainwashed to think that &lt;code&gt;sun = skin cancer&lt;/code&gt;...NUH UH! I'm not going to talk about the C-word, but I would argue that the more antioxidants and carotenoids you have in your skin, the more ability your body has to fight free-radicals--which are basically chaotic bratty molecules that go around damaging your healthy cells and replicating. The FDA won't be knocking on my door if I say this, but increase your diet of antioxidants and get those carotenoids concentrated in your tissues and you're pretty much golden. Lutein also supports skin &lt;em&gt;HYDRATION&lt;/em&gt;...ooh-la-la.&lt;/p&gt;

&lt;p&gt;Look for a supplement that provides &lt;strong&gt;at least&lt;/strong&gt; 20mg Lutein per serving. One of my top choices for this is:&lt;/p&gt;

&lt;h4&gt;
  
  
  Quantum Health's Macula 30+ supplement
&lt;/h4&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fdv180kd01yntjmv6kaes.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fdv180kd01yntjmv6kaes.jpg" alt="71cpeSTCrrL._AC_SY550_"&gt;&lt;/a&gt;&lt;br&gt;
This provides 30mg lutein, plus 6mg zeaxanthin. Quantum's supplement also comes with some vitamin C and E, and omega 3s for some pretty comprehensive eye support! Lutein and zeaxanthin occur in nature at about a 5:1 ratio, respectively, so it's beneficial to have that added carotenoid in your lutein supplement. &lt;br&gt;
Another of my favorites is:&lt;/p&gt;

&lt;h4&gt;
  
  
  Natural Factors Lutein
&lt;/h4&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Flzqxh1wnmu18nfgcvaqu.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Flzqxh1wnmu18nfgcvaqu.jpg" alt="81yHcHMygKL._AC_SX425_"&gt;&lt;/a&gt;&lt;br&gt;
Providing 40mg Lutein and 7mg zeaxanthin, also in that ~5:1 ratio! &lt;/p&gt;

&lt;p&gt;Both of these supplements source their lutein from MARIGOLD FLOWERS!&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fdrkjvzqdwzgjs8xdm3go.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fdrkjvzqdwzgjs8xdm3go.jpg" alt="setting-marigolds-eugenia-collier_11f5893281977024"&gt;&lt;/a&gt;&lt;br&gt;
Cool side note: If you own chickens, feed them marigold flowers, and you'll get more lutein in your eggs! Or you can sprinkle those marigold petals on your salad if you like the taste of flowers I guess. &lt;/p&gt;

&lt;p&gt;Other fun facts: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;As of now, nobody has determined an upper limit for Lutein toxicity...meaning we don't know how much you have to take to experience any adverse effects. Take as much as you want, have fun! &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Lutein is safe for babies! Eat those flowers, mama, and the lutein will be passed through breastmilk to benefit baby's eyes, brain, and skin! &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Lutein is lipophilic...meaning it likes fat...making it insoluble in water. For best absorption and utilization, take Lutein along side some fat-containing foods like eggs, fish, butter, etc. My favorite meal of carotenoids is eggs poached in tomato sauce with yellow bell peppers, onion, garlic, cumin, parsley, goat cheese, kale, and BUTTER in a North African/Middle Eastern dish called Shakshouka! Make it in your iron skillet! &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Lutein isn't exclusive to yellow/gold things, you also get lots of it in dark leafy greens!&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  DISCLAIMER:
&lt;/h4&gt;

&lt;p&gt;Before I decided to allow myself to be at the mercy of the immense ocean of Tech...I was a nutritionist. I got a B.S. in Pre-Med Biology, then went on to receive my practitioner certificate in Ayurveda, the ancient health science of India. I studied Ayurvedic herbal formulations, bodywork treatments, Panchakarma techniques, and added 500 hours of Ayurvedic Yoga to that mix too. I also received a certificate in Western Clinical Herbalism, and studied the newly-rising bodywork treatment of Lymph Drainage Therapy. &lt;br&gt;
After all that, I became a nutritionist in a health food store where my job was to be an expert on all the vitamins and supplements in the department. That being said, &lt;strong&gt;my advice does not replace a doctor visit&lt;/strong&gt; and &lt;strong&gt;consult your doctor or alternative health practitioner before introducing supplements to your regimen&lt;/strong&gt; especially if you are already taking a Rx. Also, I've been out of the nutrition game for almost a year, so excuse me if any of my info is out of date--all this is from memory. &lt;strong&gt;I am not sponsored by any supplement company (I wish 😒)...&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>nutrition</category>
      <category>lutein</category>
      <category>health</category>
      <category>wellness</category>
    </item>
    <item>
      <title>...but I want a pretty PROMPT!</title>
      <dc:creator>Inee Ader 🐌</dc:creator>
      <pubDate>Mon, 30 Nov 2020 17:09:34 +0000</pubDate>
      <link>https://dev.to/ineeader/but-i-want-a-pretty-prompt-mbi</link>
      <guid>https://dev.to/ineeader/but-i-want-a-pretty-prompt-mbi</guid>
      <description>&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fj3icfp4nwod3uuqvth3k.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fj3icfp4nwod3uuqvth3k.png" alt="0"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you're anything like me, you like to customize EVERY. SINGLE. THING. that is remotely customizable! I love changing colors, adding my own personal style, and finding themes. By this point, I have already customized my terminal window through the Mac's &lt;code&gt;Terminal &amp;gt; Preferences&lt;/code&gt;. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fzvyr0bllpumtswnsi4w0.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fzvyr0bllpumtswnsi4w0.jpg" alt="82003515"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This blog is particularly about changing the COMMAND LINE of your Z-Shell...particularly &lt;em&gt;oh-my-zsh&lt;/em&gt;. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;If you're a whiz, scroll waaaaaaaaay down to the bottom for a summary of the process.&lt;/strong&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  &lt;strong&gt;FIRST&lt;/strong&gt;
&lt;/h1&gt;

&lt;p&gt;Open up your (probably boring) terminal and navigate to the root-directory. This is where your terminal defaults to when you first open it. If you're anything like me, you get lost in there sometimes so you can type &lt;code&gt;cd ~&lt;/code&gt; and it'll take you to your root directory. &lt;/p&gt;

&lt;p&gt;Then type &lt;code&gt;code .zshrc&lt;/code&gt; --which is really hard to type smoothly like an experienced hacker.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fett9yxriwibuts4a5zth.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fett9yxriwibuts4a5zth.png" alt="1"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This should open your code editor...I'm using VS Code, so it automatically opened it in there. &lt;/p&gt;

&lt;p&gt;The page displayed is like the manual(README) for &lt;em&gt;oh-my-zsh&lt;/em&gt;, and if you're like me, you won't really read anything because you're so eager to CUSTOMIZE! Seriously I'm so annoying, asking "How do I do this?" when it's literally written in the commented-out portions of the page smh...I'm like a t-rex, I won't see it unless it's jumping up and down in front of my face. Keep this open in a tab until you figure out your lovely theme. It looks like this: &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F8f2vgorx2lfxil4yp1ca.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F8f2vgorx2lfxil4yp1ca.png" alt="zshrc"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  &lt;strong&gt;SECOND&lt;/strong&gt;
&lt;/h1&gt;

&lt;p&gt;Probably don't mess with too many things in here, but the instructions are pretty clear...just uncomment things you want to have! But we're not really here to discuss that. &lt;br&gt;
Somewhere around line 13, you should see &lt;code&gt;ZSH_THEME="something"&lt;/code&gt;. &lt;/p&gt;

&lt;p&gt;This is telling you what THEME you're currently using in your command line. There are a lot of themes. I changed the &lt;code&gt;"something"&lt;/code&gt; in that line to be &lt;code&gt;"random"&lt;/code&gt;. &lt;/p&gt;

&lt;p&gt;Now you can go back to your terminal, and type &lt;code&gt;$SHELL&lt;/code&gt;, which would refresh your terminal, loading a random theme! Maybe there's a website that shows all the themes on one page, but if you're like me, you're gonna &lt;code&gt;^ + ENTER&lt;/code&gt; a million times to cycle through randomly. &lt;/p&gt;

&lt;p&gt;My name is Inee and my username is "xoliio", both weird-sounding things, so that's what you're seeing on here, in case you were confused: &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fjo1aolmhhfjpz4xw2taf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fjo1aolmhhfjpz4xw2taf.png" alt="2"&gt;&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;They kind of all start looking the same after a while, but find the theme you like and store it in a little piece of memory in your biological human brain. &lt;/p&gt;

&lt;p&gt;Something that might be helpful is to notice where the cursor ends up (the blinking block thing where you type). Does the command-line theme take up one or two lines? What info does it display? Is it readable? Does it have colors you like? You can change this stuff anyway, but to start it helps to have something close to what you were looking for.&lt;/p&gt;

&lt;p&gt;For now, I liked the cute simplicity of &lt;code&gt;"af-magic"&lt;/code&gt;. Still got the name of the theme you like in your noggin? Keep it there for just a little longer. &lt;/p&gt;
&lt;h1&gt;
  
  
  &lt;strong&gt;THIRD&lt;/strong&gt;
&lt;/h1&gt;

&lt;p&gt;Now we're going to FIND THAT THEME'S FILE. &lt;br&gt;
Open your computer's terminal and navigate to your root directory. &lt;/p&gt;

&lt;p&gt;Type &lt;code&gt;ls -a&lt;/code&gt;...which lists all the files, but also the &lt;em&gt;SECRET&lt;/em&gt; hidden files. You'll see &lt;code&gt;.oh-my-zsh&lt;/code&gt; listed in there. &lt;br&gt;
Navigate to that with &lt;code&gt;cd .oh-my-zsh&lt;/code&gt;. &lt;br&gt;
Now, you can OPTIONALLY enter &lt;code&gt;ls&lt;/code&gt; to see what's in here, but what you want to get into is the "themes" folder via &lt;code&gt;cd themes&lt;/code&gt;. &lt;/p&gt;

&lt;p&gt;Once you're in there, you can OPTIONALLY &lt;code&gt;ls&lt;/code&gt; that and have all the themes listed, but really you just want to type &lt;code&gt;code [theme-name].zsh-theme&lt;/code&gt;. ((It's not a directory so you're not going to &lt;code&gt;cd&lt;/code&gt;, you want to open it in your code editor this time.)) In my case it'll look like &lt;code&gt;code af-magic.zsh-theme&lt;/code&gt;. &lt;/p&gt;

&lt;p&gt;This should open up that theme's file in your code editor. Looks so weird, idk what this language is. &lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F1sxby3kcfupod97ccblu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F1sxby3kcfupod97ccblu.png" alt="4"&gt;&lt;/a&gt; &lt;/p&gt;
&lt;h1&gt;
  
  
  &lt;strong&gt;FOURTH&lt;/strong&gt;
&lt;/h1&gt;

&lt;p&gt;(why am I counting like this?)&lt;/p&gt;

&lt;p&gt;Since we're going to mess with the codes of these themes, let's save it as something else, so that next time &lt;em&gt;oh-my-zsh&lt;/em&gt; updates, it won't overwrite your edits. With VS Code selected go to the top left of your screen and select &lt;code&gt;File &amp;gt; Save As...&lt;/code&gt;. I want moons on my prompt so I'm going to save mine as &lt;code&gt;moons.zsh-theme&lt;/code&gt;...obvi keep the extension of ".zsh-theme" and don't change the save location either, you want this to go into your &lt;code&gt;.oh-my-zsh &amp;gt; themes&lt;/code&gt; folder. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F3ptnml41byq5dv9eau3u.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F3ptnml41byq5dv9eau3u.png" alt="5"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;NOW we can do some stuff...&lt;br&gt;
&lt;strong&gt;Make sure you go back to your &lt;code&gt;.zshrc&lt;/code&gt; README to change your &lt;code&gt;ZSH_THEME&lt;/code&gt; to the new theme name you just saved so you can see the new changes as you edit!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Did you know WE CAN ADD EMOJIS!?😱!?😱!?😱!?&lt;br&gt;
If you're like me, you probably go about things the long way, or simply don't know the super-smart way. I opened up a new gmail email window and used my touch bar to put a bunch of emojis I wanted to play with...&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Ftl8z6mdgqjgsaensd0jx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Ftl8z6mdgqjgsaensd0jx.png" alt="6"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You could also open a text field anywhere and press &lt;code&gt;ctr + cmd + SPACE&lt;/code&gt; to pull up your emoji options: &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fv2lesccbo2p6sjwvoy8z.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fv2lesccbo2p6sjwvoy8z.png" alt="7"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h1&gt;
  
  
  &lt;strong&gt;FIFTH&lt;/strong&gt;
&lt;/h1&gt;

&lt;p&gt;Anyhowwww, once you have your emojis somewhere easy to access, you can copy-paste them into the code file of that theme. Just takes a little bit of deciphering and pattern-spotting to figure out where...&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fomnvi6rw5rwina6vvs5t.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fomnvi6rw5rwina6vvs5t.png" alt="8"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;What I've deduced is that &lt;code&gt;$FG[000]&lt;/code&gt; things designate color (FG stands for foreground I think). Also in this code there's &lt;code&gt;%{$reset_color%}&lt;/code&gt; which resets the color of the background and text to whatever was changed immediately before. Still have yet to figure out what &lt;code&gt;$my_orange&lt;/code&gt; is exactly, but I think it's another way of asking for colors. &lt;/p&gt;

&lt;p&gt;&lt;em&gt;oh-my-zsh&lt;/em&gt; theme files may be structured differently, but ultimately you want to find the code lines that deal with the PROMPT. On mine, the title has it commented out as &lt;code&gt;# primary prompt&lt;/code&gt;. From there, you just have to use your &lt;strong&gt;riddle-loving-raven-brain&lt;/strong&gt; to experiment a little with moving those tags around and finding WHERE to add your emoji! &lt;/p&gt;

&lt;p&gt;I suggest, if you want to alter stuff &lt;em&gt;safely&lt;/em&gt;, copy-paste the whole line of code somewhere else; then, comment it out so that you still have the untainted line to revert back to if you break something. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F6nfz61xm9kz0hrlbwqhm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F6nfz61xm9kz0hrlbwqhm.png" alt="4 copy"&gt;&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;On mine, down near line 23, we see the code written for &lt;code&gt;primary prompt&lt;/code&gt;. You can KIND of see in the &lt;code&gt;PS1&lt;/code&gt; text what it's doing. Right after our first color tag of &lt;code&gt;$FG[032]&lt;/code&gt; we see a teeny tiny &lt;code&gt;%~&lt;/code&gt;. &lt;br&gt;
You can look at this incomplete chart to see what the other little things mean:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;%n - username
%B - make bold
%m - short name of current host
%M - name of current host
%# - a `%` or a `#`, depending on whether the shell is running as root or not
%~ - relative path
%/ or %d - absolute path
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can experiment with changing the colors. This is a great chart that has all 256 and organizes the gray-scale and the main-16 too: &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fzb5hpq6acgwwfwsvgptq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fzb5hpq6acgwwfwsvgptq.png" alt="9"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So real quick, here's the original &lt;code&gt;af-magic.zsh-theme&lt;/code&gt; prompt-code-line-thing. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F7idsqyja4f7taybyqo9f.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F7idsqyja4f7taybyqo9f.png" alt="10"&gt;&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;And here's mine...I want &lt;strong&gt;MOONS&lt;/strong&gt;, so I'm going to change my &lt;code&gt;PS1&lt;/code&gt; to look like: &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fv9r80irah02hygzhvnwa.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fv9r80irah02hygzhvnwa.png" alt="11"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;As you experiment and change the colors etc etc, you can refresh your terminal with &lt;code&gt;$SHELL&lt;/code&gt;. You can uncomment stuff to help isolate what you're trying to target.&lt;/p&gt;

&lt;p&gt;Notice I changed the color at the VERY beginning of the &lt;code&gt;PS1&lt;/code&gt; line(&lt;code&gt;$FG[255]&lt;/code&gt;), and added a teeny tiny &lt;code&gt;%n&lt;/code&gt; in there because this is where I wanted to add my username. Then I have another color tag (&lt;code&gt;$FG[105]&lt;/code&gt;) right before all those ostentatious moons. This color will actually affect the thing AFTER the moons, which is &lt;code&gt;$(git_prompt_info)&lt;/code&gt;...essentially the path to your current git file you're working on. &lt;/p&gt;

&lt;p&gt;Also notice, I made a new constant called &lt;code&gt;NEWLINE=$'\n'&lt;/code&gt; and added it to the END of &lt;code&gt;PS1&lt;/code&gt;. Sometimes the file path is so long, I'd rather just start on a clean line...and I love snails so I had to add this little guy 🐌 too! Now when I press &lt;code&gt;ENTER&lt;/code&gt; the cursor is on the next line, right next to my little beloved snail pal. &lt;/p&gt;

&lt;p&gt;Also notice there's a &lt;code&gt;$FG[048]&lt;/code&gt; color tag before a &lt;code&gt;(!.#.&amp;gt;&amp;gt;)&lt;/code&gt; thing...this is the color of the little arrows that come at the end of my prompt line. &lt;/p&gt;

&lt;p&gt;What else did I do...&lt;br&gt;
I added &lt;strong&gt;LEAVES&lt;/strong&gt; to it too. This is going to happen in the group of lines called &lt;code&gt;# git settings&lt;/code&gt;. "Clean" means there are no changes to your git file, "Dirty" means there are uncommitted changes...something like that. Mostly, you'll be working in a "Dirty" state, so keep in mind you'll see it in this form most frequently. Here's what my git settings code looks like: &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F7kgwxpjc94lwjjn4jqwk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F7kgwxpjc94lwjjn4jqwk.png" alt="12"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Notice I kept a copy of the prefix up above so I can revert back if needed. The end of the &lt;code&gt;ZSH_THEME_GIT_PROMPT_PREFIX&lt;/code&gt; line has a color tag...that actually applies to what color your current git branch will be. I chose white. Then notice on &lt;code&gt;ZSH_THEME_GIT_PROMPT_DIRTY&lt;/code&gt; it has a teeny tiny &lt;code&gt;*&lt;/code&gt;...this will show up orange, and be present when I'm working on a "Dirty" file. &lt;/p&gt;

&lt;p&gt;I uncommented the entire &lt;code&gt;# right prompt&lt;/code&gt; lines of code because I just didn't want them.&lt;/p&gt;

&lt;p&gt;There's stuff in there about &lt;code&gt;# hg settings&lt;/code&gt;, I think that's another code editor? &lt;/p&gt;

&lt;h1&gt;
  
  
  &lt;strong&gt;SUMMARY&lt;/strong&gt;
&lt;/h1&gt;

&lt;p&gt;Here is my terminal now: &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F9kesyx0oy80y784ds1yg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F9kesyx0oy80y784ds1yg.png" alt="13"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;For the smarty-pants, I have summarized the process in only 987954837 steps!&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Terminal root dir: &lt;code&gt;code .zshrc&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Change &lt;code&gt;ZSH_THEME&lt;/code&gt; to "random"&lt;/li&gt;
&lt;li&gt;Use &lt;code&gt;$SHELL&lt;/code&gt; in your terminal to cycle themes&lt;/li&gt;
&lt;li&gt;Remember name of the one you like&lt;/li&gt;
&lt;li&gt;Terminal root dir: &lt;code&gt;cd .oh-my-zsh&lt;/code&gt; then &lt;code&gt;cd themes&lt;/code&gt; then &lt;code&gt;code [theme].zsh-theme&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;"Save As" a new file name in ".oh-my-zsh &amp;gt; themes"&lt;/li&gt;
&lt;li&gt;Change &lt;code&gt;ZSH_THEME&lt;/code&gt; to your chosen theme&lt;/li&gt;
&lt;li&gt;Alter your custom theme file using &lt;code&gt;$SHELL&lt;/code&gt; to refresh&lt;/li&gt;
&lt;li&gt;Repeat until satisfied&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If you want to get DEEPER, here are some helpful resources: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://blog.aamnah.com/sysadmin/zsh-custom-theme-ultimate-guide" rel="noopener noreferrer"&gt;https://blog.aamnah.com/sysadmin/zsh-custom-theme-ultimate-guide&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://blog.carbonfive.com/writing-zsh-themes-a-quickref/" rel="noopener noreferrer"&gt;https://blog.carbonfive.com/writing-zsh-themes-a-quickref/&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Love from me&lt;/p&gt;

</description>
      <category>zsh</category>
      <category>shell</category>
      <category>command</category>
      <category>line</category>
    </item>
    <item>
      <title>Pogs aren't obsolete, they can still help us understand Rails vocabulary...</title>
      <dc:creator>Inee Ader 🐌</dc:creator>
      <pubDate>Mon, 09 Nov 2020 04:28:59 +0000</pubDate>
      <link>https://dev.to/ineeader/pogs-aren-t-obsolete-they-can-still-help-us-understand-rails-vocabulary-2ij3</link>
      <guid>https://dev.to/ineeader/pogs-aren-t-obsolete-they-can-still-help-us-understand-rails-vocabulary-2ij3</guid>
      <description>&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F779ce8v6bp0491i48sgr.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F779ce8v6bp0491i48sgr.jpg" alt="307975376834mmmb"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You might be learning about setting up a Rails Application with Ruby using Active Record! Whew, lots of words. &lt;br&gt;
Let's talk about how our &lt;strong&gt;Rails Controller Actions&lt;/strong&gt; correspond to the &lt;strong&gt;HTTP verbs&lt;/strong&gt;, &lt;strong&gt;website URLs&lt;/strong&gt;, and &lt;strong&gt;CRUD actions&lt;/strong&gt;. &lt;/p&gt;

&lt;p&gt;I'm assuming you're using the MVC format of App-writing, which is to say you have Models, Views, and Controllers! Real quick, the &lt;strong&gt;Model&lt;/strong&gt; holds the logic of the App and its relationships to the other models. The &lt;strong&gt;Views&lt;/strong&gt; directory holds the code responsible for what the user SEES on your App site. The &lt;strong&gt;Controller&lt;/strong&gt;'s job is to be the middle-man between the Model and View, relaying data from the App to the user, and requesting data from the user to the App. &lt;/p&gt;

&lt;p&gt;There are four CRUD actions that are considered necessary for persistent storage application. &lt;strong&gt;Persistent&lt;/strong&gt; storage refers to any data storage device that keeps power after the device is powered off, such as a hard disk or a solid-state drive. In the case of Internet-ing, it's what keeps track of user data, payment info, and other records. &lt;br&gt;
First let's list out the &lt;strong&gt;CRUD actions&lt;/strong&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;C is for Create
R is for Read
U is for Update
D is for Delete
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;These are basically the bare minimum that an App's model should be able to perform. Like, CREATE an account, READ (show) my account information, UPDATE my account information, or DELETE my account. &lt;/p&gt;

&lt;p&gt;Then there are 5 &lt;strong&gt;HTTP verbs&lt;/strong&gt;. This is the TYPE of action performed on any given resource by the server:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;GET
POST
PUT/PATCH
DELETE
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;These verbs correspond to each of the CRUD actions: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;GET&lt;/strong&gt; is a Read--just retrieving information from server. &lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;POST&lt;/strong&gt; is a Create action, making a new entry in the database.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;PUT&lt;/strong&gt; is an Update action...but for an entire resource, meaning it overwrites the WHOLE entry in the database. &lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;PATCH&lt;/strong&gt; is also an Update action, but this time it's just changing one piece of that resource's entry, not the whole thing. &lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;DELETE&lt;/strong&gt; is self-explanatory, but I'll write it anyway--it is a Delete CRUD action and it removes the whole resource. 
(Btw, HTTP stands for HyperText Transfer Protocol, a seemingly vacuous phrase whose meaning doesn't help anyone.)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;On top of that, there are 7 distinct Controller Actions, which are defined as METHODS in your resource's controller page:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#index
#show
#new
#create
#edit
#update
#destroy
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;These also correspond to each of the CRUD actions, I bet you can figure that out. You need to write these as methods in the controller page so that the resource knows what you're talking about when you call those methods. The #index, #show, #new, #edit actions usually point to a page in the Views directory of your resource--then you can code out what you want to SEE when the App calls those methods. &lt;/p&gt;

&lt;p&gt;And lastly, this all has to follow RESTful conventions. It stands for &lt;strong&gt;RE&lt;/strong&gt;presentational &lt;strong&gt;S&lt;/strong&gt;tate &lt;strong&gt;T&lt;/strong&gt;ransfer, which just sounds like a random selection of ambiguous words, but don't worry about that since NO ONE ever refers to it that way. Defining the concepts of being RESTful in your code is...in one word, &lt;em&gt;labyrinthine...&lt;/em&gt; &lt;/p&gt;

&lt;p&gt;...and it's a bit frustrating that we have to deal with 4 different sets of vocabulary in order to instantiate our Rails App, but that's just the way it goes.&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F1vbmubjt6fhiobwotq9f.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F1vbmubjt6fhiobwotq9f.gif" alt="fy4a"&gt;&lt;/a&gt; &lt;br&gt;
&lt;em&gt;What does RESTful mean, though?&lt;/em&gt; Well, tough call because researching a concise definition is apparently impossible and cryptic at best, otherwise bordering on the occult. Everything about RESTful conventions is 30 pages long.&lt;/p&gt;

&lt;p&gt;Best I can do is this, &lt;strong&gt;To be RESTful is to have standardized labelling rules for your URLs that everyone can understand because it's so obvious.&lt;/strong&gt; Now YOU try to define RESTful conventions in one sentence.&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fm061aevxleq83f74q4yv.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fm061aevxleq83f74q4yv.jpg" alt="51f9lrm1h6y11"&gt;&lt;/a&gt;&lt;br&gt;
Here's an example. You like Pogs because you're a huge nerd with nostalgia for the 90s. You make an App to catalogue your collection and assert your Pog superiority. You create a Pog RESOURCE with a database. You'll have a Pog model page and a Pog Controller page with a matching Pog view page. I don't want to &lt;code&gt;seeds.rb&lt;/code&gt; a bunch of weirdo Pog data, so let's assume that YOU carefully added names and descriptions for each and every Pog in your illustrious collection. &lt;/p&gt;

&lt;p&gt;&lt;em&gt;Pog is your resource, this resource has a Model, View, and Controller!&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Next you write an index method in your PogController: &lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F7l8nq8kub43j67afwcxh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F7l8nq8kub43j67afwcxh.png" alt="Screen Shot 2020-11-08 at 7.13.28 PM"&gt;&lt;/a&gt;&lt;br&gt;
This tells the Pog model page to put all the pogs you ever added (in your &lt;code&gt;db file &amp;gt; migrate &amp;gt; bunchanumbers_create_pog.rb&lt;/code&gt; file) into an instance variable &lt;code&gt;@pogs&lt;/code&gt; for later reference. &lt;/p&gt;

&lt;p&gt;Now you'll go to the Views directory, find the Pog folder, and inside there, make a new file called &lt;code&gt;index.html.erb&lt;/code&gt; which is what the web App will display when you want to see the index! Rails is so smart, when you call the "#index" method in the PogController, it knows to look for a Pog folder in the Views directory for a file called "index" so it can display(GET) that info. &lt;/p&gt;

&lt;p&gt;Inside your &lt;code&gt;Views &amp;gt; Pogs &amp;gt; index.html.erb&lt;/code&gt; file, you'll write a simple thing to list all the pogs. Maybe it's like this: &lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F7hmp2r2zuczux4mq4nzn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F7hmp2r2zuczux4mq4nzn.png" alt="index"&gt;&lt;/a&gt;&lt;br&gt;
So you launch your localhost:3000 thing in your browser (via &lt;code&gt;rails s&lt;/code&gt;) and &lt;strong&gt;WHAT IS THE EXTENSION AFTER THAT?!&lt;/strong&gt; It's &lt;code&gt;/pogs&lt;/code&gt; because the RESTful rules would say that "index" is called in the URL by the plural of the resource in which you are listing all those things. &lt;/p&gt;

&lt;p&gt;RIDICULOUS ASIDE--((If you wanted an index of all the FROGS you've ever kissed, your page path would be &lt;code&gt;localhost:3000/frogs&lt;/code&gt;--calling on the FrogController#index method. That's just how Rails is: the #index method points to the plural form of your model as the URL extension.))--CARRY ON.&lt;/p&gt;

&lt;p&gt;Look at this neato cheat-chart I made for this very scenario: &lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fge5kc8yhr4xazty8xg87.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fge5kc8yhr4xazty8xg87.png" alt="Screen Shot 2020-11-08 at 5.31.14 PM"&gt;&lt;/a&gt; &lt;br&gt;
This chart is &lt;em&gt;kind of&lt;/em&gt; the summary of what being RESTful is all about...pretty much. When you launch your little localhost:3000 page, you can add &lt;code&gt;/rails/info/routes&lt;/code&gt; to the end of that URL and see all the available routes you have thus far in your App. You can also get rid of the paths you're not using by refining your routes page, but that's not what we're here to discuss today.  &lt;/p&gt;

&lt;p&gt;Now, on this &lt;code&gt;/rails/info/routes&lt;/code&gt; page, there's a column called "Path/URL"...really it refers to this SWEET Rails helper method which basically tells you how you can call a URL in your code files. &lt;code&gt;pog_path(@pog)&lt;/code&gt; is the path for the #show method in your PogController. An example would be like: &lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fxr1kg3rdh4b9ibajtah6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fxr1kg3rdh4b9ibajtah6.png" alt="update"&gt;&lt;/a&gt;&lt;br&gt;
Saying that when you SAVE edits to a Pog (using your strong params private method--read about it &lt;a href="https://api.rubyonrails.org/classes/ActionController/StrongParameters.html" rel="noopener noreferrer"&gt;here&lt;/a&gt;), it'll redirect you to THAT Pog's show page via the pog_path which takes in an argument of THAT instance of the Pog(@pog). Got it?    &lt;/p&gt;

&lt;p&gt;Couple extra points...you may have noticed that there's no &lt;code&gt;_path&lt;/code&gt; for the #create, #update, and #delete actions. This is because those methods will perform an action on the database, but doesn't need to be displayed on the page. The #new and #edit View pages will most likely have fill-out-forms for adding a new Pog, or editing an existing Pog. When your form is submitted, the #create and #update methods will take over to save that entry (#delete will just destroy it from the database). &lt;/p&gt;

&lt;p&gt;Also, some of those URLs mention &lt;code&gt;:id&lt;/code&gt; in the #show, #edit, #update, and #delete. This is because Rails needs to know WHICH Pog to show, edit, update, or delete. The ID is how Rails will find it in the &lt;code&gt;params&lt;/code&gt; hash. Within your methods, you may put something like: &lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F364qd5kws3qxf9samuns.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F364qd5kws3qxf9samuns.png" alt="show"&gt;&lt;/a&gt;&lt;br&gt;
((Real quick, params is like a transient pool of data that refers to the &lt;em&gt;parameters&lt;/em&gt; being passed to the PogController via a GET or POST request. More on &lt;a href="https://flatironschool.com/blog/how-params-works-in-rails" rel="noopener noreferrer"&gt;params&lt;/a&gt;))&lt;br&gt;
This sets an instance variable &lt;code&gt;@pog&lt;/code&gt; to be a particular Pog found by its ID within ALLLLL the Pogs in &lt;code&gt;params&lt;/code&gt;. You'll put something like this inside each method where you want that specific Pog to be referenced. &lt;/p&gt;

&lt;p&gt;(((And to be even more concise, you can make a &lt;code&gt;private&lt;/code&gt; method:&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fw9n9nt59rozrtousyxri.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fw9n9nt59rozrtousyxri.png" alt="findpog"&gt;&lt;/a&gt;&lt;br&gt;
And then add a &lt;code&gt;before_action :find_pog, only: [:show, :edit, :update, :destroy]&lt;/code&gt; line above the list of your non-private PogController methods.)))&lt;/p&gt;

&lt;p&gt;Then on your &lt;code&gt;Views &amp;gt; Pog &amp;gt; show.html.erb&lt;/code&gt; you can write: &lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fauxfm9bvpjhw94v48bpo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fauxfm9bvpjhw94v48bpo.png" alt="viewshow"&gt;&lt;/a&gt;&lt;br&gt;
And because you set the &lt;code&gt;@pog&lt;/code&gt; variable in your PogController#show method, Rails knows to pull up the name and stats of THAT particular Pog! Wicked smart. You can even add a picture of the Pog in this view page, so people know you have one of the treasured holographic Pog-Slammers that you could win the game with.&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fo08na5sqk2e6wm61o2dn.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fo08na5sqk2e6wm61o2dn.jpg" alt="45826229"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So the whole PogsController page looks like this now: &lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fu0t6ukbho70nlxaeu76z.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fu0t6ukbho70nlxaeu76z.png" alt="pogcontroller"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;REVIEW&lt;/p&gt;

&lt;p&gt;To make a Rails App, you are working with a few different sets of vocabulary: Rails Controller Actions, HTTP verbs, website URLs, and CRUD actions. Refer to that pretty chart in deep teal tones as a nice summary of how those all interact.&lt;/p&gt;

&lt;p&gt;Here's the pretty teal cheat-chart again so you don't have to scroll all over the place. &lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fm7am6zm3jyvb3w74x4ie.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fm7am6zm3jyvb3w74x4ie.png" alt="Screen Shot 2020-11-08 at 5.31.14 PM"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;How to Use: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Use the Controller Action to write your methods in the resource controller page, some of those will have matching View files.&lt;/li&gt;
&lt;li&gt;URL extension column tells you what to write in the address bar of your localhost page to see certain information. &lt;/li&gt;
&lt;li&gt;The HTTP verb is the TYPE of function the server is doing to fulfill your request; some built-in Rails conventions will have a &lt;code&gt;method:&lt;/code&gt; tag and you need to tell it which of these HTTP verbs you're using. (Example: &lt;code&gt;&amp;lt;%= button_to "Add New Pog", new_pog_path, method: :post %&amp;gt;&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;And Path Helper tells you how to refer to the URL within your code files for &lt;code&gt;redirect_to&lt;/code&gt;, &lt;code&gt;link_to&lt;/code&gt;, &lt;code&gt;button_to&lt;/code&gt;, and the like.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Whelp, hope that reading all that mess was helpful! I'm pretty WET behind the ears in the coding arena, so if I got something stupid-wrong, please let me know! &lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F2wojviio4i2w7m844dlz.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F2wojviio4i2w7m844dlz.gif" alt="router-riddle"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>rails</category>
      <category>restful</category>
      <category>crud</category>
      <category>actions</category>
    </item>
    <item>
      <title>Destructive Array Methods</title>
      <dc:creator>Inee Ader 🐌</dc:creator>
      <pubDate>Mon, 19 Oct 2020 02:06:49 +0000</pubDate>
      <link>https://dev.to/ineeader/destructive-array-methods-21c4</link>
      <guid>https://dev.to/ineeader/destructive-array-methods-21c4</guid>
      <description>&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Frpgz3afgj9kg5fr6oxe9.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Frpgz3afgj9kg5fr6oxe9.gif" alt="giphy"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Not long ago when I was FIRST dippin' my toes into learning some basic JavaScript coding, I was introduced to 4 common methods of destructive array manipulation! In just a second, I'll go over my silly ways of remembering the difference between &lt;code&gt;PUSH&lt;/code&gt;, &lt;code&gt;POP&lt;/code&gt;, &lt;code&gt;SHIFT&lt;/code&gt;, and &lt;code&gt;UNSHIFT&lt;/code&gt; array methods...THROUGH SONG! It's a powerful thing. (Oh yeah, these methods will also work in Ruby arrays too.) Hopefully you'll just read this blog once, and remember this wisdom forever because of how well this page is written.&lt;/p&gt;

&lt;p&gt;First of all, an array is a list of single items contained with square brackets []. The data could be in a string ("word(s) contained in quotes"), integer (2), float (3.14), or even an object {with key-and-value pairs}. Each item in the array is called an "element". An example array is like so: &lt;code&gt;["I want", 2, "waffles", {in my: mouth}, 40.596, "SECONDS AGO."]&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Second of all, what's "destructive" mean, anyway? Sounds pretty bad, do we want to be doing this stuff to our code? No, silly goose, it means that the method will &lt;strong&gt;permanently&lt;/strong&gt; alter the original array, so use these babies with caution! ((BTW, non-destructive methods will output the changes to the array, but not tarnish the glory of your original array.))&lt;/p&gt;

&lt;p&gt;Ok, so I always got confused with the naming of these methods and came up with weird ways of remembering them. "Push" and "Pop" kind of make sense, but what in heck does "Shift" and "Unshift" mean? If this helps you, I'll be quite surprised but also delighted! Without further ado, it's time for me to get some songs stuck in your head. &lt;/p&gt;

&lt;p&gt;=====================================================&lt;br&gt;
&lt;code&gt;PUSH&lt;/code&gt;: "Push it real good!" &lt;/p&gt;

&lt;p&gt;I think about the song "Push It" by Salt-N-Pepa. Most people think this song was meant to be sexual...and I will admit I thought it was too. HOWEVER, on doing some research (you get really good at googling when you're a programmer apparently), I learned that Salt-N-Pepa &lt;em&gt;neva&lt;/em&gt; actually meant this song to be sexual!!! They meant for this song to be about PUSHIN' IT ON THE DANCE FLOOR. I think about how you can "add to your dance moves via wiggly booty movement", ergo &lt;strong&gt;"adds an element to the back end"&lt;/strong&gt; of your array. &lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;br&gt;
 &lt;code&gt;array = [0, 1, 2, 3]&lt;br&gt;
         array.push("PUSH IT REAL GOOD")&lt;br&gt;
         array is now [0, 1, 2, 3, "PUSH IT REAL GOOD"]&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;This method needs you to specify what element to add. In this case, it's adding a string to the end of our pretend array. Mr. Bean's got a good &lt;code&gt;PUSH&lt;/code&gt; signature move, try it out!&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fj0pwaschqcma3yg2eul1.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fj0pwaschqcma3yg2eul1.gif" alt="1cc079fab52c8a1bf3457fbd20f3030a"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;=====================================================&lt;br&gt;
&lt;code&gt;POP&lt;/code&gt;: "Pop, lock and drop it!"&lt;br&gt;
So for this one, I think "Pop, Lock and Drop It" by Huey. In my mind...it'll pop, lock, and drop it...OFF THE END. This method &lt;strong&gt;"removes an element off the back end"&lt;/strong&gt;! Just pop that thing right off. Get it out of here. Easy-peasy-to-remember-squeezy. &lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;br&gt;
 &lt;code&gt;array = [0, 1, 2, 3, 4]&lt;br&gt;
         array.pop&lt;br&gt;
         array = [0, 1, 2, 3]&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;Since it is just removing the last element, you don't need to designate that element...its just gonna be like &lt;code&gt;array.pop&lt;/code&gt; and it knows how to do its thaaang. "Pop, lock, and drop it, get low, aight?"&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F35yk36tyhizx16dq3kyi.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F35yk36tyhizx16dq3kyi.gif" alt="I2HRFA"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;=====================================================&lt;br&gt;
&lt;code&gt;SHIFT&lt;/code&gt;: "We gotta get schwifty in here!"&lt;br&gt;
This method &lt;strong&gt;"removes an element off the front end"&lt;/strong&gt; of the array. This one's kind of round-about...I think about Rick and Morty's song "Let's Get Schwiftyyy". It's a pretty great song, but I remember how Rick's adventures usually blow the top off Morty's head, kind of. So losing something off the front of the array is like having the top of your head explode.&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;br&gt;
 &lt;code&gt;array = [0, 1, 2, 3, 4]&lt;br&gt;
         array.shift&lt;br&gt;
         array = [1, 2, 3, 4]&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;Holy Sh*ft, Morty! It's mind blowing, Morty! It's gonna explode your little b-b-brain out of your head, Mortyyy. It looks like this: &lt;code&gt;array.shift&lt;/code&gt; and doesn't need to know what to remove, Morty. It just knows to take off the first thing, forever. &lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Ffynd9ubehq2omwun58fh.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Ffynd9ubehq2omwun58fh.gif" alt="source"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;=====================================================&lt;br&gt;
&lt;code&gt;UNSHIFT&lt;/code&gt;: "Unshift my heart..."&lt;br&gt;
Ok...I admit, this one's a long-shot, but it worked for me. &lt;br&gt;
I remember Toni Braxton's "Unbreak My Heart"...which is like...undo it. Put- put it back...PUT THAT THING BACK WHERE IT CAME FROM OR SO HELP ME! I view the heart-area as part of the upper body, so this method will &lt;strong&gt;"add an element to the front"&lt;/strong&gt; of the array. &lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;br&gt;
 &lt;code&gt;array = [0, 1, 2, 3, 4]&lt;br&gt;
         array.unshift(5) "Unshift my heeeaaaaart..."&lt;br&gt;
         array = [5, 0, 1, 2, 3, 4]&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;For this method though, you need to tell it WHAT piece (element) to add back, so make sure you put that in parenthesis after the method. It'll look something like array.unshift(3), get it? I'm adding an integer to the front of the array...like I had 3 missing pieces of my heart to add back. &lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fh7r2t61yoalzd6tbcye0.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fh7r2t61yoalzd6tbcye0.gif" alt="tenor"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;=====================================================&lt;br&gt;
So let's review these odd-ball musings: &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;code&gt;PUSH&lt;/code&gt; IT REAL GOOD: &lt;strong&gt;adds&lt;/strong&gt; element to the &lt;strong&gt;back&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;POP&lt;/code&gt;, LOCK &amp;amp; DROP IT: &lt;strong&gt;removes&lt;/strong&gt; element from the &lt;strong&gt;back&lt;/strong&gt;. You have to tell it WHAT to nix.&lt;/li&gt;
&lt;li&gt;YOU GOTTA GET &lt;code&gt;SHIFT&lt;/code&gt;Y IN HERE(, MORTYYY): /Morty's brain explodes/ &lt;strong&gt;removes&lt;/strong&gt; element from the &lt;strong&gt;front&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;UNSHIFT&lt;/code&gt; MY HEART: &lt;strong&gt;adds&lt;/strong&gt; element to the &lt;strong&gt;front&lt;/strong&gt;, you have to tell it WHAT to add in front. &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Can you hear the songs in your head? Can you? I hope they're stuck in your head, but also helpful and amusing. Do &lt;strong&gt;YOU&lt;/strong&gt; have weird techniques to remember these too, or am I just bonkers?&lt;/p&gt;

&lt;p&gt;((Also, I'm still a super baby beginner at code, so if there are glaringly horrific mistakes in what I'm saying, please &lt;em&gt;try&lt;/em&gt; to leave a nice-&lt;em&gt;ish&lt;/em&gt; comment and I'll fix it!))&lt;/p&gt;

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

</description>
      <category>array</category>
      <category>method</category>
      <category>beginners</category>
      <category>ruby</category>
    </item>
  </channel>
</rss>
