<?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 Phillip Gourley on Medium]]></title>
        <description><![CDATA[Stories by Phillip Gourley on Medium]]></description>
        <link>https://medium.com/@philgourley?source=rss-61862279c8f3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*bXoRzMdTmNkbhGD-TBcHcw.jpeg</url>
            <title>Stories by Phillip Gourley on Medium</title>
            <link>https://medium.com/@philgourley?source=rss-61862279c8f3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 12:32:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@philgourley/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[Making visual regression useful]]></title>
            <link>https://medium.com/@philgourley/making-visual-regression-useful-acfae27e5031?source=rss-61862279c8f3------2</link>
            <guid isPermaLink="false">https://medium.com/p/acfae27e5031</guid>
            <category><![CDATA[css]]></category>
            <category><![CDATA[visual-regression]]></category>
            <category><![CDATA[continuous-integration]]></category>
            <dc:creator><![CDATA[Phillip Gourley]]></dc:creator>
            <pubDate>Mon, 02 May 2016 10:33:21 GMT</pubDate>
            <atom:updated>2016-05-11T03:37:03.683Z</atom:updated>
            <content:encoded><![CDATA[<p>The idea of having an automated way to understand, preview and review the visual changes you and your team have made on your website, over a fixed period and between builds is a concept that many jumped at the chance to experiment with.</p><p>When we looked at this idea our QAs, Developers and Managers started to salivate in unison. The excitement was real. Testing is a laborious, mind numbing and expensive task for most developers but an (for the most part) unavoidable one.</p><p>Several years after researching this area I’m still being asked by the small group that were aware of the work, how can they could also apply this concept to other projects, how to get it working and what is involved. I found myself telling them it wouldn’t be worth the effort, until recently I realised that I was doing it wrong and many others too.</p><h4>Testing all the things!</h4><p>The problem is we wanted to test everything and there for we were testing nothing. We already took a <strong>lot </strong>of screenshots for every device and resolution and we had a dashboard to make the diffs easy to view. It looked like this…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZakLBiNWBSLfrbF7CLf6zg.png" /></figure><p>Pretty sweet looking but utterly useless. While seeing the thumbnail of the whole page go red or yellow is fun and all it’s providing no meaningful or useful data to anyone. If the header changed from 65px to 70px then the whole page would need to move, so comparing these two images would result in everything appearing to change. Throw the unpredictability of content or the database changing over time then you’re in a bit of a pickle. Most of your tests won’t be useful and It’s also just too easy to follow the white rabbit and start trying to make your environment more stable to try fix this problem.</p><p>I’ve seen the approach of snapping the whole page used too often. <a href="https://github.com/BBC-News/wraith">BBC</a>, <a href="https://github.com/facebookarchive/huxley">Facebook</a> and <a href="https://www.youtube.com/watch?v=UMnZiTL0tUc">Google</a> have publicly shown that they’ve attempted or have used this approach before. In these cases it feels like this is as a tool to trim the fat of the already large stack of testing requirements and understanding what has changed rather than immediately understanding the outcome.</p><h4>Components to the rescue, but not really.</h4><p>The other approach is to look to components. Write your codebase so that you can reliably load a component in isolation. Test for regressions with stable (or mock) data and the problem is solved. Global changes no longer paint your visual regression report in a blinding shade of red and your QA team or your fellow developers can be happy as your component will always show regressions and thus your meaning is restored.</p><p>There is a bit of a big caveat to this however. This is great for some but it still leaves others faced with rewrites or expensive restructures to allow this to be a possibility. I feel like those that I’ve heard “looking into” visual regression reached this point and realised a rewrite or restructure was too far away of a goal to achieve and thus it falls back into the technical backlog in hope that it happens in the next few years.</p><p>I know this because I faced the same problems. The initial investment of getting the process working alone can be a big leap for some and to understand the need for a rewrite or restructure of any kind is a bitter pill the swallow.</p><p>While React and similar are making truer isolation easier it’s still not a silver bullet. It’s likely this is the reason why we’re not seeing so many companies making full use of visual regression.</p><h4>Segmentation to the rescue.</h4><p>As ImageMagick (The backbone of most visual regression tests) is a tool simply for processing images its unlikely this part of the process can be improved. We can’t make this part that much smarter without putting something on top.</p><p>Therefore the solution I believe is to stop perceiving the visual regression test as a test for the whole page but instead a test for the components within it. If you can’t isolate your code. Isolate your screenshots.</p><ul><li>No rewrites</li><li>No significant technical overhead for implementation</li><li>Meaningful test results</li><li>No impact from external components or positioning</li></ul><p>Everyone wins.</p><p>Visual regression is a very effective tool and is here to stay, especially with this approach and I would also like to give huge applause to <a href="https://medium.com/u/1ec799acfce4">garris shipon</a> of LinkedIn for the development of <a href="https://github.com/garris/BackstopJS">BackstopJS</a>. You’ve done the development world a favour. If I was to recommend to anyone of a solid approach for visual regression testing, this pattern would be it.</p><p>If your using a codebase where components can already be rendered in isolation an approach where adding a process such as <a href="https://github.com/diffux/diffux_ci">Diffux CI</a> to your pipeline.</p><p>TL;DR — Don’t just screenshot your entire pages. It’s not always realistic to rewrite your codebase to start testing with visual regression. Isolating your screenshots and not your code is probably a better option for you. You may also find BackstopJS useful or perhaps write something similar to suit you.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=acfae27e5031" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From settler to nomad]]></title>
            <link>https://medium.com/@philgourley/from-job-to-nomad-15621e725699?source=rss-61862279c8f3------2</link>
            <guid isPermaLink="false">https://medium.com/p/15621e725699</guid>
            <dc:creator><![CDATA[Phillip Gourley]]></dc:creator>
            <pubDate>Sat, 07 Feb 2015 23:45:14 GMT</pubDate>
            <atom:updated>2015-02-16T23:29:37.367Z</atom:updated>
            <content:encoded><![CDATA[<p>Last week I solidified my commitment to the idea of long term travel. I quit my job and started selling anything I didn’t need, to begin my travels in Asia. A region I’ve visited only once, for a weekend.</p><p>Explaining why isn’t hard — getting people to understand why is. So I’ll start with the former. Simply put. Connectivity is at an all time high. The necessity of living on (or near) location are, in certain industries, becoming questionable. So why not?</p><p>The option of long term travel doesn’t apply to everyone. But the question “Why not?” should extend to questioning the necessity to physically sit in an office. There are careers that can certainly be considered the lucky ones. I’m not that much of an idealist. I can’t pretend that there isn’t a certain demographic that simply cannot entertain the notion of long term travelling. There are even those that simply don’t feel a need to travel. So I guess what I’m questioning is that if we work in a digital age, then why aren’t we exploiting that for its benefits of which, commercially and personally there are many?</p><h3>An attempt at understanding</h3><p>Moving away from a static living isn’t easy. It’s made out to be pretty incredible and the concept of a nomad has many people dreaming of long stays on sandy white beaches and a laptop. The kinds you see travelling workers posting on Instagram. While this is certainly a message of their own successes, the reality is there is a lot of work in-between.</p><blockquote>When you tell your employer of 5 years — the owners of that dream you had growing up — that you’re leaving. You can’t help but feel a little stupid.</blockquote><p>Especially when there was nothing at all wrong with the job. Fantastic people, interesting work, plenty of problems to solve and generous pay.</p><p>So in order to try to explain enough to reach an understanding for those concerned friends or family, there’s a need to look back.</p><p>When people asked me what I wanted to be when I grew up, I said Web Developer. The standard reaction was incredulous looks and raised eyebrows. It was unconventional dream at best back then. However, I didn’t really want to be a Web Developer I found out. I just wanted to turn nothing into something. I wanted to solve problems. I want to find solutions. This was my dream.</p><p>12 years ago when I first started working towards this dream of mine, I was certainly ignorant to a lot of things. Scales of complexity. Work efficiency. The value of other people. I worked for myself at a rate of $9/h for several years. I knew the rate was awful. But I enjoyed being paid to learn. I struggled, quite often, to move on to my next client quickly enough to make ends meet. I made some big mistakes. I definitely wasted a lot of time. I ended up working 20 hour days in my early teens. I even became a recluse for a few years.</p><p>Despite this, and the risk of being misunderstood as a masochistic, I still love having that drive toward something I consider greater than myself. Seeing something grow gives me a high. Starting from nothing and getting to something. Which naturally lead me to create my own projects. Some failed. Some were <a href="http://mediapig.co.uk/">successful</a>. All of them were great experiences.</p><p>I lived that life of uncertainty for 6–7 years before moving into that dream job of mine. But somewhere along the line, through either just spending too much time working, being in an environment of stability too long, being involved with too many projects or through several burnouts. I began to lose the drive for my own personal projects. The very drive that started my career in the first place.</p><p>So I’m leaving stability and embracing insecurity and instability for all it has to offer. To make more mistakes. To fail, early and often. To continue to stay hungry and foolish and to exploit the connectivity to enjoy different cultures and countries along the way. This completely makes sense to me. At least while I’m young enough to be so foolish.</p><blockquote>There are plenty of ways travelling solo can end. Both good and bad. But as a friend once told me. Life is less about the milestones and more about the journeys in-between.</blockquote><p>So the decision, while appearing mad and irrational to most, is driven by the acceptance of my enjoyment for uncertainty and the acknowledgement that the comfort of stability is a dream for the future, for the days where you can take enjoyment from the financial security of others.</p><p>Thanks for reading. If you enjoyed my post or are looking to see how things go, you can follow me on <a href="http://twitter.com/philgourley">twitter</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=15621e725699" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>