<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by courtney on Medium]]></title>
        <description><![CDATA[Stories by courtney on Medium]]></description>
        <link>https://medium.com/@codebabble?source=rss-2d6ce00a7013------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*pAE9tCPoT3w1UOprpt8_vQ.jpeg</url>
            <title>Stories by courtney on Medium</title>
            <link>https://medium.com/@codebabble?source=rss-2d6ce00a7013------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 10:19:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@codebabble/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Rails/React App Tips]]></title>
            <link>https://medium.com/@codebabble/rails-react-app-tips-d3fa570f29bb?source=rss-2d6ce00a7013------2</link>
            <guid isPermaLink="false">https://medium.com/p/d3fa570f29bb</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[rails]]></category>
            <dc:creator><![CDATA[courtney]]></dc:creator>
            <pubDate>Fri, 05 Aug 2022 18:54:25 GMT</pubDate>
            <atom:updated>2022-08-05T18:54:25.159Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*4Wdkoyb6zf4IiY5MefRU-A.jpeg" /></figure><p>As I completed my capstone project for my bootcamp, I spent a few sleepless nights mulling over the dreaded errors that constantly felt like a gut punch as a beginner developer. Throughout my journey in creating my app, I made sure to take note of what I would do differently for the next app I would create. While, I plan to breakdown the tips in detail, here is a sneak peak of my Full Stack app I made called Urban Living!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mzaogPDPKkpevA3hjOOGbA.png" /></figure><h3>Tip # 1</h3><p>Take your time with planning out your app. Seriously, intentionally take it slow and your future self with thank you later. What does planning your app consist of you might ask? While your setup is not limited to these steps, it’s best to take them as helpful suggestions.</p><p>Think methodically about your models that you want to use in your Rails API backend and map it out. Here is my three models for this specific project:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I-pVKwhobRqgILuFFR-xVw.png" /></figure><p>You could also go further and wireframe your frontend with tools like draw.io!</p><h3>Tip # 2</h3><p>Save yourself the MAJOR headache and search for templates or boilerplates that other developers have already created that include the necessary gems and features that your app requires. Here was my initial template that connected both my backend and frontend:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*Q7CGO7ioztj9Imau7V0kcg.png" /></figure><p>Being able to work in one window was quite the game changer compared to our previous projects that required a backend folder and a separate frontend folder.</p><h3>Tip #3</h3><p>Create organized, clean, and seamless seed data. Deciding to create my own seed data was a great option for me considering the other challenges that I knew I would face. The data that I worked with was not going to be the issue, so I took time in creating the following data for my project:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1LhbDAUlJwWrX_79Zt7BsQ.png" /></figure><h3>Tip # 4</h3><p>TEST TEST TEST your features. Use your ‘rails c’ and browser console for evidence that your feature is or isn’t working! And if you’re still having difficultly, ask for help. Often, I would hear to google that or this, and as a new developer, google can be a daunting hole you can get sidetracked in. The best help is another fellow developer who is willing and able to work through the errors with you. I was most productive and successful with my time when I reached out for help. Stayed tuned for a total breakdown of my app in the next blog post and in the meantime, reflect on these tips. Good luck!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d3fa570f29bb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CRUD & Ruby on Rails]]></title>
            <link>https://medium.com/@codebabble/crud-ruby-on-rails-9e926945e668?source=rss-2d6ce00a7013------2</link>
            <guid isPermaLink="false">https://medium.com/p/9e926945e668</guid>
            <category><![CDATA[ruby-on-rails]]></category>
            <category><![CDATA[ruby]]></category>
            <dc:creator><![CDATA[courtney]]></dc:creator>
            <pubDate>Tue, 28 Jun 2022 22:21:09 GMT</pubDate>
            <atom:updated>2022-06-28T22:21:09.791Z</atom:updated>
            <content:encoded><![CDATA[<p>One of the biggest hurdle’s I faced when learning Ruby on Rails was integrating RESTful routes. RESTful routes fall into four general categories: Create, Read, Update, and Delete, commonly known as ‘CRUD’ actions. This blog contains a CRUD walkthrough using one of the labs I completed at Flatiron Schools.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*gjA78w2_Q8lSNZAnTMScqA.png" /></figure><h3><strong>C.R.U.D Walkthrough</strong></h3><p>As a quick review of the steps that need to happen prior to beginning the CRUD operations, first generate the <strong>model </strong>and <strong>controller </strong>for the application (model should be <em>singular </em>and<em> controller </em>should be<em> plural</em>):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cE5V9NVuAbn1u7k9jpiv5g.png" /></figure><p>Second, migrate and seed the data. We are going to input the data provided in the lab:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NOG6zar3kDOaSTutpiOVVw.png" /></figure><p>Run rake db:migrate db:seed</p><p>Finally, in order to check that everything is ready to go for the CRUD operations, run rails cand test Student.alland Instructor.all the following should be returned:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VgnLiNNKP5TcHxQVMCkRdQ.png" /></figure><p>Now that the relationships and validations are set, it’s time to start creating the CRUD operations!</p><p>The <strong>R</strong> in C<strong>R</strong>UD, known as, <strong>READ </strong>in order to show the list of students. First, we will create the index method that will return all the students with their instructors listed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vMcbgQtSEIBn7JYg2i8p-A.png" /></figure><p>This should return the following after running rails s :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/908/1*kJ2L53ziMW0E5zg7ClKQ3g.png" /></figure><p>Next the goal is to render one student and it’s details with the <strong>show</strong> method:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B1V1Vrk05KvFBDOqI889OA.png" /></figure><p>Which should then return the following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BOcye9lwyDZGE7_CDAd0ZA.png" /></figure><p>The <strong>C</strong> in <strong>C</strong>RUD, known as, <strong>Create </strong>in order to add a student to an instructors list:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hIeV1SktlRAWZ_imJDpbYw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EOqahZSRF9-_rT26TEv3fw.png" /></figure><p>Once you enter a student you want to create, the following should be returned in Postman:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tpfX4-mmK64gZ9wTE-WwRw.png" /></figure><p>The <strong>U</strong> in CR<strong>U</strong>D, known as, <strong>Update </strong>that allows you to edit a student’s details:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5K_Js-gd0DSDZJUtGMLjHA.png" /></figure><p>This should return the following within Postman:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4AlYHwbn5g9bd4WINmS6_Q.png" /></figure><p>Lastly, we are going to look a the <strong>D</strong> in CRU<strong>D</strong>, known as, <strong>Delete</strong> that will allow you to delete a student:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vz7_GDgL29jqgQTEkYKCTg.png" /></figure><p>Within Postman, you should include this in the browser with the student id you want to delete and once you hit SEND, the student should be deleted:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JrqJO2UUTNYH3-9kX9TvJw.png" /></figure><p>There you have it! The basic operations of CRUD within the RESTful routes. Hopefully, this is a helpful reference when beginning your learning!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9e926945e668" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ruby: Active Record Overview]]></title>
            <link>https://medium.com/@codebabble/ruby-active-record-overview-835e49985aca?source=rss-2d6ce00a7013------2</link>
            <guid isPermaLink="false">https://medium.com/p/835e49985aca</guid>
            <category><![CDATA[activerecord]]></category>
            <category><![CDATA[ruby]]></category>
            <dc:creator><![CDATA[courtney]]></dc:creator>
            <pubDate>Wed, 08 Jun 2022 15:25:34 GMT</pubDate>
            <atom:updated>2022-06-08T15:25:34.659Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*oI91rs0VPmQYfhm7lbFm0A.png" /><figcaption>Ruby</figcaption></figure><p>After a brutal 2 week crash course on Ruby, Active Record became the hero in redeeming Ruby’s challenges for beginners in relation to object-relational mapping (ORM).</p><h4>What is Active Record?</h4><p>A team of fed-up developers created the Active Record Ruby gem and <a href="https://guides.rubyonrails.org/active_record_basics.html">Rails Guide</a> defines Active Record below:</p><blockquote>“ Active Record is <strong>the M in MVC — the model — which is the layer of the system responsible for representing business data and logic</strong>. Active Record facilitates the creation and use of business objects whose data requires persistent storage to a database.”</blockquote><p>The first week of learning Ruby manually writing out the custom ORM’s was tedious and often led to mistakes. Using Active Record quickly sped up the process with synchronizing data and their respectful tables seamlessly, utilizing one-to-many and many-to-many relationships.</p><h4>Active Record as an ORM Framework</h4><p>Rails Guide list the following mechanisms as being the most important within Active Record:</p><blockquote>Represent models and their data</blockquote><blockquote>Represent associations between these models</blockquote><blockquote>Represent inheritance hierarchies through related models</blockquote><blockquote>Validate models before they get persisted to the database</blockquote><blockquote>Perform database operations in an object-oriented fashion</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/657/1*GSSulqKTP4TWBm97SM144A.png" /><figcaption>credit: Rails Guide</figcaption></figure><h4>Convention over Configuration</h4><p>Active Record follow the paradigm of <em>convention over configuration</em>. For example, one of the most important convention is — class names are singular and table names are plural.</p><p><em>Class Name = Artist</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kFp85JcokieezDQmtt41ig.png" /><figcaption><em>Class Name = Artist</em></figcaption></figure><p><em>Table Name = Artists</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AvN15laXRs76BJtbwwx7fA.png" /><figcaption><em>Table Name = Artists</em></figcaption></figure><p>To read more about Active Record’s convention over configuration <a href="https://guides.rubyonrails.org/active_record_basics.html#convention-over-configuration-in-active-record">here</a>.</p><h4><strong>Sum it up!</strong></h4><p>Knowing the basic mechanics of Active Record will help propel you into more complex web applications that require hefty data and strong communication between your database, client, and servers. Let Active Record do the heavy lifting and improve your productivity with your code!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=835e49985aca" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[React Building Blocks ]]></title>
            <link>https://medium.com/@codebabble/react-building-blocks-4b74b8fd782?source=rss-2d6ce00a7013------2</link>
            <guid isPermaLink="false">https://medium.com/p/4b74b8fd782</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[react-tips]]></category>
            <category><![CDATA[bootcamp]]></category>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[courtney]]></dc:creator>
            <pubDate>Thu, 19 May 2022 06:12:32 GMT</pubDate>
            <atom:updated>2022-05-19T06:12:32.724Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="React JS logo" src="https://cdn-images-1.medium.com/max/600/1*qm99PBZm_YQu0MQ1tvJD9A.png" /></figure><p>After spending the past few months working exclusively with Vanilla JS, it was time for the next phase of my learning, React. This tool, would allow access to, “A JavaScript library for building user interfaces” per the official documentations. This tool strengthens a developer’s ability to create more organized, accessible, and concise code. Not only is React JS one of the best tools in the toolbox, it’s also a highly desirable skill as a web developer, if you didn’t already have reason enough to learn.</p><p>During my learning experience with React, there were three key fundamental concepts that I hope to summarize below. Enjoy 😊</p><h3>React: Components 🗂</h3><p>Once React is installed and you have your blank canvas ready to be utilized. One of the first steps in prepping your code for functionality is by creating components. Components are recyclable bits of code that work independently as referenced by, w3schools. Components can be equally compared to JavaScript functions. They help us organize our user interface’s login and presentation and enable us to think that each piece in isolation, and apply structure to complex programs.</p><p>In almost every single-page web application, the following component will be automatically generated after create-react-app:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N_ShczNS-m8VyshwKujwqQ.png" /></figure><p>Within this component, React will process what is called JSX behind the scenes and the browser will then interpret that as JavaScript. See below:</p><figure><img alt="create react app home page" src="https://cdn-images-1.medium.com/max/713/1*ORYCDafreIYhtQfCY0B0NA.png" /><figcaption>credit: w3schools.com</figcaption></figure><p>If there were a simple way to sum up components it would be this: A component is a function that takes props as an argument and returns JSX.</p><h3>React: Props ☎️</h3><p>Now that you have your applications components, <strong>props</strong>, allows developers to turn the React components into dynamic templates. React allows us to pass units of information from a <em>parent</em> component down to a <em>child</em> component. This is props! Let’s not forget to mention, props, can hold any kind of data: strings, numbers, booleans, objects, and functions.</p><p>The only way for a <em>parent</em> component to pass data to its <em>child</em> components is via <strong>props</strong>. Having the ability to share this data between components by passing <em>props</em> down to a child component from a parent makes our components incredibly flexible!</p><h3>React: State 📓</h3><p>Now that you have your components and props, it’s time to dive into State, and see how we can make our components respond to change dynamically. State is data that changes over time per user interactions on your application. There is a 3 question checklist that was provided to me during my initial learning of determining when to use state and when to not. The checklist looks like this:</p><ul><li>🚫 or ✅ Is it passed as a prop?</li><li>🚫 or ✅ Can you compute it based on any other state or props in your component?</li><li>🚫 or ✅ Does it remain unchanged over time?</li></ul><p>By working with these building blocks of React for only two weeks, I was able to create multiple-single page web applications that consisted of a bank transaction ledger, Plant searcher, Pokemon Searcher and many more fun projects.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4b74b8fd782" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The DOM: The Breakdown ⚒]]></title>
            <link>https://medium.com/@codebabble/the-dom-the-breakdown-d9499aa10f7a?source=rss-2d6ce00a7013------2</link>
            <guid isPermaLink="false">https://medium.com/p/d9499aa10f7a</guid>
            <dc:creator><![CDATA[courtney]]></dc:creator>
            <pubDate>Mon, 25 Apr 2022 16:35:31 GMT</pubDate>
            <atom:updated>2022-04-25T17:01:42.139Z</atom:updated>
            <content:encoded><![CDATA[<h4><strong>What is the Document Object Model (DOM)?</strong></h4><p>The Document Object Model (DOM) is an interface for web documents. A 🌳 (tree) of “node objects” that represents a webpage. These nodes allow access and change to the document. Think of the DOM like an upside down tree. The root is at the top.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gMBu4B4pdXqNRrnk8ecmpg.png" /></figure><p><em>Okay, but what does that really mean…?</em></p><p>When your HTML is written and viewed in the browser, an option for developers is being able to access the elements panel in the browser developers tools on any website.</p><p><strong>You can:</strong></p><ul><li>listen for clicks and scrolls</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1008/1*CpJyJKzURvzB-LJC_Nxn0Q.png" /><figcaption>ex: To register a scroll event handler, you call the addEventListener() method on the target element</figcaption></figure><ul><li>add, move, remove elements, like text, images, etc.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3W0A1utovw9bOld410TDfg.png" /><figcaption>ex: removeChild() method</figcaption></figure><ul><li>fetch new data</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/775/1*S4E0WvI461etcq6U5eS6Dw.png" /><figcaption>ex: fetch API</figcaption></figure><ul><li>and many more!</li></ul><h4>The Benefits of the DOM:</h4><ul><li>it allows us to interface with the DOM via JavaScript</li><li>the core concepts (events, elements and classes) transcend all different types of frameworks like React, Angular and Vue.</li><li>you can change existing nodes</li></ul><h4>How Does the DOM Work?</h4><p>You can access the DOM using JavaScript and DOM programming with two variables: Window and Document objects.</p><ul><li>Window Object: is an object with methods and properties attached to the DOM window.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*x7g8I_Se2LYuPxSaIJ-RNw.gif" /><figcaption>credit @ Wes Bos</figcaption></figure><ul><li>Document Object: is an object inside the window that allows us to manipulate the DOM.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/801/1*zUdBvvVLgiiFWnjAW553yg.gif" /><figcaption>credit @ Wes Bos</figcaption></figure><p>While there are many other concepts to the DOM, after the completion of Phase 1 at Flatiron Schools, these were key takeaways during my learning. Feel free to correct anything! Thanks for reading :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d9499aa10f7a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>