<?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 Rosie Wilt on Medium]]></title>
        <description><![CDATA[Stories by Rosie Wilt on Medium]]></description>
        <link>https://medium.com/@rosiewilt?source=rss-278020ddf554------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*w5KJfax62TDbKOuF</url>
            <title>Stories by Rosie Wilt on Medium</title>
            <link>https://medium.com/@rosiewilt?source=rss-278020ddf554------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 00:41:46 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rosiewilt/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[Avoiding Burnout and Staying Inspired While Learning to Code]]></title>
            <link>https://medium.com/@rosiewilt/avoiding-burnout-and-staying-inspired-while-learning-to-code-3d7c9964b946?source=rss-278020ddf554------2</link>
            <guid isPermaLink="false">https://medium.com/p/3d7c9964b946</guid>
            <category><![CDATA[inspiration]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[stress]]></category>
            <category><![CDATA[burnout]]></category>
            <dc:creator><![CDATA[Rosie Wilt]]></dc:creator>
            <pubDate>Wed, 01 Jul 2020 15:49:28 GMT</pubDate>
            <atom:updated>2020-07-01T15:49:28.829Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/245/1*UETC2CUPLM-dhMW4FyycdQ.gif" /><figcaption>the burnout is real.</figcaption></figure><p>I’ve mentioned this before on this blog that tens of people have graciously read — but I love seeing other peoples coding projects. I want to know what everyone is up to in the world of tech. With all of the technologies there are to master, what do you actually end up creating with them?</p><p>Yes, some people code because they love technology and solving complex problems — coding is their passion in and of itself. And that’s great! But personally, I find that while I’m passionate about coding, it’s also a stepping stone for me to participate in my other interests more fully.</p><p>But, two things that vex me about coding bootcamps (and probably many bootcamp students) is coming up with project ideas and dealing with burnout. I find they go hand in hand: when you’re feeling tired and overworked, coming up with ideas is <strong>hard</strong>! When it’s hard to stay focused, it’s hard to think beyond just being focused, and get inspired. Here are a few tips that help me stay on track.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/1*rxy8YEhTAjNzZASqMwU6ww.gif" /></figure><h4>Write Down Your Goals and Refer to Them Often</h4><p>Keep a clear list of your goals and put it somewhere you can see it. This can be your goals for what you want to accomplish for the day, week, year, or beyond. They can be completely related to your coding journey or they can include things that keeps you mentally and physically grounded as well. Having a visual, written reminder of what you want to achieve can be a powerful tool in keeping yourself on track, and help you to visualize success.</p><p>Try to keep them specific vs. general, you’re less likely to stick to it if it’s too vague.</p><p><strong><em>Here’s an example of the type of goals you might write down:</em></strong></p><ul><li>Wake up at 7am (almost) every day</li><li>Learn React and React Native</li><li>Come up with 5 solid ideas for final project by Friday</li><li>In 2 years, own a bungalow in Bali and work remotely with my 10 pet Poodles, poolside</li><li>Stretch for 15 minutes a day</li><li>Complete 6 algorithm problems a week</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/1*dcg9NXdNwVDVSMyI9hQLgw.gif" /></figure><h4>Keep Inspiration Handy</h4><p>I have two folders and one document that I maintain regularly. The two folders are bookmarks of websites, split into categories: “How-Tos” and “Design I Like.” As you can guess, the former is an exhaustive set of links on how to do something coding related. To give you an idea of what’s in here, here are a few:</p><p><a href="https://dev.to/taeluralexis/break-git-down-how-to-create-a-branch-from-master-and-make-your-first-commit-2960"><strong>Break Git Down</strong></a><strong> by Tae’Lur Alexis : </strong>A helpful guide to creating your first Git Branch and making a commit. I referred to this often when I first started learning to use Git.</p><p><a href="https://cssgridgarden.com/"><strong>CSS Grid Garden</strong></a><strong> by Codepip: </strong>A fun way to learn about GSS grid. I like this because it’s engaging, and inspiring — I’m really interested in making a game of my own, and this is a great reference point.</p><p><a href="https://coolors.co/"><strong>Coolors.co </strong></a><strong>by Fabrizio Bianchi: </strong>A super fast color theme generator that makes it easy to pick a color scheme for your next project. Easy to get stuck on here for longer than you wanted, but very fun to use!</p><p>My Second folder is Design I Like, and here’s two examples:</p><p><a href="https://www.doggoforhire.com/"><strong>Doggo For Hire </strong></a><strong>by Ryan Wiemer: </strong>A personal website for the creators (super cute) dog. I’m obsessed with the scrolling photo animation and I keep this bookmarked because I really want to dig into how it works when I have time.</p><p><a href="https://brutalistwebsites.com/"><strong>Brutalist Websites</strong></a><strong>: </strong>A collection of websites that are inspired by, well, brutalism. They aren’t always neat or easy to digest, and that’s why I like them. They tend to have some of the most inspiring layouts and features and I keep this website handy for going about my work in a more unexpected way.</p><p>The last document is simply a Google Doc of project ideas. Every idea, big or small, goes into the doc. This has been a great resource for when its final project time and I’m totally stuck on what to make, or when I want to start a new side project but I can’t remember what I want to do next. I also keep note of what projects I’ve completed. It feels rewarding to have accomplished a goal and know your studying is paying off.</p><h3>Have a Side Project</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/1*X5uuQy_uUhSIwD8nrJieGQ.png" /></figure><p>When I’m having trouble with burnout with I sometimes like to re-focus my attention by…continuing to work. I know — sounds counterintuitive. But it goes back to remembering why I started this journey in the first place — making the coolest stuff I can think of!</p><p>But instead of studying, like, say — struggling to get a grasp on React, I choose a side project and I decide to give it a bit of my time. The reason this helps is because it’s something I already know I’m passionate about and enjoy doing. If it wasn’t, it wouldn’t be a side project! Getting myself back into the “zone,” where I’m tackling a problem and learning by doing is a great way for me to fall in love with coding and learning again. Another thing that it does is help me see what my limitations are.</p><p>For example, One of my side projects is my personal website, which so far is just vanilla JS and HTML/CSS. A lot of the features I’d like to implement got me thinking <em>yeah…this would be really nice if I could do it in React. </em>Voila! I got the push I needed to get back to my main work. Try to set a limit for yourself, like 30–45 minutes before taking a full break and hopping back into your main task, so you don’t go off the rails.</p><p><strong>Note: Do NOT go side project crazy — you don’t want that to be another source of stress or a method of distraction! Try to focus on two at a time, max.</strong></p><h3><strong>Take A Real Break.</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*0TU81wKZ25Ijuai2C4mRDw.gif" /></figure><p>I know everyone says to take a break. Then there’s always the person who thinks they don’t need it and they just keep trucking along until they can’t truck any further. I’m sorry to tell you that you are not special when it comes to rest. Everyone needs a mental break and recovery. It’s how you end up stronger. Actually! Scientifically!</p><p>Carve out time for yourself to do something you like, to make a meal you love, to spend time with friends, or to just lay on your bed and think about something else for 15 minutes. <strong>DONT </strong>think about coding, don’t work on a project, just do something that makes you happy!</p><p>And if you’re having trouble with that, it would be so helpful if there were some sort of list you could refer to of things that cheer you up… see where I’m going with this?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/244/1*74wDNVNwn8RA8JGzyUaofA.gif" /></figure><h3>Acknowledge Your Feelings and Celebrate Success</h3><p>My final tip for staying motivated and inspired is to both acknowledge your bad feelings and celebrate the good ones. Give yourself a break for feeling tired, or out of it. <strong>You cannot be inspired or motivated 24/7.</strong> In fact, it is perfectly normal to not be motivated to do work, even if it’s work you like. It does not mean you don’t like it — you just need to push yourself to get started and get into your flow. Not beating yourself up over being tired (a normal, human emotion) will help you go easier on yourself and break the stress cycle.</p><p>When you do accomplish something — make sure to celebrate it authentically. Try not to qualify it with “<em>well, it was only because…</em>” or down playing it entirely. The more you speak highly of your successes and recognize them for what they are, the more you will see yourself as a source of brilliant ideas and wealth of knowledge. This will not only help you in school, but when it’s time to transition to the real world — where confidence is everything, and that comes from knowing that you know your stuff.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3d7c9964b946" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[America’s Next Top Model View Controller]]></title>
            <link>https://medium.com/swlh/americas-next-top-model-view-controller-cfcc10bd83ec?source=rss-278020ddf554------2</link>
            <guid isPermaLink="false">https://medium.com/p/cfcc10bd83ec</guid>
            <category><![CDATA[web-app-development]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[rails]]></category>
            <category><![CDATA[model-view-controller]]></category>
            <category><![CDATA[mvc]]></category>
            <dc:creator><![CDATA[Rosie Wilt]]></dc:creator>
            <pubDate>Tue, 16 Jun 2020 15:11:16 GMT</pubDate>
            <atom:updated>2020-06-18T16:32:24.413Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*iQzL4oD9P4E3Y7IThRm3zQ.gif" /><figcaption>The MVC design pattern sounds intense, but don’t worry, Jade -we’ve got this.</figcaption></figure><p>At the heart of web application creation is the MVC design pattern. MVC stands for Model, View, and Controller. Essentially, it is the accepted paradigm by which we model our applications. This pattern is used by many programming languages, like Python, JavaScript, C#, and my first (and only, so far) experience with it was through Ruby/Rails, which is what this article is based on!</p><p>Essentially, the Model, View, Controller model separates web-app design into three interconnected areas. Understanding the structure of MVC is essential to understanding the design patterns programmers use to build apps every day, and will help you immensely on your journey to building your own.</p><p>Personally, the best way that I learn information is by relating it to something I’m familiar with. By the title of this article I think you can guess what I’m about to do…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/1*KmNiKfhZuL7lsjJBD2OG-Q.gif" /></figure><p>Yes. America’s Next Top Model View Controller. I’m sorry in advance.</p><p>Take a look at this graphic as you follow along, and save this somewhere you can reference back:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/888/0*7npyQt6xjsDAEafa" /><figcaption>this graphic is based on Rails, but you can get a general sense of how it all works for any language that uses MVC.</figcaption></figure><p>We start with the browser. Information is requested from the server by the client. That’s you, our hopeful contestant! From there, that request is shown to the router. Let’s think of the router as the casting director, shall we? We loved your video and there’s a high chance you’ll bring the TV worthy drama. Depending on your request, the router will send it over to…</p><h3>The Controller</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/390/1*2FtDbwdpKqSk3mYxQQ_f_A.gif" /><figcaption>Like Tyra Banks, the Controller is the Boss of the show.</figcaption></figure><p>I think of the Controller as the mastermind of the MVC framework. So obviously, the Controller is the Tyra Banks of web-application design.</p><p>The Controller holds all of our appropriate actions and keeps the peace between the Model and the View. All of your appropriate CRUD actions (Create, Read, Update, Delete) are held within the controller and executed depending on what information is received from the server.</p><p>Is Tyra going to take your information and Create a new model? Is she going to give you a FIERCE makeover and make some Updates to your look? Or, if you aren’t smizing hard enough you may not even make the cut, and your information is Deleted from the database. Sorry!</p><p>Let’s say Tyra/the Controller loved your audition. You’re not here to make friends, and she loves that about you. She takes your information and adds it to the database. That means it’s time to start working with…</p><h3>The Model</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*4HgtNRf6jWtbzCqpRouvKQ.gif" /></figure><p>The Model is where all relevant information is stored in your web-application. Models represent data. They can also hold logic that can make changes via the controller if data is changed. There can be a singular Model, which is commonly represented by an Object, or there can be multiple Models.</p><p>In Rails, Ruby classes represent our models and they interact with the database and perform the logic. They have to do the bulk of the tasks because they are how we get to all of that fun data we set up to make our app work. That is why the model is well, the Model!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*n0T21apFOYMnwgB5CDSZrg.gif" /><figcaption>Tyra thinks the MVC could use a haircut and some lessons from J. Alexander.</figcaption></figure><p>I know, it’s no Naomi Campbell. But the Model is you, our hopeful contestant, because it’s up to you to put in the work, the long hours, the endless runway walks, so you can be ready to show yourself to the world. Once you’ve blossomed into a budding superstar (or finished gathering and manipulating the appropriate data from our database, whichever comes first), you are ready to make your debut. And that’s one of the last pieces of the puzzle…</p><h3>The View</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*8V5CR05TN86B5AnoPPA8hA.gif" /><figcaption>Jade and the View are always ready for their close up.</figcaption></figure><p>So — you’ve sent in your request, you’ve been dealt with by Tyra and team, and you’ve been put through the ringer. You did it! It’s time to show yourself off and try to win that prize. Much like a journey through America’s Next Top Model, the View is the final stopping point for our MVC design pattern.</p><p>The View is what the user sees: our collection of JavaScript, HTML, CSS, and any other frontend stuff we might need to make our page pop. The View does not have any say in what it shows. That still comes from Tyra, I mean, the controller. It may choose to render the view as an HTML formatted webpage, JSON, etc. It’s all still up to the controller, of course!</p><p>Before it goes out into the world, it goes back through the Controller for one final look, and then is finally sent out into the world back to the user. Congratulations!</p><h3>Overview</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/244/1*cNHFECTXGa8IPBbg56UlIg.gif" /></figure><p>In short, the MVC design pattern is a useful and helpful paradigm by which we software engineers design our web applications. Sometimes you may feel like there is a “better” way to do something in your web apps, but following these time-honored processes is a way to ensure everyone can follow along with your though process and work collaboratively.</p><p>Once you have a solid basis of how these different structures interact with each other, designing your web app will feel so much more intuitive, and you will begin to see how information flows easily through the client, browser, and server.</p><p>In other words, you’re gonna be on top!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*qQNJDqDPRLe8Z_04qyFYbQ.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cfcc10bd83ec" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/americas-next-top-model-view-controller-cfcc10bd83ec">America’s Next Top Model View Controller</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Your Project Isn’t Finished Without a README. Here’s How to Write One.]]></title>
            <link>https://blog.devgenius.io/your-project-isnt-finished-without-a-readme-997ca096a7ca?source=rss-278020ddf554------2</link>
            <guid isPermaLink="false">https://medium.com/p/997ca096a7ca</guid>
            <category><![CDATA[readme]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[how-to]]></category>
            <dc:creator><![CDATA[Rosie Wilt]]></dc:creator>
            <pubDate>Thu, 28 May 2020 18:15:21 GMT</pubDate>
            <atom:updated>2020-06-02T14:57:03.723Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*aRLZ1nLNtgbpgf9o5ZoBdg.gif" /><figcaption>no README, huh? I see...</figcaption></figure><p>I absolutely love seeing other people’s coding projects. Big or small, experienced or beginner, in the world of programming I believe we all have something to learn from each other. As a beginner myself, there have been quite a few times I’ve been stuck on a problem or struggling to see things in a different way and have gone scouring Google/GitHub/etc. to see what others have come up with.</p><p>As the creators of those projects, we also want the support of our peers and our network. Maybe we need feedback, encouragement, or a willing guinea pig to test out all of our bugs. We work tirelessly for hours to create something we’re proud of and want to share with the world. And then…we completely neglect to include a README.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*XbSR8jv8i3wp_5O6_nKosw.gif" /><figcaption>Tiffany just went to your repo and there was no README. This is how she feels.</figcaption></figure><p>Why do we do this to ourselves?! Despite being a beginner and being a little embarrassed to share my work and ideas, I still not-so-secretly want other people to see it and engage with it. But we need to draw them in first.</p><p>One of the things some beginner programmers don’t realize is that it’s not just your top-notch coding skills that matter anymore. Potential employers want to see the whole package: coding prowess, personality, communication, and the like. The problem is- they’re extremely busy and there are hundreds if not thousands of applications to go through. Outside of your resume and personal website, your projects (for the most part) should be a reflection of who you are and what you’re interested in. If I’m Judy Recruiter and I happen upon your GitHub and your project title sounds interesting, but there’s no information on how to access it or what it does, am I looking at it? No! I’m too busy!</p><p>Not only that, but if you build a really useful tool for the community and there is no README, then there’s no documentation to rely on for updates, what to do if something goes wrong, etc. I have tried (and failed) to use a number of Ruby gems that did not have any real documentation on how they worked outside of a one line description, and it saddened me because I really wanted to try out what they worked so hard to build.</p><p>Let’s change all of that in a few easy steps, shall we?</p><p><strong><em>Note:</em></strong><em> I suspect some people do not include README’s because writing is not their strong suit. That is totally fine — README’s aren’t up for Pulitzers. We just need an overview of your project and how it works. Also, because these soft skills are valued in the workplace, think of it as practice each time you write one. They will get better and better, promise!</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/469/1*Tigc0Ow2BSP6-kUiWMFVeg.gif" /></figure><h3>Step 1 — Title and Description: What Do We Have Here?</h3><p>All of your projects should have some sort of title that is relevant to what the project is about and include a brief description of what it does. This is also where I might highlight if something is still a work in progress, so I can set the expectation for the user that this is a project I am still building on.</p><p>Next, include a high level description of the app. This is where you can let your personality shine. As I mentioned before, many of us forget that employers want to see if you are a good fit for their company or project on multiple levels. But don’t forget that your projects are an opportunity for you to attract the kinds of jobs <em>you</em> want, too. Are you a silly, goofy person? Show some of that in the description! More straightforward and to the point? You know what to do.</p><p>For my first project, I tried to inject a bit of friendly humor into the description of my README (see below). If that’s too much for some employers, I assume we probably wouldn’t enjoy working together too much. And that’s OK!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k00_2hoyWfdwMADbH1mOnQ.png" /><figcaption>The introduction to my project.</figcaption></figure><h3>Step 2 — Instructions: How Do I Work This Thing?</h3><p>Remember that no one knows how to run and use your project in the way you want unless you tell them. Give an overview of what’s needed to get started (for example, my Ruby README will include any relevant gems —also for credit purposes) and a few simple steps on cloning down and what commands to run. See mine below. If there are any extra libraries the user will need, call that out here too.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yNisA9lyXNkrYXcMiTrIXA.png" /><figcaption>Ruby gems used in my app.</figcaption></figure><h3>Step 3 — Overview and Photos/Video: Ooh, pictures!</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/356/1*kN7WdzUmGfPEWwym4cnWLg.gif" /><figcaption>Whoa, your README is really coming together!</figcaption></figure><p>Your overview should be a little more straightforward versus your intro. This is your chance to talk about your project in depth and describe what features it has, how it was built and what languages and technologies you’ve used. See mine below. I specifically call out and credit my use of an API, and describe around 7 features of my app. I still kept it a bit light and conversational with some humor, but that’s just me.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pLl8KrIL9by2gpSfi7kgmg.png" /><figcaption>My app overview.</figcaption></figure><p>Now for my favorite part — what does this app look like?! I hate to break it to you, but you can go through all of that trouble and someone still might not want to spend time cloning down your work (unless you’re hosting it on a website and have included the link…hint hint.) so adding photos and/or video is a simple and cost-effective way for them to see it in action. They can also see what your aesthetic tastes are like and if you include a short video, they’ll have yet another glimpse into the flow of the app and see some of your impressive styling abilities as well.</p><p><em>Side note: if you’re a bootcamp student like me and had to create some of those materials anyway for presentation purposes, get as much mileage out of them as you possibly can!</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fnhY8GpvPBPMgXYsilacTg.png" /><figcaption>One of the screenshots of my app.</figcaption></figure><h3>Bonus: Fix Up Your Profile Highlights!</h3><p>Add and organize your projects on your Github profile page so no one has to dig to find your best work. Github allows you up to 6 pins on your profile page that you can drag and drop in whatever order you want. Just click ‘customize your pins’ while on your profile page to start.</p><p>Think of it as your Myspace Top 8 — show off your favorites and take solace in the fact that unlike Myspace, your other projects can’t get mad at you for not including them on here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qSXM5c7nniPW3bO6Iqf3gg.png" /><figcaption>A glimpse at my Github Top 6.</figcaption></figure><h3>Congrats — you’re a README master!</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/1*cmYKAxIkeF8HWxKB_s6OCg.gif" /><figcaption>a potential employer after reading your gorgeous README.</figcaption></figure><p>And that’s it! Now that you know the basics — from now on challenge yourself to include the README as a part of your app checklist. If you don’t have a README, do not pass go. Your project is NOT finished! Myself (and your adoring future fans of your app) will thank you!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=997ca096a7ca" width="1" height="1" alt=""><hr><p><a href="https://blog.devgenius.io/your-project-isnt-finished-without-a-readme-997ca096a7ca">Your Project Isn’t Finished Without a README. Here’s How to Write One.</a> was originally published in <a href="https://blog.devgenius.io/">Dev Genius</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Simple CLI app with Ruby, ActiveRecord, and Buffy the Vampire Slayer]]></title>
            <link>https://medium.com/@rosiewilt/simple-cli-app-with-ruby-activerecord-buffy-the-vampire-slayer-141a276579d4?source=rss-278020ddf554------2</link>
            <guid isPermaLink="false">https://medium.com/p/141a276579d4</guid>
            <category><![CDATA[flatiron-school]]></category>
            <category><![CDATA[activerecord]]></category>
            <category><![CDATA[cli]]></category>
            <category><![CDATA[buffy-the-vampire-slayer]]></category>
            <category><![CDATA[ruby]]></category>
            <dc:creator><![CDATA[Rosie Wilt]]></dc:creator>
            <pubDate>Wed, 20 May 2020 14:15:30 GMT</pubDate>
            <atom:updated>2020-05-20T14:20:18.892Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="“There’s a demon in the internet” — Giles from Buffy explains the dilemma." src="https://cdn-images-1.medium.com/max/500/1*Vmi9bzSHFPm3DsdXXFx4dw.jpeg" /><figcaption>Giles didn’t understand computers at ALL, but in this case — he was right!</figcaption></figure><p>The first language I began my programming journey with was JavaScript. I spent many days, weeks, months and cups of coffee on loops, closures, algorithm problems, etc. While I gained a lot of proficiency using sites like Leetcode and Codewars, I still found that it was hard for me (personally) to just build something simple on my own from scratch.</p><p>I had a few pieces of the puzzle, but wasn’t sure how to start connecting them. The things I wanted to make still felt miles away. Enter Ruby. I had to take a break from JS in order to learn Ruby for Flatiron School- and what I loved most was how empowered I felt to just start making something, however small. The first thing I created was a rudimentary version of a horror video game I’d been playing (read: watching with my eyes half covered, shouting obvious bits of “advice”: “he’s killing you!”) with my friend while stuck in quarantine. The only three commands I used to bring it to life were puts,sleepand gets.chomp. Still, it felt cool to see something I wrote play out on the screen!</p><p>Now that I’m a few weeks into school, I’ve been able to leverage my knowledge of Class and Instance Methods, ActiveRecord and CLI, to build my very first app, a virtual recreation of The Met Museum, called <a href="https://github.com/rwilt/mod1-final-project-net-museum">The Net Museum</a>. While I’m super proud of my creation — I was most inspired by projects from my peers that were more game based. Most of the CRUD (Create Read, Update, Delete) features on my program weren’t much fun to play around with. (CRUD apps can be kind of…cruddy.) I wanted my users to feel immersed in narrative. I thought back to my little game and wished I could build on that concept. I decided to practice by making a CLI game based on the Greatest Television Series of All Time: Buffy the Vampire Slayer.</p><figure><img alt="“it’s the computer age. nerds are in.”" src="https://cdn-images-1.medium.com/max/310/1*9oW4tb6nyxvDVBV0vwzLog.gif" /></figure><h4>Always Have a Plan</h4><p>What helped me the most in my Mod 1 project was mapping out my ideas and code before getting started. First, I’d need to figure out my models and their relationship to each other,and what attributes I’d want each to have. I decided on classes of User (who would play as our heroine, Buffy), Demon, and Weapon. Here’s how that looks:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/404/1*cFZJmup4o6K8ABFvn2zGLg.png" /><figcaption>Remember that in a has many/belongs to relationship, the thing that “belongs to” something is in charge of keeping track of its “owner”. No matter what! Keep in mind that even if the example doesn’t make sense in our human mind, the computer doesn’t care. If Thing 1 belongs to Thing 2 — then Thing 1 has to keep track of Thing 2 via a foreign key (‘thing2_id’). In fact, quizzing myself with more non-sensical models helped me break the habit of trying to apply too much pesky human logic, and just go with it.</figcaption></figure><p>Now that I had that settled, I could begin to think about how my app would flow. I like to write out a little “storyboard” of sorts to help me along. Here’s mine:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*obE4fWc5YSTid8fRCL_ZEg.png" /><figcaption>I like to draft my ideas in Google Docs just because I’m already on the computer. But feel free to use a notebook or another method that works for you.</figcaption></figure><p>I cannot stress enough how important it is to get your ideas on paper <em>before</em><strong><em> </em></strong>starting to code! Confession: I initially began this project without my outline, and I had to create 3 more migrations because of data I forgot I wanted to include or didn’t realize I might need to accomplish my goals. I thought having done a project like this before, I could just wing it. Wrong! It may seem tedious or unnecessary, but it will save you time and it will get you thinking critically (and creatively!) about your goals.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*qpKRv5oDpCw_sEjIo-Hk7A.gif" /><figcaption>ALWAYS have a plan.</figcaption></figure><h4><strong>Rake Commands to Make Your Life Easier</strong></h4><p>Time to do some coding! The Ruby <a href="https://rubygems.org/gems/activerecord/versions/5.0.0.1">ActiveRecord</a> gem is an extremely useful tool to make working with a database much easier. Using ActiveRecord along with another gem, <a href="https://github.com/ruby/rake">Rake </a>— means that routine tasks associated with database management are accomplished with just a few lines of code. The most useful to me right now are the below:</p><pre><strong>rake db:create_migration NAME=create_things </strong><br>#sets up the skeleton of your migration. remember the database name should be a plural version of the class/model! </pre><pre><strong>rake db:migrate</strong><br>#migrates the database and sets up your schema file.</pre><pre><strong>rake db:rollback</strong><br>#undo the most recent migration. use with caution! best utilized in the early stages of your setup.</pre><pre><strong>rake console</strong><br>#opens up your console so you can play around with and update your database. you can perform any of your CRUD actions here to test.</pre><p>With my models set up and database migrated — getting started on building the app was a breeze. For the sake of time, and not being a TV show writer, I decided to base the game on an existing episode of the show. It felt right to choose a tech-centric one called <a href="https://en.wikipedia.org/wiki/I,_Robot..._You,_Jane">“I Robot, You Jane”</a>, where teenage wallflower (and budding witch) Willow falls in love on the internet with a guy named Malcolm. Little does she know he’s a 14th century demon by the name of Moloch the Corruptor whose spirit has taken over the interweb. Despite the episode being 23 years old, they kinda nailed the whole internet dating thing.</p><figure><img alt="“you have my love.” — a man reveals himself as a demon to willow." src="https://cdn-images-1.medium.com/max/450/1*22QV3-hMQLGTkPLGSgWarg.jpeg" /><figcaption>insert mailer daemon joke here.</figcaption></figure><p>I will spare you the more tedious parts of my game setup, but here it is in action:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FIUY6nhqFGoo%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DIUY6nhqFGoo&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FIUY6nhqFGoo%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/b1375f9eac99625470599e5b2d8a58ab/href">https://medium.com/media/b1375f9eac99625470599e5b2d8a58ab/href</a></iframe><h4>Challenges and Stretch Goals</h4><h4><strong>My biggest challenges in creating this project were:</strong></h4><ul><li>Reining myself in. Being a mega fan of my source material, I initially wanted to tell as many stories as I could at once. The best plan is to pick one story and make it meaningful and memorable. You can always build from there! Don’t over complicate things — if you feel overwhelmed, the user probably will too. Also, if you’re working to a deadline, your end result could feel rushed.</li><li>Not beginning with a plan of action. I mentioned this above but it bears repeating. Have a blueprint so that everything else flows from there.</li></ul><h4><strong>My stretch goals for this project are:</strong></h4><ul><li>Add some sort of puzzle/riddle solving element to the game so it’s not just battle scenes, which can start to feel repetitive.</li><li>Add animations. This is achievable but a little bit time consuming for a simple CLI app. Which brings me to my next goal…</li><li>Recreate this entire game as a more dynamic and fleshed out web app (probably in React, once I get there). I like that it feels old school, but I’d love to make it a little bit more sophisticated.</li><li>Finally, I’d love to use these two projects as a jumping off point for a truly original idea. I’ll need to know much more about the aesthetic side of it — making my own illustrations, etc. But I’d love to work on something that is truly built from the ground up!</li></ul><p>This is a side project, so I can work on it at my leisure, but I hope I’m able to get to some of these additional goals and I’m excited for what else I’ll learn on my coding journey to bring more of my ideas to life.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=141a276579d4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>