<?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 Tom Cowley on Medium]]></title>
        <description><![CDATA[Stories by Tom Cowley on Medium]]></description>
        <link>https://medium.com/@motcowley?source=rss-fb41cef8b01a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*R1y8Y9jcapDn5bzp5g7GbA.jpeg</url>
            <title>Stories by Tom Cowley on Medium</title>
            <link>https://medium.com/@motcowley?source=rss-fb41cef8b01a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 09:44:09 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@motcowley/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[Strategy Hack — Near Neighbours]]></title>
            <link>https://medium.com/@motcowley/strategy-hack-near-neighbours-ae0e63cfff67?source=rss-fb41cef8b01a------2</link>
            <guid isPermaLink="false">https://medium.com/p/ae0e63cfff67</guid>
            <category><![CDATA[hacks]]></category>
            <category><![CDATA[community]]></category>
            <category><![CDATA[birmingham]]></category>
            <category><![CDATA[neighborhoods]]></category>
            <category><![CDATA[innovation]]></category>
            <dc:creator><![CDATA[Tom Cowley]]></dc:creator>
            <pubDate>Fri, 24 Mar 2017 07:01:06 GMT</pubDate>
            <atom:updated>2017-03-24T07:14:04.282Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/940/0*ljkdf1m1KctSuvZj." /></figure><p>Last night I attended a meetup at the lovely Impact Hub in Digbeth. It was organised by a group that work with charities and help them come up with ideas and last night we were working with a charity called Near Neighbours and the company PlanLab.</p><p>We had two people from PlanLab and then two others from Near Neighbours. There were then four of us from Birmingham and our task was to come up with a strategy that could be used by Near Neighbours to help develop social cohesion within the community.</p><p>A lot of this seemed to be coming off the back of Brexit and ‘Trumpism’. We talked about the growth of populism and the ‘alt right’. I don’t really want to get into politics in this blog, as I’m hardly qualified (and it’s worth remembering that I’m a white middle class male who sees the world through that lens) and end I can up ranting. But I do enjoy a little rant — so as a couple of side points:<br>I’m not convinced that there has been a growth in these hate groups in particular. Although stats show some rise in some hate crimes (we have to be a bit careful with some of these statistics and how we present them), I suspect these people existed before, and have just been given justification to act out in this way. These are the loud minority that we hear about. And surely these are the people that we need to educate and help, as unappealing as that might sound.<br>Overall, I can only imagine that our world is more connected and more unified than it has ever been. (Compare the world to 100 years ago, or 50, or even 20). Humans come together and achieve incredible things on a daily basis. Sadly, these don’t seem to be the things that stick in our mind. It’s easier to remember some of the terror that can occur. We must however remember that these are the very minor exceptions, no matter how terrible they are.</p><p>Anyways, rant aside, this strategy hack and Near Neighbours are clearly in the spirit of bringing yet more good into the world and developing communities and bringing people together a lot more. And the more that people manage to achieve that, the more likely we are to be able to affect those who don’t yet understand this new world in which we live, and how we are all connected in an amazing way.</p><p>The evening began with some networking and meeting the others who had come along. There were three others based in Birmingham. One worked for the council, one with youth groups and finally one with preventative mental health. Along with the two from Near Neighbours and the strategy hack, they were a terrific buzzy group full of great ideas and were wonderful to talk to.</p><p>The first session was a (very stressful) brainstorming one for 15 minutes. We get asked a question, and then have to write a response on a post it note. Like I say, I find this thing pretty stressful, as I’m constantly judging my responses and comparing my answers to everyone else&#39;s (who always come up with way better answers than me). The ability to come up with ideas, without overthinking, is a great skill to cultivate, and I really need to practise more exercises like this to develop the skill.</p><p>After this, we moved onto developing the main idea of the product designed for social cohesion. The first idea that came up was to create a museum that gives a bit more of an honest history of Birmingham and helps people understand how Birmingham was created and developed. I imagine something like Bristol or Liverpool museums would be amazing. A big problem however is getting the money. For whatever reason, Birmingham continues to have a branding issue, and it struggles to get the money that it deserves. I’m sure in time however, the woman who has this idea and passion will eventually be successful in getting something awesome.</p><p>Next was an idea closely related to a business that I want to start later in the year. Essentially a hunt around Birmingham to discover new places and carry out different tasks. The places to seek out might have some history related to them, or might have some political significance. Tasks might involve speaking to local independent business owners who provide some history of the local area. After a task is carried out, it would then be marked as completed on a companion app. Tasks and locations would be regularly updated. A leaderboard would keep track of peoples participation. Occasionally there could be larger projects, such as a community murals that can be contributed to by local communities. All this would of course then eventually tie into the aforementioned museum. And the name that came up for this product, that I think summarises it wonderfully, is ‘Hidden Connections’.</p><p>At some point I will talk a bit more about the business that I’m interested in and try to draw in many of these ideas. A large part of the idea is to contribute positively to Birmingham. Hopefully I’ll be able to keep in touch with the others from this meetup and work with them on some of this.</p><p>It was a lot of fun to come up with these ideas in such a short space of time, and I think there are some great ideas here that could really be built upon. It helped build the idea of neighbourliness for me also, and I’m now keen to do more with our immediate neighbours, as well as those in the wider community. I’m not sure what all that may look like yet in the bigger picture, but for tonight, it means inviting some new people along to Digbeth Dining Club!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ae0e63cfff67" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Angular Folder Structure]]></title>
            <link>https://medium.com/@motcowley/angular-folder-structure-d1809be95542?source=rss-fb41cef8b01a------2</link>
            <guid isPermaLink="false">https://medium.com/p/d1809be95542</guid>
            <category><![CDATA[folders]]></category>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[angular2]]></category>
            <category><![CDATA[structure]]></category>
            <category><![CDATA[folder-structure]]></category>
            <dc:creator><![CDATA[Tom Cowley]]></dc:creator>
            <pubDate>Wed, 22 Mar 2017 06:21:06 GMT</pubDate>
            <atom:updated>2017-03-22T06:28:22.845Z</atom:updated>
            <content:encoded><![CDATA[<h3>tl;dr</h3><ul><li>There’s a summary of our new folder structure at the end</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*Iwk8QtuPrabE6xqB.jpg" /></figure><h3>Folders</h3><p>I’ve been working on an Angular application for a couple of months now. One of the things that has changed most often is the folder structure. It’s something that I end up obsessing over. I’ve gone through a couple of different structures, and no doubt will change my mind again in the future, but wanted to share my thoughts here.</p><p>A logical place to start is the official style guide from John Papa:</p><p><a href="https://angular.io/docs/ts/latest/guide/style-guide.html#!#application-structure-and-angular-modules">Angular</a></p><p>I had initially thought that there would be a completely defined way of how to structure folders, but actually the advice makes a lot more sense. Different projects will simply have different requirements, and the idea of one size fits all, like so many other things, simply wont always work.</p><blockquote>Have a near-term view of implementation and a long-term vision. Start small but keep in mind where the app is heading down the road.</blockquote><p>That is taken from the style guide. Start small. The best place to start with that is the CLI.</p><p>The CLI of course produces a project and a good suggested default layout. I’m mainly concerned about looking at the src/app folder, where all the actual logic is going to go. It looks something like this:</p><pre>- app.module.ts<br>- app.component.ts</pre><pre>- <strong><em>component1</em></strong><br>     component1.component.ts</pre><pre>- <strong><em>component2</em></strong><br>     component2.component.ts</pre><p>In actuality each of those files is then broken down into their .html and .scss counterparts.</p><p>Pretty soon on, we want to start adding some services to share the logic between the components, and to fetch data. We then want to add some models to model the data. And then some mocks to test those services. At some point we add another few components, one of which is a login system, so we want a guard, a user component wants a directive, a dashboard component wants a pipe. We’re soon taken to the following scenario:</p><pre>- app.module.ts<br>- app.component.ts</pre><pre>- <strong><em>component1</em></strong><br>     component1.component.ts</pre><pre>- <strong><em>component2</em></strong><br>     component2.component.ts</pre><pre>- <strong><em>dashboard</em></strong><br>     dashboard.component.ts</pre><pre>- <strong><em>directives</em></strong><br>     directive1.directive.ts</pre><pre>- <strong><em>guards</em></strong><em><br>     </em>guard1.guard.ts</pre><pre>- <strong><em>home</em></strong><br>     home.component.ts</pre><pre>- <strong><em>login</em></strong><br>     login.component.ts</pre><pre>- <strong><em>mocks</em></strong><br>     mock1.mock.ts<br>     mock2.mock.ts<br>     ...<br>     mock13.mock.ts</pre><pre>- <strong><em>org</em></strong><br>     org.component.ts</pre><pre>- <strong>pipes</strong><br>     pipe1.pipe.ts</pre><pre>- <strong><em>services</em></strong><br>     service1.service.ts<br>     service2.service.ts<br>     ...<br>     service8.service.ts</pre><pre>- <strong><em>user</em></strong><br>     user.component.ts</pre><p>The problem is those component names mixed in with all of the other groups of things. Adding more components just makes everything starts to feel more and more muddled… your head spins each time you look through the folder… things just feel ‘wrong’, and soon it’s screaming out at you, to put all those components… into a component folder.</p><pre>- app.module.ts<br>- app.component.ts</pre><pre>- <strong><em>components<br>    </em></strong>- <strong><em>component1</em></strong><br>        component1.component.ts<br><strong><em>    </em></strong>- <strong><em>component2</em></strong><br>        component1.component.ts<br>    - <strong><em>login</em></strong><br>       login.component.ts<br>    ...</pre><pre>- <strong><em>directives</em></strong></pre><pre>- <strong><em>guards</em></strong></pre><pre>- <strong><em>mocks</em></strong></pre><pre>- <strong>pipes</strong></pre><pre>- <strong><em>services</em></strong></pre><p>Ahh... Simple and elegant. Peace and order has been restored.</p><h3>Let’s get lazy</h3><p>The app continues to grow in size. You start to read lots of cool articles, about this new fancy feature called ‘Lazy Loading’. It sounds great!</p><p>First task is to decide how to split up different features into ‘Modules’. You come up with a pretty decent sounding list. Now, where to put them. It seems pretty obvious at this point. The app/module folder must be the perfect place.</p><p>And everything is still great, organised in its own little folders, with a good flat structure.</p><pre>- app.module.ts<br>- app.component.ts</pre><pre>- <strong><em>components<br>    </em></strong>- <strong><em>component1</em></strong><br>        component1.component.ts<br><strong><em>    </em></strong>- <strong><em>component2</em></strong><br>        component1.component.ts<br>    - <strong><em>login</em></strong><br>       login.component.ts<br>    ...</pre><pre>- <strong><em>directives</em></strong></pre><pre>- <strong><em>guards</em></strong></pre><pre>- <strong><em>mocks</em></strong></pre><pre>- <strong>modules<br>    - login<br>       </strong>login.module.ts<br>       login.routes.ts<br>    <strong>- admin<br>       </strong>admin.module.ts<br>       admin.routes.ts<br>    <strong>- dashboard<br>       </strong>dashboard.module.ts<br>       dashboard.routes.ts</pre><pre>- <strong>pipes</strong></pre><pre>- <strong><em>services</em></strong></pre><p>You keep adding more components, everything gets broken into it’s own module, because the ability to lazy load is awesome. But once again, something starts to feel… ‘off’. The components folder is getting really big. It becomes difficult to find the exact components that you’re after, as they’re all getting muddled again. And as component structure turns out to be so useful, you split your previous components into smaller and smaller components. Single Responsibility Principle for components? Maybe it’s going a bit far, but it sure feels satisfying.</p><p>So perhaps a new naming convention is needed in the components folder? Something like:</p><p>componentName.moduleName.ts</p><pre>- <strong><em>components<br>    </em></strong>- <strong><em>details</em></strong><br>        details.admin.ts<br><strong><em>    </em></strong>- <strong><em>checker</em></strong><br>        checker.dashboard.ts<br>    - <strong><em>login</em></strong><br>       login.login.ts<br>    ...</pre><p>Hmm… doesn’t help navigation. Looks like we’re going to need a new folders:</p><pre>- <strong><em>components<br>    </em></strong>- <strong><em>dashboard<br></em></strong>        <strong>- layout</strong><br>            layout.component.ts<br>        <strong>- panels</strong><br>            panels.component.ts<br><strong><em>    </em></strong>- <strong><em>login<br></em></strong>        <strong>- input</strong><br>            input.component.ts<br>        <strong>- pwCheck</strong><br>            pwCheck.component.ts<br>    ...</pre><p>Ok, now we don’t have a massive folder holding loosely related items. Instead they’re all a bit more connected, but with an extra layer of structure instead. Order restored…?</p><h3>Pages</h3><p>I spent a short amount of time looking into Nativescript and Ionic. They both use the concept of ‘pages’. I found that kind of interesting, as I don’t tend to think about apps as having pages so much, however websites typically do.</p><p>However, in Angular, a page is a component, or at least a collection of components. In our website, we very much have a concept of navigating to particular pages. In other Angular apps, this would almost certainly not be the case. So, I was keen to bring in the idea of pages in order to lighten that components folder.</p><p>In order to decide what was a page and wasn’t, I simply looked towards the url bar.</p><p>www.awesome-o.com/<strong>login<br></strong>www.awesome-o.com/<strong>dashboard<br></strong>www.awesome-o.com/<strong>organisation/robot</strong></p><p>Here we have login, dashboard and organisation, which are already modules. But I felt that they could also have their own ‘entry’ page to go with it. It’s the page that the router will navigate to at these urls. In addition there is also a robot page, which can again have its’ own page.</p><p>In reality, each of these pages is simply a component. All I’ve done is change the folder extension from:</p><p>componentName.component.ts into componentName.page.ts</p><p>Again, I can imagine many scenarios where this wouldn’t be appropriate, but for our website, which has the more typical concept of ‘pages’, it works quite well.</p><p>Where to now put these page files. Well they’re closely coupled with the router, and for most modules, we have a corresponding page, it makes sense to put them in the module folder.</p><p>But wait, if we’re putting the ‘page’ component with the module, why don’t we just put all related components for a module in the module folder?? And while we’re at it, any services related to the module in with the module? Each module is essentially its own self-contained app.</p><p>What about sharing components?! Someone once screamed at me. The whole point of components is to make them easy to share! Well, we can have a shared folder for any components like that. Putting that altogether…</p><pre>- app.module.ts<br>- app.component.ts</pre><pre>- <strong>modules<br>    - login<br>       - components<br>          - input</strong><br>            input.component.ts<br>          <strong>- pwCheck</strong><br>            pwCheck.component.ts<br><strong>       - pages<br>          - login<br>            </strong>login.page.ts</pre><pre>       login.service.ts<br><strong>       </strong>login.module.ts<br>       login.routes.ts<br><strong><br>    - organisation<br>       - components<br>          - input</strong><br>            input.component.ts<br>          <strong>- pwCheck</strong><br>            pwCheck.component.ts<br><strong>       - pages<br>          - organisation<br>            </strong>organisation.page.ts<br>          <strong>- robot<br>            </strong>robot.page.ts</pre><pre>       organisation.service.ts<br><strong>       </strong>organisation.module.ts<br>       organisation.routes.ts</pre><pre>- shared<br>   - components<br>   - mocks<br>   - models<br>   - ...</pre><p>So at this point… flat it is not. But there are a few hundred files in total in our project, rapidly nearing the thousands number, and getting anything much flatter results in a massive folder of unrelated items.</p><p>For now this works pretty well. The most annoying thing is importing from the shared folder with lots of ‘../../../../../’ . I know we can have alias paths with typescript, but I haven’t quite gotten that to work reliably yet. Hopefully in the future, and then we can simply import from ‘shared/components/name’ .</p><h3>CLI and Summary</h3><p>To summarise our new folder structure:</p><pre>- app.module.ts<br>- app.component.ts</pre><pre>- <strong>modules<br>    - module1<br>       - components</strong><br><strong>       - pages<br>       </strong>module1.service.ts<br><strong>       </strong>module1.module.ts<br>       module1.routes.ts<br><strong><br>    - module2<br>       - components</strong><br><strong>       - pages<br>       </strong>module2.service.ts<br><strong>       </strong>module2.module.ts<br>       module2.routes.ts</pre><pre>- shared<br>   - components<br>   - mocks<br>   - models<br>   - ...</pre><p>One thing that I was a bit unsure with, is how well this will all work with the CLI, in particular for compilation. After changing a couple of settings in the config, it works without any problem. The CLI is pretty un-opinionated with most things it seems. I’ve just switched to creating components by hand as that’s pretty simple anyway.</p><p>I don’t foresee any particular problems with this approach for our site for now. It’s not an approach I would jump to straight away for other projects, as it wouldn’t necessarily be appropriate.</p><p>But for now, order has been restored.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d1809be95542" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Genecraft: Art in the Biogenetic Age]]></title>
            <link>https://medium.com/@motcowley/genecraft-art-in-the-biogenetic-age-aec13a1de84b?source=rss-fb41cef8b01a------2</link>
            <guid isPermaLink="false">https://medium.com/p/aec13a1de84b</guid>
            <category><![CDATA[birmingham-uk]]></category>
            <category><![CDATA[biology]]></category>
            <category><![CDATA[art]]></category>
            <dc:creator><![CDATA[Tom Cowley]]></dc:creator>
            <pubDate>Wed, 22 Feb 2017 07:39:58 GMT</pubDate>
            <atom:updated>2017-02-22T07:39:58.236Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Art and science collide</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*n3ojY7zphgxPPv2N." /></figure><h3>Open Code</h3><p>Tuesday evening is Open Code. Or as I prefer to refer to it — Code Club. It’s a great opportunity to go along, meet some like minded people, and share some ideas. With the occasional exception (such as Valentines day), I go along most weeks. Yesterday however, was another exception.</p><p>Open Code is held in Birmingham Open Media, just next to the train station. Along with Open Code, they also house lots of other wonderful and interesting art based projects. And last night was one of those nights.</p><h3>Genecraft</h3><p>It was the opening of a new art exhibition, called Genecraft: Art in the Biogenetic Age. I wont claim to fully understand all of it (I almost never understand art), but the work on show is fascinating.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nXZEPdFa4Q8cLh7s." /><figcaption>3D scanned and printed faces of people, and surprisingly, all to scale</figcaption></figure><p>I’m not always a huge fan of art, at least the modern variety. I often find myself getting frustrated with it, and then having a long protracted debate with someone about the merits and meaning of it. Fortunately, this was not one of those times. As the title implies , this all has a very biological spin on the artwork, and there are a lot of very scientific ideas behind them.</p><p>As it was the launch event, there were a good number of people who had come to see the artwork, free drinks (including a particularly interesting one), and the artists themselves.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/935/0*zm6M4JBbbkdiwXQv." /><figcaption>That red liquid, was a part of the art, that you could drink!</figcaption></figure><p>As a quick aside, one thing that I wish there was more of, at art exhibitions, including this one, is an explanation of the art. And I don’t mean something like:</p><p><em>“The artist here tries to capture the ephemeral quality of nature through the juxtaposition of the sky and jellyfish, which in itself is a commentary on our modern society and its obsession with a consumer driven demands”</em></p><p>That by the way wasn’t actually said by anyone, but I’ve seen plenty of impenetrable nonsense like that many of times before. I’m sure it’s very clever. But it’s just not accessible to the average person like me. And usually starts me off on one of my ‘how important is art’ rants. Surely art should be accessible and enjoyable to a wide audience, or at least easy to get something out of?</p><p>So back to this exhibition — there weren’t any crazy explanations like that (at least none that I saw). There was a bit of information, an extract referring to the image here:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*cnaolIkZV7qT-PCU." /></figure><blockquote>This living portrait uses human tissue cultured from the saliva of the artist’s daughters. The tissue has been grown onto glass casts of the children’s faces, creating biological portraits that are bathed in a liquid to feed them and prevent infection.</blockquote><p>The two artist were also there on hand, to explain, in wonderfully down to Earth language, what these exhibitions were about.</p><p>I spent quite a while speaking to both Laurie Ramsell and Gina Czarnecki, the artists, and I was struck by just what wonderful and lovely people they were, as well as how talented they are. These are some of the most interesting pieces of art that I’ve seen in a long time, and they were more than happy to talk and explain everything about them, but were also interested in what I did. I find it rare to meet people with with that skillset, but also be so grounded. And the art itself was thought provoking and educational, and I’m sure that people with even a passing interest in science or art would be inspired to go and research more about it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/710/0*vFv2krrtSL78Z4OT." /><figcaption>It will haunt your dreams, but also teach you about humans genetic code</figcaption></figure><blockquote>His piece <em>Homdanio Birminghamensis</em> (2017) is a sculpture made from bacterial cellulose (a strong, moldable substance produced by bacteria) and the artist’s own DNA</blockquote><p>I wont try and re-explain what they told me, as it was still pretty involved, and instead of furiously making notes, I was drinking a beer… but there’s some great information on the main BOM website:</p><p><a href="http://www.bom.org.uk/event/genecraft-art-in-the-biogenetic-age/">Genecraft: Art in the Biogenetic Age</a></p><p>All of this is to say, I only managed to pop into Open Code for a minute. I had intended to write a blog about what I achieved at Open Code, to force me to be a bit more focussed… but that will have to wait until next week. Unless there’s more great surprises.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aec13a1de84b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Angular Loading Screen for Module Navigation]]></title>
            <link>https://medium.com/@motcowley/angular-loading-screen-for-module-navigation-ac96c056b410?source=rss-fb41cef8b01a------2</link>
            <guid isPermaLink="false">https://medium.com/p/ac96c056b410</guid>
            <category><![CDATA[angular2]]></category>
            <category><![CDATA[navigation]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[router]]></category>
            <category><![CDATA[ux]]></category>
            <dc:creator><![CDATA[Tom Cowley]]></dc:creator>
            <pubDate>Mon, 20 Feb 2017 07:45:31 GMT</pubDate>
            <atom:updated>2017-02-20T07:45:31.435Z</atom:updated>
            <content:encoded><![CDATA[<p>Specifically, this is about trying to generate a loading screen for lazily loaded modules, as opposed to the initial loading screen for the whole app which can just be added in index.html.</p><h3>tl:dr</h3><ul><li>Get a loading screen for lazily loaded modules:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/705/1*N4su4_OTiwsRhTb_EMmyDg.gif" /></figure><ul><li>app.component.ts</li></ul><pre>import { Component, <strong>AfterViewInit </strong>} from &#39;<a href="http://twitter.com/angular/core">@angular/core</a>&#39;;<br><strong>import { <br>    Router, NavigationStart, NavigationCancel, NavigationEnd <br>} from &#39;</strong><a href="http://twitter.com/angular/router"><strong>@angular/router</strong></a><strong>&#39;;</strong></pre><pre><a href="http://twitter.com/Component">@Component</a>({<br>    selector: &#39;app-root&#39;,<br>    template: `<br>&lt;div class=&quot;app-layout&quot;&gt;<br>    &lt;app-toolbar&gt;&lt;/app-toolbar&gt;<br>    <strong>&lt;div [hidden]=&quot;!loading&quot; class=&quot;loader&quot;&gt;<br>      &lt;h2&gt;Loading...&lt;/h2&gt;<br>      &lt;md-progress-bar mode=&quot;indeterminate&quot;&gt;&lt;/md-progress-bar&gt;<br>    &lt;/div&gt;</strong><br>    &lt;div [hidden]=&quot;loading&quot; class=&quot;router-output&quot;&gt;<br>      &lt;router-outlet&gt;&lt;/router-outlet&gt;<br>    &lt;/div&gt;<br>&lt;/div&gt;<br>`<br>    styleUrls: [&#39;./app.component.scss&#39;]<br>})<br>export class AppComponent implements AfterViewInit {</pre><pre>    loading;</pre><pre>    constructor(<br>        private router: Router<br>    ) {<br>        this.loading = true;<br>    }</pre><pre><strong>    ngAfterViewInit() {<br>        this.router.events<br>            .subscribe((event) =&gt; {<br>                if(event instanceof NavigationStart) {<br>                    this.loading = true;<br>                }<br>                else if (<br>                    event instanceof NavigationEnd || <br>                    event instanceof NavigationCancel<br>                    ) {<br>                    this.loading = false;<br>                }<br>            });<br>    }</strong><br>}</pre><h3>The Problem</h3><p>It may be easier just to show you what I mean:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/705/1*KbAOSuRu9Fg_-a07SC8-6w.gif" /></figure><p>The image above isn’t slowed down at all, it simply shows the time delay between clicking a navigation item, and the time until it loads. It’s also worth noting that there is extra hidden DOM content on those pages, to get a more real world loading time.</p><p>Although it is just a second or so, which is pretty standard for webpages when clicking between links, it seemed that we must be able to do better. Angular, and single page apps in general, are super responsive, but lazily loaded pages were feeling… sluggish. I found myself clicking on these links a couple of times, just because the UI wasn’t reacting immediately to a button press, whereas everywhere else in the app, it would be. And then on a slow network connection, the effect would be magnified.</p><h3>The Result</h3><p>Before I show you how, I just wanted to show the end result:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/705/1*N4su4_OTiwsRhTb_EMmyDg.gif" /></figure><p>As soon as the link is clicked, a little loading screen is shown, indicating to the user, that things are happening.</p><p>Also worth noting, that with both of the above, once a lazily loaded module has been loaded, subsequent clicks result in an instant page load anyway. The loading screen is only shown the first time the modules get grabbed over the network. Subsequent clicks are instant, like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/705/1*hYWN1Kzr2A8jHJUNYLyNfA.gif" /></figure><h3>The Solution</h3><p>Fortunately getting this solution required very little work, and was surprisingly simple.</p><h3>app.component.html</h3><p>The app.component.html page has a toolbar with the navigation buttons and a router outlet for the actual content:</p><pre>&lt;div class=&quot;app-layout&quot;&gt;<br>    &lt;app-toolbar&gt;&lt;/app-toolbar&gt;<br>    &lt;div class=&quot;router-output&quot;&gt;<br>        &lt;router-outlet&gt;&lt;/router-outlet&gt;<br>    &lt;/div&gt;<br>&lt;/div&gt;</pre><p>Then we need to add in a loading component, something like this:</p><pre>&lt;div class=&quot;app-layout&quot;&gt;<br>    &lt;app-toolbar&gt;&lt;/app-toolbar&gt;<br>    <strong>&lt;div class=&quot;loader&quot;&gt;<br>        &lt;h2&gt;Loading...&lt;/h2&gt;<br>        &lt;md-progress-bar mode=&quot;indeterminate&quot;&gt;&lt;/md-progress-bar&gt;<br>    &lt;/div&gt;</strong><br>    &lt;div class=&quot;router-output&quot;&gt;<br>       &lt;router-outlet&gt;&lt;/router-outlet&gt;<br>    &lt;/div&gt;<br>&lt;/div&gt;</pre><p>The progress bar is a simple component from angular material. Next, we need to be able to display and hide these based on a variable. I didn’t want to use *ngIf here, as I wanted to have the content ready to go in the DOM during loading. So instead, I’ve bound the hidden property:</p><pre>&lt;div class=&quot;app-layout&quot;&gt;<br>    &lt;app-toolbar&gt;&lt;/app-toolbar&gt;<br>    &lt;div <strong>[hidden]=&quot;!loading&quot;</strong> class=&quot;loader&quot;&gt;<br>      &lt;h2&gt;Loading...&lt;/h2&gt;<br>      &lt;md-progress-bar mode=&quot;indeterminate&quot;&gt;&lt;/md-progress-bar&gt;<br>    &lt;/div&gt;<br>    &lt;div <strong>[hidden]=&quot;loading&quot;</strong> class=&quot;router-output&quot;&gt;<br>      &lt;router-outlet&gt;&lt;/router-outlet&gt;<br>    &lt;/div&gt;<br>&lt;/div&gt;</pre><h3>app.component.ts</h3><p>Now, the hard part. How do we…</p><p>a) Know when the button has been clicked loading = <strong>true</strong><br>b) Know when the module has finished loading loading = <strong>false</strong></p><p>Let’s begin with the following:</p><pre>import { Component} from &#39;<a href="http://twitter.com/angular/core">@angular/core</a>&#39;;</pre><pre><a href="http://twitter.com/Component">@Component</a>({<br>    selector: &#39;app-root&#39;,<br>    templateUrl: &#39;./app.component.html&#39;,<br>    styleUrls: [&#39;./app.component.scss&#39;]<br>})<br>export class AppComponent {</pre><pre>loading;</pre><pre>constructor(<br>    ) {<br>        this.loading = true;<br>    }<br>}</pre><p>On the Angular Router, we actually get given an event that we can subscribe to. The events that we have available are:</p><ul><li><strong>NavigationStart</strong></li><li><strong>NavigationEnd</strong></li><li><strong>NavigationCancel</strong></li><li>NavigationError</li><li>RoutesRecognized</li></ul><p>For now, we’re concerned with just the first three. If we grab our relevant imports and put it all together, we end up with:</p><pre>import { Component, <strong>AfterViewInit </strong>} from &#39;<a href="http://twitter.com/angular/core">@angular/core</a>&#39;;<br><strong>import { <br>    Router, NavigationStart, NavigationCancel, NavigationEnd <br>} from &#39;</strong><a href="http://twitter.com/angular/router"><strong>@angular/router</strong></a><strong>&#39;;</strong></pre><pre><a href="http://twitter.com/Component">@Component</a>({<br>    selector: &#39;app-root&#39;,<br>    templateUrl: &#39;./app.component.html&#39;,<br>    styleUrls: [&#39;./app.component.scss&#39;]<br>})<br>export class AppComponent implements AfterViewInit {</pre><pre>    loading;</pre><pre>    constructor(<br>        private router: Router<br>    ) {<br>        this.loading = true;<br>    }</pre><pre>    <strong>ngAfterViewInit() {<br>        this.router.events<br>            .subscribe((event) =&gt; {<br>                if(event instanceof NavigationStart) {<br>                    this.loading = true;<br>                }<br>                else if (<br>                    event instanceof NavigationEnd || <br>                    event instanceof NavigationCancel<br>                    ) {<br>                    this.loading = false;<br>                }<br>            });<br>    }</strong><br>}</pre><p>And that’s it! The app now feels much more responsive when loading the lazy modules, with just a few lines of code.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ac96c056b410" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Tech Wednesday]]></title>
            <link>https://medium.com/@motcowley/tech-wednesday-75c0bef87138?source=rss-fb41cef8b01a------2</link>
            <guid isPermaLink="false">https://medium.com/p/75c0bef87138</guid>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[birmingham-uk]]></category>
            <dc:creator><![CDATA[Tom Cowley]]></dc:creator>
            <pubDate>Thu, 16 Feb 2017 07:53:24 GMT</pubDate>
            <atom:updated>2017-02-16T07:53:24.762Z</atom:updated>
            <content:encoded><![CDATA[<p>Once a month, on the (penultimate??) Wednesday, I’ve been attending an event called ‘Tech Wednesday’. Last night was my third time attending, having been last month and back in last October. Each month has a particular theme, and this month it was entitled ‘Women In Tech’. We ended up a bit late due to heavy traffic, into the back of the room. Every seat already taken.</p><p>This is the first thing about Tech Wednesday — it is so well attended. I’ve been to several meetup groups, and they’re often just a handful of people. Tech Wednesday is packed full of keen and interested people in and around the world of tech. The free pizza and beer I’m sure helps, but mainly I suspect the people here come just because they are interested and passionate.</p><p>The first speaker, Pauline Roche, was talking about tech for positive impact and social change. She had lots of great ideas and had a good natural presentation style. And this is a topic that has been on my mind a lot recently.</p><p>The second speaker, Sally Tomlinson, also once a maths teacher, was talking about a platform which she developed to help schools manage work experience. Having recently been involved with work experience, this is such an obviously great idea, and it sounds like it’s a platform already changing the world for many young people.</p><p>The third speaker, Rachel Maclean, was talking about tech-ifying the HR world, an industry that is apparently behind the times when it comes to computers and automation. Sounds similar to the humanities, with which I’m pretty familiar now. Rachel&#39;s presentation in particular was so well delivered and communicated.</p><p>This is the next thing about tech Wednesday — the talks. I’ve seen quite a lot of talks here now, and they’re such a wonderful variety, and generally speaking, they’re delivered by great presenters. There’s always a lot take take away from them, whether it is how they’ve communicated a topic, or just getting an idea for something new.</p><p>Yesterday, for example, I learnt more tools for delivering a great presentation, and got to thinking more about how to use tech for change. I’ve been feeling more and more at home in Birmingham recently, and want to try and impact the community positively in some sort of way. Hearing speakers on this topic hopefully keeps nudging me in that direction.</p><p>After the talks is the arrival of the pizzas. And with so many people, it can be quite a scramble to get there. The other issue is that you’ll generally get talking to someone interesting about something pretty fascinating, and the pizza is soon forgotten anyway.</p><p>I spent most of my time talking to a guy last night, who is working on a split ticketing app for trains. Finally! How has someone not already done this?! Really interesting talking to him, and how they’re developing and working through a whole range of issues, mainly around legislation.</p><p>I’ve met a few really great people through this now, and it has been inspiring me towards my future goal of eventually setting up and running my own business. The event is held on the site of a tech incubator, so there’s always lots of great startups around. I would probably say that even if you’re not into tech at all, Tech Wednesday still has a plenty that you could get out of it!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=75c0bef87138" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I’m a PC… Mac… PC]]></title>
            <link>https://medium.com/@motcowley/im-a-pc-mac-pc-b8f41cc7d2fa?source=rss-fb41cef8b01a------2</link>
            <guid isPermaLink="false">https://medium.com/p/b8f41cc7d2fa</guid>
            <category><![CDATA[apple]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[windows]]></category>
            <category><![CDATA[surface-pro-4]]></category>
            <dc:creator><![CDATA[Tom Cowley]]></dc:creator>
            <pubDate>Wed, 15 Feb 2017 07:51:26 GMT</pubDate>
            <atom:updated>2017-02-15T07:51:26.070Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vLBKShiRy6BMe7Sd." /><figcaption>Farewell Mac Pro</figcaption></figure><p>Yesterday my shiny new computer arrived. Well technically it isn’t quite new as I got it from ebay… ‘like new’ I think is how it’s described. Anyway, I have had my eye on one for many months now, and missed it in the christmas sales when there was about £200 off.</p><p>The Surface Pro 4 Core M3.</p><h3>I’m a Mac</h3><p>A couple of years ago, I decided to make the switch from a big clunky windows laptop onto a macbook pro. It was great. A world apart from my old days of lugging around an underpowered monster onto a sleek beautiful powerful slab of aluminum. That was also not quite new, but a refurb from ebay that time. Again it was as good as new.</p><p>There were several things about it that were just amazing.</p><ul><li>The touchpad</li><li>The screen</li><li>The speed</li></ul><p>These all kept me very happy for a long time, despite some of the not so amazing things:</p><ul><li>Finder and navigating the file system (however, with lots of tweaking it can be less bad)</li><li>iTunes — how is it still a thing?!</li><li>app store — my iPhone 3gs loaded it’s app store around 5x faster</li></ul><p>It has struck me several times, as an iPhone owner as well, that Apple is amazing at producing hardware and operating systems that tie together, but when it comes to pieces of software, they’re bizarrely terrible. Clunky user interfaces, slow performace, strange design choices, means that I, like many people, have an iPhone full of Google apps, and a mac full of Windows products. (Yes there are some great apps that I occasionally use from apple, such as Garage band, but generally speaking, they’re terrible).</p><h3>The end is nigh</h3><p>Over the last few months, my macs’ battery has gone from bad to unusable. To the point where it would shut down at 100% charge. No problem — time for a new battery. Well after several trips to the Mac store, and 3rd parties, it seems that it is unfixable. Whilst the battery life has improved, and I can get an hour or so out of it, the screen will intermittently switch off for hours at a time.</p><p>My mac has become ill tempered in it’s old age. It no longer wants to listen to what I want from it. It gives me the silent treatment. Like a relationship that has gone on too long.</p><p>Time for a new mac then? Well no. I have to agree with so many of the reviewers, that the price of the new mac is a joke. Little interest in the touch bar, and then what new exciting things await for my enormous outlay of money? Like my Mac, it seems that Apple no longer wants to listen to its users. And what this user wants, is to be delighted. Exactly what Apple once did so well. But no more.</p><h3>I’m a PC</h3><p>I’ve not yet had much time to play around with my Pro 4. I’ll be using it mainly to do some programming out and about. I’m concerned about its’ lack of speed, and smaller size, so it’s also something of an experiment.</p><p>However, the form factor of it, the portability, the touch screen and the pen… everything so far has made me delighted.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b8f41cc7d2fa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Part 2 — The Midlands]]></title>
            <link>https://medium.com/@motcowley/part-2-the-midlands-3d4e9215ac99?source=rss-fb41cef8b01a------2</link>
            <guid isPermaLink="false">https://medium.com/p/3d4e9215ac99</guid>
            <category><![CDATA[remote-working]]></category>
            <category><![CDATA[morning-routines]]></category>
            <category><![CDATA[birmingham-uk]]></category>
            <dc:creator><![CDATA[Tom Cowley]]></dc:creator>
            <pubDate>Mon, 13 Feb 2017 07:27:59 GMT</pubDate>
            <atom:updated>2017-02-13T07:27:59.072Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZaQxOByZ3plT3aeElR9iXA.jpeg" /><figcaption>Birmingham Canal, frozen</figcaption></figure><h3>Recap</h3><p>Last time, we ended with the fact that my girlfriend had just received a job in a city that I really didn’t want to move to.</p><p>That city was Birmingham.</p><h3>Brutalist</h3><p>I had visited several times before. A friend mine went to university there and some of my family also lived nearby. I had been, and it was horrible. Full of old brutalist buildings and run down areas. The natural evolution of a city that was once an industrial powerhouse, and then left to fade into obsolescence. It wasn’t a place which I thought I was unfamiliar with.</p><h3>Birmingham 3.0</h3><p>However, I was wrong.</p><p>Our first day there was spent looking for houses / flats to live in. Or it would have been had we had not found the perfect flat on our third viewing. It was everything that we had wanted. Spacious, secluded and near to things that were going on.</p><p>In terms of a location to work, it is ideal. I had really started to warm to the idea of working in coffee shops, in order to simply be around other humans. And also to be near to a nice pub for the occasional drink.</p><ul><li>1 minute walk to park</li><li>2 minute walk to pub</li><li>5 minute walk to coffee shop</li><li>big space indoors for working and playing in VR</li><li>Perfect.</li></ul><p>And that’s where we currently are.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2dJ7TsBUJijGnyXy-Fzv8Q.jpeg" /><figcaption>The local park</figcaption></figure><p>In terms of Birmingham center itself… well I clearly didn’t know it. At least the Birmingham that I had visited several years previously was no more. In its place is a trendy, vibrant and exciting city. I have travelled around many different places in many different countries, and I can easily say that Birmingham is one of the most enjoyable so far. It has transformed how I approach work and my enjoyment of working as a freelancer.</p><h3>Freelancing 2.0</h3><p>One thing that I have started to develop is a decent routine. On Tuesday evenings, there is a club in the city center, called Open Code.</p><p><a href="https://www.meetup.com/Birmingham-Open-Code/">Birmingham Open Code</a></p><p>It’s a great meetup for people interested in all things geeky, and even just a passing interest in coding. As I attend this on Tuesdays, I make a point of spending the day in the city center. It takes about an hour to walk in, but along the beautiful canal: a great start to any morning (with the obvious exception of rain). I’ll then head to the library, which is a magnificent building (at least on the inside, still not convinced by all those circles).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P3jD4PyZmjQ7FCvZKEJmPg.jpeg" /><figcaption>Birmingham Library</figcaption></figure><p>It’s a perfect place to work, and many others seems to agree, given how difficult it can sometimes be to find a space later on in the day, even on a Saturday. At the end of the day, there’s then a vast selection of places to grab some food and a beer before heading to Open Code.</p><p>Wednesday also has a variety of things going on which we’ll often try and get along to. Monday and Thursday I’ll typically want to work the day from home, as we have a great working space anyway.</p><p>As an added bonus, I now also have a coworker who I met from Open Code, and he will usually come round so that we can work together.</p><h3>Conclusion</h3><p>All of this is to say that working as a freelancer / working from home can be quite a difficult thing to do, if you’re not in the right environment. Or it was for me at least. It is of course obvious, but I think it is easy to forget, that you need the variety and breaks in whatever you do.</p><p>There are loads of great new places that we have visited and explored, that I will be writing about on some of these morning sessions.</p><p>As for now, it is 7:00, I have done some exercise, meditation and written this.</p><p>This is my new morning routine, something that I was sorely lacking before. The last few days I have felt even more energised as a result. Same time again tomorrow.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3d4e9215ac99" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bank Review]]></title>
            <link>https://medium.com/@motcowley/bank-review-29f0ce116e69?source=rss-fb41cef8b01a------2</link>
            <guid isPermaLink="false">https://medium.com/p/29f0ce116e69</guid>
            <category><![CDATA[birmingham-uk]]></category>
            <category><![CDATA[restaurant]]></category>
            <category><![CDATA[food]]></category>
            <dc:creator><![CDATA[Tom Cowley]]></dc:creator>
            <pubDate>Sun, 12 Feb 2017 09:12:17 GMT</pubDate>
            <atom:updated>2017-02-12T09:12:17.188Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Min5c1NAELDjYD1BmWhXNw.jpeg" /></figure><p>This was the second time of visiting Bank. Our first time was in the late afternoon for a couple of cocktails outside under the patio heaters.</p><p>This time we went in for an early evening dinner. Our coats and bags were put into a cloakroom for us (a touch which I always love), and we were shown through into the dining area. Overlooking the canal, this dining area has a spacious, clean, modern warm and cosy feel to it. Lots of comfy seats around and great thoughtful design make this a really nice place to enjoy a meal. Or more simply, this is one of the nicest settings that I’ve eaten in.</p><p>We started with some flatbread and hummus, which was fine — nothing mind-blowing, but I’ve yet to have my mind blown with humuus anyway.</p><p>For mains I had a beefburger in brioche bun. Not particularly cheap, I was hoping for something a little more interesting. As it was, it was fairly disappointing. The flavour was a bit bland, the patty and bread both a bit dry. I ended up leaving a small pile of bits that I couldn’t finish. The homemade chips were fine, again not great.</p><p>Fortunately the dessert, a rhubarb butter milk concoction, made up for the mains. It was brilliant. Well presented, great mix of flavours and textures (pictured above).</p><p>I would happily go back, but maybe for a lunch instead. Or more desserts. Price wise, not particularly cheap, but not too expensive either.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=29f0ce116e69" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Urban Cafe Review]]></title>
            <link>https://medium.com/@motcowley/urban-cafe-review-8dc590463ad6?source=rss-fb41cef8b01a------2</link>
            <guid isPermaLink="false">https://medium.com/p/8dc590463ad6</guid>
            <category><![CDATA[birmingham-uk]]></category>
            <category><![CDATA[brunch]]></category>
            <category><![CDATA[food]]></category>
            <dc:creator><![CDATA[Tom Cowley]]></dc:creator>
            <pubDate>Sun, 12 Feb 2017 08:50:29 GMT</pubDate>
            <atom:updated>2017-02-12T08:50:29.877Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*olnT_SM963SdzsiZE8S2aA.jpeg" /></figure><h3>tl:dr;</h3><ul><li>amazing brunch</li><li>good for working</li></ul><p>This was the second time of visiting Urban Cafe, but the first time for breakfast / brunch. We got there shortly after opening time on a Saturday, and they were already fairly busy. Due to their small kitchen, they said that the food would take a short while to arrive. We each ordered the same:</p><ol><li>Latte</li><li>Bloody Mary</li><li>Chilli and lime smashed avocado on Sourdough toast, with two poached eggs and halloumi (halloumi was a replacement for bacon from the menu)</li></ol><ul><li>The latte arrived immediately and was as good a coffee as is possible to get.</li><li>This was our second time having a bloody mary for breakfast (one quite nice one before in cosy club), but this one was amazing. It didn’t look all that exciting, but it was thick, rich and had a strong kick. Exactly how I assume it should be (but I’m far from any sort of expert… yet).</li><li>The avocado and eggs didn’t take too much longer to arrive, and was simply amazing. More than generous quantities, and just wonderful flavours. If I was to nit pick, I would say that a little less lime was needed. But we were left feeling more than happy with it.</li></ul><p>The icing on all of it was how good the value was. Each of us paid a little over £10 each for all of that. Having previously paid over £10 for an avocado based breakfast in several places before, we were very impressed.</p><p>We were also using the opportunity to do some work, and it is pretty good for that. I have seen previous reviews say that it is a bit too noisy, but I find it to be quite a nice level. There aren’t many sockets around however, so you may want to watch out for that.</p><p>Overall, fantastic. We will be going back to try more of the brunch menu, more bloody marys and some more work. And to take some proper photos.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8dc590463ad6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[1 year a developer — Part 1]]></title>
            <link>https://medium.com/@motcowley/1-year-a-developer-part-1-df02ce80873b?source=rss-fb41cef8b01a------2</link>
            <guid isPermaLink="false">https://medium.com/p/df02ce80873b</guid>
            <category><![CDATA[freelancing]]></category>
            <category><![CDATA[teaching]]></category>
            <category><![CDATA[opportunity]]></category>
            <dc:creator><![CDATA[Tom Cowley]]></dc:creator>
            <pubDate>Sat, 11 Feb 2017 08:15:00 GMT</pubDate>
            <atom:updated>2017-02-11T08:15:00.592Z</atom:updated>
            <content:encoded><![CDATA[<h3>tl:dr;</h3><ul><li>How I found became a freelance developer</li><li>The problems of working from home</li><li>Written with <a href="http://www.themostdangerouswritingapp.com/">http://www.themostdangerouswritingapp.com</a> to continue to practise writing something</li></ul><h3>Feedback</h3><p>And day 2 of the blog. I received a couple of points of feedback on my first post yesterday. The first one being, to never start a sentence with the word ‘and’. I do remember learning that at school. But at some point people seemed to stop adhering to that convention. And so did I. Maybe I’ll learn at some point.</p><p>This post I wanted to put down some of my experiences of my first year of programming, and how I ended up becoming a freelancer.</p><h3>Those who can…</h3><p>Back a year and a half ago, I had enjoyed my final few days teaching at a very lovely school. It was sad, but an exciting time in my life lay ahead.</p><p>With one last little hurdle.</p><p>A couple of days into my first truly free summer holiday since becoming a teacher, I received a phone call from one of my ex colleagues. One of the other local schools was going to need some emergency cover at the start of September for two weeks. I was reluctant, but hadn’t yet figured out a better alternative, so half heartedly agreed to the position.</p><p>This new school was quite different to what I had been used to; it was a lot more challenging. I think it is always fairly difficult entering any new environment, but my enthusiasm for teaching wasn’t really there either. I was excited to get into the world of development! The two week position quickly turned into a four week position, and then they were soon asking for the next six weeks… I’m sure that it wouldn’t have ended there either.</p><p>However, as a result of taking this position, a new opportunity arose for me.</p><p>The teacher that I had been covering, who was overseas on a maths conference, had met a maths teacher who was in need of a web developer. A few emails later, and a face to face meeting, I had managed to land a position working for him as a freelance developer.</p><h3>Not intended</h3><p>I actually had no interest in going freelance to begin with. I felt that I lacked proper experience of ‘real’ software development, and needed time in a ‘big’ company working as a large team of developers. However, the offer was far too tempting. Great website, in the exact area that I was interested in (teaching mathematics). And (sorry, sorry, I really can’t help it), it was a job working from home! Everyones’ dream… right?</p><h3>Home alone</h3><p>During these summer holidays, my girlfriend (Caroline) got a new job up in Sheffield. We decided to use that exciting opportunity to move into our first house together, in a village called Eckington. Lots of countryside around, and lots of space within the house itself. It seemed like it would be perfect for working at home. However, as I soon discovered, it can be very easy to not leave the house for a few days at a time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MhRFDAWE7TCGTyr2Z5EWUw.jpeg" /><figcaption>The study</figcaption></figure><p>On many weeks, my main trip out during the week would be to Morrisons. I would say that that I had turned into an 80-something year old, but I suspect that many get out of the house a bit more often. The nearest ‘decent’ pub was an hours walk away, and getting into town also took over an hour by public transport (assuming the bus would actually turn up). All of this had a surprisingly big effect on my enjoyment of working from home in those first few months. It made it really pretty tough at times during the week. I craved being in a social setting, despite not considering myself to be the most social of people. (I am a software developer after all).</p><h3>What about the actual job?!</h3><p>Well I might save some of those details for a post more specifically about programming. Needless to say, I learnt a lot. However, I also spent many late nights trying to keep up with the demands of the job. On the one hand, it was a very challenging few months job wise and motivation wise. On the other hand, I was in a lovely house with my amazing Caroline and we still had a lot of fun around the local area (though exploring the area was usually saved more for the weekends when I was so exhausted from working).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YJapcwyT_lsEvua8JpzTLw.jpeg" /><figcaption>Peak District</figcaption></figure><h3>Part 2</h3><p>And that was my general experience of the few months that we lived in Sheffield. All that changed a few months ago, when Caroline received a job promotion to a city that I really didn’t want to move to…</p><p>All that, and maybe more, maybe tomorrow, maybe Monday.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=df02ce80873b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>