<?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 Erin Reames on Medium]]></title>
        <description><![CDATA[Stories by Erin Reames on Medium]]></description>
        <link>https://medium.com/@erin_reames?source=rss-86508d7985b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*bVsSMpedbF7vWj5f.jpg</url>
            <title>Stories by Erin Reames on Medium</title>
            <link>https://medium.com/@erin_reames?source=rss-86508d7985b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 14:18:48 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@erin_reames/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[Bots and the internet today]]></title>
            <link>https://medium.com/@erin_reames/bots-and-the-internet-today-852e12992fcf?source=rss-86508d7985b------2</link>
            <guid isPermaLink="false">https://medium.com/p/852e12992fcf</guid>
            <dc:creator><![CDATA[Erin Reames]]></dc:creator>
            <pubDate>Tue, 02 Jun 2020 21:17:29 GMT</pubDate>
            <atom:updated>2020-06-02T21:17:29.637Z</atom:updated>
            <content:encoded><![CDATA[<p>We hear lot today about bots, but what are they? Simply put, a bot is a automated software script that runs repetitive tasks. We encounter bots on a daily basis, many times not even realizing that we are engaging with one. Some examples of bots include chat bots, web crawlers, social bots, and the infamous malicious bots.</p><h3><strong>Chat bots</strong></h3><p>Chat bots are relatively easy to identify. They generally appear in a little box on the bottom of a webpage that asks if they can be of any help. These bots simulate human conversation by responding to specific phrases with programmed responses.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*Gcub6YdfGT7Re96UNBY4XA.png" /><figcaption>One popular example of a chat bot used in healthcare</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/1*haHTM3wgTggn653woX1UVg.png" /><figcaption>Customer service is another popular choice for companies to utilize</figcaption></figure><h3>Web Crawlers</h3><p>A web crawler, also known as a spider or search engine bot, downloads then indexes content from all corners of the internet. The goal of the web crawler is to learn what every page is about, then storing that information so that the search engine can provide users with the most relevant content. Web crawlers account for about 52% of all web traffic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W6V_S5bbGquIraKemGBs9A.png" /></figure><h3>Social Bots</h3><p>Social bots, or social media bots, can be used in many ways.</p><p>The most common methods these bots use are:</p><ol><li><strong>Click Farming</strong></li></ol><p>To boost a product or a page’s visibility, people can essentially buy likes. Click farms are typically set up with thousands of phones that are programmed to, for instance — search, click, and download an app to manipulate rankings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nc3A76vQPseGECKmO1AJXg.png" /><figcaption>It is very common for one person to run thousands of phones in just one click farm</figcaption></figure><p>2. <strong>Hash Tag/Trend Highjacking</strong></p><p>This can occur when a hashtag is used for a different purpose than the one originally intended, such as tagging messages with undesirable content and then redirecting this content to a target audience.</p><p>3.<strong> Repost storm</strong></p><p>This type of bot employs a “parent” bot that posts something, than is immediately reposted by thousands of “children” bots. These can be used to manipulate trending articles or stories.</p><p>4. <strong>Sleeper bots</strong></p><p>These bots lay dormant for long periods of time, and are activated for a short duration. They are typically used in conjunction with a repost storm or spam.</p><h3>Malicious Bots</h3><p>This is a broad category of bots designed with the intent of stealing information, placing a computer into its botnet, disrupting service, or infecting a host. Good antivirus protections are an absolute necessity to combat these bots.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/0*V7qvmhu3rr3cY-39.jpg" /></figure><h3><strong>How To Identify Bots</strong></h3><p>In today’s tumultuous social media landscape, how can one know who is a bot and who isn’t? Here are some tips to identify bots:</p><ol><li><em>Abnormal Account Activity</em></li></ol><p>If a user has thousands of posts within a short period of time, it’s usually a good indicator it’s a bot.</p><p>2. <em>Engagement Ratio</em></p><p>Automatic actions- such as retweets, likes or reposts, are the easiest for bots to spoof, while relevent comments are not. If a post has thousands of likes but is scant on comments- beware.</p><p>3. <em>Followers</em></p><p>If an account’s followers share similar profile pictures, bios, account age, and country of origin, it’s a good sign you’ve encountered a bot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/1*6MJRWq8r1r0gf4NRhrAfnQ.png" /></figure><p>Bots are a part of our online lives, and show no sign of slowing down anytime soon. There are good and bad uses for bots, and your ability to identify those that are malicious will help you from being manipulated. Stay vigilant, friends.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=852e12992fcf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Prepping for Flatiron’s Mod 1 Code Challenge]]></title>
            <link>https://medium.com/@erin_reames/prepping-for-flatirons-mod-1-code-challenge-ee0a4c6bc5e3?source=rss-86508d7985b------2</link>
            <guid isPermaLink="false">https://medium.com/p/ee0a4c6bc5e3</guid>
            <dc:creator><![CDATA[Erin Reames]]></dc:creator>
            <pubDate>Tue, 19 May 2020 23:43:06 GMT</pubDate>
            <atom:updated>2020-05-20T23:25:43.240Z</atom:updated>
            <content:encoded><![CDATA[<p>If you are reading this, you probably are trying to gain insight for what to expect on the Has Many Through code challenge at Flatiron School. I would like to share with you my experience, and hopefully this blog will make you a bit more confident with the task at hand.</p><p>Over the past week or so, you have slowly been working through relationships between models, starting with one-to-one and eventually moving on to has many through. For this challenge, we need to break down the relationships between three classes. First things first — you must find your single source of truth. Let’s say we have three classes — Veterinarian, Appointment, and Pet. What would connect the Veterinarian to the Pet? Only an appointment makes sense here! So now we have established that our appointment is our single source of truth. Keep in mind that our Veterinarian and Pet classes can only “talk” to each other through the Appointment class.</p><p>Great! Now that we have the single source of truth established, lets begin by setting up our Appointment class. For this class, we will need an attractive_reader, an array to capture the objects, initialize method(<em>be mindful of the order — it matters!</em>), save method(<em>optional — you can just set this up in the initialize</em>), and a self.all method.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1014/1*66FygnQTk3SaV5zFZIjSyQ.png" /></figure><p>Awesome! Now we need to look at our deliverables.</p><p>For the Veterinarian class,</p><ol><li>The Veterinarian class takes in an instance of the Pet class and a date, and creates a new Appointment. The Appointment should know that it belongs to the veterinarian.</li><li>Iterates through all Appointments and finds those belonging to this veterinarian.</li></ol><p>For the Pet class,</p><ol><li>Takes in arguments of a veterinarian and a date and creates a new Appointment.</li><li>Runs thru the Appointment array and returns Appointments that belong that the pet.</li><li>Iterates over that pet’s appointments and collects the veterinarian that belongs to each appointment.</li></ol><p>We will begin with the Veterinarian class. Begin by building out the basic class- (this will be similar to the Appointment class).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E439t9-y-g2cPbAt1_BEug.png" /></figure><p>We will then create our new appointment method.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/988/1*-yiBENP0hitswgVrgKYU1w.png" /></figure><p>Next, we will focus on our appointments method. We will be using the select enumerator since we need to iterate through all the appointments to find the proper appointments for this veterinarian.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UH26fVoLQVt866O-hrybOQ.png" /></figure><p>Two down, one to go! The next class is a bit more involved, but it’s nothing you can’t handle. Again, we need to create the Pet class.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eYUe-dmhOGbFT2cIRQKEkg.png" /></figure><p>The first deliverable is very similar to the first one we created in the Veterinarian class. We simply need to create a new appointment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MKdEK-2731sisgEdI36xZg.png" /><figcaption>Remember the order of the arguments!</figcaption></figure><p>Then, we need to run through the Appointment array and only return appointments belonging to the pet in question.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x-6y7Py3MWKyrG7XMptlfA.png" /></figure><p>Last one! We need to iterate over that pet’s appointments and collect the veterinarian that belongs to each appointment. The map enumerable may be the best way to go about this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZZKK2Tb9ss96Qq3NnyPqWA.png" /></figure><p>And there you have it! All deliverables are now complete!</p><p>I do have a few more related tips for you as well.</p><ol><li>Get a good night’s sleep. A foggy mind may misconstrue what the challenge is asking you to do.</li><li>Do as many bonus labs as you can. They will help you not only master the enumerables, but they make connecting the dots between the models so much easier. A few I recommend are Blood Oath and Silicon Valley.</li><li>Read the README thoroughly before beginning to code. You don’t want to miss any deliverables and end up having to retake the challenge. I personally commented out each deliverable above the corresponding method for an easy reference.</li></ol><p>There you have it! With a solid understanding of enumerables and plenty of practice, you will have everything you need to succeed. Good luck!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ee0a4c6bc5e3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Pry at a Glance]]></title>
            <link>https://medium.com/@erin_reames/pry-at-a-glance-fe8015e1669b?source=rss-86508d7985b------2</link>
            <guid isPermaLink="false">https://medium.com/p/fe8015e1669b</guid>
            <dc:creator><![CDATA[Erin Reames]]></dc:creator>
            <pubDate>Wed, 06 May 2020 03:01:05 GMT</pubDate>
            <atom:updated>2020-05-06T03:01:05.535Z</atom:updated>
            <content:encoded><![CDATA[<p>During my first two weeks at Flatiron School, I found myself struggling to verify the return values of the methods I was writing. As time went on, less and less of the coursework included built in tests, so learning to use pry became unavoidable. Honestly, it was a blessing — you can only take stabs in the dark for so long before you get lost and frustrated. One Saturday morning I sat down to study — intent on learning the basics of pry. It took a little getting used to, but once I understood the process, pry is exciting to say the least!</p><p>Pry is an fantastic tool that should not be overlooked. It will not only help debug a program, but help you push past roadblocks by allowing you to tweak with the code inside the method — all without altering the code or running the entire program. Once you get comfortable with pry, many plugins are available as well. Examples include “Pry Loudmouth,” which makes the pry session more visible, “Pry Inline” to add indentation to your pry session, and pry-byebug to step up and down through your code.</p><p>You are probably familiar with Ruby’s IRB shell. Pry expands upon the REPL(Read, Evaluate, Print, Loop) functionality of the basic IRB. Either one will allow you to execute commands and view the results within the terminal, but the results may look very different from one another. For instance, Pry stands out by highlighting the syntax for easier view, provides the ability to view documentation, allows tab completion for efficiency, in addition to the powerful debugging tools. But Pry gets really useful with it’s ability to stop a program in its tracks. You can type “require pry” at the top of your file and then insert “binding.pry” on any line you like to stop the program. Why is this useful? Well, if you need to understand why a method is not behaving as expected, or if you are curious what a specific return value will be, you can enter new code and run the method without worrying about altering your code until it’s ready.</p><p><strong>Simple Pry Tutorial</strong></p><p>Below are some samples I created to test with pry.</p><p>Just like other Ruby gems, the Pry gem must be required in your environment settings or you can type “require pry” at the top of the ruby file in order to access it.</p><p>Here we have two arrays and a basic method. How do we know if the method is functioning properly? Let pry help you!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0_UPeYyLAHtToWI5ZxnalQ.png" /></figure><p>In the method, we need to find all names in the array with a length equal to or great than 4 characters. Place a binding.pry after the method then run the file. Inserted at the end of a page of code, you can see if there are any errors. If pry opens and displays the code in the terminal, no runtime or syntax errors are present. Notice how much more readable this is with the color coding — pretty neat, huh?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XCBlY-XOOz7_DwbwdMzyhQ.png" /></figure><p>Now to test the method! Lets pass the simpsons array in and see what happens…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*px6J-7QIEHlFBa6UCdtE4w.png" /></figure><p>Great! All names have 4 or more letters. We should check the hills array for good measure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cNjfdkinbzF4S7B4uPfHjw.png" /></figure><p>Looks good! Lets write a new method with pry inside next.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vAc4zgcT9nWrMtbr_BGtMw.png" /></figure><p>With this method, lets return a string statement with each iteration. Remember to ‘quit’ out of pry after each change. Run the file again to re-enter pry.</p><p>Note that pry has stopped inside the method. Now we can run our test code to verify that its acceptable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sMqs2YIFByN81X2u-fysmA.png" /></figure><p>Looks good! The method finds all instances in the array and returns the string.</p><p>Since everything works as expected, you can ‘quit’ and return to the terminal.</p><p><strong>Some of the more useful Pry commands include:</strong></p><ol><li>binding.pry — opens pry and stops runtime on a line you specify</li><li>exit — exits the current loop</li><li>exit! — Exit Pry</li><li>history — displays a history of used Pry commands on the terminal</li><li>ls — prints the variables and methods available within the scope</li><li>help — the list of pry commands</li><li>pry — opens Pry in the terminal</li><li>show-doc — opens up the documentation for a class or class method</li><li>Whereami — displays the current location within a program</li></ol><p>Pry is an amazing tool that has helped me drastically, not only by debugging, but by allowing me to pick apart code and see what any line I’m curious about returns. Do yourself a favor and install the pry gem today — I promise you won’t regret it.</p><p><strong>CONCLUSION</strong></p><p>As you can see, pry is a great tool for beginner and expert alike. Next time you need to poke around your code and debug, give pry a try!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fe8015e1669b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>