<?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[True GrIT - Medium]]></title>
        <description><![CDATA[Team musings on building a clone of Facebook… called Acebook (the ‘f’ is silent), built by TrueGrIT (the ‘r’ is silent). - Medium]]></description>
        <link>https://medium.com/true-grit?source=rss----6d20ebd92f55---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>True GrIT - Medium</title>
            <link>https://medium.com/true-grit?source=rss----6d20ebd92f55---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 20:50:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/true-grit" 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----6d20ebd92f55---4</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[Product owner’s Den]]></title>
            <link>https://medium.com/true-grit/product-owners-den-5229ea0d0dac?source=rss----6d20ebd92f55---4</link>
            <guid isPermaLink="false">https://medium.com/p/5229ea0d0dac</guid>
            <category><![CDATA[teamwork]]></category>
            <category><![CDATA[sprint-review]]></category>
            <category><![CDATA[rails]]></category>
            <category><![CDATA[agile-development]]></category>
            <category><![CDATA[beginner-coding]]></category>
            <dc:creator><![CDATA[Raluca Ciucu]]></dc:creator>
            <pubDate>Thu, 16 Jan 2020 11:36:03 GMT</pubDate>
            <atom:updated>2020-01-16T11:36:03.792Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Hobbit in awe of Smaug the dragon" src="https://cdn-images-1.medium.com/max/595/1*fuIkCaqG6N6XpuiqXzVvjg.jpeg" /><figcaption>True GrIT in awe of all the gems Rails can hoard</figcaption></figure><p>Yesterday morning we had our first sprint demo as budding developers. For those unfamiliar with the term, a <a href="https://www.berteig.com/scrum/21-tips-for-choosing-a-sprint-length/">sprint</a> is an important process of the Agile methodology. Essentially, the team sets their target with the product owner (in our case, the Makers coach) and plan their work effectively, so that it’s ready for review by the end of an established period. It’s a brilliant thing to do, as it sets expectations clearly and early on for both sides in terms of workload and delivery times. In our case, it was two days, the first day of which was mostly taken up with the <a href="https://medium.com/true-grit/travis-ci-a-love-hate-relationship-38f19d92a52f">set up</a>.</p><p>This week is pushing the limits of our knowledge even further; for our project we are using Rails for the first time, which is an extremely powerful tool that takes lots of practice to get used to, but once you do, it’ll do most of the heavy lifting for you. Our journey so far has taught us to be inquisitive and mostly learn things from the inside out by building them, so it was puzzling in the beginning to discover what Rails can do for us already.</p><blockquote>“Eight weeks into our Makers adventure, Rails felt to us what programming felt like to non-programmers.”</blockquote><p>Knowing we have to present our product to an experienced professional who also played the role of the product owner at the end of the allotted two days kept us focused all the way. The sprint was short but intense and it felt a bit like Dragons’ Den, but it was such a welcome experience; feedback was concise, useful, easy to implement and, most importantly, it told us we were headed in the right direction, even though we hadn’t yet covered all of the requested features (we decided on finishing those before our next sprint on Friday).</p><p><strong>Takeaways:</strong></p><ul><li>The scrum master should always take notes during the sprint and discuss the suggestions with the team right after. There is no time like now to pick up good practices based on fresh feedback.</li><li>If you were offered technical advice on how to improve/make your code functional, make it your team’s priority for the day, before moving on to other features.</li><li>Ask the product owner questions about the product/features they expect; it’ll get you in the habit of clarifying any user requests your client may consider crucial. This is also useful if you ever deal with a client who isn’t particularly clear on what they want.</li><li>Before you start writing code from scratch, see what tools Rails has and learn how to use those, otherwise you’ll be reinventing a (somewhat wobbly) wheel.</li><li>Last but not least, yesterday raised our excitement and confidence levels; after all, it’s more about the journey, than the destination.</li></ul><p>P.S. Thank you, <a href="https://github.com/CpaterCodes">Charlie</a> for the quote, it distilled our Rails experience very elegantly.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5229ea0d0dac" width="1" height="1" alt=""><hr><p><a href="https://medium.com/true-grit/product-owners-den-5229ea0d0dac">Product owner’s Den</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[Travis CI — a love/hate relationship]]></title>
            <link>https://medium.com/true-grit/travis-ci-a-love-hate-relationship-38f19d92a52f?source=rss----6d20ebd92f55---4</link>
            <guid isPermaLink="false">https://medium.com/p/38f19d92a52f</guid>
            <category><![CDATA[rails]]></category>
            <category><![CDATA[girls-in-tech]]></category>
            <category><![CDATA[heroku]]></category>
            <category><![CDATA[beginner-coding]]></category>
            <category><![CDATA[travis-ci]]></category>
            <dc:creator><![CDATA[Jade Beresford]]></dc:creator>
            <pubDate>Tue, 14 Jan 2020 14:21:32 GMT</pubDate>
            <atom:updated>2020-01-14T14:28:03.312Z</atom:updated>
            <content:encoded><![CDATA[<h3>Travis CI — a love/hate relationship</h3><p>If Travis were a person, he would not be our friend.</p><figure><img alt="Travis CI logo" src="https://cdn-images-1.medium.com/max/642/1*ReJCeRt3UrdFp65T8mWs1A.png" /><figcaption>Travis looking all smug with his hard hat on.</figcaption></figure><p>It is still Day 1 of our project build and we are wrestling with Travis CI. This is a very handy tool for automatically testing code changes and providing a safeguarding layer before deployment, in our case on Heroku (read more in the docs <a href="https://docs.travis-ci.com/user/for-beginners/">here</a>), but the set up can be very unforgiving.</p><p>So as not to repeat the excellent tips of those who have gone before us, here are the links that got us started:</p><ul><li><a href="https://medium.com/full-taxx/how-to-setup-travis-ci-for-a-rails-application-78a453963300">How to set up Travis CI for a rails application</a></li><li><a href="https://medium.com/@felipeluizsoares/automatically-deploy-with-travis-ci-and-heroku-ddba1361647f">Automatically deploy with Travis CI and Heroku</a></li></ul><p>Our functional .travis.yml ended up looking like this… and yes, it does look deceptively short, but don’t be fooled!</p><pre>language: ruby<br>rvm:<br>- 2.5<br>services:<br>- postgresql<br>before_script:<br>- bundle exec rails db:create<br>- bundle exec rails db:migrate</pre><pre>deploy:<br>  provider: heroku<br>  app: heroku-app-name<br>  on:<br>    repo: repo-owner/repo-name<br>  run:<br>  - bundle exec rails db:migrate<br>  api_key:<br>    secure: encrypted-heroku-api-key</pre><p>The first code section: With a little bit of research, we got the tests up and running automatically via Travis on our Github pull requests. We’re feeling optimistic! Top tip: make sure you have the correct indentations.</p><p>The second code section aka <em>deploy</em>: This would theoretically make deployment to Heroku automatic from our master branch, once and only once the tests passed in Travis. As mentioned before, a very handy protection indeed, but drama quickly ensued.</p><ul><li>Under <em>app</em> we add the name of the app. Under <em>repo</em> we add the full name of our repo. Under <em>api_key</em> we follow the instructions in the links above to obtain the Heroku API key and then encrypt it.</li><li>Commit and merge it to master branch, check Travis in Github. We get this error message: <strong><em>Invalid credentials provided.</em></strong></li><li>Ok, maybe we have the app name wrong. The app name in our Github and Heroku are different because Heroku automatically generated a random name for us (our fault — we didn’t specify a name on setup). So we change that to the Heroku app name.</li><li>Error message: <strong><em>Invalid credentials provided.</em></strong></li><li>Hmm, let’s double check there’s no typos in our <em>app</em> or <em>repo</em> sections. Nope, not that we can see.</li><li>Hold on, which <em>api_key</em> are we meant to be using? Does it have to be the owner of the project’s? Oh dang, we were using another teammate’s by running heroku auth:token in their terminal, and then encrypting it. So we try the key from the project owner’s terminal.</li><li>Error message: <strong><em>Invalid credentials provided.</em></strong></li></ul><p>Believe it or not, this is the shortened version of events. We tried about 3 different API keys with little success.</p><ul><li>We turn once more to Google and hit gold: <a href="https://github.com/travis-ci/travis-ci/issues/10018">Issues with Deploying to Heroku via Travis-CI</a></li><li>Eureka moment! It turns out there are two Travis CI websites, travis-ci.com &amp; travis-ci.org. Our project is running in travis-ci.com, but the encryption of the API key was not drawing from here.</li><li>We specify the correct location for encryption in our terminal command, using the project owner’s API key: travis encrypt pasteAPIKeyHere --add deploy.api_key --pro (--pro specifies <em>.com</em> and --org specifies <em>.org</em>).</li><li>We wait with bated breath… message: <strong><em>Deploying application. Done. Your build exited with 0. </em></strong>High fives all round!</li><li>PS: Unfortunately deployment will not run from pull requests, it will only run from master. So if you are troubleshooting the <em>deploy </em>section, you have to experiment directly in master, rather than in separate branches, resulting in numerous messy commits in the master branch.</li></ul><p>In short, Travis, we are super grateful for the service you provide. We know we need you… but we also now know why you wear that hard hat (violence implied).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=38f19d92a52f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/true-grit/travis-ci-a-love-hate-relationship-38f19d92a52f">Travis CI — a love/hate relationship</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----6d20ebd92f55---4</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>