<?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 Bellini on Medium]]></title>
        <description><![CDATA[Stories by Gabrielle Bellini on Medium]]></description>
        <link>https://medium.com/@gbellini90?source=rss-d4dc7671a1a8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*V5qYcShJjyJa3idb</url>
            <title>Stories by Gabrielle Bellini on Medium</title>
            <link>https://medium.com/@gbellini90?source=rss-d4dc7671a1a8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 19:12:04 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@gbellini90/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[Deepfakes]]></title>
            <link>https://medium.com/@gbellini90/deepfakes-8ce16bd7d96c?source=rss-d4dc7671a1a8------2</link>
            <guid isPermaLink="false">https://medium.com/p/8ce16bd7d96c</guid>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Gabrielle Bellini]]></dc:creator>
            <pubDate>Fri, 18 Jan 2019 19:14:54 GMT</pubDate>
            <atom:updated>2019-01-18T19:17:13.100Z</atom:updated>
            <content:encoded><![CDATA[<h3>What are deepfakes?</h3><p>Deepfakes are realistic looking fake videos/audios named for the deep learning artificial intelligence algorithms used to create them. Essentially, they convert video footage or audio recordings of real people to appear like they are saying something or doing something they never actually did.</p><p>Deepfakes first came onto the scene towards the end of 2017 through a Reddit user of that name who would superimpose celebrities’ faces into adult videos. This reddit user did so by using Google’s free open source learning software called Tensorflow to take advantage of a machine learning technique called GAN, aka generative adversarial network. After a number of media reports came out about deepfakes, Reddit banned these videos from their site, but the creator of the video had already released a software called FakeApp. FakeApp is free, easy to use and doesn’t require its users to have prior programming knowledge. Many deepfakes are simply funny/stupid viral videos, but those that are not made for comedic purposes have the potential to dangerously blur our perception of reality.</p><h3>How do deepfakes work?</h3><p>Deepfakes rely heavily on machine learning algorithms. One of those methods is called histogram of oriented gradients, otherwise known as HOG. This is used to perform face detection on a set of images. The user will need to gather hundreds of images of both the face they’d like to superimpose and the face they’d like to swap out. Using HOG, each image is then converted (temporarily) to a black and white image where it can then analyze every pixel and the flow from light to dark across the entire image to better “learn” the faces in the pictures. After doing so, the face detection process is complete and can be used in what is called the training process where a training model is created. Once the trained model is complete, a user can then begin to convert a video or image to include the new superimposed face image data. The algorithm is able to recognize patterns in speech and movement in the video which allows the superimposing to become almost seamless.</p><p>There’s actually an entire subReddit and Github community dedicated to maintaining and sharing results of the deepfake algorithm. The deepfakes github repository is consistently being updated by its members and you can see for yourself it doesn’t seem like it would be too difficult for anyone to clone down the repo and create their own deepfake following the directions in the readme.</p><h3>Potential Consequences</h3><p>As technology is evolving, deepfakes are becoming more indistinguishable from reality and and could become the next frontier in fake news. Unfortunately, the nefarious uses for deepfake videos are endless. Luckily there are groups of developers hoping to prevent deepfakes being used for such purposes. There’s one project called Shallow which is a CNN or Convolutional Neural Network whose goal is to create technology to distinguish between real and fake videos in order to protect the reputations and integrity of those affected by deepfakes.</p><h3>Deepfake Video Examples:</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FcQ54GDm1eL0%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DcQ54GDm1eL0&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FcQ54GDm1eL0%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/002d8915c14edd7968069d71086104ba/href">https://medium.com/media/002d8915c14edd7968069d71086104ba/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F_OqMkZNHWPo%3Fstart%3D40%26feature%3Doembed%26start%3D40&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D_OqMkZNHWPo&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F_OqMkZNHWPo%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/8cc8b92318911a0c9bc25c6e597cf79f/href">https://medium.com/media/8cc8b92318911a0c9bc25c6e597cf79f/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8ce16bd7d96c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[PWAs]]></title>
            <link>https://medium.com/@gbellini90/pwas-bbd87ad8ce24?source=rss-d4dc7671a1a8------2</link>
            <guid isPermaLink="false">https://medium.com/p/bbd87ad8ce24</guid>
            <category><![CDATA[pwa]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[web-design]]></category>
            <dc:creator><![CDATA[Gabrielle Bellini]]></dc:creator>
            <pubDate>Wed, 09 Jan 2019 17:35:02 GMT</pubDate>
            <atom:updated>2019-01-09T17:35:02.108Z</atom:updated>
            <content:encoded><![CDATA[<p>I looked into some emerging trends in web development as well as some predictions for what will be big in 2019. With that, I found that many tech sites mention: single page websites, the increase in the role of artificial intelligence in web design and development, motion UI, virtual reality’s role in web dev and <em>PWAs.</em></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F74Gczlhl7jE1G%2Ftwitter%2Fiframe&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2F74Gczlhl7jE1G%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2F74Gczlhl7jE1G%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="284" frameborder="0" scrolling="no"><a href="https://medium.com/media/6afb0ef2586ba4908841b3cc2dd4a3e5/href">https://medium.com/media/6afb0ef2586ba4908841b3cc2dd4a3e5/href</a></iframe><h3><strong>What are PWAs?</strong></h3><p>PWA stands for Progressive Web App and are considered by many in the tech industry to be the future of web app development. Progressive Web Apps are essentially a cross between a traditional website and a mobile app, but they are designed to function like a mobile app. Although PWAs aren’t brand new, their popularity is slowly on the rise. In 2015, designer Frances Berriman and Google Chrome engineer, Alex Russell coined the term for this concept.</p><p>To qualify as a PWA (according to Frances Berriman and Alex Russell) a website must meet three base criteria:</p><ul><li>It must run under HTTPS</li><li>It must include a Web App Manifest</li><li>It must implement a service worker</li></ul><h3><strong>More Detail on the Criteria</strong></h3><p>The PWA must run under<strong> HTTPS.</strong> This simply means it must be run over a secure network to protect users from unauthorized access. This in turn establishes the PWA as a trusted site and maintains its reliability.</p><p>A <strong>service worker </strong>is a Javascript file that a browser runs in the background which acts to intercept network requests, cache resources and deliver push notifications. They act as a proxy between the network and the app. So the service worker basically enables the site to load instantaneously regardless of the network state. This is possible because the service worker is able to pre-cache key resources on the page.</p><p>A <strong>Web App Manifest</strong> is simply a JSON file that contains information about the app. This JSON file contains information such as the icon of the app, name of the name, background color etc. It is used to tell the browser about the web app and how it should run on the user’s mobile device or computer.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FM3o3fL9nnxG4o%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FM3o3fL9nnxG4o%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FM3o3fL9nnxG4o%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="317" frameborder="0" scrolling="no"><a href="https://medium.com/media/ba00936c9a022e23f58dfa19c9f9ab67/href">https://medium.com/media/ba00936c9a022e23f58dfa19c9f9ab67/href</a></iframe><h3><strong>Why are PWAs Becoming So Popular?</strong></h3><p>According to a study by Smart Insights, mobile apps account for 89% of total mobile media time. Therefore, it’s apparent that users respond well to the user interface provided by mobile apps and the rise in PWAs’ popularity makes total sense. The number of smartphone users worldwide is expected to reach 2.7 billion this year. Thus, many mobile app development companies will start or have already started investing time on PWAs. Some big names like Twitter, Starbucks and Nasa have been working on perfecting their PWAs.</p><p>PWAs are reliable, fast, engaging and ideally work for every user regardless of their browser choice. They are growing in popularity as people today are so accustomed to the look and feel of using mobile apps. PWAs aim to be engaging and create an immersive experience for the user. They are able to be installed and live on the user’s home screen without actually any need to use an app store. Additionally, they are able to engage their users with push notifications, the ability to customize their home screens and they also provide a full screen experience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/697/1*U0MG6c0VfpWspeOahrHUKw.png" /></figure><p>Desktop Progressive Web Apps are supported on Chrome OS, Linux and Windows. They can be installed on the desktop similar to the way apps are installed on your mobile device and run in a window similar to an app without any tabs or address bars. Mac support for desktop PWAs are in development and should be available in the first half of 2019. You can test the PWA experience on your Mac by enabling the #enable-desktop-pwas flag.</p><p><strong>Frameworks:</strong></p><p>Some of the top frameworks used to create PWAs are</p><ul><li>Ionic</li><li>Polymer</li><li>Angular</li></ul><p><strong>Examples:</strong></p><p><a href="https://pwa.rocks/">Progressive Web Apps</a></p><p>Resources:</p><ul><li><a href="https://www.smartinsights.com/mobile-marketing/mobile-marketing-analytics/mobile-marketing-statistics/">Mobile marketing statistics 2018</a></li><li><a href="https://medium.com/datadriveninvestor/web-development-trends-in-2019-85b77610e573">Web Development Trends in 2019</a></li><li><a href="https://www.consagous.com/blog/progressive-web-apps-pwa-exciting-new-approach-app-development/">Progressive Web Apps (PWA) - Exciting New Approach to App Development | Consagous</a></li><li><a href="https://medium.com/datadriveninvestor/2019-the-year-of-progressive-web-apps-3027aea291f9">2019 — The Year of Progressive Web Apps</a></li><li><a href="https://hub.packtpub.com/top-frameworks-for-building-your-progressive-web-application-pwa/">Top frameworks for building your Progressive Web Apps (PWA) | Packt Hub</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bbd87ad8ce24" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Major Props to React]]></title>
            <link>https://medium.com/@gbellini90/major-props-to-react-6bd1d95b80e4?source=rss-d4dc7671a1a8------2</link>
            <guid isPermaLink="false">https://medium.com/p/6bd1d95b80e4</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[jsx]]></category>
            <dc:creator><![CDATA[Gabrielle Bellini]]></dc:creator>
            <pubDate>Tue, 08 Jan 2019 15:20:30 GMT</pubDate>
            <atom:updated>2019-01-08T15:20:30.528Z</atom:updated>
            <content:encoded><![CDATA[<iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FUjCXeFnYcI2R2%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FUjCXeFnYcI2R2%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FUjCXeFnYcI2R2%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="245" frameborder="0" scrolling="no"><a href="https://medium.com/media/3de2f4290b3e0c5e5f6336b56a6c0752/href">https://medium.com/media/3de2f4290b3e0c5e5f6336b56a6c0752/href</a></iframe><h3>React</h3><p>React is declarative Javascript library used for building user interfaces.</p><h3>Components</h3><p>Everything in React is composed of small, reusable pieces of code referred to as components. Components facilitate separation of concern and ideally each component in the user interface should be responsible for one thing only.</p><p>In React, there are two main types of components: functional and class components.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/421/1*Bq5Csiv6zeJCKO3dg8vIqA.png" /><figcaption>Example syntax for a functional component</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/462/1*Q-baQS2lP_zUio4_nu8gRQ.png" /><figcaption>Example syntax for a class component</figcaption></figure><h3>Props</h3><p>In React, props (short for properties) are used to customize components and pass dynamic information into them.</p><p>HTML elements accept attributes that give them further meaning and additional behavior. Attributes provide extra bits of info to the browser like an element’s id, or an image’s alt text . Similar to in HTML, every React component can receive a list of attributes that further customize them . This list is called properties or props. Props are extremely important because they allow us to get data into a component.</p><p>To use props in a component, first define them in a JSX tag using an attribute syntax and then ensure the component can take in that info and use it in some way.</p><p>Props are passed to a component using the component JSX tag at the place where it is used. So, for example, the parent such as the App component is passed the props from its children components. The parent component higher in the tree owns and controls the property values. Props allow you to get information from above(the parent) and pass it down to the child.</p><p><em>Note: Any time you pass the prop a value other than a string, such as a number or variable, you should place it between curly braces to ensure it is evaluated as a JSX expression.</em></p><p><em>Additional Note: If you would like to use a conditional statement within your curly brace expression, you must use a ternary operator. Otherwise abstract it out and create an if-else method/function above the component’s return statement. You can then refer to the function you created above within the curly braces inside the component’s return</em></p><p>If you iterate over an array in order to display values on your page, you will see a warning indicating that each child in an array or iterator should have a unique key prop. A key is a unique identifier that gives React a way to quickly and reliably identify an element in the list. React does not recommend using index for unique keys, because the index might not always uniquely identify elements. It is important to pass a key prop every time you’re creating elements by iteration. That way each element can be differentiated from its siblings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/854/1*HlqCPbaaeyaTEfmfylRf7Q.png" /><figcaption>Example of class component and props being used</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/776/1*DRKmvDKB_oPfkUVjv7hL0A.png" /><figcaption>example of functional component and props being used</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6bd1d95b80e4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Transitioning from Ruby to Javascript]]></title>
            <link>https://medium.com/@gbellini90/transitioning-from-ruby-to-javascript-26ce2c7dc669?source=rss-d4dc7671a1a8------2</link>
            <guid isPermaLink="false">https://medium.com/p/26ce2c7dc669</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[ruby]]></category>
            <dc:creator><![CDATA[Gabrielle Bellini]]></dc:creator>
            <pubDate>Thu, 13 Dec 2018 18:11:30 GMT</pubDate>
            <atom:updated>2018-12-13T18:23:52.262Z</atom:updated>
            <content:encoded><![CDATA[<iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FCzbiCJTYOzHTW%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FCzbiCJTYOzHTW%2Fgiphy.gif&amp;image=https%3A%2F%2Fmedia3.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExbjNqZWNsZ2t3Ynp5eWpuYXl2aHEwdHV6aTBobGZ2dWl4d2JjejhqNSZlcD12MV9naWZzX2dpZklkJmN0PWc%2FCzbiCJTYOzHTW%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="244" frameborder="0" scrolling="no"><a href="https://medium.com/media/360daefebe1dc1b5aed9a46901fc40b2/href">https://medium.com/media/360daefebe1dc1b5aed9a46901fc40b2/href</a></iframe><p>As a coding newbie, transitioning from Ruby to Javascript has proven to be both exciting and challenging thus far. Coming from 6 weeks of learning and becoming familiar with Ruby, it is a bit daunting to begin Javascript and put Ruby on the back-burner.</p><p>Since my brain lately had been conditioned to think in Ruby, I personally, found it useful to find some syntactical differences as well as a correlation between Ruby and Javascript to ease the transition process. That being said, I thought it would be beneficial to point out some of these differences I’ve come across in the two languages that may be helpful to others as well.</p><h3>Differences</h3><ul><li><strong>Naming Conventions/Variable Naming</strong></li></ul><p>In Ruby variables and functions are typically named_using_the_snake_case. However, in Javascript, camelCaseisPreferred.</p><p>Also, as we know in Ruby, we could simply declare and assign a variable without a key word explicitly indicating first that the assignment will be a variable, such as school_name = “Flatiron School”.</p><p>In Javascript, however assigning and declaring variables is slightly different. In Javascript, variables can be assigned using the keywords var, const or let. As we learned, it is not recommended to use var mostly due to scope issues, as it can be reassigned and redeclared an infinite amount of times. When using the keyword “let” before a variable name, that variable can be reassigned, but not redeclared. When using “const” the variable name can be neither redeclared nor reassigned as it remains a constant variable when defined. It’s also important to note if you forget to use var, let or const, that variable is automatically globally accessible and it is not recommended to define a variable this way in Javascript . I won’t get into hoisting, but it’s also important to note that let and const are not hoisted.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FNFVXWHk9vuCNG%2Ftwitter%2Fiframe&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FNFVXWHk9vuCNG%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FNFVXWHk9vuCNG%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="244" frameborder="0" scrolling="no"><a href="https://medium.com/media/c0055e13510893312d7fd4a97b398571/href">https://medium.com/media/c0055e13510893312d7fd4a97b398571/href</a></iframe><ul><li><strong>Truthiness/=== vs ==</strong></li></ul><p>In comparison to Ruby, Javascript has two different equality comparison operators. “==” is used for loose equality and “===” is used for strict equality. For example 1986==1986 returns true, however ‘1986’ ==1986 also returns true. Weirdly, true == 1 and ‘0’ == false will also return true…. confusing, I know. It is definitely better to use === for most comparisons. This === equality operator returns true if two values are the same without performing any type conversions. So 42 === ‘42’ would return false.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2Fap6wcjRyi8HoA%2Ftwitter%2Fiframe&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2Fap6wcjRyi8HoA%2Fgiphy.gif&amp;image=http%3A%2F%2Fgiphygifs.s3.amazonaws.com%2Fmedia%2Fap6wcjRyi8HoA%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="326" frameborder="0" scrolling="no"><a href="https://medium.com/media/3c4c9954d3617df47e2e08eeaf32491d/href">https://medium.com/media/3c4c9954d3617df47e2e08eeaf32491d/href</a></iframe><ul><li><strong>Self vs. This</strong></li></ul><p>I won’t get into explicit detail about the differences in Self vs. This, but it is important to note that in Javascript “this” is <em>somewhat</em> similar to “self” in its behavior. Of course, each have their own unique properties, and perhaps when I’m more well versed in Javascript, I may think they have less in common than I thought. That being said, from a broad standpoint, each provide a way to refer back to the current object within a function.</p><ul><li><strong>Typeof vs. Class</strong></li></ul><p>When trying to determine what data type that a certain piece of data may belong to, we can use .class in Ruby and typeof in Javascript. For example, you can open up your console and type in “typeof 52” and it will return number and “typeof “beef” and it will return string. However in Ruby, we had to call .class on an object to determine the same thing.</p><ul><li><strong>Interpolating</strong></li></ul><p>Another very simple difference I’ve noted is the syntax for interpolation. In Ruby, to interpolate you need to us #{whatever you’d like to pass in}. However, in Javascript the syntax ${}is used in between back ticks ``.</p><ul><li><strong>ParseInt() vs to_i, to_f</strong></li></ul><p>To convert a string to a number is also… big surprise, syntactically different in Javascript than it is in Ruby. Both provide simple built in functions to convert a string to a number, but it’s helpful just to quickly note the difference in how the methods are named. As you might remember, we used “to_i” or “to_f” in Ruby. Similarly in Javascript there is a method that does the same thing, “parseInt()”. Simply pass in a string of a number to parseInt()… like parseInt(‘2’) and it will return 2 .</p><p>It’s also important to note that Javascript does not have a variety of number types. All numbers are floats.</p><p>In Javascript, users also have to be careful when adding numbers. Javascript allows you to add a number to a string. For example, if you add the number 1 to the string “123” it will return “1123”. Obviously that’s not the intended result, so it’s important to convert the string number to an actual number data type first. Otherwise this could lead to errors within your code.</p><ul><li><strong>Debugger vs binding.pry</strong></li></ul><p>In Ruby we had the ever so amazing binding.pry to assist us with debugging our programs. With Javascript we can use “debugger” similarly. Simply place the word debugger within your function to pause said function and find the value of a piece of data at that given point within your function. It’s also useful to use console.log() to print to your console as another way to test your program.</p><p><strong>Functions</strong></p><p>For me it was helpful to go through some simple iteration functions in both languages to see how they compare in their setup.</p><p>Here are some examples:</p><p>Using Each in Ruby:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/203/1*_saR6Pbl8U1oBnX6lDjfbg.png" /></figure><p>Using Each iteration in Javascript:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/318/1*f5L6QvQiVdzueiMrzrhKqw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/296/1*RoxZ3fHz3EJCcLaZsYSn2A.png" /></figure><p>Using Select in Ruby /Filter in Javascript</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/444/1*OPIw3DLTawnGCmSJJKsR6A.png" /></figure><p>So even though the different syntax can be a bit jarring in the beginning, knowing Ruby will help us learn Javascript more efficiently and become more well rounded programmer.</p><ul><li><a href="http://billleidy.com/blog/cheat-sheet.html">Iterating over Arrays in Ruby and JavaScript</a></li><li><a href="http://agentcooper.github.io/js-ruby-comparison/">Ruby vs Javascript</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=26ce2c7dc669" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Rails: Validation]]></title>
            <link>https://medium.com/@gbellini90/rails-validation-9fb67548b422?source=rss-d4dc7671a1a8------2</link>
            <guid isPermaLink="false">https://medium.com/p/9fb67548b422</guid>
            <category><![CDATA[ruby-on-rails]]></category>
            <category><![CDATA[activerecord]]></category>
            <category><![CDATA[validation]]></category>
            <dc:creator><![CDATA[Gabrielle Bellini]]></dc:creator>
            <pubDate>Thu, 29 Nov 2018 18:17:59 GMT</pubDate>
            <atom:updated>2018-11-29T18:25:06.324Z</atom:updated>
            <content:encoded><![CDATA[<h3>What is Validation?</h3><p>In Rails, validations are used in order to ensure valid data is passed into the database. Validations can be used, for example, to make sure a user inputs their name into a name field or a username is unique. Protecting your database from invalid data is key in preventing confusing errors in the future. In the MVC architecture, (in most circumstances), the model is the best place to enter validations. This way the user would have no way of interfering with the validation code itself. As per usual, Rails is magical and provides built in validation methods out of the box. If the built in methods aren’t cutting it, Rails will also allow the option to create custom validations.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F242wLqQerWkxd6GgHB%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2F242wLqQerWkxd6GgHB%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2F242wLqQerWkxd6GgHB%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="214" frameborder="0" scrolling="no"><a href="https://medium.com/media/c1aecfb30def4701bcd7965aac3fc34f/href">https://medium.com/media/c1aecfb30def4701bcd7965aac3fc34f/href</a></iframe><h3>How to Use Validation</h3><p>The method “validates” takes two arguments, the name of the attribute you’d like to validate and how you would like to validate that attribute. It’s also important to note that database activity triggers validation, meaning if you simply instantiate using the new method, there is no interaction with the database yet and thus the validation(s) won’t run. So, to validate, you can simply use the valid? method.</p><p>Below is a quick example of using the valid? method from learn.co. In the Person class, the validation method is ensuring that the name attribute is present upon instantiation. When creating the person instance with the name “John Doe” and calling valid?, you’ll see the result is true as no errors could be found. With an empty name attribute, valid? returns false.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/441/1*srJoN1guS2c6l72bh2nkNg.png" /><figcaption>Learn.co “ActiveRecord Validations”</figcaption></figure><h3>Validation Helpers + Examples</h3><p>Luckily, as I mentioned before, Rails provides a plethora of built in validation methods. Here is a list of some of the validations methods I found useful:</p><p><strong>presence-</strong> This method simply checks that the specified attribute(s) are not empty. In the below example the validation is ensuring that the name, login and email attributes are not empty.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/463/1*a4xAKdE3Rohe9OHmwnZEjw.png" /><figcaption><a href="https://guides.rubyonrails.org/v5.1/active_record_validations.html">https://guides.rubyonrails.org/v5.1/active_record_validations.html</a></figcaption></figure><p><strong>length-</strong>This method checks the length of the given attribute’s value. It provides several different constraints: minimum, maximum, is and in. See below for an example.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/456/1*bApFDiNZ-jpxkYTz0Ga2SA.png" /><figcaption><a href="https://guides.rubyonrails.org/v5.1/active_record_validations.html">https://guides.rubyonrails.org/v5.1/active_record_validations.html</a></figcaption></figure><p><strong>uniqueness-</strong>This method check that a given attribute’s value is unique. In the below example the validation will check that value entered for the email attribute is unique. This method also allows you to add scope to specify one or more attributes to use as a limit for the uniqueness.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/367/1*Wl5uZ5KLDlUVo4ZrfDwAlg.png" /></figure><p><strong>inclusion-</strong> This method checks that the given attribute’s values are included in a given set. Below, the validation method is checking that the attribute size includes either small, medium or large.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/506/1*Cl5uNQ74TZ2NjMyAz8_aTg.png" /><figcaption><a href="https://guides.rubyonrails.org/v5.1/active_record_validations.html">https://guides.rubyonrails.org/v5.1/active_record_validations.html</a></figcaption></figure><p>Another useful way to utilize the inclusion validation method is to check for true/false values. See below for an example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*PX163l5fw2JJCf0DFiUBew.png" /><figcaption><a href="https://guides.rubyonrails.org/v5.1/active_record_validations.html">https://guides.rubyonrails.org/v5.1/active_record_validations.html</a></figcaption></figure><p><strong>exclusion</strong>- This method checks that the given attribute’s values are NOT included in a given set. In the example below, the validation is checking that in the subdomain attribute, “www”, “us”, “ca” and “jp” are not included. If a user tried to set the subdomain’s attribute as any of those strings, they would receive an error.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/476/1*rs6gCXvoxiee6ne0QTlYNQ.png" /><figcaption><a href="https://guides.rubyonrails.org/v5.1/active_record_validations.html">https://guides.rubyonrails.org/v5.1/active_record_validations.html</a></figcaption></figure><p><strong>format-</strong> This method checks that the given attribute’s values match a given regular expression, which is specified using the :with option. Below is an example.</p><p>FYI: the \A and \z are regular expressions that are essentially indicating to match the beginning and end of the string to the arguments passed in between, which in this case is: [a-zA-Z]. The [a-zA-Z] is simply referring to all letters both lowercase and uppercase. (They could have also just used \w which means the same thing as [a-zA-Z]). The below is checking that the attribute, legacy, is a string containing only letters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*buj5Sp6Cm1vPZZQ_bG_L9w.png" /><figcaption><a href="https://guides.rubyonrails.org/v5.1/active_record_validations.html">https://guides.rubyonrails.org/v5.1/active_record_validations.html</a></figcaption></figure><p><strong>numericality- </strong>This method checks that the given attribute has only numeric values. If you’d like to further specify only integral numbers, you would then follow numericality with :only_integer: true. In the below example the validation is checking that the points attribute is a number (integer or float). The next validation is checking that the games_played attribute is specifically an integer number.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/517/1*MC3jGemLIys-fsO_o548TQ.png" /><figcaption><a href="https://guides.rubyonrails.org/v5.1/active_record_validations.html">https://guides.rubyonrails.org/v5.1/active_record_validations.html</a></figcaption></figure><p>In place of :only_integer in the numericality validation, there are other built in constraints that can be used as well. See the below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/592/1*vf2hB2X-dNH7GzcbdbIBFA.png" /><figcaption><a href="https://guides.rubyonrails.org/v5.1/active_record_validations.html">https://guides.rubyonrails.org/v5.1/active_record_validations.html</a></figcaption></figure><p><strong>Some Examples from our ActiveRecord Validations Labs:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/514/1*RouH2GkrqyWgFg2FflnMLQ.png" /><figcaption><a href="https://learn.co/tracks/web-development-immersive-2-0-module-two/rails/validations-and-forms/activerecord-validations-lab">https://learn.co/tracks/web-development-immersive-2-0-module-two/rails/validations-and-forms/activerecord-validations-lab</a></figcaption></figure><p>The presence and length validations above are pretty self explanatory, but let’s review the inclusion and format validations used. The requirement was that the category had to be either Fiction or Non Fiction. Here we can pass in the category attribute and use the inclusion validation to pass in “%w(Fiction Non-Fiction)”. This will ensure that for category to be valid, the value has to be either Fiction or Non-Fiction. The next requirement was that the title had to contain “Won’t Believe”, “Secret”, “Top [number]”, or “Guess” otherwise it wouldn’t be valid. Here we can use the format validation which uses regular expressions. This validation is checking that the value matches those given titles. The “\d” is a regex that simply refers to any digit [0–9].</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/864/1*-H7Z04MQDlSq4nIxt6YqZw.png" /></figure><p>Above, is an example from another lab where we had some slightly more complicated validations. We had to ensure that the title was not blank and that it cannot be repeated by the same artist in the same year. We first checked that the title is unique with the presence validation. Secondly we can use the uniqueness validation to ensure the title is not repeated, but the uniqueness method also allows us to pass in scope. Within the scope, the attribute release_year should be passed in. This ensures that within the same release year, the title cannot be repeated.</p><p>Our last validation requirement was that the release year has to be an integer, is optional if released is false, must not be blank if released is true and must be less than or equal to the current year. Here we needed to use presence, numericality and a custom if statement. The released? method is simply checking if the released attribute is true. So in our validation, our released? method will check if the released attribute is true, and if so it will use presence to ensure that the release year is not blank. Then to make sure the release year is a number, we can use the numericality method and lastly to verify that the release year is is less than the current year.</p><h3>Errors &amp; Displaying Errors on the View Page</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FEFXGvbDPhLoWs%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FEFXGvbDPhLoWs%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FEFXGvbDPhLoWs%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="325" frameborder="0" scrolling="no"><a href="https://medium.com/media/9b78a3a092ddcda173f47b8adae696ae/href">https://medium.com/media/9b78a3a092ddcda173f47b8adae696ae/href</a></iframe><p>In order to display error messages on an object, you can use the method called errors. If there are errors on an object, calling .errors.messages will return an array of strings with all the errors on that object. Below, after instantiating a person instance without a name attribute, calling .errors.messages returns an array of the error messages. If you’d like to return the error messages in a more user friendly format, you can call error.full_messages. Doing so will prepend the capitalized attribute to each error message. You can also call .errors on a specific attribute like person.errors[:name], which will then return the errors (if any) associated with that particular attribute.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/503/1*jN6W7_hhPVXBz5n6q2eHkg.png" /><figcaption><a href="https://guides.rubyonrails.org/v5.1/active_record_validations.html#working-with-validation-errors">https://guides.rubyonrails.org/v5.1/active_record_validations.html#working-with-validation-errors</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/546/1*K1oo3dC9wi5IishA-DJeqw.png" /><figcaption><a href="https://guides.rubyonrails.org/v5.1/active_record_validations.html#working-with-validation-errors">https://guides.rubyonrails.org/v5.1/active_record_validations.html#working-with-validation-errors</a></figcaption></figure><p>In the create method of the controller, you should first create an instance, and then check to see if that instance is valid. If it is valid, it should redirect to the show page for that instance, otherwise you can either render:new or redirect to the new page path. When redirecting to the new page it is best to utilize the flash method to display the errors. When rendering to the new page, it is best to use the if errors.any? method. In the new view page is where you will be displaying your errors to the user(if there are any).</p><p>Below are some examples:</p><p><strong>Create Method using redirect to new and flash errors:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/375/1*Yy5sBrVjpROnKf_Dbh4EaQ.png" /><figcaption>Controller-Create method: using redirect : Credit to Evans’ lecture code</figcaption></figure><p><strong>New View Page using flash errors:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/1*HDBb66UrdY-A1P31WzL07A.png" /><figcaption>View Page-form: Credit to Evans’ lecture code</figcaption></figure><p><strong>Create Method using render to new:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/272/1*QQoB3-996x2iuL8j_BUmtA.png" /><figcaption>Controller-Create method: using render : <a href="https://github.com/learn-co-curriculum/crud-with-validations-lab">crud-with-validations-lab</a></figcaption></figure><p><strong>New View Page using .errors.any?:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/452/1*oOeFKWWXb5KV-tYyCd64vA.png" /><figcaption>View Page-form render: <a href="https://github.com/learn-co-curriculum/crud-with-validations-lab">crud-with-validations-lab</a></figcaption></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F1ZkMDj88mQ1rO%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2F1ZkMDj88mQ1rO%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2F1ZkMDj88mQ1rO%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="435" frameborder="0" scrolling="no"><a href="https://medium.com/media/fe41da881d7d8f8c5ec2f8160cb318a8/href">https://medium.com/media/fe41da881d7d8f8c5ec2f8160cb318a8/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9fb67548b422" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Beginner’s Guide to Regular Expressions]]></title>
            <link>https://medium.com/@gbellini90/a-beginners-guide-to-regular-expressions-5f04784ae37f?source=rss-d4dc7671a1a8------2</link>
            <guid isPermaLink="false">https://medium.com/p/5f04784ae37f</guid>
            <category><![CDATA[ruby]]></category>
            <category><![CDATA[regex]]></category>
            <category><![CDATA[regular-expressions]]></category>
            <dc:creator><![CDATA[Gabrielle Bellini]]></dc:creator>
            <pubDate>Thu, 15 Nov 2018 17:53:53 GMT</pubDate>
            <atom:updated>2018-11-15T17:53:53.065Z</atom:updated>
            <content:encoded><![CDATA[<iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FNxchSE8YcHffW%2Ftwitter%2Fiframe&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FNxchSE8YcHffW%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FNxchSE8YcHffW%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="235" frameborder="0" scrolling="no"><a href="https://medium.com/media/5ef37f27d491411ffd9e08660e042ada/href">https://medium.com/media/5ef37f27d491411ffd9e08660e042ada/href</a></iframe><h3>Why Regular Expressions?</h3><p>There is a wide array (pun intended) of topics I could have chosen to delve into for my first blog, but as a newbie in programming, I decided it would be beneficial to discuss one thing (of many) that has thrown me for a loop (another pun intended). That is: regular expressions.</p><p>I am only going to cover a small portion about regular expressions, since going into depth on this topic would be nearly impossible. Regular expressions, otherwise referred to as regexes, are often thought of as difficult or just plain intimidating to use. I’ve felt this way every time I’ve encountered what looked like gibberish to me, but was in fact a regex at work. Obviously, at this point, I am not a regex expert, but I’ve decided to familiarize myself with some simple ways to utilize them going forward. After learning a few basics, I’ve learned that regexes can be quite a useful tool.</p><h3>What Are Regular Expressions?</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F2XskdWuNUyqElkKe4bm%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2F2XskdWuNUyqElkKe4bm%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2F2XskdWuNUyqElkKe4bm%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="243" frameborder="0" scrolling="no"><a href="https://medium.com/media/3c35d00ea70a212ce6246fe0fcb8ec4d/href">https://medium.com/media/3c35d00ea70a212ce6246fe0fcb8ec4d/href</a></iframe><p>A regular expression provides a way to search through data for a particular pattern. Essentially, it is used as a search tool enabling the user to find, validate, replace or extract a certain pattern contained within data. Regexes are defined between two forward slashes // or, as I’ve learned from researching for this blog, they can also be created by using “Regexp::new”. Every instance of a regular expression is an object belonging to the Regexp class.</p><h3>Example: Counting Sentences</h3><p>The below screenshot displays an example from a prior lab called “Counting Sentences”. In this example, there are three helper methods (sentence?, question?, and exclamation?) which were created to verify if a string is a sentence. The purpose of the last method, as the name implies is to count how many sentences appear within the given string.</p><p>The test string saved in the variable “example_string” when passed through the long_count_sentences method, will return a count of 3, which is correct. It does so by first converting the sentence to an array with the split method (splitting at the spaces between each word). Then it iterates through each element in the array to create a new array with only those elements ending with punctuation. The length/count/size of that array is 3. You’ll see below that the long counting sentences method is syntactic vinegar in comparison to the regex method.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/1*r80LWxHMXIAmT4kblj5rgQ.png" /><figcaption>Less efficient, longer method</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/280/1*prWHacHFC-f4S2k-meFAAA.png" /><figcaption>More efficient method using regex</figcaption></figure><p>Above is the short_count_sentences method using regex. As you can clearly tell, the method using regex is far shorter and still provides the correct result. Within the two forward slashes (regex) are the elements by which the string will be split. The regex works with the split method to create an array comprised of each sentence as its own element, which can then easily be counted using the length method. It’s important to note that when using the longer method, the array created using split, only contained the words that were attached to punctuation and not the actual sentences.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2Fl41YtZOb9EUABnuqA%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2Fl41YtZOb9EUABnuqA%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2Fl41YtZOb9EUABnuqA%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="326" frameborder="0" scrolling="no"><a href="https://medium.com/media/678383a9bb55636019c6434b454db33a/href">https://medium.com/media/678383a9bb55636019c6434b454db33a/href</a></iframe><h3>More Examples /!/</h3><p>As previously mentioned, regular expressions can be useful for:</p><ul><li>Validating data (for example, regexes can be used to verify that a user’s inputted email address matches a certain format, or a phone number matches a certain format etc)</li><li>Searching through data to find or analyze elements matching your given parameters(for example, find how many times a certain set of words appears in a certain text)</li><li>Transforming and replacing data (for example, finding each instance of the word “and” and substituting it to the symbol “&amp;”)</li><li>Extracting data (for example, finding each time a certain element appears and pulling it from the data set)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1007/1*4BXLrX3ZhkfHpraZNvtUcA.png" /></figure><p>Above, I tested the variable named ‘random_string’ using scan and regex. The \d is a regex class that refers to any digit 0–9. The scan method searches through the string and will extract the data if it matches the argument provided in the regex. In this situation it is scanning for all the numbers in the random_string and extracting them into a new array.</p><p>Below, I tested the same string, but with the gsub method. This time I searched through the string for any numbers and replaced each number with the word “beef”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AedT90rgWxC-kqzjG7KDoA.png" /></figure><h3>More Info</h3><p>A few (of the many) methods that work well with regexes are : split, gsub, scan, match. Here are two helpful charts of some very basic and easy to use regex shortcuts that can be used along with your methods.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/906/1*c-QX-kyDwFFRsZsFzVe0UQ.png" /><figcaption>Chart taken from:<a href="http://ruby-for-beginners.rubymonstas.org/advanced/regular_expressions.html"> http://ruby-for-beginners.rubymonstas.org/advanced/regular_expressions.html</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*swPWKZ5ArbKhGQbHyKk0Kw.png" /><figcaption>Chart taken from: <a href="https://bneijt.nl/pr/ruby-regular-expressions/">https://bneijt.nl/pr/ruby-regular-expressions/</a></figcaption></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FtLQfm7dmGqxfa%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FtLQfm7dmGqxfa%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FtLQfm7dmGqxfa%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="282" frameborder="0" scrolling="no"><a href="https://medium.com/media/ade5de6529049750e4d6f968d9ade274/href">https://medium.com/media/ade5de6529049750e4d6f968d9ade274/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5f04784ae37f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>