<?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 Gabrielle Alexa on Medium]]></title>
        <description><![CDATA[Stories by Gabrielle Alexa on Medium]]></description>
        <link>https://medium.com/@gabalexa?source=rss-efabd3832304------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*r6mHnWmGIlBGr-35QUbDFw.png</url>
            <title>Stories by Gabrielle Alexa on Medium</title>
            <link>https://medium.com/@gabalexa?source=rss-efabd3832304------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 02:55:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@gabalexa/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[Using CSS To Create A Mobile Version Of Your Website]]></title>
            <link>https://medium.com/@gabalexa/using-css-to-create-a-mobile-version-of-your-website-cc8c5a174976?source=rss-efabd3832304------2</link>
            <guid isPermaLink="false">https://medium.com/p/cc8c5a174976</guid>
            <category><![CDATA[css]]></category>
            <category><![CDATA[mobile-compatibility]]></category>
            <category><![CDATA[css3]]></category>
            <category><![CDATA[mobile]]></category>
            <dc:creator><![CDATA[Gabrielle Alexa]]></dc:creator>
            <pubDate>Mon, 31 Aug 2020 01:49:39 GMT</pubDate>
            <atom:updated>2020-08-31T01:49:39.332Z</atom:updated>
            <content:encoded><![CDATA[<p>In building my personal website, I wanted to make sure that it looked good if ever pulled up on a mobile device. I typically use <a href="https://necolas.github.io/normalize.css/">Normalize.css</a> to force browsers to render the elements of my website consistently, but I wanted to begin creating different views for different devices instead. This would also allow me to set different views for different browser sizes on the computer.</p><p>In CSS3, Media Queries give you the ability to do this. To begin, I set up my website exactly as I wanted it to look on a computer. Here it is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p96oZP39Q0cq3wmZXEix7w.png" /></figure><p>Next, I opened up my css file and at the bottom, added the following code:</p><pre>@media all and (max-width: 800px) {</pre><pre>}</pre><p>Within that section, I provided code that would set the look for tablets.</p><p>I also added:</p><pre>@media all and (max-width: 500px) {</pre><pre>}</pre><p>Within that section, I provided code that would set the look for smartphones. That section looks like this:</p><pre>@media all and (max-width: 500px) {<br>.p-c {<br>width: 17em;<br>}</pre><pre>.project-card{<br>width: 17em;<br>}</pre><pre>.welcome{<br>height: 50vh;<br>}</pre><pre>.nav-item{<br>width: 100%;<br>}</pre><pre>.about-overflow{<br>padding-right: 10px;<br>padding-left: 5px;<br>flex-flow: column nowrap;<br>align-content: center;<br>align-items: center;j<br>ustify-items: space-around;<br>}</pre><p>To view my full CSS file, check it out on Github <a href="https://github.com/gabriellealexa/personal-website/blob/master/src/App.scss">here</a>.</p><p>Now, when you view my website on a mobile phone (or with a browser window width that is less than 500px) it looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/1*ZsHphBWnkC54dACyiCMFeQ.png" /></figure><p>And it looks pretty similar on tablets (or if the width of your browser window is less than 800px)!</p><p>View the full Github for my personal website <a href="https://github.com/gabriellealexa/personal-website">here</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cc8c5a174976" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting Started With React Native (+ NativeBase!)]]></title>
            <link>https://medium.com/@gabalexa/getting-started-with-react-native-nativebase-f2722d6d715f?source=rss-efabd3832304------2</link>
            <guid isPermaLink="false">https://medium.com/p/f2722d6d715f</guid>
            <category><![CDATA[nativebase]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[stylesheets]]></category>
            <dc:creator><![CDATA[Gabrielle Alexa]]></dc:creator>
            <pubDate>Tue, 25 Aug 2020 21:31:17 GMT</pubDate>
            <atom:updated>2020-08-25T21:37:09.572Z</atom:updated>
            <content:encoded><![CDATA[<h3>Getting Started With React Native (+ Native Base!)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/913/1*jBkbxVA-OrJTdj2jJeTvgQ.jpeg" /></figure><p>In 2019, <strong>53%</strong> of web traffic worldwide came from mobile users compared to <strong>56.7%</strong> coming from desktop users. This pairs with the fact that, thanks to smartphones, online connectivity is increasing in populations with emerging economies, according to <a href="https://www.pewresearch.org/internet/2019/03/07/mobile-connectivity-in-emerging-economies/">Pew Research Center</a>.</p><p>It’s clear that not only optimizing web applications for mobile, but knowing how to build mobile applications, is a necessary tool for any developer. So I finally decided to learn <strong>React Native</strong> and use the technology to build a simple news application.</p><p>This is just a guide to getting started but in a future blog, I’ll show you how to continue building your news app! Here’s the final repo:</p><h3>What is React Native (and how does it compare to React?)?</h3><p><a href="https://reactnative.dev/">React Native</a> is an open-source framework for building mobile applications. It uses native components, instead of web components, but it still requires some knowledge of React, like JSX, components, state, and props.</p><p>I paired it with <a href="https://nativebase.io/">Native Base</a>, which provides cross-platform UI components for React Native. To set up, I learned that I had to first update my computer after months of dismissing the little Catalina 10.15.6 reminder, but 45 minutes later I was ready to get started.</p><h3><strong>How To Set Up Your Development Environment:</strong></h3><p>It’s a lot faster to use <a href="https://expo.io/">Expo CLI</a> to get started. If you’re familiar with Create-React-App, Expo is the React Native version.</p><p>Expo allows you to develop, build, deploy, and quickly iterate on iOS, Android, and web apps from the same JavaScript/TypeScript codebase. It comes with a lot of features, which will enable you to access the camera, use location features, setup notifications, and more, rather than having to build those from scratch. You also get to run the Expo client on your mobile device so you can run your projects while you’re developing them.</p><pre># install expo<br>npm install --global expo-cli<br># create a new project<br>expo init news-app</pre><p><strong>To install Native Base:</strong>yarn add native-base --save</p><p><strong>To install Expo fonts: </strong>expo install expo-font</p><p>Alternatively, you can use React Native’s built-in CLI. React Native CLI does require a Mac for iOS development, as it requires Xcode. For Android development, you can use Android Studio on most operating systems.</p><p>When you build an app using React Native CLI, it’s considered a ‘pure’ React Native app. It doesn’t come with a lot of the features that Expo does and you’ll need separate build chains for iOS and Android. But some third-party packages require React Native CLI so it’s good to know!</p><pre>#initialize new project<br>react-native init news-app<br>#change to your project&#39;s directory<br>cd news-app</pre><p><strong>To install Native Base:</strong> npm install native-base --save</p><p><strong>To install peer dependencies:</strong> npm install native-base --save</p><h3>Getting Started With Native Base Components</h3><p>Now, you’re all set to begin coding! Native Base has some great components, like stylized headers, footers, tabs, and lists. Here’s what I came up with:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/1*qZfF3OU5Vix-oofOnvyUxw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/1*4z3i8IqiIn3XfI6_7NPjMA.png" /></figure><p>I started with a &lt;Header&gt; component to display the app name, Info Riot. Then I used the &lt;Tabs&gt; component to separate the news feed into a Top Headlines tab and a U.S. Politics tab. I used the &lt;List&gt; component to create a list of news items. And then I finished the screen with a &lt;Footer&gt; component.</p><p>Currently, everything above is dummy data, but eventually I want to use the NewsAPI to feed real data into the app.</p><p>To look at the tabs more in-depth, you can view my news app on Github <a href="https://github.com/gabriellealexa/Inforiot-frontend">here</a>. The tab screen is stored in a <a href="https://github.com/gabriellealexa/Inforiot-frontend/tree/master/src/screens">screens</a> folder within an src folder and the individual tabs are stored in a folder within that one called <a href="https://github.com/gabriellealexa/Inforiot-frontend/tree/master/src/screens/tabs">tabs</a>.</p><h3>Getting Started With Styling</h3><p>React Native also has Stylesheets, which are similar to CSS stylesheets. Stylesheets are stored outside of the render function. They are defined using the create() method.</p><pre>const styles = StyleSheet.create({<br>   container: {<br>     backgroundColor: &quot;#FFF&quot;<br>    },<br>   mb: {<br>     marginTop: 10,<br>     marginBottom: 15,<br>    },<br>   top: {<br>     textDecorationLine: &#39;underline&#39;,<br>    }<br>  });</pre><p>Above, I’ve set the backgroundColor of a container to white (#FFF). To use that background color, I head to the container component and:</p><pre>&lt;Container style={styles.container}&gt;<br>Here you have a container with a white background!<br>&lt;/Container&gt;</pre><p>I’ll be continuing to build this news app, and sharing breakdowns of all the features as I go, but for now the first screen is complete.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f2722d6d715f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Implementing Bootstrap in a React.js Application]]></title>
            <link>https://medium.com/@gabalexa/implementing-bootstrap-in-a-react-js-application-72e79824e2f9?source=rss-efabd3832304------2</link>
            <guid isPermaLink="false">https://medium.com/p/72e79824e2f9</guid>
            <category><![CDATA[frontend-development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[bootstrap]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Gabrielle Alexa]]></dc:creator>
            <pubDate>Thu, 11 Jun 2020 17:50:45 GMT</pubDate>
            <atom:updated>2020-06-11T17:51:44.135Z</atom:updated>
            <content:encoded><![CDATA[<h3>How To Implement Bootstrap in a React.js Web Application!</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_0JdRKChkGZZ1MCgrr7rAA.jpeg" /></figure><p>One of my favorite CSS frameworks has always been Bootstrap — and considering it’s the sixth most starred project on Github, many people agree! I’ve also begun building web applications using React, a component-based JavaScript library. When Bootstrap and React work together, it can save you a lot of time when creating responsive web applications.</p><p>To begin, fire up a new create-react app using the command line:</p><pre>npx create-react-app new-app</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MTyRTTHXk2pTDpN9z62czA.png" /></figure><p>Now, cd into the app folder and install react-bootstrap:</p><pre>cd new-app<br>npm install react-bootstrap bootstrap</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TBdXoFdt99SNVEbLZaWw0A.png" /></figure><p>You will also need to import the Bootstrap CSS file, which I typically place at the top of my App.js(x) file:</p><pre>import &#39;bootstrap/dist/css/bootstrap.min.css&#39;;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/868/1*g1rilw5jpSS-PJ729dkBSg.png" /></figure><p>React-Bootstrap offers a number of components for you to use in your React projects, such as nav bars, forms, and carousels. To use them, simply import the component and then nest them within your other components like so:</p><pre>import ComponentName from ‘react-bootstrap/ComponentName’;</pre><p>So to implement a carousel, first I created a carousel class component in a ‘HomeCarousel.jsx’ file and imported the Bootstrap carousel component at the top:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/854/1*YMHVCdOqfiNTYUa3buTjbw.png" /></figure><p>The React-Bootstrap documentation shows you how each Bootstrap component is implemented <a href="https://react-bootstrap.github.io/components/carousel/">here</a>. I copy-pasted their example code and filled in the image links within my HomeCarousel’s render method.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PbR1O0ERYWken4cCT0N-tQ.png" /></figure><p>As you can see above, carousel components are made up of individual slides (called items), on which can place images and captions. I changed the img src of each slide but left the example text, which I can easily change later. Here’s how the carousel looks:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GkStjBg12sfc_zJgRBccRQ.png" /></figure><p>Note that it’s responsive, so it automatically resizes when the window is resized. I cropped all of my carousel images to 1600 x 582 because otherwise, the carousel component was changing shape for every slide (which looked messy IMO!). It’s been a lot of fun to test out different Carousel components to see how they can be combined to form outstanding, responsive web applications.</p><p><a href="https://github.com/gabriellealexa/Bi-Girls-Club-Frontend">Here’s</a> an e-commerce application I created using both React.js and Bootstrap, for more examples of Bootstrap components!</p><p>And remember to read the Bootstrap documentation <a href="https://react-bootstrap.github.io/">here</a> because it’s very straightforward!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=72e79824e2f9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using Active Storage To Handle Image Uploads In Ruby On Rails]]></title>
            <link>https://medium.com/@gabalexa/using-active-storage-to-handle-image-uploads-in-ruby-on-rails-b8df32be7d79?source=rss-efabd3832304------2</link>
            <guid isPermaLink="false">https://medium.com/p/b8df32be7d79</guid>
            <category><![CDATA[imagemagick]]></category>
            <category><![CDATA[ruby]]></category>
            <category><![CDATA[active-storage]]></category>
            <category><![CDATA[activerecord]]></category>
            <category><![CDATA[ruby-on-rails]]></category>
            <dc:creator><![CDATA[Gabrielle Alexa]]></dc:creator>
            <pubDate>Fri, 24 Apr 2020 18:16:58 GMT</pubDate>
            <atom:updated>2020-04-24T18:16:58.628Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hh8qo_5McIhq27ea6rqNbQ.jpeg" /></figure><p>For my Mod 2 final project at the <a href="https://flatironschool.com/">Flatiron School</a>, I set out to create a dating app in Ruby on Rails. I knew that it would require a registration form where the user could supply basic information about themselves. But while I was familiar with user inputs via text fields, text areas, and dropdown menus, I had no idea how to allow users to upload a profile picture.</p><p><strong>Enter </strong><a href="https://github.com/rails/rails/tree/master/activestorage"><strong>Active Storage</strong></a><strong>! ✨💼😍📦😱🗄❤️🗂👩🏾‍💻🧳</strong></p><h3>What is Active Storage?</h3><p><strong>Active Storage</strong> is a framework that handles file uploads, allowing you to store them as attachments locally or on a third-party cloud storage service (like Amazon s3 or Microsoft Azure Storage). It then links those attachments to an Active Record object.</p><p>Active Storage isn’t just useful for storing images — it can also generate image representations for non-image uploads, such as videos or PDFs. By combining it with ImageMagick, you can even manipulate image uploads. For now, I just want users to upload a profile picture when they register, and for my app to store that picture locally.</p><h3>Setting up Active Storage</h3><p>To begin implementing Active Storage, I opened up the Rails dating application I had already created. Then, I ran rails active_storage:install. This created a migration file that set up two tables, active_storage_attachments and active_storage_blobs<strong>.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7aoKAdal4iufbyz3uTrhNA.png" /></figure><p>Active Storage stores information about each file — such as filename, size, and metadata — in active_storage_blobs. active_storage_attachments is a join table that connects those blobs to a model (in this case, my user model). Active Storage’s polymorphic associations spare me from having to add columns to the models I already created. I used rails db:migrate to run this migration.</p><h4>Adding Active Storage To A Model</h4><p>To add an Active Storage association to a model, I added has_one_attached:image to my user.rb model. If I was storing multiple user images, I would’ve used has_many_attached:image alternatively.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VCYIIOUAXcdvC7jyE3aLhA.png" /></figure><p>Normally, I would have navigated to my users_controller.rb file and added .permit(:image) within my user_params. In this case, however, I just used .permit! I will definitely go back later to specify which user_params are permitted but I still expect to change the registration form around.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/918/1*1dchu1Xo9Dsv8j1-lwhxaA.png" /></figure><h4>Configuring Active Storage</h4><p>Next, I had to indicate where images would be stored. If I was using Amazon s3 or Google Cloud, this is where I’d declare those services. I chose to store my files locally so in config/storage.yml, I added:</p><pre>local:<br>  service: Disk<br>  root: &lt;%= Rails.root.join(&quot;storage&quot;) %&gt;</pre><p>Then, in config/environments/development.rb, I added config.active_storage.service = :local within Rails.application.configure do:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8UVyyRUtHqSbsd2dRYtMCg.png" /></figure><h4>Allowing Users To Upload On The Front-End</h4><p>Finally, I added a file upload field to my pre-existing user registration form. Inside my &lt;%= form_for @user do |f| %&gt; tag (located in the app/views/users/new.html.erb file), there were already text_field_tag, password_field_tag, and select_tag helpers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/914/1*wCpCNAb9K7CiZJ1dnfBsfw.png" /></figure><p>I added a new f.label and f.file_field for :image, which inserted a “Choose File” button within the form. Clicking “Choose File” opens a Finder/File Explorer window where the user can select a profile image on their device.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UtIGVLMGM5bMCQDIfamUyA.png" /></figure><p>My registration form now looked like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/958/1*BH-aMvwFo8HYoIfeUXTKXg.png" /></figure><h4>Displaying User Images</h4><p>Once the user successfully registered, I could call .image on an instance of a user and their profile photo would come up. For example, in my app/views/users/show.html.erb file, I used theimage_tag helper and set @user.image as the url:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TI2L6AdSfPwYb24n8xTsAg.png" /></figure><h4>Expanding Active Storage</h4><p>To improve my image uploads, I ultimately want to expand the functionality of Active Storage to accept additional file uploads once the user has already created an account. Each user’s profile currently displays a single profile image. However, most dating apps feature multiple photos and let the user select an avatar to represent them across the site. I would love to display more user images in a gallery div on their profile!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*reREFvVYIpu37c5yVt2o1g.png" /></figure><p>Additionally, users can currently upload any file type or size, which could potentially cause the image_tag helper to send an error. The ImageMagick software suite is used to modify, edit, and convert image files. By combining Active Storage and ImageMagick, I would automatically resize image uploads, convert all file types to .jpg, and provide users with basic crop/rotate tools.</p><p>By auto-resizing images, I wouldn’t have to rely on the image_tag helper, which currently squishes the image to fit the values stored in the size attribute. Overall, I want to get more comfortable with storing user images, since that’s one of the most important parts of a dating/social app!</p><h3>Relevant Links</h3><p><strong>Active Storage:</strong> <a href="https://github.com/rails/rails/tree/master/activestorage">https://github.com/rails/rails/tree/master/activestorage</a><br><strong>ImageMagick:</strong> <a href="https://github.com/ImageMagick/ImageMagick">https://github.com/ImageMagick/ImageMagick</a></p><p><strong>My website:</strong> <a href="http://gabriellealexa.com/">http://gabriellealexa.com</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b8df32be7d79" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building my first CLI app in the middle of a pandemic.]]></title>
            <link>https://medium.com/@gabalexa/building-my-first-cli-app-in-the-middle-of-a-pandemic-7ecaa90ce5c0?source=rss-efabd3832304------2</link>
            <guid isPermaLink="false">https://medium.com/p/7ecaa90ce5c0</guid>
            <category><![CDATA[object-oriented-software]]></category>
            <category><![CDATA[sexuality-education]]></category>
            <category><![CDATA[tty-prompt]]></category>
            <category><![CDATA[activerecord]]></category>
            <category><![CDATA[ruby]]></category>
            <dc:creator><![CDATA[Gabrielle Alexa]]></dc:creator>
            <pubDate>Fri, 27 Mar 2020 19:14:26 GMT</pubDate>
            <atom:updated>2020-03-27T19:43:35.016Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dv2kcl6QsNa3GOzlm2UanQ.jpeg" /></figure><p>Earlier this month, I enrolled in an Immersive Software Engineering Bootcamp at the Flatiron School. I did not expect that a mere two days into the program, the world would be social distancing to slow the spread of COVID-19.</p><p>Now, we observe lectures via Zoom meeting, check-in with instructors and coaches on Slack, use screen sharing software for pair-programming exercises, and practice our skills with online labs. Whatever challenges we expected are exacerbated by a dramatically shifting tech industry and digital culture. There are also new anxieties fueled by constant novel coronavirus updates via social and corporate media. A week ago, I was sure that I would fail the program’s first module and have to start all over again.</p><p>The good news is: I passed!</p><p>For our mod 1 final project, we had to take everything we’d learned about Ruby, ActiveRecord, and object orientation, and construct a CLI (Command Line Interface) CRUD application. It was supposed to access a Sqlite3 database using ActiveRecord and allow users to interact with that database. I pitched an app called <strong>Canary</strong> that would connect users of all ages to sex education resources. Its database would contain user information, which could be edited and deleted within the app.</p><h3>Getting Started</h3><p>I was inspired to create Canary because as a writer, I often cover topics within sexuality, sexual health, and LGBTQ+ identity. I am very familiar with the state of sexual education in the United States and the harm that informs. Only 29 states (and the District of Columbia) require sex education and only 17 require it be medically accurate. The Trump administration has consistently favored abstinence-only sex education programs, which often ignore or distort information about gender, sexual violence, LGBTQ+ individuals, and abortion. In Texas, where the majority of school districts teach an abstinence-only curriculum (or nothing at all), we see <a href="https://www.dallasnews.com/news/politics/2019/09/19/texas-abstinence-only-sex-ed-isnt-working-according-to-groups-urging-kids-be-taught-more-about-contraception/">high rates of youth STI transmission, sexual assault, and pregnancy</a>. Some classrooms even teach that condoms/contraceptives do not work, amongst other fear-based strategies to encourage abstinence.</p><p>High-quality, comprehensive sex education has the ability to shift societal norms and prepare young people (and adults!) to make smart decisions. I wanted my app to tackle this problem while being sensitive to different age groups. There are some topics that might be too inappropriate or complex for children, but others that adults would feel too advanced for. Canary’s database would have to include lessons organized by three different age groups — youth (ages 8–12), teens (13–17), and adults (18+). At registration, users would be prompted to set their age group, so that they would only see lessons specifically for them.</p><h3>Building The App</h3><p>Let me begin by saying that I didn’t think I could do this. I needed a way for users to navigate different menus and had no idea how. I was familiar with <strong>gets</strong> and <strong>gets.chomp </strong>in Ruby for accepting string inputs from users and storing it in a variable but in this case, I wanted to force users to pick between set options.</p><p>TTY-Prompt was a godsend. I used this Gem to construct a welcome menu, main menu, and learning menu, and to list each lesson available to the user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d-jeAPwye1ade2_MLemN5w.png" /></figure><p>Through this project, I developed a much deeper understanding of ActiveRecord relationships, which we had only begun to cover in lectures. Our projects needed to have three models with corresponding tables, including a join table. I created a User model/table, a Lessons model/table, and a Grade Level model/table that would act as the joiner.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7jB18fEA3h_8m6GqTu-Z2w.png" /></figure><p>My app’s CRUD functions allowed users to change their username and grade level, and delete their accounts. Grade level changes would also let change the lessons shown to them via the Learn menu. These changes would automatically be saved to the app’s database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q5VRIyAcnQH1S0UbY1PC8Q.png" /></figure><p>The command line kept logging SQL commands so I also learned how to turn that off! While that might be important in other contexts, the user didn’t need to know how the database was changing as they made different selections.</p><p>For the sex ed lessons, I used the Launchy gem to connect Canary to educational videos and posts on Youtube or Scarleteen.com. Launchy allows you to open external applications, like your default web browser, from within a Ruby app. My friend Eva is a host on <a href="https://www.youtube.com/playlist?list=PLFrqObEvDOwkfkcik9TOYgBh4RlhIXj-_">Sex Ed School</a>, a Youtube series aimed towards kids, so I was able to create a really good youth syllabus in my app! And then I used Scarleteen to build both the teen and adult syllabuses.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h0LSFCXhOuctjnTdhUQ8lw.png" /></figure><h3>Conclusion</h3><p>I started working on Monday and presented my project, via Zoom, to my instructors on Thursday. They asked me to add a method so that users could view all other users in their age group, which might be used to create community and messaging features in the future. I was able to do that successfully.</p><p>If I continued building this app, I would change the User model so that login was done through an email address instead of username and add password protection to user accounts. I would also add a bookmark feature so that people could highlight lessons they enjoyed and quickly access them later, instead of scanning through a long list of available lessons. Next, I would add more information about each lesson so that users weren’t merely choosing based on the name, and so I could organize the lessons by topic. And finally, I would create different ways for users to communicate with each other and participate in group learning.</p><p>As we step into Mod 2, and into web frameworks, I hope to learn the skills that would enable me to continue building this app — as well as work on other projects that enhance sexual health, sexuality, and human connection.</p><p>TTY-Prompt: <a href="https://github.com/piotrmurach/tty-prompt">https://github.com/piotrmurach/tty-prompt</a></p><p>Launchy: <a href="https://rubygems.org/gems/launchy/versions/2.4.3">https://rubygems.org/gems/launchy/versions/2.4.3</a></p><p>My published writing on sexuality, dating, and LGBTQ+ identity: <a href="https://gabriellealexa.com/selected-writing/">https://gabriellealexa.com/selected-writing/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7ecaa90ce5c0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Enslaved Black People Were Too Dope For Ya’ll To Play Them Like This (on Kanye).]]></title>
            <link>https://medium.com/@gabalexa/enslaved-black-people-were-too-dope-for-yall-to-play-them-like-this-and-other-ways-that-kanye-e5df79e90d5f?source=rss-efabd3832304------2</link>
            <guid isPermaLink="false">https://medium.com/p/e5df79e90d5f</guid>
            <category><![CDATA[racism]]></category>
            <category><![CDATA[blacklivesmatter]]></category>
            <category><![CDATA[slavery]]></category>
            <category><![CDATA[reading-books]]></category>
            <category><![CDATA[kanye-west]]></category>
            <dc:creator><![CDATA[Gabrielle Alexa]]></dc:creator>
            <pubDate>Wed, 09 May 2018 10:40:05 GMT</pubDate>
            <atom:updated>2020-04-24T18:28:59.833Z</atom:updated>
            <content:encoded><![CDATA[<p>I’m sure many of us are tired of hearing about Kanye West.</p><p>After all, since he decided to make his bromance with your president Twitter official, <a href="https://www.newyorker.com/culture/on-and-off-the-avenue/pope-rihanna-and-other-revelations-from-the-catholic-themed-2018-met-gala">Rihanna took over as pope</a>, and Trump <a href="http://www.bbc.com/news/world-middle-east-33521655">pulled out of a deal that reduced Iran’s uranium stockpile by 98%</a>. So perhaps, there are newer, bigger fish to fry.</p><p>But in the aftermath of last week’s social media circus of ‘free thought’, I have encountered a concerning number of black folks who think that Kanye, <a href="http://www.businessinsider.com/donald-trump-kanye-west-reading-books-2018-5">someone who proudly abstains from reading</a>, had a valid point. And I’m writing this for ya’ll.</p><h3>Because it’s especially fucked when it’s Black people spreading white supremacist ideologies as fact —but in every decade, <a href="https://www.vox.com/identities/2018/5/1/17304196/bill-cosby-guilty-outburst-hypocrisy-metoo">a new prominent Black person rises to the task</a>. <em>And you guys run with it.</em></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xEIfZRFgJxMGCYTi." /><figcaption>“Silhouette of masked singer with microphone on stage” by <a href="https://unsplash.com/@abl?utm_source=medium&amp;utm_medium=referral">Axel Antas-Bergkvist</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Kanye West said that slavery was a choice. Later, he clarified that he actually meant <em>remaining</em> enslaved for 400 years was a choice, which is not much better. And then, he said Black people are mentally enslaved, something something, free thought.</p><p>And while these beliefs aren’t popular in the Black community, that doesn’t make them unique. Enslaved Black people were described as docile, content, and incapable of formulating plans since slavery existed. It was one way that white people justified it. So Kanye isn’t analyzing slavery in some new or profound way, he’s just parroting old white supremacist ideologies.</p><h3>And most importantly, he’s wrong because enslaved Black people woke up every single morning and thought, “fuck this shit.”</h3><p>They noticed that their value to white people was in how much work they did —<a href="https://books.google.com/books?id=Tw5kZ4qOMzoC&amp;pg=PA6&amp;lpg=PA6&amp;dq=the+docile+negro+pro-slavery&amp;source=bl&amp;ots=HSBcufhBkT&amp;sig=oaqfaT6zPmKWWoYRM2YW9D7CWLs&amp;hl=en&amp;sa=X&amp;ved=0ahUKEwjX5arLnvjaAhWjuFkKHe63C7UQ6AEIQjAE#v=onepage&amp;q=the%20docile%20negro%20pro-slavery&amp;f=false"> so they intentionally did less of it</a>. Every day, they wondered, “in what unique ways can I create a financial burden for these people, while doing as little work as possible?” <strong>And then they did that.</strong></p><p>They pretended to be pregnant, went on strike, got just sick enough to escape work, and damaged white people’s shit as much as possible. In public, they performed a version of blackness in which they were dumb, slow, and incompetent; in private, they were like, “those motherfuckers woulda thought I was plowing a field in an entire week.”</p><p>They created secret codes and elaborate systems for escape, and participated in hundreds of slave rebellions, until the entire system burned to the ground because it was no longer worth it. <strong>All of which Kanye would know if he would pick up a fucking book.</strong></p><p>Kanye even posted a quote attributed to Harriet Tubman, <a href="http://wcm1.web.rice.edu/fake-tubman-quote.html">although she never actually said that shit</a>, which reads, “ I could have saved thousands — if only I’d been able to convince them they were slaves.”</p><h3>It suggests that slaves were oblivious to their situation, rather than employing daily effort to escape enslavement and make white lives miserable. Which is how slavery went, in reality.</h3><p>Kanye also brought us into the present by suggesting that we remain mentally enslaved today. He said, “there’s been more focus and more marches on whites killing blacks than kids in Chicago killing each other.”</p><p>Again, he is wrong. So many activists, organizations, public officials, and regular degular citizens <a href="https://www.nytimes.com/2016/08/06/opinion/black-activists-dont-ignore-crime.html">focus on and march against violence in black communities</a>. And they still find the time to tackle the way people of color are <a href="https://www.vox.com/cards/police-brutality-shootings-us/us-police-racism">disproportionately targeted, killed, and imprisoned</a> by the carceral state. Black time management is truly on-point.</p><h3>I would also like to point out that black-on-black crime doesn’t actually exist.</h3><p>The phrase black-on-black crime suggests that it is a unique evil, rather than an expression of the fact that criminals don’t travel to commit crimes. They do it in their own neighborhoods. And thanks to <a href="https://faculty.wharton.upenn.edu/wp-content/uploads/2017/11/Krimmel-Redlining-DRAFT_Nov2017_v2.pdf">redlining and segregation</a>, black people live near black people, white people live near white people, and every color in between lives near other people who look like them as well.</p><p>So, white people usually kill white people. At about the same rate, black people kill black people. All of that is just called ‘crime’, and poor people commit hella crimes, which would suggest that creating resources for lower-income people would be a better use of our time.</p><p>We <em>could</em> talk about <a href="https://www.huffingtonpost.com/2012/02/24/lending-discrimination-black-borrowers-face-higher-hurdles-in-lending-study_n_1300509.html">lending discrimination</a>, <a href="http://www.nber.org/digest/sep03/w9873.html">employment discrimination</a>, <a href="https://www.thisamericanlife.org/562/the-problem-we-all-live-with-part-one">segregation in education</a>, and other ways white supremacy has endeavored to keep black people poor.</p><p>We could even talk about the fact that ‘pulling ourselves up by the bootstraps’ is a myth, that the American Dream is a hoax, and that <a href="http://ideas.time.com/2012/09/07/the-myth-of-bootstrapping/">social mobility is difficult for everyone</a>.</p><h3>But mostly, I think we should talk about how our search for mentally enslaved people should stop at any Black person who is willing to throw other Black people under the ‘victim mentality’ bus.</h3><p>We should talk about how our textbooks have <a href="http://www.slate.com/blogs/schooled/2015/10/06/texas_textbook_controversy_roni_dean_burren_finds_omission_in_son_s_geography.html">described enslaved black people as ‘workers’</a> rather than… well, enslaved black people; we should talk about <a href="https://www.usatoday.com/story/news/nation/2018/04/21/school-slavery-homework-assignment-texas/538770002/">teachers asking students to list positive elements of slavery</a>, and school boards that <a href="https://www.npr.org/sections/ed/2015/07/13/421744763/how-textbooks-can-teach-different-versions-of-history">voted to inadequately teach slavery’s role in the Civil War</a>; we should talk about politicians <a href="https://www.newyorker.com/news/daily-comment/ben-carson-donald-trump-and-the-misuse-of-american-history?irgwc=1&amp;source=affiliate_impactpmx_12f6tote_desktop_Skimbit%20Ltd.&amp;mbid=affiliate_impactpmx_12f6tote_desktop_Skimbit%20Ltd.">like Ben Carson</a> referring to enslaved Black people as ‘immigrants’ with dreams for their children, <a href="https://www.washingtonpost.com/news/politics/wp/2017/12/08/roy-moore-america-was-great-in-era-of-slavery-is-now-focus-of-evil-in-the-world/?noredirect=on&amp;utm_term=.d1979efa4d2e">and politicians like Roy Moore</a> suggesting that America was a better place during slavery because families were together.</p><p>And we should talk about how, in the context of all of those things, there are still people like Kanye West (and Donald Trump and some of ya’ll) who don’t read but claim their thoughts are ‘free’.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e5df79e90d5f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>