<?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 Charlie Paterson on Medium]]></title>
        <description><![CDATA[Stories by Charlie Paterson on Medium]]></description>
        <link>https://medium.com/@charlieed.paterson?source=rss-f1482bf17321------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*4gdaLYF2ABd57BIcaQe_Uw.jpeg</url>
            <title>Stories by Charlie Paterson on Medium</title>
            <link>https://medium.com/@charlieed.paterson?source=rss-f1482bf17321------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 20:52:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@charlieed.paterson/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[It’s all coming together!]]></title>
            <link>https://medium.com/true-grit/its-all-coming-together-5bfb28b0ee73?source=rss-f1482bf17321------2</link>
            <guid isPermaLink="false">https://medium.com/p/5bfb28b0ee73</guid>
            <dc:creator><![CDATA[Charlie Paterson]]></dc:creator>
            <pubDate>Tue, 25 Feb 2020 18:18:51 GMT</pubDate>
            <atom:updated>2020-02-25T18:18:51.108Z</atom:updated>
            <content:encoded><![CDATA[<p>Over the course of two weeks we’ve gone from a relatively bare bones Rails template and little idea if any how to get it to do what we want, to a full stack web app where people can sign up, sign out, sign in, make/edit/delete posts and comments on said posts, and even ‘friend’ other users! For just learning a web development framework which is to Sinatra what an eldritch entity with FTL space travel capabilities is to a moon rocket in terms of speed/efficacy at the cost of making sense, we’d wager that we did reasonably well. That may be up to the ‘stakeholder’ in the end, but we thought it apt to go over what really stuck with us!</p><h3>Databases, databases, databases</h3><p>Overall we ended up with five different entities that we needed to keep track of for our facebook clone — those being users, posts, comments, friendships and friend requests. More importantly, we also had to establish how these different entities related to each other. In rails, this is typically done with the “has_many” or “belongs_to” methods, typically followed by the target class name in lower case. If you wanted to keep track of the authoring users of posts, for instance, you might declare that the user model “has_many :posts” whereas the post model “belongs_to :user”. This way you can set up all of the database relationships pretty much automatically.</p><p>We also decided that friendships should have their own model. While in theory you could have it that a user is a friend that ‘belongs_to’ another user or ‘has_many’ other users as friends, this would be incredibly messy for a many-to-many relationship. Not only would you have to run a method in both directions to add one user to the other and vice versa, but you’d probably also have to have multiple data points in a cell or multiple columns for each user. With many friends, this would get messy! Instead, we created a ‘friendship’ model which belongs to both a user and the ‘friend’ (other user). Each friendship thus has a unique ID but also stores the ID of the requesting user and the friend in separate columns, creating a lot less mess and fuss!</p><h3>Peer review of Code</h3><p>One thing we real had to nail was ensuring a proper code review and merging process. At the end of each day a series of key pull requests would be made, after which we would all join together in a ‘merge party’ to discuss the changes we had made and work through any merge conflicts that materialised from this. In order to further organise this whole process we had it set up so that a pull request would require the approval of at least two reviewers before anyone could then merge the branch. We also made sure to make/pass tests and lint our code before we opened pull requests on our code.</p><h3>Communication with stakeholder</h3><p>The process of working with a stakeholder to ensure that we can meet their specifications is an intricate interplay between being open to their directions and willing to implement what they want to the fullest, while also not being afraid to ask a number of questions or lay out the technical facts regarding the specifics of design. It’s rare that a stakeholder will know exactly what it is they want with a web application’s design and not all will be intimately aware of all the ins and outs of full stack development. Nonetheless, they will know what they *don’t* want when they see it and even if they don’t, sometimes just asking can bring a given detail into focus or help the stakeholder to formulate a clear vision.</p><h3>CSS</h3><p>For us (particularly in my personal experience) this was one of the more fun parts of the web app construction. It’s one thing to have all of your routes, data structures and buttons worked out but now we could take it from being a generic looking page to something with STYLE. My first impulse was to use a lot of black and orange. Eventually this morphed into giving our posts a black background with orange text in a digital-looking font, to being slightly translucent with a black border, to lighting up bright orange with black text whenever the cursor hovers over them. At some point we even set up a NASA image of Mercury’s surface for the page background and a picture of the stars for the navigation bar background, and lo and behold: Acebook was now Spacebook!</p><p>For the nav-bar and its buttons in particular, we used a CSS framework known as bootstrap which comes with a set of button and nav-bar options pre-built. Until I am more familiar with bootstrap however, I do like to see just what I can achieve using core CSS.</p><h3>To Conclude</h3><p>Overall, not only do we have a full stack web app deployed with a range of capabilities, but rails is starting to make just a little bit more sense!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5bfb28b0ee73" width="1" height="1" alt=""><hr><p><a href="https://medium.com/true-grit/its-all-coming-together-5bfb28b0ee73">It’s all coming together!</a> was originally published in <a href="https://medium.com/true-grit">True GrIT</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting up and running]]></title>
            <link>https://medium.com/true-grit/getting-up-and-running-80d5445e1cd3?source=rss-f1482bf17321------2</link>
            <guid isPermaLink="false">https://medium.com/p/80d5445e1cd3</guid>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[facebook-clone]]></category>
            <category><![CDATA[rails]]></category>
            <dc:creator><![CDATA[Charlie Paterson]]></dc:creator>
            <pubDate>Mon, 13 Jan 2020 16:30:18 GMT</pubDate>
            <atom:updated>2020-01-13T16:30:18.186Z</atom:updated>
            <content:encoded><![CDATA[<p>As the old saying goes, every big web app starts with an overall plan to help organise its construction. And you know what? So does every good clone of a big web app. But this is going to be a *great* clone — we hope — so before we could do even that, we laid out some overall objectives that we have in mind for this project.</p><p><strong>MVP: Minimum Viable Product</strong></p><p>This is one of those items we really want to bear in mind over the course of this project, with the meaning being that we should strive first and foremost for something that prioritises the most basic and essential features from the perspective of user experience first of all, with all the extra bells and whistles coming in later. If we have to choose between being able to post/see messages and having a user class and all its database dependencies worked out, we’d rather not choose at all — but we’re going to have to, and features take precedence over elaborate backend logic as far as the user is concerned.</p><p><strong>Understanding and reviewing the entire code base</strong></p><p>Over this project, while we will be splitting the main tasks between programming pairs we want to make sure that everybody can follow just what is going on within each component of the web app. From here it’s not only far easier to understand where one’s own work will fit into the whole, but it also maximises the learning of all team members: we may each be working on one or two parts of the whole, but we’re hoping to prepare to work on any part of a future project. What’s more, programmers can benefit from a fresh pair of eyes and fresher batch of ideas just like anyone else, so over this project we want to hone our ability to give and take constructive criticism.</p><p><strong>Learn New Technology</strong></p><p>This project will be introducing us to the web development framework <em>Rails</em>, and it’s object relational mapping framework <em>ActiveRecord. </em>While <em>Rails</em> tends to be heavier and somewhat stricter in how developers may work with it than <em>Sinatra</em> (the other major <em>Ruby </em>web framework) it comes with many more features and in turn far more potential, which we hope to unlock through the process of learning its ins and outs. In <em>ActiveRecord</em> we hope to find a useful framework for managing both our databasing and our business logic.</p><p><strong>Learning to deploy with Heroku</strong></p><p>Building a full stack web app is one thing, but there’s only so much potential one can fulfil farting around with one’s localhost. There are a number of ways to get the actual web app up and running as something other than a ‘git clone’-able curiosity and Heroku just so happens to be amongst them. It comes complete with its own set of command line operations for setting up a dedicated repo branch and various other things that take code right along the journey from commitment to deployment. We are hoping to learn the ins and outs of Heroku and come out of these next two weeks fully able to deploy what we build.</p><p><strong>Learning to follow an Agile plan</strong></p><p>In the world of web app development, there is a methodology known as <em>Waterfall </em>for organising the process — here, the team creates an organised and linear overall plan, finishing each step completely before moving on to the next. The plan seldom changes.</p><p>To each their own, we say. But for this project we will need speed and flexibility a lot more than rigour and tight structure.</p><p>And this is where <em>Agile </em>methodology comes in, in particular the <em>scrum </em>framework and its methods. The key here is the organisation of upcoming tasks to be accomplished into a time box known as a <em>sprint, </em>allowing development to occur by increments in order to have a usable product available early on while working to realise its full potential. The team gathers to plan the upcoming <em>sprint</em> before setting down to work, reflects on their accomplishments in the <em>sprint</em> during a <em>sprint retrospective</em>, and may then present their progress to the stakeholders in anticipation of feedback during a <em>sprint review.</em></p><p>Each day we’re also hoping to have a<em> daily scrum </em>where we discuss the achievements of the previous day and what we expect to accomplish that day. This whole process will be managed by a<em> scrum master</em> each day (who will also be writing these posts!), with the role rotating between members of our team. This way we can all gain insight into the process and how to organise it.</p><p>But most of all…</p><p><strong>We want to have fun! This needs no further elaboration, we’d hope.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=80d5445e1cd3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/true-grit/getting-up-and-running-80d5445e1cd3">Getting up and running</a> was originally published in <a href="https://medium.com/true-grit">True GrIT</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>