<?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 Scarlett Eller on Medium]]></title>
        <description><![CDATA[Stories by Scarlett Eller on Medium]]></description>
        <link>https://medium.com/@MlleScarlettE?source=rss-8b8032445245------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*heMFxB-xb3nCLKJE</url>
            <title>Stories by Scarlett Eller on Medium</title>
            <link>https://medium.com/@MlleScarlettE?source=rss-8b8032445245------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 17:33:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@MlleScarlettE/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[Fizzbuzz — An Interview Algorithm Classic]]></title>
            <link>https://medium.com/@MlleScarlettE/fizzbuzz-an-interview-algorithm-classic-680fca600ac9?source=rss-8b8032445245------2</link>
            <guid isPermaLink="false">https://medium.com/p/680fca600ac9</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[beginner-coding]]></category>
            <category><![CDATA[algorithms]]></category>
            <dc:creator><![CDATA[Scarlett Eller]]></dc:creator>
            <pubDate>Fri, 06 May 2022 15:32:57 GMT</pubDate>
            <atom:updated>2022-05-06T15:44:08.327Z</atom:updated>
            <content:encoded><![CDATA[<h3>Fizzbuzz — An Interview Algorithm Classic</h3><p>Fizzbuzz is a staple of the interviewers toolbox. It’s often considered an <em>easy</em> whiteboard question but this can be an unfair assessment. The first time you encounter this problem, especially someone new to algorithms such as myself, it can actually be very challenging. The answer is however, like most problems in coding, remarkably simple once reached.</p><h3><strong>The Problem —</strong></h3><p><em>Write an algorithm which logs every number between 1 and n, except for multiples of three, which should be “</em><strong><em>fizz”</em></strong><em>, and multiples of five which should be “</em><strong><em>buzz.” </em></strong><em>Multiples of both should be logged as</em><strong><em> “fizzbuzz.”</em></strong></p><p><em>ex. “1, 2, fizz, 4, buzz, 6…”</em></p><p>Let’s begin by devising a pseudocode strategy we can follow to tackle this problem:</p><ol><li><strong>Create a for loop which logs every number between 1 and n.</strong></li><li><strong>Run checks for whether each is divisible by three, five, or both.</strong></li><li><strong>Log the matching result.</strong></li></ol><p>Sounds like an easy enough plan, but it all rests on that second step. If we can’t determine whether a number is divisible by our targets this strategy simply doesn’t work. There are a great variety of complex mathematical solutions we could use, but we don’t need to bother with any of that. Rather, built into the very heart of JavaScript is a tool which will do all that work for us…</p><h3>The Modulo Operator —</h3><p>This little used operator (represented by the percent sign <strong>%</strong>) returns a numbers <em>remainder</em> after division, rounding that number up or down. If there is no remainder (like say 9 % 3), it returns 0.</p><p>Using this tool, we can effectively determine if one number is divisible by another without any complex calculations. It’ll work perfectly for our strategy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*DCb3d-vYBdN6K9FYjPSp6w.jpeg" /><figcaption>“We have our heading..”</figcaption></figure><h3>The Solution —</h3><p>Let’s go step by step through our previously outlined plan. First, we’ll build a loop logging every number from 1 to n. I hope you can do this on your own but if not, practice makes perfect.</p><p>Our second step can be split into three additional substeps:</p><ul><li>Check if the number is divisible by three and five</li><li>Check if the number is divisible by just three</li><li>Check if the number is divisible by just five</li></ul><p>If you haven’t already guessed, a simple if else statement should be more than enough for our needs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/419/1*Ww8g8H-oLy5hQZScFTT3OQ.png" /><figcaption>The first check can also be replaced by (i % 15) if you’re feeling fancy.</figcaption></figure><p>After each check we can move onto our third step and log the required result.</p><p>And that’s it! As I said before, the solution to this problem is really simple once the solution is found and understood. The key is the modulo operator, once that’s discovered basically any algorithm is requiring you to find numbers divisible by a target is quite simple. I’m finding that’s true with a lot of algorithms. Once a particular strategy is found, it ends up really being easy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*jBtAOJ0MG-TNk_AH32zVEw.gif" /><figcaption>POV: You’re watching someone solve FizzBuzz.</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=680fca600ac9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Flatpickr: A Practical Introduction]]></title>
            <link>https://medium.com/@MlleScarlettE/flatpickr-a-practical-introduction-711cef691fbc?source=rss-8b8032445245------2</link>
            <guid isPermaLink="false">https://medium.com/p/711cef691fbc</guid>
            <category><![CDATA[codingbootcamp]]></category>
            <category><![CDATA[beginner-coding]]></category>
            <category><![CDATA[rails]]></category>
            <category><![CDATA[reactjs]]></category>
            <dc:creator><![CDATA[Scarlett Eller]]></dc:creator>
            <pubDate>Mon, 11 Apr 2022 14:58:52 GMT</pubDate>
            <atom:updated>2022-04-11T14:58:52.635Z</atom:updated>
            <content:encoded><![CDATA[<p>For our phase four project at Flatiron School, my project partner Alison Melendez and I decided to create a booking application for the Grand Budapest Hotel. To this end I hoped to implement a simple calendar that would allow users to easily input dates for their stay. I quickly ran into Flatpickr and was amazed by its simplicity and customization possibilities. The only problem I had was finding anything approaching a decent tutorial for its basics. It ended up taking me some time to figure it out on my own. Hoping to close this gap and allow others to explore it more than I could within my short timeframe, I thought I’d give a quick tutorial about how I placed it into my own application.</p><p>For context, my application was built using a Rails backend and a React frontend.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/444/1*wHvu1obNONku1In8VW-jSg.png" /><figcaption>The eventual finished product</figcaption></figure><p>The first thing you’ll want to do is install the Flatpickr gem through npm. You can find this information on their website, or just use the following code:</p><blockquote><strong>npm i flatpickr — save</strong></blockquote><p>The next thing you’ll need to do is import it into the specific React component it’ll be utilized in. For our case, the visit booking page. This is a two step process, the first being to import Flatpickr itself. The second is to import the specific pre-built styling for your calendar, one of the things that makes it such a useful and dynamic tool. You can edit parts of it yourself of course (we changed the font), but their built-in options are expansive and freely available on their website.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*2IGXieqNj65OQCgp9hSjwA.png" /><figcaption>Imported Flatpickr and the styling</figcaption></figure><p>At this stage, you can add Flatpickr to your React application. I saw a lot of tutorials online that had a myriad of other steps in this stage, none of which worked in any capacity. I for one had absolutely no trouble just plugging Flatpickr into my application directly, either in user functionality or in accessing the data. If anyone has any idea why other steps were necessary, I’d love to know.</p><p>ANYWAY, this is how I implemented Flatpickr. As soon as this is done it should show up in your application ready to go.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/447/1*lSgqFpFWi5DWotTqV3sKuA.png" /><figcaption>Flatpickr Check-In</figcaption></figure><p>Let me explain a few of the key features here:</p><p>minDate sets the minimum date a user can possibly enter. This can be hardcoded in, or more dynamically with terms like “today.</p><p>altInput and and altFormat makes the date which shows up on the front-end human readable, written out in plain English. What’s really cool is this doesn’t affect the data sent to the backend by Flatpickr. We were using datetime in Rails to record this data and that still went through and could be retrieved perfectly. It’s another really cool feature that makes Flatpickr so easy to use.</p><p>enableTime allows users to input a time as well as a date, which will be recorded in the backend as well.</p><p>All of these details were set to a state (the date[0] necessary to actually access the nested data) and posted to the backend using regular CRUD. It was saved in Rails and could even be accessed later to show users the details of their stay.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/618/1*Tnrc1LamuRJ3Xln_Dyootg.png" /><figcaption>Someone about to enjoy a truly superior stay</figcaption></figure><p>And that’s about it! There’s so much more to explore with Flatpickr, and I hope this introduction to its basics will allow you to explore some of its more amazing features. Good luck!</p><p>Link to Flatpickr: <a href="https://flatpickr.js.org/">https://flatpickr.js.org/</a></p><p>Github for this project: <a href="https://github.com/ScarlettEller1715/Grand-Budapest-Hotel">https://github.com/ScarlettEller1715/Grand-Budapest-Hotel</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=711cef691fbc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ghostd: Discovering Backend Development with a Dating App for Dead People]]></title>
            <link>https://medium.com/@MlleScarlettE/ghostd-discovering-backend-development-with-a-dating-app-for-dead-people-b2968fe5ed42?source=rss-8b8032445245------2</link>
            <guid isPermaLink="false">https://medium.com/p/b2968fe5ed42</guid>
            <category><![CDATA[ghosts]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[ruby]]></category>
            <category><![CDATA[beginner-coding]]></category>
            <dc:creator><![CDATA[Scarlett Eller]]></dc:creator>
            <pubDate>Tue, 15 Mar 2022 14:13:50 GMT</pubDate>
            <atom:updated>2022-03-15T14:13:50.202Z</atom:updated>
            <content:encoded><![CDATA[<p>Phase Three in Flatiron School was my first exposure to backend programming. Having a background in artistic study and design, it was a part of programming I assumed would be quite unenjoyable for me. Moreover, I believed I would be pretty bad at it as well. For most of the phase I was often surprised how easily I took to it, especially when the problems were more material and dealt with realistic pieces of data.</p><p>When it came time to build our Third Phase projects, I was assigned Henry Miller as my project partner. We were pretty excited about this, as we’d had many conversations about building a unique and entertaining application. As beginner coders we knew the new Facebook was a little beyond our reach, but we wanted to work on a project that was simply fun both to use and to create. We first discussed creating a LinkedIn for clowns (a project still in the works mind you), but we soon settled on a better idea:</p><p>Ghostd: A Dating App for the deceased.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QM6tI64e8x897X_IXQQ0fQ.png" /><figcaption>Sarah Ravencroft stans to the front</figcaption></figure><p>It was soon agreed that Henry would start the front-end while I would build out the back end in Ruby before joining him up front. We assumed it would be a pretty easy task, a few basic methods and a minor match function. A forty-eight hour adventure at most. To my shock, it turned about to rapidly balloon into an all-week affair creating complex interlocking methods and struggling with the restraints placed on me by the assignment rules. By week’s end, I wound up writing eleven application controller methods and another six model methods to handle the like, dislike, undo, response randomization, and reset functionality critical to our application. Strangest of all, I really enjoyed doing it. For the first time, coding actually felt like a fun puzzle, an exciting mystery to see just what the solution to each particular problem would be. It was stressful at times certainly, but overall the experience was exhilarating.</p><p>Other than my project partner, I didn’t really have a lot of help or resources to build out this relatively complex backend. Due to the specific limitations of our assignment (using only Ruby and SQLite) and the particular nature of our project, there weren’t many places I could go for exact answers. In the end I pretty much built out this extensive code on my own, and it did wonders for the confidence I have in my coding abilities.</p><p>Just be clear, I’m sure this is not very efficient code. I’m certain there are a million and a half better ways to do this an experienced professional would quickly see. Regardless though, for my first ever functional backend, I’m pretty proud of what I accomplished. Especially considering I’d never coded in my life a mere six months ago.</p><p>For both bragging and to assist anyone working on something even mildly close to this project, I thought I’d go over the most complex method I built for this project. The like function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/634/1*g9CAvab47pQdM78srzkGXw.png" /><figcaption>The Like Method in the App Controller</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1007/1*jXR5mwGg6fHpysri0SmRNQ.png" /><figcaption>The Like Method in the Like Controller</figcaption></figure><p>We decided to base our project on dating apps like Tinder, with a stack of cards and a swiping function for liking and disliking profiles. The like function I had to construct on the backend needed to accomplish multiple tasks. First, it needed to determine if the profile that had been swiped on had interacted with the user. I created a randomization function to create a unique simulation of which ghosts had liked or disliked the user. If the ghost in question had, the interaction needed to be updated and a response sent to the frontend. If not, the interaction had to be generated and a different response sent to the frontend. Every quick swipe on the app either updated or created the database, regardless of whether or not the user saw it.</p><p>The response my partner and I decided to send back from the database was a boolean indicating whether or not the swipe was a match. If it was (ie. the randomization method selected “true” for the profile’s interaction), I sent down a true. This would trigger a matching pop-up module on the front end. If it didn’t, or the interaction was only just now generated, it returned a false.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UBjDpNgdCQb6bFc4K9vwZw.png" /><figcaption>Pictured: A very lucky man</figcaption></figure><p>This was only a basic summary of my like method, and there are many more methods I’m very proud of on the backend. If you’d like to see the full code, you can check it out on my github here: <a href="https://github.com/ScarlettEller1715/Ghosted-Backend">https://github.com/ScarlettEller1715/Ghosted-Backend</a></p><p>You can also check out the AMAZING front end my project partner Henry Miller constructed here: <a href="https://github.com/henreth/ghosted-frontend">https://github.com/henreth/ghosted-frontend</a></p><p>He also discussed his perspective on the making of this app in his Medium post which you can find here: <a href="https://medium.com/@henr-eth/its-a-match-1ccd24730254">https://medium.com/@henr-eth/its-a-match-1ccd24730254</a></p><p>We’ll keep you updated for when the app is launched, and you can see which ghostly hotties you match with in the afterlife…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b2968fe5ed42" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>