<?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 Greg Tyler on Medium]]></title>
        <description><![CDATA[Stories by Greg Tyler on Medium]]></description>
        <link>https://medium.com/@gregtyler?source=rss-15f7a79ccabb------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*8VzuAhkMg19WsEZVTArTdg.jpeg</url>
            <title>Stories by Greg Tyler on Medium</title>
            <link>https://medium.com/@gregtyler?source=rss-15f7a79ccabb------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 20:19:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@gregtyler/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[Open idea: Automatic JavaScript modulariser]]></title>
            <link>https://medium.com/@gregtyler/free-idea-automatic-javascript-modulariser-1639f731aeb2?source=rss-15f7a79ccabb------2</link>
            <guid isPermaLink="false">https://medium.com/p/1639f731aeb2</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Greg Tyler]]></dc:creator>
            <pubDate>Wed, 15 Jun 2016 22:06:15 GMT</pubDate>
            <atom:updated>2016-06-15T22:06:34.753Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>I’ve got an idea for an application but currently not the time to build it. So I thought I’d share it in case anyone wants to pick it up. I’m sure many other people have had this idea, but I couldn’t find it implemented anywhere.</blockquote><p>I’m going to list out my proposal for this, and follow it up with some limitations, alternatives and additional thoughts. This is an imperfect solution to an unfortunate position, but I think it has a use if those caveats are clear and understood.</p><h4>Background</h4><p>Recently, I’ve been modernising a bunch of legacy JavaScript files at my job in <a href="http://www.ed.ac.uk/student-systems">Student Systems</a>. We’ve been moving more and more from single-file JavaScript to build tools so there are two big changes we want to make at the moment:</p><ul><li>Moving HTML-generation to Handlebars (instead of using jQuery to create DOM)</li><li>Modularising the files where suitable to make them easier to manage</li></ul><p>The first one requires a human touch — you’ve got to rewrite the various different styles of DOM generation sensibly, convert “if” statements and loops where suitable, and determine good partials. You’ve also got to apply any events to the generated elements post-generation.</p><p>But the second task, the modularisation, feels like it could be done by a machine. And so that’s exactly what I propose.</p><h4>Elevator pitch (going up, two floor)</h4><p>I propose an application/module which will <strong>take a JavaScript file and automatically convert it into a collection of modules</strong>, with import statements suitably included in your favourite format (ES6, AMD, CJS, …)</p><p>In essense, it’s the <strong>reverse of Browserify/Rollup</strong>.</p><h4>How it works</h4><p>During the modularisation of our JavaScript files I found myself following a regular pattern. I think this exact pattern could be automated, with some caveats I’ll note afterwards.</p><ol><li>Find a function that looked “suitable to be a module”, and copy that into a new file setting it to “module.exports”.</li><li>Replace its original definition with <a href="http://browserify.org/">Browserify’s</a> “require” function, pointing to the file I just created.</li><li>Using <a href="http://www.appsdev.is.ed.ac.uk/blog/?p=832">ESLint</a> on the new file, identify any functions that my new module calls.</li><li>If that function is only used within the new module, simply copy it into the module.</li><li>Otherwise, put that function into its own module using steps 1 and 2, and require it in both the original file and the module I created in step 1.</li><li>Repeat steps 4 and 5 until there are no errors in the module, then repeat from step 1 until there are no suitable candidates to be a module.</li><li>Again using ESLint, remove any superfluous “require”s to things which are now only called in modules.</li></ol><p>The legwork of most of this (determining what calls what) can be done using the Abstract Syntax Tree generated by <a href="http://esprima.org/">Esprima</a> (instead of my usage of ESLint). And any usage of Browserify specifics “require/module.exports” could trivially be replaced with a different syntax.</p><h4>Limitations</h4><p>The most obvious limitation comes where I talk about something being “suitable to be a module”, which generally requires a human eye. However, whilst I started my process with this, the actual modules I came out with in the end included things I wouldn’t have deemed “suitable”. So perhaps my human eye isn’t the best tool to figure that out.</p><p>Instead, it would be sensible to set a certain limit on how far through the steps the application will go before realising that something <em>isn’t</em> suitable to be a module. If turning one function into a module will likely create 10 one-function modules which are shared between it and other files, then that seems like a bad candidate.</p><p>The nuance of this is the difficult part of developing the application.</p><p>There are also limitations from things that an automated process wouldn’t think to do. Some code I was reviewing had a function called “setError” and another called “getError”, which an automated process would have split into two separate modules. I put them into a new module called “errorLog”, with two methods: “get” and “set”. This also afforded a “length” property, which could be used elsewhere.</p><p>However, to my mind the intent of this application isn’t to create a finished product. It’s to provide a first-pass candidate to save the developer some time. The developer would be expected to look at the result afterwards and add any additional improvements. So whilst “getError” and “setError” are bad modules, combining them into “errorLog” is a trivial task once you’ve seen it broken down.</p><h4>Alternative: Guidance instead of action</h4><p>Instead of a fully-automated deconstruction, the application could instead just provide suggestion. As I said before, the nuance of splitting modules is the difficult part and a best solution would probably be achieved by tweaking parameters. Why not let the developer do this?</p><p>The application could do the Esprima parse of the tree, and then provide a diagram of the script’s various function calls. The developer could then identify sections which will modularise easily and cut them off (e.g. three functions which only depend on each other would be very obvious).</p><p>Alongside this though, the application could provide suggestions of things it sees as likely candidates and — by changing the parameters of the search — the developer can quickly find a strategy that suits their codebase.</p><p>What sort of parameters? Well, earlier I mentioned having a cut-off once a module creates 10 dependencies: I see that as a figure up for argument.</p><h4>Closing thoughts</h4><p>There is little to no future in this application. When starting a new project today, developers should be thinking of modularisation from the off. There shouldn’t be much demand for this deconstructive approach.</p><p>However, whilst many of us still work on and modernise legacy codebases, there is a (shrinking) user base for this sort of application. It would particularly be of help to those who are new to modules and need suggestions on where to start. Though nothing will substitute learning that properly.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1639f731aeb2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Election by Error — Republican Caucus]]></title>
            <link>https://medium.com/@gregtyler/election-by-error-republican-caucus-e9948f3356f5?source=rss-15f7a79ccabb------2</link>
            <guid isPermaLink="false">https://medium.com/p/e9948f3356f5</guid>
            <category><![CDATA[politics]]></category>
            <category><![CDATA[2016-election]]></category>
            <dc:creator><![CDATA[Greg Tyler]]></dc:creator>
            <pubDate>Wed, 03 Feb 2016 10:41:29 GMT</pubDate>
            <atom:updated>2016-02-03T12:34:50.268Z</atom:updated>
            <content:encoded><![CDATA[<h4>By looking at 404 error pages of presidential candidates, we try to determine who can handle a crisis the best.</h4><p><em>If you haven’t already, you might want to read my </em><a href="https://medium.com/@gregtyler/election-by-error-democratic-caucus-bbb956fa74b0"><em>previous </em>Election by Error<em> post</em></a><em> first. That explains some of the background to these posts and sets up some references that I’ll come back to in this post.</em></p><p>With primary season upon us, it’s time to start selected your favoured Republican candidate. Now, I can’t have a say in any of this because I’m not a party member, nor a U.S. citizen. But hopefully I can help others come to a decision by taking an entirely meaningless part of the election process and over-analysing it.</p><p>The Republican Party has a great number of candidates this year, making for exciting gambling possibilities. However, that does put this post over 5,000 words meaning it could maybe constitute a proper academic paper, which is a terrifying thought.</p><h3>Jeb Bush</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r_0Ae5fcFZVa04KrQPPBIA.png" /><figcaption><a href="https://jeb2016.com/electionbyerror">wat. i literally cant even.</a></figcaption></figure><p><strong>Entertainment: </strong>★ ☆ ☆ ☆ ☆</p><p>What an incredible start to this set of reviews.</p><p>Cards on the table here: I don’t get this joke. Since “the Nets” is capitalised, I assume it refers to the Brooklyn Nets. So I looked up Jeb Bush’s relationship to the Nets and the word “wat” in association with the Brooklyn Nets, and nothing helpful came back.</p><p>“wat” indeed.</p><p><em>Update: Someone suggested this might mean “The Internets”, which would probably make sense. Clearly I’m not as down as Jeb Bush with the latest web slang.</em></p><p><strong>Usefulness: </strong>★ ★ ☆ ☆ ☆</p><p>There’s the baseline we’ve come to expect: menus still in place, the option to get on a mailing list and the opportunity to donate (though in <em>much </em>larger sums than we saw suggested by Martin O’Malley).</p><p>Unfortunately, also like Martin O’Malley, there’s no explanation of what’s going on. That said, I like the link back to the home page because it gives a definitive call to action. It’s not saying “something went wrong, soz”, it’s also handing a branch to hang on with.</p><p><strong>Usability and accessibility: </strong>★ ☆ ☆ ☆ ☆</p><p>For the first time, we have alt text! But don’t get the celebration sparklers our just yet because it’s literally just the text “asfasdf”. In a basic middle finger gesture to screen reader users, Jeb Bush has thrown yet another confusing riddle into the mix. Is it just an intern mashing the left-hand side of the keyboard? Or a coded message; a bat symbol to his supporters?</p><p>Despite commending the “click here for home page” link in its usefulness, I do have to fall back on it in this section and point out that it’s against <a href="https://www.w3.org/TR/WCAG20-TECHS/H30.html">WCAG guidelines</a> to have a link whose text doesn’t describe what it’s linking to. A large part of accessibility isn’t about technical details, but about writing content that is self-explaining and doesn’t rely on supposition or context.</p><p>Finally, keyboard navigation is a right pain on this page. Links get just a little bit darker when focussed on (and by “a little”, I mean that I can’t tell the difference), and the newsletter fields are <em>way </em>off tab order, making themselves the first thing you tab to.</p><p><strong>Technical: </strong>★ ★ ★ ☆ ☆</p><p>In my last post, I obsessed over page size. Page size isn’t everything, but I think it’s an interesting starting point so I’ll continue to do the same this time around.</p><p>Bush’s page comes in at about 880KB, making it the lightest we’ve seen so far. How does it achieve such low levels, particularly considering its diverse content? A big difference is that the big image is optimised to just make up 90KB, avoiding a trap we’ve seen commonly with other candidates.</p><p>Sadly, beyond that optimisation there’s nothing to get too excited over here. Libraries loaded include jQuery, YouTube, woocommerce, Google Analytics ecommerce extension, Modernizr, Facebook, Google ads and geolocation tracking scripts.</p><h3>Ben Carson</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lG-qpCfsOXySLMhStmSIdg.png" /><figcaption><a href="https://www.bencarson.com/electionbyerror">An early contender for “most cryptic hashtag”</a></figcaption></figure><p>Boooooo! This isn’t funny at all. It’s like I got lost on a corporate website.</p><p><strong>Usefulness:</strong> ★ ★ ★ ☆ ☆</p><p>The absolute baseline of being helpful. It explains (briefly) what happened, provides you with navigation away, and a specific additional link to give you somewhere to start if you’re not sure. Ticking the boxes, but not particularly trying.</p><p><strong>Usability and accessibility: </strong>★ ★ ★ ★ ★</p><p>A very good job here. Contrast ratio dips to 4.2:1 in a couple of places which still isn’t the 4.5:1 we’re looking for, but might be considered “close enough”. Keyboard navigation is fine, as the site doesn’t try to override any browser defaults.</p><p><em>Note that a five-star in this section doesn’t mean it’s perfectly accessible. Just that it ranks highly amongst reviewed pages.</em></p><p><strong>Technical: </strong>★ ★ ★ ★ ☆</p><p>Sorry, Jeb Bush, there’s a new sheriff in town! 337KB! Other candidates have <em>photos</em> the size of this page. So what bang do you get for that minimal buck? Dr Carson’s site only uses a couple of small CSS files with no big libraries like Bootstrap with unused CSS. SVG images make a popular re-appearance, the biggest being the header at 3KB.</p><p>There also isn’t a great deal of JavaScript on the page, with form software making up the majority whilst jQuery and some home-grown JavaScript make much less of a dent.</p><p>Let’s be clear though: 337KB is still a ridiculous amount for a 404 page. Relatively speaking though, this is a great figure.</p><h3>Chris Christie</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0tqbTXCFf8HHMU__mBYhKA.png" /><figcaption><a href="https://www.chrischristie.com/electionbyerror">I’m a big fan of Jimmy Fallon, so I’m not sure how this whole situation makes me feel</a></figcaption></figure><p><strong>Entertainment: </strong>★ ★ ★ ★ ☆</p><p>This is more like it! Pay note, Ben Carson. What more could you want from a website misstep? You’ve got humour. You’ve got the affable Jimmy Fallon. You’ve got a politician just going out there and demonstrating the sort of genuine human being they are. The only way this could be better if it was original content.</p><p><strong>Usefulness:</strong> ★ ★ ☆ ☆ ☆</p><p>There’s nothing new added, and nothing lost. At least we have text clearly stating it’s a “404”, but if you don’t know what that means it’s not very helpful at all.</p><p>I really don’t like the “Only one of them was a mistake” text because it implies the user is at fault. Often you find a 404 error because you mistyped, or even misclicked, but it’s more commonly because the page has been removed or the site referring you made a mistake. I hate being told that <em>I’ve</em> done something wrong because you can’t curate your content properly.</p><p><strong>Usability and accessibility: </strong>★ ☆ ☆ ☆ ☆</p><p>You may recall that in <a href="https://medium.com/@gregtyler/election-by-error-democratic-caucus-bbb956fa74b0">my previous article</a> I gave Bernie Sanders a low score in this category for autoplaying videos. It wouldn’t be fair not to treat Chris Christie with the same rules because, several hours later, that’s still a really annoying habit.</p><p>As much as I enjoy watching comedy, and as amusing as this video is, I didn’t ask for it to be played and I don’t want it to be played.</p><p>Outside of that though, the only other major accessibility issue I have is that the colour contrast in the footer is laughably bad. At a ratio of 1.69, it’s a wonder that anyone can read it. I’m not sure if we should be suspicious of the payment disclaimer being in this murky, unreadable section.</p><p><strong>Technical:</strong> ★ ★ ★ ★ ☆</p><p>I really like the design of this site. It might be my favourite yet. It’s very clear and has a nice visual style. But guess what’s going to ruin that parade? That’s right, it’s the page size.</p><p>18MB, my friends. Or “18 Clintons” in new money. Admittedly, that’s waiting for the video to load but goodness me is that a lot of downloading for a video you didn’t ask to watch.</p><p>Leaving the 17MB of video aside, the two major CSS files seem to each be loaded twice (through different URLs) and Facebook integration introduces a fair whack. On top of that sit Twitter, Google Analytics and two copies of jQuery, which is one of the smallest collection of libraries we’ve seen so far (aside from Dr Carson’s barren wasteland).</p><p>Leave out your self-congratulatory video, Mr Christie, and you’ve got a decent page here.</p><h3>Ted Cruz</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p9qJS70Zd-YlsbrnkUegRw.png" /><figcaption><a href="https://www.tedcruz.org/electionbyerror">“Holy shit” just doesn’t begin to express my thoughts on this one</a></figcaption></figure><p><strong>Entertainment: </strong>★ ★ ★ ★ ☆</p><blockquote>*scrolls up*</blockquote><blockquote>*reads comment about wanting “original content”*</blockquote><blockquote>Well, I had that coming.</blockquote><p>This is certainly a unique thing for a politician to advertise. It’s funny, but at the expense of an issue that a lot of the public care very deeply about. To have that as a major public video is a strong message to make.</p><p>Whilst trying to avoid injecting my own politics into this, that this is a campaign video for someone to become the leader of one of the world’s most powerful countries seems very amusing.</p><p><strong>Usefulness: </strong>★ ★ ★ ☆ ☆</p><p>Everything’s there, but with no extra effort… hang on a minute. “Maybe it was cooked… like bacon!” What a weird non sequitur. Web pages aren’t “cooked” when they’re missing, that’s just like to cause more confusion.</p><p>That said “Hungry for freedom?” is a pretty good line, if only it followed a video that made more sense. Maybe Cruz just had this video lying around and wanted to put it in <em>somehow</em>. I mean, that’s definitely what happened.</p><p>Anyway, yeah. Pretty standard in the usefulness stakes.</p><p><strong>Usability and accessibility: </strong>★ ★ ☆ ☆ ☆</p><p>All focus styles have been specifically removed (you can’t accidentally remove them), and the text in the footer is barely readable. On the plus side, the video didn’t autoplay. That’s refreshing, and fixes the usability complaints we’ve had about Bernie Sanders’ and Chris Christie’s site.</p><p>Hang on, what’s this icon on the right-hand side of the page?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/336/1*ET05NOjtmyFRBI83E0i0RA.png" /><figcaption>NB: not in the larger screenshot above</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/506/1*c8SpostVMqCZVMWUxpvepQ.png" /><figcaption>Hovering over the icon</figcaption></figure><p>Oh. My. God. Five minute detour needed.</p><p>Well, damn. It’s not compatible with my phone. I’ll come back to you later, Cruz Crew App, when I can borrow someone else’s phone.</p><p><strong>Technical: </strong>★ ☆ ☆ ☆ ☆</p><p>Eurgh. 1.8MB. Not from images this time though, they’re all neatly optimised (there are 39 of them adding to less than half a Clinton).</p><p>It’s hard to tell what’s worse here. The 18 CSS files totalling 270KB or the 53 JavaScript files totalling 805KB. In both cases, it’s far beyond average consumption.</p><p>96% of the CSS isn’t used on the page, and maybe half the files are completely useless. The site seems to be running the WordPress theme <a href="http://themeforest.net/item/kleo-next-level-wordpress-theme/6776630">Kleo</a>, which bundles with it Bootstrap and four more equally large files. Dashicons is also loaded, along with Glyphicons, because two icon fonts are better than one.</p><p>The font “Open Sans” is included, even though it’s used for a single button.</p><p>On the JavaScript side, Cruz’s site comes straight out of the “use lots of jQuery plugins” play book. There are two versions of jQuery, there’s jQuery UI, UI draggable, UI effects, etc. The remaining <strong>36</strong> files are a veritable who’s who of overused plugins: Google Analytics, Facebook, image carousels, BrightTag, Isotope (a real blast-from-the-past), popups and emoji.</p><p>Whilst some sites have suffered poor optimisation, or bad stack, this really is the classic example of bloated pages. It’s full of un-needed parts which aren’t being properly controlled and mainly get in the way. Much like the Republican Caucus, fnarr-fnarr.</p><h3>Carly Fiorina</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t3E5SdG9JtEvgoGTMzVdiQ.png" /><figcaption><a href="https://carlyforpresident.com/electionbyerror">Yes, this genuinely is the 404 page</a></figcaption></figure><p><strong>Entertainment:</strong> ☆ ☆ ☆ ☆ ☆</p><p>Personally, I find the idea of someone donating the rather specific (it’s the maximum individual contribution) amount of $2,700 laughable. But since that’s not intentional, <em>nul points</em>! This looks more like you’re part way through a business transaction than viewing an error page for some who wants to lead a nation.</p><p><strong>Usefulness: </strong>★ ☆ ☆ ☆ ☆</p><p>Let’s imagine you get an email from a colleague labelled “<em>this</em> is what the American government needs”. It’s supposed to be a link to an article on Carly Fiorina’s website but, sadly, the article has been moved. So, with no context you land on this page.</p><p>Besides the header, there’s very little context of what the page is even about. Nowhere does it say that this is an error page, and not where you intended to be. It just says “Let’s start now.” and asks for $2,700.</p><p>The only way to do anything (apart from give money or close the window) is to click on the header to go to the home page. But there’s no indication anywhere that it’ll do that.</p><p><strong>Usability and accessibility:</strong> ★ ★ ☆ ☆ ☆</p><p>For a page devoid of content, rather a lot of that content isn’t accessible. The header links don’t have focus states (and disable the browser default), you can’t play the without using your mouse and “Other amount” (the only visible input element) doesn’t have a label attached.</p><p>Hurrah for another video that doesn’t autoplay though.</p><p><strong>Technical:</strong> ★ ★ ★ ☆ ☆</p><p>The most impressive feat here is loading jQuery three times. Two copies of 1.9.1, one of 1.7.2. Beyond that, Facebook, Twitter, Google Analytics and the video player take up most of the rest of the page size.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/302/1*IC9FdNF7p4ylhLlWHkhUcA.png" /></figure><p>The biggest issue here though is probably the bad scaling on smaller screens, which mean that the donation amounts get cut off and misleading.</p><p>You’d like to think you’d be discerning enough to notice the sequence going a bit weird after $500, but it’s pretty inexcusable to not display the information of how much you’re expecting the user to donate clearly.</p><h3>Jim Gilmore</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EcdafRC6_rDbv7qDTBI0WA.png" /><figcaption><a href="http://www.gilmoreforamerica.com/electionbyerror">This looks more like the error page of an arsey online magazine</a></figcaption></figure><p><strong>Entertainment</strong>: ★ ☆ ☆ ☆ ☆</p><p>I’m giving this a star because the design’s interesting. It may not be “entertaining” per se, but it may me go “ooo”. Though perhaps that mainly displays how run down I am by 404 pages.</p><p><strong>Usefulness: </strong>★ ★ ★ ☆ ☆</p><p>Boxes ticked: retains navigation, explains what you’re looking at, tries to take you somewhere helpful.</p><p>I do quite like the simplicity of this. We’ve seen a lot of people trying to be clever, but this page just lets you get on with your day.</p><p><strong>Usability and accessibility: </strong>★ ★ ★ ★ ★</p><p>It would be difficult to have usability qualms with something so simple. Similarly true for accessibility. That said, the “Back to home page” link could do with a bit more contrast and the dropdown menus need “menuitem” roles on the elements within them.</p><p>Generally speaking, a wider use of ARIA would be much appreciated but, in scope of other sites here, this is pretty solid stuff.</p><p><strong>Technical: </strong>★ ★ ☆ ☆ ☆</p><p>I thought this looked too good to be true. Two Clintons of content roll up in this very bare page. Similarly to Ted Cruz’s site, there’s a myriad of JavaScript plugins that aren’t being used. Worse though is the 1.2MB of CSS. You heard me right there.</p><p>The issue here is a lack of compression, so the files are transmitted warts-and-all. If you don’t know what compression means in this context, imagine starting as being able to take all the formatting out of this article. It’s still readable, but not quite as neat for humans. For further information, I highly recommend <a href="https://css-tricks.com/the-difference-between-minification-and-gzipping/">the article about gzip</a> on CSS-Tricks.</p><p>What all that amounts to is a bunch of huge files being transmitted. Chief among them are the base stylesheets for Visual Composer, Bootstrap, WooCommerce and Font Awesome.</p><p>It’s also hugely unhelpful that there’s more JavaScript in the source of the page than HTML (because it can’t be cached).</p><p>Finally, this is the first site we’ve come across that isn’t HTTPS. I suppose it doesn’t <em>really </em>matter in the context of 404 pages, but it’s bad practice these days. You can get a certificate for free from <a href="https://letsencrypt.org/">Let’s Encrypt</a>, Mr Gilmore.</p><h3>Mike Huckabee</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xS4ffZa0gNJoXDSxqVqbOA.png" /><figcaption><a href="https://www.mikehuckabee.com/electionbyerror">Puns are back in fashion, baby</a></figcaption></figure><p><strong>Entertainment:</strong> ★ ★ ★ ☆ ☆</p><p>All aboard the “random picture of the candidate with a pun-based caption” train! In case you’re wondering why I have such a love for this type of page, it’s because they’re exactly the page I would create if tasked with making a politician’s website. They’re tacky, but I love ‘em.</p><p><strong>Usefulness: </strong>★ ★ ★ ☆ ☆</p><p>So it tells you there’s been an error. Top stuff. What’s the first suggestion? PRINT THE PAGE? Print a 404 page? Why? To save and cherish this picture of Mike Huckabee for life.</p><p>Hmm.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L3ZGXuaFg9xF9o67JSjzBA.png" /></figure><p>Strange workplace Mike Huckabee shrines aside, it’s a pretty daft idea.</p><p>But after its printing false start, the page goes on to invite you to read Huckabee’s “Pledge to the People” which, for a first timer, might be quite helpful. Still, a shame about that navigation.</p><p><strong>Usability and accessibility: </strong>★ ★ ☆ ☆ ☆</p><p>I’ll be honest, the print button had me worried. In reality, it’s not too bad. For usability, I don’t like the various fixed menus. The bar on the left-hand side leads to a tray with all Huckabee’s social media networks; and on the right you can send a message of support and see others.</p><p>Tabbed navigation is a problem. At first it goes fine, but there turn out to be a whole host of hidden items (those trays that slide in) which you can tab through without seeing them. So once you get to the bottom of the page it’s a whole lot of tabbing to get back to the top.</p><p>And, as if following some time-honoured presidential candidate tradition, the image has no alt text. Fortunately for Mr Huckabee, the pun is so weak that users with screen readers probably wouldn’t even notice it.</p><p><strong>Technical: </strong>★ ★ ★ ★ ☆</p><p>I had this horrible vision of all the images down the right hand side being unoptimised and the page weighing loads. In fact, it’s less than a Clinton. And when you compare the content of Huckabee’s site to Hillary Clinton’s, you can really tell why I’m using the unit of a Clinton as a pejorative.</p><p>Don’t get me wrong though; there’s still a fair amount of gunf here. The CSS isn’t too concerning, with Bootstrap being an unsurprisingly large factor. The JavaScript is worse, but better than so many sites we’ve seen. There is — count them — only one instance of jQuery loaded, but there are a lot of unused plugins too.</p><p>It’s worth noting too that somehow Huckabee’s integrations with Facebook and Twitter come in far lighter than many of his rivals. Perhaps he’s using a different implementation, but it’s a marked difference.</p><h3>John Kasich</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DAHwv9ugjtlZCYej76kucw.png" /><figcaption><a href="https://johnkasich.com/electionbyerror">Oh damn, John Kasich just played the internet at its own game</a></figcaption></figure><p><strong>Entertainment:</strong> ★ ★ ★ ★ ☆</p><p>It’s cats. People love cats. I give John Kasich’s market research team an “A+”.</p><p>But seriously, it’s cute, fun and not distracting. It’s a kind of quintessential 404 Easter Egg. Also, the fact that Kasich has Snapchat demonstrates the internet A-game his team are playing.</p><p><strong>Usefulness: </strong>★ ★ ★ ★ ☆</p><p>Error explained, navigation present, two big helpful buttons to get you to potentially helpful places. See a kitten, donate money. Easy.</p><p><strong>Usability and accessibility: </strong>★ ★ ☆ ☆ ☆</p><p>Something that irks me here is the request to allow notifications. It’s not in the screenshot, but if you open it in Chrome you see something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/409/1*pW7JS6nQCF_31bLdFSHXYw.png" /></figure><p>Now I’m well aware that I can just click “Block”, but the intrusion is enough to make me feel uneasy. No-one should be asking to send me notifications before I’ve engaged in the site in any way at all. Particularly on a 404 page. It’s like the donation boxes we keep seeing on these sites, but more presumptive and in your face. Online chugging, perhaps.</p><p>Out of interest though, I allowed notifications and it installed a script from <a href="https://goroost.com/">Roost</a>. Forgoing reasonable security concerns, I’m going to leave it running a while and see what happens.</p><p>Keyboard navigation is fairly viable, though there’s a bit of tabjacking to take you through the “stay updated” form first, and bad styling of a select few focussed buttons.</p><p>Generally, the site is fairly typically structured so basic accessibility almost comes for free. The one major exception is those social media buttons, which provide no alternative text for screen readers. A few “sr-only” spans would quickly fix that up.</p><p>Finally, this site has a great example of why I dislike a current trend of “border buttons”, like you see with “subscribe” at the bottom. My concern is that the button is fairly indistinguishable from the input boxes and even the payment disclaimer lower down. If you want your site to reach a large audience (and I’m guessing you do <em>candidate for leader of the free world</em>), making forms easy to use is a pretty big thing.</p><p><strong>Technical: </strong>★ ★ ☆ ☆ ☆</p><p>At 1.3MB…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/396/1*o3Tk3fIRZKh33ZPAw0DKPw.png" /></figure><p><em>Notification update! I just got this notification when revisiting the page. Turns out I’m part of the team now! I feel all included and shit.</em></p><p>At 1.3MB, it’s a bit of a monster. A little picture of a cat does not need that much overhead.</p><p>“And how much,” I hear you ask, “does that Roost service worker stuff make up of it?” Only 37KB. Not bad, Roost. Annoying on users, but great on bandwidth!</p><p>Unsurprisingly, it’s CSS and JavaScript that are wrecking the show again. At about half a Clinton each, they’re more bloated than John Hodgman in that old “Get a Mac” advert.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/481/0*-DX2bi2QiEBsC56m.jpg" /><figcaption>For those just looking at the picture, note that this has nothing to do with John Kasich’s site</figcaption></figure><p>And, like Jim Gilmore’s site, ain’t nuthin’ but a gzip-thang. That, the 200KB (when minified) “Wonderplugin Gallery Plugin” and the 50KB (when minified) “jQuery RoyalSlider”. Because every site needs two carousel plugins loaded on every page.</p><p>More notification updates to happen as they arrive.</p><h3>Rand Paul</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a6fjJm63GQ3xVMPmLhZtPQ.png" /><figcaption><a href="https://www.randpaul.com/electionbyerror">You can practically hear the rimshot!</a></figcaption></figure><p><strong>Entertainment: </strong>★ ★ ★ ★ ☆</p><p>This one caught me off-guard. A little bit of political humour, because Rand Paul doesn’t like to miss an opportunity. A little search reveals that Rand Paul <a href="https://randpaul.com/news/rand-pauls-statement-on-nsa-spying">isn’t a fan of the NSA</a>, though goading them on the Internet seems pretty bold. Like walking into a lions’ den and waving raw meat around. Insofar as, you were prey the moment you entered and waving the raw meat is only going to speed things up.</p><p><strong>Usefulness:</strong> ★ ★ ★ ★ ☆</p><p>Rand Paul’s site has a lot of links at the bottom, so navigating out again is pretty simple business. I also like the line “Please verify the address is correct”, because it might help you solve the issue with directly blaming you.</p><p>It’s cool that it says “404 Page not found” quite clearly, but the second instance seems to be rubbing it in a bit.</p><p><strong>Usability and accessibility: </strong>★ ★ ★ ☆ ☆</p><p>For all the praise I gave about the links on this site, it turns out they have focus styles specifically disabled making keyboard navigation a complete nightmare.</p><p>The obvious accessibility issue is the “learn more” form, with difficult to read placeholder text and no labels. Aside from that, the social media buttons at the bottom all lack proper labelling for screen readers.</p><p><strong>Technical: </strong>★ ★ ★ ☆ ☆</p><p>Rand Paul’s site weights in at 1.4MB and, before you go “sigh, I bet it’s JavaScript and CSS again”, let me stop you. Because it’s our old friend badly optimised images!</p><p><em>Sidenote: The JavaScript isn’t too bad but the CSS is a magnificent 21KB, by far the lowest we’ve seen from any candidate. That’s the value of developing your own style off your own framework.</em></p><p>You might think that Paul’s somewhat cheeky face is the major culprit, but you’d be wrong. More than ten times the size of that, and taking up half of the entire page weight, is that blue Stars and Stripes swish in the background.</p><p>Whether it’s worth providing a poorly optimised site for the benefit of a background image I bet most of you didn’t notice will be a debate for the ages, but compressing both that and the question mark image (again with <a href="https://tinypng.com/">TinyPNG</a>) will cut you 1.4MB budget in half. In fact, the question mark image is over 200x the file size it needs to be.</p><h3>Marco Rubio</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8JCm4SeTpICAmQj10a7yDw.png" /><figcaption><a href="https://marcorubio.com/electionbyerror">For those wondering like me: no, Rubio doesn’t have an accent over the i</a></figcaption></figure><p><strong>Entertainment:</strong> ★ ★ ★ ★ ☆</p><p>I had to check what Rubio’s connection to American Football is. According to wikipedia, he attended college on a football scholarship, then left after a year. From the 404 page, you’d be forgiven for thinking he’s a Hall of Famer turned politician.</p><p>It’s cool he’s got an interest though. You can tell he runs deeper than politics (in a kind of polarisation to Rand Paul), and the video sells that well.</p><p>What I like about this, more than any of the others, is that you’re offered something for turning up there. It kind of says “I’m sorry about this, but here’s something you might find interesting”, and it’s not too political, and it’s not about asking for money.</p><p><strong>Usefulness: </strong>★ ★ ☆ ☆ ☆</p><p>In fairly stark contrast to my opinions above, it’s not very helpful. It doesn’t say that the page wasn’t found and, again, the implication is that it’s your fault. There’s the call to action at the bottom, which is helpful, but the page really doesn’t try to help you.</p><p><strong>Usability and accessibility: </strong>★ ★ ★ ★ ☆</p><p>More notifications? In for a penny, in for a pound. Though, as a user, I still hate the presumption that by landing on your error page I want to keep updated.</p><p>Again, there’s no text to backup the image should you have images disabled, a screen reader, bad connection etc. But since it’s a background image you at least won’t be told by your screen reader that there’s something missing. Without that context two, the “Fumble!” quote does seem a little misplaced.</p><p>The text around the video doesn’t contrast enough with the background but really, I think this one is pretty good. Certainly by means of comparison with others.</p><p><strong>Technical: </strong>★ ★ ★ ★ ☆</p><p>It’s a Clinton, almost exactly. And you won’t be surprised to find that most of that is preloading the video, as well as a large Facebook integration. For a WordPress site, it’s fairly tidy.*</p><p><em>* Not to say that WordPress is a bad framework, or it has a bad community. Quite the reverse: a lot of people abuse its incredible plugin infrastructure to overload their sites and leave the maintenance to “take care of itself”, which it obviously won’t.</em></p><h3>Rick Santorum</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BnzPG4WpKWuDvY9uAO8pmg.png" /><figcaption>Oh my God, Rick Santorum looks so much like Hillary Clinton</figcaption></figure><p><strong>Entertainment: </strong>☆ ☆ ☆ ☆ ☆</p><p>If stalkers had websites, this would be the 404 page. Creepy. As. Hell.</p><p>There must be some background to that “for convenience” line.</p><p><em>*googles*</em></p><p>Right, so Hillary Clinton said she used that private email account that was in the news about 10 months ago “for convenience”. Way to knock ’em dead with some topical political humour, Rick.</p><p>Is the gag supposed to be that it couldn’t be found because Hillary Clinton has hidden it in to cover her tracks? Because that’s funny, if a little on-the-nose. Let’s try it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CDx9h5h4Xc5LetcK9CWi9Q.png" /><figcaption>Well, that was much harder than I thought. I should leave this sort of thing to comedians.</figcaption></figure><p>Anyway, clearly Santorum needs to be going after his Republican rivals rather than an unnominated opposition member. And, again, creepy.</p><p><strong>Usefulness:</strong> ★ ★ ★ ★ ☆</p><p>Just like his self-assigned nemesis, Rick Santorum’s site hides the main navigation bar when you hit a 404. So if you want to go back to a section you were in before, be ready to throw some extra clicks in.</p><p>However, it’s quite clear what’s going on (as long as you ignore the confusion of Hillary Clinton appearing), and there’s a search box. I’m amazed that this is the first we’ve seen.</p><p>Now, the search box <em>does </em>take you to Google results, which means they’re well maintained and ranked, but you have the jarring effect of being taken off the site. And Nation Builder (the tool the site is made with) does have <a href="http://nationbuilder.com/implementing_a_custom_google_search_using_nationbuilder">instructions </a>on integrating a custom Google search to mitigate that, which just comes across as a bit lazy.</p><p><strong>Usability and accessibility: </strong>★ ★ ★ ★ ☆</p><p>This page has less than ten links, two buttons and an input box so it has to work pretty hard to lose marks in this category. The only major one is that the “contribute” button doesn’t have a strong enough contrast.</p><p>On the positive side, the input box has a label (hidden from view, but accessible to a screen reader). The image too has alt text (in a rare deviation) which says “404 error”. And I think that’s fine, because you could both understand the quote without the image of Clinton, or not understand it with the image (like me). In a world where the joke’s not very good, that image is a total irrelevance.</p><p><strong>Technical: </strong>★ ☆ ☆ ☆ ☆</p><p>That the page weight for this is over 2MB makes me want to quit the article. Two Clinton’s! You hear that Santorum? Your imaginary arch-enemy, or who this scale of “things being badly done” was based, contributes only half the “badly done” points you do. <em>In this crazy imaginary world where presidential candidates have not just creative control, but direct programming experience, in their campaign websites.</em></p><p>What’s more ironic (perhaps) is that the image of Hillary is the biggest culprit. At 1.2MB, that one photo is larger than her whole website. Mainly because, for some reason, they’re hotlinking a <a href="http://d3n8a8pro7vhmx.cloudfront.net/themes/5554e32debad647d96000001/attachments/original/1439150279/hillary-blackberry.jpg?1439150279">3010x2428 photo</a> of her.</p><p>On top of that, half a megabyte of JavaScript brings with it the <a href="https://www.tinymce.com/">TinyMCE editor</a> amongst others, as well as Facebook, Twitter and Google integrations.</p><h4>Notification update</h4><p>I’ve started getting notifications from Marco Rubio.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/402/1*yOCs72xoX2nYKNCkf_VdSg.png" /></figure><p>Turns out they just link you to posts on his blog. <em>Boo!</em> I was hoping for some clandestine communications, as Rubio gives tips for the upcoming Superbowl. Go Panthers!</p><h3>Donald Trump</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jKZekRgxHJ_-27_p-cB06Q.png" /><figcaption>All the money in the world couldn’t buy Donald Trump a sense of humour</figcaption></figure><p><strong>Entertainment:</strong> ☆ ☆ ☆ ☆ ☆</p><p>Looks like we’re going to have to make our own entertainment here. First up, I love the name “Gage Skidmore”; and I love that if you search for him in Google, it seems to get a bit confused.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/536/1*TScs5KaH8TPHopllSGDETg.png" /><figcaption>Gage takes some amazing photos though; <a href="https://www.flickr.com/photos/gageskidmore/">check them out</a></figcaption></figure><p>Also, I couldn’t help but be tempted by the link to “Gallery”. But that turned out to be hugely disappointing because it’s just pictures of Donald Trump at rallies and conferences. I was hoping for some Calendar Girls-esque shots.</p><p><strong>Usefulness:</strong> ★ ★ ★ ★ ☆</p><p>This is probably the most clear explanation we’ve seen so far, which maybe hints at the audience Mr Trump is aiming for. It’s to the point, and gives you the opportunity for human interaction if you want to take it further, which I really like.</p><p>It’s also interesting to see a phone number at the bottom of the page. As an old school business man, it’s not really surprising to find that Trump’s campaign isn’t particularly “Web 2.0”.</p><p><strong>Usability and accessibility: </strong>★ ★ ★ ★ ☆</p><p>With nothing but links and pretty clear colours, you’d think that this would be an accessibility slam dunk. Sadly, we see another example of focus states on links being specifically removed, screwing up keyboard navigation.</p><p>On the positive side, the contrast ratio for text is pretty clear and the “contact us” link is suitably verbose. The general spacing of the page is pretty clean too.</p><p><strong>Technical: </strong>★ ★ ★ ★ ★</p><p>A late entry, but how’s this for page weight: 235KB! A new winner. It’s really impressive, and not just by the meagre standards that we’ve put forward in this article.</p><p>With that efficiency, there’s not really much to speak of in this category. But let’s throw special attention to the JavaScript. There’s a total of four files, and the only ones that add any weight are some generic scripts from CloudFlare. This is a real pro job.</p><h3>The winner</h3><p>Across the categories provided, it’s got to be Trump. Despite being incredibly boring, his 404 page is useful, accessible and well implemented. Compared to the other candidates, Trump’s team have clearly chosen function over form and that has paid for itself.</p><p>Almost all the other pages are entertaining to some degree, or eye-grabbing, or trying to be clever. But Trump’s just wants you to get back to the content of the site, not distract you with gimmicks. It’s might not make you laugh but, for a lot of voters, that’s not why they’re looking at political websites.</p><p>That all said, I started writing this for humour not for heavy technical analysis. So with the serious stuff out the way, let’s pick a <em>real</em> winner.</p><p>Marco Rubio’s site definitely deserves some kudos. It’s quite sweet and probably the most personable of the lot. And Chris Christie’s page demonstrates that he’s willing to have a laugh, even if that point <em>had</em> already been proved.</p><p>But looking back, I think I like Ted Cruz’s best. It freaked me out at the time, but in retrospect it’s funny, original and demonstrates the sort of candidate you get in Mr Cruz. Sure it’s not going to win a Webby, but he’s probably not going to win the presidency, so who cares.</p><p>Shine on you crazy bacon-loving gun-toting virality-seeking diamond.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e9948f3356f5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Election by Error — Democratic Caucus]]></title>
            <link>https://medium.com/@gregtyler/election-by-error-democratic-caucus-bbb956fa74b0?source=rss-15f7a79ccabb------2</link>
            <guid isPermaLink="false">https://medium.com/p/bbb956fa74b0</guid>
            <category><![CDATA[bernie-sanders]]></category>
            <category><![CDATA[2016-election]]></category>
            <category><![CDATA[politics]]></category>
            <dc:creator><![CDATA[Greg Tyler]]></dc:creator>
            <pubDate>Sun, 31 Jan 2016 16:19:47 GMT</pubDate>
            <atom:updated>2016-01-31T18:05:16.306Z</atom:updated>
            <content:encoded><![CDATA[<h4>By looking at 404 error pages of presidential candidates, we try to determine who can handle a crisis the best.</h4><p>Currently the top post on the <a href="https://www.reddit.com/r/webdev/">“webdev” subreddit</a> is a link to the 404 page of Bernie Sanders’ campaign website, with the caption “<a href="https://www.reddit.com/r/webdev/comments/43g3n7/404_page_done_right_by_bernie_sanders/">404 page done right by Bernie Sanders</a>”. As pointed out in the comments, its usability concerns mean it may be quite the opposite.</p><p>But this seemed like a good opportunity to talk through the 404 error pages of each presidential candidate and see what we can learn.</p><p>My thanks to various redditors who’ve already engaged in this and triggered the idea. Particularly to “sumpdiddlyump_” who wrote some similar content in the comments linked above.</p><p><em>Before starting, let me highlight that I’m not trying to call anyone out here. As critical as I am, there’s nothing on these pages that you wouldn’t see on a million other websites. Except maybe Martin O’Malley sitting on a horse, which you definitely </em>should<em> see everywhere.</em></p><h3>Hillary Clinton</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LXmYGhVTl-qIEWjxV3J_kw.png" /><figcaption><a href="https://www.hillaryclinton.com/electionbyerror"><em>Disneyland! Bill Clinton!</em></a></figcaption></figure><p><strong>Entertainment:</strong> ★ ★ ☆ ☆ ☆</p><p>Hillary Clinton’s site reminds me of a quote by Tim Dowling about UK chancellor George Osborne’s Christmas card in <a href="http://www.theguardian.com/lifeandstyle/shortcuts/2015/dec/15/snowman-hard-hat-what-politicians-christmas-cards-say-about-them">The Guardian</a>:</p><blockquote>The chancellor clearly wishes to reinforce the idea that he has a sense of humour about himself, or at least knows how such a quality would work in practice.</blockquote><p>In Clinton’s 404 page she seems keen to show that she’s a regular, fun human being. But it still feels a bit too clinical, as if slapping up a family photo is just about passing the low bar for human-ness.</p><p><strong>Usefulness: </strong>★ ☆ ☆ ☆ ☆</p><p>Far from aiding you, Clinton’s site specifically removes the navigation bar from the site, depriving you of a familiar tool. What’s left is the invitation to become a volunteer, and the standard footer rubbish (ToS, privacy policy).</p><p><strong>Usability and accessibility: </strong>★ ★ ☆ ☆ ☆</p><p>The major crime here is the text in the footer, which has a 2.4:1 contrast ratio, falling short of the <a href="https://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-contrast.html">4.5:1 AA standard</a>. It changes on hover, but that’s no good on text devices and leaves almost everything but flavour text unreadable for users with low vision.</p><p>The other mistake is that there’s no alt text on the image. This might not seem a massive problem, but it renders the whole “quacked up to be” joke completely missed if the image isn’t there. Without the context of the image (for users with screenreaders, images disabled or poor internet connections), it just seems like a weird comment.</p><p>Also, there’s no title which is kind of weird.</p><p><strong>Technical: </strong>★ ★ ☆ ☆ ☆</p><p>Would you believe this is an almost 1MB page? That’s quite a lot for a quirky Donald Duck picture. Of course, the image itself is the largest thing on the page at 147KB. It doesn’t help that the image is loaded at high resolution and then scaled down. Taking it down to the size it’s actually used at (576x430) lands us at a more reasonable 51KB.</p><p>Of course, that doesn’t help with the other 580KB of JavaScript being loaded onto a page where none of it applies. As far as I can tell, jQuery is being loaded twice, along with various analytics services (Google, Silverpop and Hotjar amongst them), the Facebook SDK and Twitter widgets. Of course, none of those are being used on this page.</p><p>The page source has a bunch of inline CSS, JavaScript and Handlebars templates. However, its responsive design is good, shrinking well on smaller screens</p><h3>Martin O’Malley</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OgN1ictvZif-1SUx5xT5eA.png" /><figcaption><a href="https://martinomalley.com/electionbyerror">Giddy up!</a></figcaption></figure><p><strong>Entertainment: </strong>★ ★ ★ ☆ ☆</p><p>I like this one. The gag seems a little stronger and the picture looks really genuine. O’Malley looks like a good sport, a fairly normal guy and good fun. If anything, my concern is that he looks like he’s having too much fun to be president.</p><p><strong>Usefulness: </strong>★ ★ ☆ ☆ ☆</p><p>Let’s point to the elephant in the room: The page doesn’t say you’ve hit a 404 error. If you were to come across a dead link to this site you might think that this is the front page and O’Malley himself is saying you’re wasting your time. Oh boyyy is that a misstep.</p><p>Beyond that though, we’ve got some useful content. The navigation bar is visible and you’re invited to sign up to a newsletter, which is a nice generic conversion. There are a few extra links at the bottom too. I really like the donate buttons (sensible guidance prices too), but I’m not sure people who’ve hit a dead link are going to line up to do it.</p><p><strong>Usability and accessibility: </strong>★ ★ ☆ ☆ ☆</p><p>The navigation links weigh in at a contrast of 3.2:1. Better than Hillary’s but nothing really to be proud of. The text is bigger though, which brings the necessary contrast down a tad (not enough for a pass, mind).</p><p>O’Malley has also fallen for the “no alt text” conundrum, leading screen readers and the like to have no context for “Hold Your Horses”. However, at least that line doesn’t sound <em>completely </em>out of place.</p><p>None of the inputs have labels, which sucks if your browser doesn’t support the “placeholder” attribute and you just see two empty boxes.</p><p>I was initially impressed by the use of aria roles, but that’s just from the Fastaction plugin.</p><p><strong>Technical: </strong>★ ☆ ☆ ☆ ☆</p><p>Oh boy. 2.4MB. Eek. By visiting this 404 page, you’re basically downloading <a href="http://www.dosgamesarchive.com/download/doom/">a copy of Doom</a>. Where’s this coming from? Well, 1.8MB is from the two big images on the page. They’re both <em>terribly</em> optimised. With a little compression (through <a href="https://tinypng.com/">TinyPNG</a>), we can drop the combined total to 427KB. So just by tidying that up, we could drop down to 1MB a page, or what I now call “a Clinton”.</p><p>Then we’ve got a lot of the same offenders we saw on Hillary’s site. Facebook, Twitter, analytics tracking code. O’Malley’s site also uses Bootstrap and Font Awesome which come at their own costs, particularly since nothing visible uses Font Awesome.</p><p>In the source there’s an awful lot of inline JavaScript, and a massive ASCII “O’MALLEY” header which racks up an extra 5KB per page load. Again though, nice responsive design (though, I’m quick to reiterate, it still loads 1.8MB of images).</p><h3>Bernie Sanders</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*szJeqSx8UNwIFLZi3q5RNg.png" /><figcaption><a href="https://berniesanders.com/electionbyerror">“Special” in the sense of “shown to everyone who visits any 404 page on this site”</a></figcaption></figure><p><strong>Entertainment: </strong>★ ★ ★ ☆ ☆</p><p>Ah, the page that started it all! I have to admit it’s nice. It feels like quite a personal way to deal with a 404 and Sanders comes across well. He’s friendly, talks informally (“scoot your way to the bottom of the page”), and manages to come across as a human (which I assume to be the ultimate goal of all of these pages).</p><p>This could easily have been tacky in its delivery, but it feels genuine and smart. It’s not outrageously funny, but it goes a step further than the other two sites. Honestly though, I think I prefer the picture of O’Malley on a horse.</p><p><strong>Usefulness: </strong>★ ★ ★ ★ ☆</p><p>Super useful! The words “404” and “Page not found” are prominent on the page. if you don’t understand what that means, Bernie is there to explain. The standard menus (which cover a lot of ground) are all there too, so you can click on through. Like O’Malley’s site, there’re also some boxes to sign up for a newsletter, in case the amusing page swings you.</p><p>Short of some more textual information and “common places” style links, the content of this page is about as useful as can be.</p><p><strong>Usability and accessibility:</strong> ★ ☆ ☆ ☆ ☆</p><p>And here’s the crux of the issue: autoplaying videos are an awful idea, particularly ones with sound. Imagine the scenario: you’re at work or on the bus, browsing around pages about Senator Sanders and suddenly your phone starts making noise. It’s irritating, it can be embarrassing and, in some situations, could land you in trouble. Surprising someone like that is a horrible move, particularly if it happens <em>every time</em> they hit a dead link or misspell a URL.</p><p>From an accessibility point-of-view, <a href="https://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-dis-audio.html">the WCAG guidelines</a> are actually quite lax:</p><blockquote>If any audio on a Web page plays automatically for more than 3 seconds, either a mechanism is available to pause or stop the audio, or a mechanism is available to control audio volume independently from the overall system volume level.</blockquote><p>This is surprising but also, in my opinion, irrelevant. I don’t want Bernie Sanders to start shouting at me with no warning.</p><p>There are some other accessibility issues though. The “skip navigation” menu (which this is admittedly the first site we’ve reviewed to have) isn’t visible when focussed. So a keyboard user would only notice it if scanning the “URL preview” at the bottom of the browser. Meanwhile, the menu links at the top turn white when tabbed to, making them unreadable.</p><p>Also, as if Sanders and O’Malley are on completely the same page, the input boxes for signing up to the newsletter again don’t have labels.</p><p><strong>Technical:</strong> ★ ★ ★ ★ ☆</p><p>The page weight is 2.1MB, which is pretty good considering there’s a video involved. The video itself comes at a Clinton (1MB) and YouTube’s various JavaScript files and supporting requests make up a large chunk of the remainder.</p><p>Other than that, the page is pretty trim. Besides jQuery (which is pretty much a given now), there’s very little extraneous JavaScript loaded. The stylesheet isn’t ridiculous, and the images are beautiful, modern SVGs. The page source is small itself, clearly slightly minified but with nothing more than what’s needed to serve the page.</p><h3>The winner</h3><p>There can’t be a real “winner” out there. In terms of usability and accessibility, which spawned this discussion, Hillary Clinton plays a safe game and still slips a bit. Martin O’Malley is probably the most usable <em>considering</em> what appears on the page.</p><p>But Clinton’s site absolutely can’t land usefulness, specifically hiding access links. And both of hers and O’Malley’s have pretty poor implementations (probably the result of infrastructure and CMS, not bad programming), particularly with O’Malley’s monster photographs.</p><p>Ultimately, if Bernie Sanders’s site could ditch the autoplay then it would probably be an out-and-out winner. But the frustration of having things play without asking me is enough to knock it out of the running altogether. And we can’t forget that the video does bring the page size high enough that the trim page source is a triviality.</p><p>The one thing I think we can certainly agree on is that Martin O’Malley has a much better chance in this competition than the one he’s really engaged in.</p><p>Join me next time as we discuss the Republican candidates. All 12 of them. Oh boy.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bbb956fa74b0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Don’t give up on your resolutions already]]></title>
            <link>https://medium.com/@gregtyler/don-t-give-up-on-your-resolutions-already-911e8c70bebb?source=rss-15f7a79ccabb------2</link>
            <guid isPermaLink="false">https://medium.com/p/911e8c70bebb</guid>
            <category><![CDATA[alcohol]]></category>
            <category><![CDATA[new-years-resolutions]]></category>
            <category><![CDATA[motivation]]></category>
            <dc:creator><![CDATA[Greg Tyler]]></dc:creator>
            <pubDate>Sun, 10 Jan 2016 12:28:57 GMT</pubDate>
            <atom:updated>2016-01-10T12:28:57.300Z</atom:updated>
            <content:encoded><![CDATA[<h4>“A month” doesn’t have to be January</h4><p>I’ve been talking to a lot of people about their New Year’s Resolutions; as I do most years. It’s always interesting to see what people want to change about themselves and how they plan to do it.</p><p>As ever, I’m disappointed by the number of immeasurable resolutions. “Get fit” and “eat better” crop up every year and people seem none the wiser when I ask how they’ll tell if they’ve achieved them. But that’s not my biggest bugbear this year.</p><p>Far too many people I’ve talked to this year have already given up on their resolutions. Less than two weeks in and already their plans for betterment have fallen through.</p><p>For some, that’s because they’ve re-evaluated; and that’s fair enough. New Year can be a difficult time to choose resolutions: many of us are in the throes of parties and over-consumption, haven’t returned to our work and our daily lives in a while. Priorities during a hangover may not be the best way to set your annual goals.</p><p>But I don’t consider that “giving up”. I trust my friends to be able to responsibly evaluate what’s important to them and their development.</p><p>A common situation of giving up, I’ve found, is alcohol abstinence.</p><p>A lot of people choose to withdraw something for a New Year’s Resolution and “Dry January” is a popular choice, with participants not drinking alcoholic drinks for the first month of the year. It’s an opportunity to detox, save some money and demonstrate that you don’t need that crutch to support you.</p><p>The <a href="http://www.dryjanuary.org.uk/">Dry January website</a> also lists “losing weight, sleeping better, [having] more energy” as good reasons to go alcohol-free.</p><p>The thing a lot of people don’t realise is that it can be very hard work. I did a month of abstinence after waking up in hospital after a night’s drinking once and, despite having real desire and drive to complete it, struggled the whole time.</p><p>Personally I didn’t the lack of alcohol so much a problem as the social pressure. Going to social events, being around a friend’s for dinner; there were too many occasions when everyone else was drinking and I felt left out, or unusual. At least giving in January is common enough that people are more understanding, but the subconscious pressure remains.</p><p>To this end, I’ve spoken to several people who have attempted Dry January but have either given in to temptation, or just plain forgot. Offered a glass of wine with a meal, or being bought a drink in a bar, they’ve indulged in the forbidden (fermented) fruit.</p><p>The sad response to this is people saying they might as well give up. Their January clearly isn’t going to be dry so why bother trying? But this is a disappointing and cowardly attitude to take.</p><p>Firstly, you can try again. If your plan was to not drink for ~30 days then start the clock again. You could have a Dry Feburary or a Dry mid-January to about mid-February. The effect is still the same, even if you’re not getting the slogan you aimed for.</p><p>Secondly, you can just continue. Sure, you had one misdemeanour; but, if you can keep it up, having only one drink in the whole of January is still pretty darn good. Assuming you don’t have a serious problem with alcohol (which is generally the case amongst my friends), having just a couple of glasses of wine in a 30 day stint is still a solid achievement.</p><p><em>If you do have a drinking problem, there are some </em><a href="https://www.alcoholconcern.org.uk/help-and-advice/"><em>great charities</em></a><em> who can help.</em></p><p>In either case, you’ve lowered your alcohol intake for a fixed period of time, and that’s still a positive thing. Don’t throw that goal away because you made one minor slip-up.</p><p>A lot of my abstaining friends are quick to tell me “I don’t have an alcohol problem, I don’t <em>need</em> to give up”. And generally I believe them. But those who are giving up within a month because they faltered one time have a <em>commitment</em> problem. Obviously the two aren’t directly comparable, but both are issues that should be addressed.</p><p>Falling off the resolution horse and being strong enough to get back on it and try again is an incredible demonstration of strength of character, whether you’re giving up alcohol, taking up regular sport, or trying to eat healthier. Giving up at the first hurdle is weak and makes it look like you’re looking for excuses.</p><p>Having the strength of mind to commit to your resolutions, and the resilience to see them through will surely bring you other benefits in life. Not being able to commit is a hindrance in your personal development, your relationships and your work life.</p><p>So, sure, you’ve messed up on your resolution already. Forget about it, keep trying. Go back to the gym, put down that salty food. Otherwise you’ll have the same resolutions in twelve months and you’ll have failed to fix those problems one more year.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=911e8c70bebb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Most Suspicious Commuter]]></title>
            <link>https://medium.com/@gregtyler/a-most-suspicious-commuter-f43dd90cc24d?source=rss-15f7a79ccabb------2</link>
            <guid isPermaLink="false">https://medium.com/p/f43dd90cc24d</guid>
            <category><![CDATA[this-happened-to-me]]></category>
            <category><![CDATA[mystery]]></category>
            <dc:creator><![CDATA[Greg Tyler]]></dc:creator>
            <pubDate>Sun, 08 Nov 2015 11:51:52 GMT</pubDate>
            <atom:updated>2015-11-08T11:51:52.719Z</atom:updated>
            <content:encoded><![CDATA[<p>I’ve met plenty of unusual people. People who’ve made me take a step back and go “huh”. But none have been as suspicious as “Kate”*, a lady I met on the bus when I was 13.</p><p>In the current media climate, I expect you to start worrying at this point. Stories about children meeting strangers on buses don’t tend to end well these days. But, rest assured, this is not a troubling tale.</p><p>In those days I used to commute every day on the same bus, into and out of town each morning and evening. Because it was a heavy commuter route, the bus was full of the same familiar faces every day. Around me was an array of people I had never spoken too, but felt I knew fairly well.</p><h3>Introducing Kate</h3><p>I don’t remember ever seeing Kate on the bus before. Maybe she’d been there a while, but as I remember it the first time I acknowledged her presence was the day we started talking. On such a small bus with such a regular community though, I stand by this being her first appearance.</p><p>That particular day I’d had a Design Technology class and we’d finished the project we’d been working on for the past few weeks: building a desktop stationery holder out of wood. Because mine was awkwardly shaped and a bit fragile, I carried it in my hands rather than putting it in my bag.</p><p>“That’s nice, did you make it?” asked a (then) strange lady sitting across from me. She was very friendly, smiley and in her mid-thirties. We got to talking. I explained how I’d made it and what my classmates had done with theirs. Kate got off several stops before me, and I didn’t really think much of the encounter.</p><h3>A blossoming friendship</h3><p>From that point onwards I saw Kate most days and we talked a lot. She talked about her recent holiday to America, her daughter who was around my age, and mentioned that she worked with the police in the city in the anti-terror unit.</p><p>I would have called us friends. I remember talking to my parents about the conversations we had on the bus, and some of my mates at school too. We got on very well, presumably because she knew how to communicate with teenagers through having a daughter that age.</p><p>I was soon looking forward to getting the bus home, to talking to Kate. She was interesting, friendly and different to everyone else I knew. I got the impression that she, similarly, enjoyed my conversation.</p><h3>A deceptive daughter</h3><p>Kate had mentioned both her daughter’s name and the school she studied at. As it happened, I knew a few people at that school and one day decided to ask about her. I don’t think I really cared, and I’m not sure why I even asked, but I just wondered what kind of girl she was. Kate never said much about her and, like most parents, was not likely to be inclined to speak ill of her child.</p><p>The school was a small one. The sort of school where everyone knew everyone. If you didn’t know a classmate closely, you still probably had at least one lesson with them. And yet, among the various people I knew there, not one of them had heard of Kate’s daughter. There was one girl in the year with the same name, but I’d met her; she lived in a different part of town and her mum wasn’t called Kate.</p><p>For all intents and purposes, Kate’s daughter didn’t exist.</p><h3>A mystery unfolds</h3><p>I asked Kate about this one day. How no-one at her daughter’s school had heard of her. She shrugged it off, pointed out that kids were unreliable like that and that maybe her daughter just didn’t know my friends. But I’d checked, and they knew <em>everyone</em>. I was in a similar size school and I could have identified everyone in my year, even the people I didn’t know.</p><p>It was at this point I got a bit suspicious. I’ve always had a suspicious mind, but this felt justified. I knew nothing about this woman when I thought about it. She was quiet about work, quiet about her family, her stories tended to just involve herself (we talked a lot about her childhood compared to mine). She asked a lot about me and <em>my </em>family<em> </em>and, indeed, she’d been the one to first start conversation.</p><p>I was also unsure that the city <em>had</em> an anti-terror department. It was believable, but it seemed unlikely to me.</p><p>I think that maybe my suspicion showed, though I wasn’t really taking it seriously.</p><h3>The lady vanishes</h3><p>Soon after I asked about her daughter, Kate stopped getting my bus. I remember the first couple of days I didn’t see her, thinking she must be sick. She hadn’t mentioned any holidays. She’d never said she was changing hours or moving house, so would be getting a different bus. We were definitely friends enough that she should have said something.</p><p>After a couple of weeks it was clear she’d gone. I continued to get that same bus at the same time for another few years. The same faces continued, but I never saw Kate again. I would recognise her even today.</p><p>The enterprising young man I was, at one point I actually went to the police headquarters and asked if they had any staff called Kate but was told that, as a matter of course, they couldn’t reveal who their staff were to some kid over the front desk.</p><h3>A friend indeed?</h3><p>I’ve still never worked out who Kate was or how that situation came about. I have three working theories.</p><h4>I was the target</h4><p>If Kate did indeed work for the anti-terror department in the police, maybe she was canvassing me for information. My parents both went to China in a time when it was still very unusual to, and perhaps there were suspicions about some of the people they met with. Maybe Kate was trying the softly-softly approach, to see if the kid gave anything away.</p><h4>Kate was a liar</h4><p>It’s a boring theory, but it’s possible. Maybe the person I met was just a compulsive liar who made up her daughter and her job. Perhaps she wanted to seem impressive, to share grand tales which were far from truthful. If she was lying though, the fake daughter seems a huge risk to take.</p><h4>It was all just bad luck</h4><p>Despite everything, it’s possible that there’s nothing untoward here. Maybe Kate’s daughter just flew <em>really</em> low under the radar. Maybe she didn’t feel close enough to me to say she wasn’t going to catch the bus any more. Maybe she’s just a normal person who all these years later doesn’t even remember me, and I’ve just fixated on this one stranger.</p><p>The last two situations imply I significantly misjudged Kate’s character and the first scenario is really clutching at straws to make my life seem more like a film. Whatever the case, there was something weird about my friendship with Kate. Something that’s bugged me for years, that meant I still remember it vividly, that I’ve never been able to resolve.</p><p>I asked a couple of years later about Kate’s daughter, and I really did push for my friends to find someone. No-one had heard of her still, then on in the years before. Maybe she’d left the school by then — maybe that’s why Kate disappeared too — but it seems so much more believable that the daughter never existed at all.</p><p><em>* Kate might not be her real name. Or it might be. I can’t really remember and it doesn’t matter.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f43dd90cc24d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Things I Learnt From Flooding My Kitchen]]></title>
            <link>https://medium.com/@gregtyler/things-i-learnt-from-flooding-my-kitchen-4fa3a91326a8?source=rss-15f7a79ccabb------2</link>
            <guid isPermaLink="false">https://medium.com/p/4fa3a91326a8</guid>
            <category><![CDATA[productivity]]></category>
            <dc:creator><![CDATA[Greg Tyler]]></dc:creator>
            <pubDate>Tue, 20 Oct 2015 21:10:15 GMT</pubDate>
            <atom:updated>2015-10-20T21:22:00.229Z</atom:updated>
            <cc:license>https://creativecommons.org/licenses/by-sa/4.0/</cc:license>
            <content:encoded><![CDATA[<p>Yesterday my flatmates and I attempted to improve the pressure in our boiler and, in doing so, rather swiftly flooded the kitchen. In those few minutes of panic I learnt some things that I thought I would share.</p><h4>How to empty a boiler</h4><p>First, let me explain how we found ourselves in this situation. In our boiler’s user guide it handily suggests that you can raise or lower the pressure of the machine by rotating a dial on its underside. What it fails to mention is that this little screw will happily screw all the way out if you try and depressurise too much.</p><p>So we twisted that wee screw right out and water started pouring through the hole we established.</p><h3>Be prepared</h3><p>As a member of the Scout Association for about a decade, I should know a little something about preparation. However, it’s easy to not think through things like “where’s my stopcock?” until you actually need to use it. If we’d known where ours was, it could have made this whole situation a lot less painful.</p><p>Now I know where the fusebox and gas shut off valve are too, so <em>balls to you</em> potential future gas explosion!</p><p><strong>There is (hopefully) some important safety equipment in your household. Learn where it is before you need to.</strong></p><h3>Don’t panic, prioritise</h3><p>My initial reaction to watching water pour over our work surface, floor and oven was to worry about every little problem that would spring to mind.</p><ul><li>How are we going to clean this up?</li><li>Where do we find a plumber?</li><li>Where’s our stopcock?</li><li>What if we flood into downstairs? Will we have to pay for repairs?</li><li>Where’s the cat? Is he okay?</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I0qFbvXEdfnxy4OaTE03FQ.jpeg" /><figcaption>If your boiler floods this much, you have my permission to panic</figcaption></figure><p>In reality, there was only one problem that should have concerned any of us, and that took a while to acknowledge:</p><ul><li>How do we stop the water?</li></ul><p>The answer, of course, was quite simple. Cover the hole. In fact, I just had to screw the thing we pulled out back in. But, in a situation like that, it was surprisingly easy to panic and lose sight of what actually needed doing.</p><p><strong>In an emergency, try to focus and address the problem at hand.</strong></p><h3>Mechanical fixes are really rewarding</h3><p>I spend my days as a web developer, fixing virtual problems in web applications. Software’s a real pain in this regard, because you often can’t be sure if you’re fixing a problem at the root or taking a branch off a tree that’s just <em>riddled</em> with Massaria.</p><p>So with that in mind, fixing a mechanical problem was amazing. I could identify the problem (there was a hole where water was coming out), find a solution (put the thing back in the hole) and execute it. What’s more, I <em>knew</em> that the solution would hold up; it wasn’t a half-fix.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/614/1*G5npwayIA9S7VGYbV2b18A.png" /><figcaption>A typical work day, fixing boring old <em>virtual problems</em></figcaption></figure><p>That isn’t to say that mechanical problems are easy to fix (for example, what if we’d lost the thing we pulled out?), but in my unique situation it was really nice (and unusual) to be able to lock something down at its root and not worry about missed opportunities or side effects.</p><p><strong>Fixing things at the source is awesome; make the most of knowing how things work.</strong></p><h3>Emergencies bring people together</h3><p>I always wanted to be in an action film situation when I was a kid. Not because I wanted to be the hero, but because I wanted that bit at the end where everyone goes “thank goodness we got through that” and you just <em>know </em>they’re friends for life now.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b2IcdkQswd81ZIUvCtL-7g.jpeg" /><figcaption>Me and my flatmates after fixing the boiler</figcaption></figure><p>Now my story is certainly no <em>Day After Tomorrow</em>, <em>Swordfish</em> or <em>Independence Day</em> but, to a lesser extent, we still got that amazing feeling. We almost immediately laughed about it, joked about what could have gone wrong, and were genuinely brought closer together.</p><p><strong>Emergencies can bring you together. Embrace your team victories.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4fa3a91326a8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>