<?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 Emma Rios on Medium]]></title>
        <description><![CDATA[Stories by Emma Rios on Medium]]></description>
        <link>https://medium.com/@emmarios?source=rss-a6017c26390f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*p7hqUCYiM6gOXkVi.</url>
            <title>Stories by Emma Rios on Medium</title>
            <link>https://medium.com/@emmarios?source=rss-a6017c26390f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 16:36:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@emmarios/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[How to Build an AngularJS App From Scratch (Part 1)]]></title>
            <link>https://medium.com/@emmarios/how-to-build-an-angularjs-app-from-scratch-part-1-f9e0538bbacb?source=rss-a6017c26390f------2</link>
            <guid isPermaLink="false">https://medium.com/p/f9e0538bbacb</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[angularjs]]></category>
            <category><![CDATA[mvc-frameworks]]></category>
            <category><![CDATA[learning-to-code]]></category>
            <dc:creator><![CDATA[Emma Rios]]></dc:creator>
            <pubDate>Wed, 12 Apr 2017 04:08:42 GMT</pubDate>
            <atom:updated>2017-04-12T04:08:42.819Z</atom:updated>
            <content:encoded><![CDATA[<p>This is going to be a multi-part series about how to build an application using Angular JS. I’m not starting out with any big plans for what I’m going to build and I don’t know how many parts this series is going to contain yet. Sometimes, it’s fun to be spontaneous when it comes to something you’re trying to learn!</p><p>We’ll have to carefully avoid timesinks and stay focused on what we’re trying to accomplish. We’re going to run into issues we’ve never seen before and have no idea how to fix, sometimes we won’t even know what to Google to figure out how to get some idea of how to fix it so that we can hopefully fix it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*ZvDXEV08AsNsZCK0_a6_Hw.jpeg" /><figcaption>That coder life.</figcaption></figure><p>Occasionally, we might ask a friend for help. Getting stuck isn’t a big deal — staying stuck is.</p><p>This will act as a journal, partly, as I’ll be expressing myself openly about what I’m learning/thinking/creating. It’s going to be loads of fun, so let’s get started building an AngularJS app from scratch.</p><p><em>“</em><strong><em>A journey is a person in itself; no two are alike. And all plans, safeguards, policing and coercion are fruitless. We find that after years of struggle that we do not take a trip; a trip takes us.</em></strong><em>” — John Steinbeck</em></p><p>Facing an empty text editor is always weird for beginners because we’ve got a million ideas and assumptions (sometimes they’re correct!) and not much direction. This is especially true for beginning coders.</p><p>I’ve learned that it’s best to map out a general idea of what you want to do and then build out the structure of the app from there. Using pen and paper or a whiteboard is really handy for this. Plan it out in your mind, write it down, revise it, revise it again, make it smaller and smaller again and even smaller than that… it’s still not time to actually start writing code.</p><p>I’ve got an idea! It would be fun to build an app where you could browse different people’s pets. There would be some kind of grid layout, and each “card” in the grid would display a pets image, name and brief bio about them. You would also be able to post photos of your pet, along with their name and brief bio.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*GsVqaBk5JDaCpAT-f3PqEQ.png" /></figure><p>As I’m planning this app out, I’ve already decided that we’re going to use Node with Express for our server and a Mongo with Mongoose server, the MEAN stack. I also know that I want to have two different views — the Browse Pets view and the Share Pet view.</p><p>AngularJS makes building a single page app with multiple views really easy, but it’s also probably very different from anything else you’ve encountered because it’s an MVC framework. We’ll talk about why it’s easy as we go.</p><p>A Model, View, Controller (MVC) is a pattern used for developing a web app. It’s used for many reasons, one of which is that it allows for the separation of concerns, or that it divides the application’s logic and the interface. Why is this easy? If you allow yourself to think of each of the small little tiny components that make up your app, it’s easier to stay focused and avoid feeling overwhelmed.</p><p>When you build the LEGO Super Star Destroyer, you start out with 3152 individual components. Those bricks don’t look anything like the Super Star Destroyer, but when composed together, they end up making up the finished product. Coding in general is like this, but working with an MVC framework takes this to a whole new level.</p><p>Just like the LEGO instruction manuals, you start out building one component of the program piece by piece. Then another and another and eventually those are combined, you get a super rad Super Star Destroyer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*5bMKb1THWafckOz891KF7A.jpeg" /></figure><p>So what is an MVC exactly? How does this work? Think of this: you’re at a fast food restaurant and someone at the counter greets you and takes your order. That order is entered into their system and sent to the kitchen, where the cooks prepare your food. Then the person at the counter receives the food from the kitchen and passes it to you. This is separation of concerns — only one person is responsible for each part of the food-ordering-chain.</p><p>The person who greets you and takes your order is like the view; they respond to your input and present you with your request. The ordering system is kind of like the model, which manages application (order) data and responds to input from the greeter, which updates the system and sends some information off to the cooks.</p><p>The cooks are a controller. They get some information from the model, our ordering system, because you placed an order for a chili cheese dog and then they take some ingredients and combine them in a way that represents a chili cheese dog, they update the model, which let’s the view know your order is ready, and your meal is sent back out to our view, aka the greeter, who then presents the delicious chili cheese dog to you.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/773/1*1Uy7NkavIA2EYJ-0TJeC4Q.jpeg" /><figcaption>A tray for us to… watch me eat because these are mine.</figcaption></figure><p>Cool! We kind of understand how MVC frameworks and AngularJS works, right? I can guarantee you probably want a chili cheese dog now. Let’s wrap this up so we can get closer to actually writing code!</p><p>In the next edition: we know we’re going to need a server to serve our files and handle requests to get data and post data. We’re also going to need to design our database according to the information that we want to be able to add and receive from it.</p><p>Additionally, we’re going to need to work out how things are going to work on the front end and what the skeleton of our app is going to look like in terms of file structure.</p><p>In the next part of this blog, we’ll begin looking at some actual code and probably start by building our server and getting it to serve a basic index.html file.</p><p>Until next time! Get out there and Beep Boop.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*y16vsgW8KhkU_iQOXUQc-Q.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f9e0538bbacb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is Big-O Notation and how is it used in programming?]]></title>
            <link>https://medium.com/@emmarios/what-is-big-o-notation-and-how-is-it-used-in-programming-e9605a70bc46?source=rss-a6017c26390f------2</link>
            <guid isPermaLink="false">https://medium.com/p/e9605a70bc46</guid>
            <category><![CDATA[puppies]]></category>
            <category><![CDATA[big-o-notation]]></category>
            <category><![CDATA[time-complexity]]></category>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Emma Rios]]></dc:creator>
            <pubDate>Wed, 22 Feb 2017 16:57:55 GMT</pubDate>
            <atom:updated>2017-02-22T16:58:28.699Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>What is Big-O Notation and how is it used in programming?</strong></p><p>As someone who began their programming journey 5 months ago, I’m still at a point in this adventure where the learning curve feels really steep. Everyday I’m learning about things that I didn’t know existed the day before. It’s scary, exhilarating, emotionally and intellectually exhausting and rewarding in profound ways.</p><p>When you enter a realm like programming, or music (my background is as a professional musician and composer), which is seemingly made up of elites — people who are incredibly intelligent, technically “gifted”, artistically “talented” with their instrument or orchestrations, etc. — it can be beyond humbling. It can and does destroy your ego, or at least it should. If you let go of your ego and embrace the new reality you now live in, where what you know will more often than not be closer to the side of nothing than something, you are in a position to empower yourself with curiosity.</p><p><em>“</em><strong><em>The cure for boredom is curiosity. There is no cure for curiosity.</em></strong><em>”<br>- Widely attributed to Dorothy Parker and to Ellen Parr, but the origin is unknown.</em></p><p>Oftentimes it’s easier to run away from the things that we don’t understand rather than to run towards them. For me, Big-O Notation and Time Complexity are things that feel like they’re too overwhelming to tackle. So I’m going to run towards the topic with the same excitement and enthusiasm I would a herd of puppies. I know we’ll learn something along the way and grow that bank account of knowledge and ideas. Time for puppies!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2zi8gdDwIdhjW6rmzEzY3Q.jpeg" /><figcaption>It’s PUPPIES!</figcaption></figure><p>Simply put, Big-O Notation is a mathematical tool we can use to evaluate the efficiency of an algorithm. An algorithm in programming is a set of rules or instructions that the language will execute in a calculation or some other problem solving operation. Algorithms have varying levels of time complexity, which is a fancy way of saying, how complex are our instructions and to what degree does this effect this process that I want to execute?</p><p>First, some of the terms used with Big-O Notation to describe an equation’s time complexity are <em>linear</em>, <em>constant</em>, <em>quadratic</em>, <em>logarithmic</em>, <em>exponential</em>… there’s more! We’ll stick with just a few of these for illustrative purposes.</p><p>The most common algorithm used in programming is a loop, such as the for loop in JavaScript. I’ll use an analogy of a real life situation to demonstrate a task (our algorithm) which is executed in linear time to illustrate my point.</p><p>Let’s say you’re at the grocery store standing in front of the milk case. For whatever reason, you’ve decided that you are going to take every gallon of whole milk from the case and add it to your cart. You don’t know how many gallons of whole milk are in the case, but you’re going to start taking them out one by one and adding them to your cart. Let’s say there are only 5 gallons of whole milk in the case right now — that’s a best case scenario! Our data set (the milk case) which holds our data (the whole milk) isn’t very big in this case. But, what if there are 100 gallons of whole milk? Well, the time complexity of executing this unusual task has increased.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c0JWBLeHq6xj8wLcIMMYjQ.jpeg" /><figcaption>The cow. Most noble of all creatures. Maker of milk.</figcaption></figure><p>Executing a task like the one I outlined above is linear, which is notated as O(<em>n</em>). That’s where we get the big O from in Big-O Notation. The time it takes to complete our milk gathering task increases by orders of <em>n</em> (<em>n</em> being the number of data in our data set) for each gallon of whole milk in the case. We have to complete the task (our algorithm) of putting each gallon (one data element) in our cart, one at a time, and that task will take more or less time depending on the size of the milk case (our input data set).</p><p>So, what if we have a different task? Let’s say your friend had you over for a meal and you helped clean up all the dishes. Everything went into the dishwasher and was run through a cleaning cycle and now that it’s done, it’s time to put everything away, which you’ve offered to take care of because they made you homemade spaghetti, which is the king of all foods.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P7PHVrkiV3_Q-d8LSc-DDw.jpeg" /><figcaption>If your friend makes you homemade spaghetti, do the dishes.</figcaption></figure><p>Because you’re an algorithm, your first task is to take out a dish from the dishwasher and put it away. Since this is your friend’s place, you’re not sure exactly where everything goes, so your next task is to open each cupboard until you find the right one. This is going to take you forever, because you’ve got to execute the first task of taking out a dish, and for each dish you take out, you then have to figure out where that dish goes. A stunning example of an algorithm with quadratic time complexity. It’s quadratic because we have to complete two tasks for each dish: taking the dish out of the dishwasher and then finding the cupboard it belongs in.</p><p>I hope this was a useful introduction to what Big-O Notation and time complexity is and I hope you will go out and learn more about it! It was helpful for me to have some ideas about what it is and why it’s used, because it will be a part of my life as a programmer. Right now, I’m dealing with really small data sets, so the efficiency of an algorithm I write isn’t going to make or break a project. However, as the data I’m working with increases in complexity, this tool becomes more important to understand and use.</p><p>If you are learning about this topic too and found some good resources or have something you can add to the conversation, leave a response below. If you know something about this topic and have feedback or a correction, please leave a response below, too.</p><p>Don’t be afraid of new ideas. Stay curious and get out there and build awesome things.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e9605a70bc46" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>