<?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 Gavyn McKenzie on Medium]]></title>
        <description><![CDATA[Stories by Gavyn McKenzie on Medium]]></description>
        <link>https://medium.com/@gavyn?source=rss-801ec670a9ec------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*mV0p8Ugv67jx_dLS6zbqTQ.jpeg</url>
            <title>Stories by Gavyn McKenzie on Medium</title>
            <link>https://medium.com/@gavyn?source=rss-801ec670a9ec------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 23:35:22 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@gavyn/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[How to hold a lockdown birthday party]]></title>
            <link>https://medium.com/@gavyn/how-to-hold-a-lockdown-birthday-party-a47a9e8874e1?source=rss-801ec670a9ec------2</link>
            <guid isPermaLink="false">https://medium.com/p/a47a9e8874e1</guid>
            <category><![CDATA[covid19]]></category>
            <category><![CDATA[birthday]]></category>
            <category><![CDATA[fun]]></category>
            <category><![CDATA[long-distance]]></category>
            <category><![CDATA[remote-working]]></category>
            <dc:creator><![CDATA[Gavyn McKenzie]]></dc:creator>
            <pubDate>Tue, 24 Mar 2020 10:55:40 GMT</pubDate>
            <atom:updated>2020-03-24T17:11:40.013Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bslhrEpogSQZfKT4lAC8-g.png" /></figure><p>Can’t get your friends together? No problem!</p><p>We had a birthday party coming up for my sister-in-law, Abi. We’d booked ourselves in to an awesome looking restaurant right in central London called <a href="http://www.thefatbear.co.uk/">the Fat Bear</a>.</p><p>Gumbo, fried chicken, burgers, waffles, bourbon, oh baby. I was excited for weeks. Not half because I’ve been trying to lose some of that Christmas weight.</p><p>Then what happens? That damn Coronavirus pops up and next thing you know we are all socially distancing and the restaurants have been shut down. Well we’re not gonna let a lockdown stop the party so we decided to go remote.</p><h3>Video hangout</h3><p>We started off the party by pulling everyone into a video conference call. There’s tons of services you can use for this: <a href="https://gsuite.google.com/Hangouts">Google hangouts</a>, <a href="https://zoom.us/">Zoom</a>, <a href="https://www.messenger.com/">Facebook Messenger</a>, <a href="https://www.skype.com/en/">Skype</a>, whatever your friends are already using is probably the easiest.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vtu8kKkVDKbeOZqYPIfVjA.png" /></figure><p>There were 10–15 of us on the call and it was chaos. With a beer in hand, it really felt like hanging out with some pre-dinner drinks. Everyone was feeling kind of cooped up so getting to see all your friends faces made us feel a little bit closer together.</p><h3>Food</h3><p>If you are having pre-dinner drinks, you’ve got to have dinner right? We couldn’t go to the Fat Bear, but we could do our best. We suggested a food theme for the party to everyone could still be eating something similar. Our theme was fried chicken, because the Fat Bear does some mean fried chicken.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BNlqxP0ucYrZxA6HZjfV1w.jpeg" /></figure><p>If you live close to your friends, you could all order from <a href="https://www.just-eat.co.uk/takeaway/nearme/chicken">the same delivery place</a>, or you could <a href="https://www.seriouseats.com/recipes/collections">pick a recipe</a> for you all to cook at home so it feels like you are having dinner together.</p><h3>Movies</h3><p>Is there a more classic combo than dinner and a movie? We were originally going to use a chrome extension called <a href="https://www.netflixparty.com/">NetFlix Party</a> that synchronises your NetFlix players so you can easily watch a movie at the same time.</p><p>Unfortunately we had some issues installing this for everyone as some of our party only had tablets and no laptops so we went with the backup plan of synchronising manually.</p><p>3… 2… 1… PLAY.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/334/1*e3XZvnPj21EsKkKqT90YzQ.jpeg" /></figure><p>The call was cut and we started watching an old classic, <a href="https://www.netflix.com/title/60020917">The NeverEnding Story</a>. Our conversation moved into a Facebook messenger group so we could carry on chatting about the film as it was happening. It was like we were all chilling in the same front room except you could actually talk to each other without pissing anyone off because you were making noise.</p><p>Netflix was a convenient option as we all had accounts, but you could easily synchronise <a href="https://www.youtube.com/channel/UClgRkhTL3_hImCAmdLfDE4g">Youtube</a> or <a href="https://www.amazon.co.uk/Movies/b?ie=UTF8&amp;node=3046737031">Amazon</a> movies as well, which allow you to rent films pretty cheaply.</p><h3>Post-Movie Hangout</h3><p>After the film finished, a few of us who were still awake moved back into the video chat to talk about the film and share some final time together before crashing out for the evening. It had been a pretty great time! I felt like I’d scratched my socialising itch without leaving the house!</p><h3>A Website</h3><p>In order to co-ordinate the evening, we made a website with links to the various parts of the evenings activities. As a web developer, a website seemed like the most obvious option, but you could use a Facebook event or similar to co-ordinate people. There are also a lot of great free website builders out there you could use to host your event site.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/1*A9h2Ps6jrfTuS8qIDfxpQw.png" /></figure><p>Having a website helped to make it feel like a “real event” and give the party an extra sense of occasion.</p><h3>What next?</h3><p>With the evening being such a success, we’ve got a remote Pub Quiz coming up this weekend. After that, who knows what we can make remote?</p><p>Send me your ideas for remote hangouts to do with your friends whilst we are locked down!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a47a9e8874e1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Help, I have to work from home!]]></title>
            <link>https://medium.com/@gavyn/help-i-have-to-work-from-home-1d31547ef83b?source=rss-801ec670a9ec------2</link>
            <guid isPermaLink="false">https://medium.com/p/1d31547ef83b</guid>
            <category><![CDATA[remote-work]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[coronavirus]]></category>
            <category><![CDATA[remote-working]]></category>
            <dc:creator><![CDATA[Gavyn McKenzie]]></dc:creator>
            <pubDate>Thu, 19 Mar 2020 13:48:27 GMT</pubDate>
            <atom:updated>2020-03-19T13:48:27.391Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Rjd0dXlbIevCWT4XKvsopQ.jpeg" /></figure><p>Answers from a pro.</p><p>I’ve been working remotely for over 3 years now, you’d be surprised how easy it is. I work for <a href="https://etch.co/">a remote, distributed, software studio</a> with employees dotted around the UK and France. Whilst it took some getting used to at first, I don’t think I would go back to a regular office.</p><h3>Do I need to get dressed?</h3><p>Whilst you could come to work in your dressing gown (I’ve done emergency bug fixes naked before), it can help psychologically to put on your normal work clothes. Just this act of getting into the right “costume” can make you feel like you are at work and not just chilling at home.</p><p>Whilst I don’t dress in a shirt and tie like some office workers, I do have a separate set of clothes for workdays and weekends to establish that mental trigger.</p><h3>How do I stay motivated?</h3><p>Start your day by making a todo list of goals for the day. These can be as small as specific emails to answer or virtual meetings you need to attend.</p><p>Remember to take small breaks every hour or so. In an office you might chat to a nearby colleague or go for a wander to the kitchen to make tea. At home you might chat to someone on your internal messaging system like <a href="https://slack.com/">Slack</a> or move to a different room and do some stretching as a mental break.</p><p>Don’t get sucked in to social media, keep it off your laptop and keep your phone in another room if possible. Only check it at designated times to stop it eating into your time and motivation.</p><p>I take my tasks for the day and pop them into <a href="http://sunsama.com/">Sunsama</a>, a daily todo app, which helps me schedule my day and check things off as I go. My phone stays in another room and I try to take a break to grab water and stroke the dog every hour or so.</p><h3>What do we do about meetings?</h3><p>With the power of the internet, you’ll be surprised how little you miss your meeting room. There’s a ton of <a href="https://uk.pcmag.com/cloud-services/9067/the-best-video-conferencing-software-for-2020">video calling software</a> out there that lets you talk to people face to face. Screen sharing and <a href="https://zapier.com/blog/best-online-whiteboard/">virtual whiteboards</a> let you collaborate as if you were in the same room together.</p><p>Many of the common calendar apps have the ability to add video conferencing to an event at the time you create it. This makes your meetings super easy to schedule and attend as they are just a click away.</p><p>I like to keep my video on in meetings if bandwidth allows as body language can be a large part of communication. When we’re brainstorming, my favourite whiteboarding tool is <a href="https://miro.com/">Miro</a>.</p><h3>It’s lonely at home</h3><p>One of the weirdest things to get used to at first is nobody being around. You can find yourself missing that “watercooler chat” time. Make sure to make time for social conversation with your colleagues. A couple of random or hobby focused channels in the internal messaging system, or email threads regarding non-work topics, can really help you stay feeling socially connected.</p><p>Our work chat system has channels for cooking, workouts, cute pictures of our kids/pets and a random channel for everything that doesn’t fit.</p><h3>Am I going to get fat?</h3><p>No more commute means no walk to the train station and staying at home for lunch means no popping to the deli to get lunch. Just this lack of walking can mess with your mental health and your waistline.</p><p>Make time to pop out for a walk before work and during lunch if possible. Just 10–20 minutes can make a huge difference. It’s also a great opportunity to get some fresh air and give your brain a break.</p><p>Instead of commuting, I’ll take the dog for a walk before work and then round the corner to throw the ball at lunch. It keeps both of us healthy!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1d31547ef83b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Don’t clap this article]]></title>
            <link>https://medium.com/etch-stories/dont-clap-this-article-3719749c517c?source=rss-801ec670a9ec------2</link>
            <guid isPermaLink="false">https://medium.com/p/3719749c517c</guid>
            <category><![CDATA[marketing]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[social-media]]></category>
            <category><![CDATA[communication]]></category>
            <dc:creator><![CDATA[Gavyn McKenzie]]></dc:creator>
            <pubDate>Fri, 16 Nov 2018 15:55:16 GMT</pubDate>
            <atom:updated>2018-11-16T15:55:44.215Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h5LR_bXV3xq5rARJGeYFoA.png" /></figure><h4>The like button is destroying communication on the internet.</h4><p>30,000 years ago, humans (Homo Sapiens) were sharing the planet with another similar species — Neanderthals. Neanderthals and Homo Sapiens co-existed for 20–40,000 years together, but eventually the Homo Sapiens won out.</p><p>One of the reasons we are still here? <strong>Communication</strong>.</p><p>Some scientists believe that Neanderthals were <strong>more intelligent</strong> than humans at a base level, but had less brain power devoted to <strong>social communication</strong> and less capable <strong>voice boxes</strong>. This meant that Homo Sapiens, whilst less capable individually, were able to transmit information between each other more successfully. This ability to share information made the Homo Sapiens able to advance more rapidly as a species, eventually outlasting the Neanderthals.</p><p>30,000 years later we’ve come a long way. We’ve got access to the majority of human knowledge in <strong>a</strong> <strong>tiny device that sits in our pocket</strong>.</p><p>The internet has brought forward a massive leap in human communication and knowledge sharing. No more digging through library books and enormous encyclopedia volumes, just ask your <a href="https://duckduckgo.com/">favourite search engine</a>.</p><p>One of the greatest successes of the early internet was the fact that anyone could get involved in the discussion. <strong>Forums</strong> and <strong>blog post comment</strong> threads put users directly in touch with each other and fostered a culture of communication.</p><p>Recently, we have seen the rise of social media: Facebook, Twitter, Instagram and more. These networks <strong>live on advertising</strong> and rely on users coming back as often as possible to scroll through the posts.</p><p>The main thing that draws them back? <strong>Notifications</strong>.</p><p>In order to create the most notifications (and the most advertising revenue), these networks needed to create a feedback mechanism that took virtually no effort, but made people interested in seeing it.</p><p>A ‘like’ makes a user feel good, someone was pleased with the content they have shared! This sets off a <strong>dopamine reaction</strong> in the brain, that has been shown to be incredibly addictive and will keep users coming back. It also makes the ‘liker’ feel good, they have sent a reaction to the person who created the content and voiced their opinion.</p><p>By creating this, addictive, false sense of communication, we’re destroying real knowledge transfer and discussion.</p><p>A comment takes a little more effort, a little more time to write, but it starts a <strong>conversation</strong>. What do you get from a ‘like’, apart from a tiny dopamine hit for your addicted brain?</p><h4><strong>Don’t clap this article</strong>.</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3719749c517c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/etch-stories/dont-clap-this-article-3719749c517c">Don’t clap this article</a> was originally published in <a href="https://medium.com/etch-stories">Etch</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[UI details: Testing the contact forms of Top Digital agencies]]></title>
            <link>https://medium.com/etch-stories/ui-details-testing-the-contact-forms-of-top-digital-agencies-fbd0be17c04d?source=rss-801ec670a9ec------2</link>
            <guid isPermaLink="false">https://medium.com/p/fbd0be17c04d</guid>
            <category><![CDATA[web-design]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[ux]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[design]]></category>
            <dc:creator><![CDATA[Gavyn McKenzie]]></dc:creator>
            <pubDate>Mon, 12 Nov 2018 15:17:13 GMT</pubDate>
            <atom:updated>2018-11-23T20:38:52.796Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OrTci7u7vqKoEpdT1cIMmg.png" /></figure><h3>UI details: Testing the contact forms of top digital agencies</h3><h4>How to judge a digital agency by their contact form.</h4><p>So you need to pick a <a href="https://etch.co/"><strong>digital agency</strong></a>. There’s hundreds of them out there and they all look great. Lovely portfolios, lots of clever sounding words about <a href="https://developers.google.com/web/fundamentals/design-and-ux/responsive/">responsive web design</a>, <a href="https://zurb.com/word/mobile-first">mobile first</a>, <a href="https://clearleft.com/posts/designing-design-systems">design systems</a>, agile, etc etc…</p><p>How do you know who is truly a <a href="https://makebetter.software/"><strong>master of the web</strong></a> and who is faking it?</p><p>Every time I find a new agency site, I run a series of experiments on their contact form as a <strong>litmus test</strong> of their quality.</p><p>We’re going to look at <strong>3 agency contact forms</strong> and run a series of quick tests that will arm you with the power to instantly judge a web development agency by their contact form alone. When we’re finished, you’ll be able to confidently say if a company truly cares about the web as a medium in a matter of seconds.</p><h3>The forms</h3><p>We picked <strong>3 great forms</strong> from <strong>3 awesome looking websites</strong> from popular agencies. The agencies will remain anonymous so we’ll refer to them as <strong>A</strong>, <strong>B</strong> and <strong>C</strong>.</p><h4>Agency A</h4><p>This agency is breaking the mould with a <a href="http://www.madlibs.com/">madlib</a> style form.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gm1QH-aSoIs5yGZbYR1ayg.png" /><figcaption>Fun and unusual</figcaption></figure><h4>Agency B</h4><p>Agency B is more classic form, although they have added a rather <strong>snazzy slider</strong> for project budgets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1n_sRyNAYP2KkGOkyWHCuA.png" /><figcaption>A nice, classic, web form</figcaption></figure><h4>Agency C</h4><p>Agency C has the most minimalist contact form with only 3, very stripped back, fields.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/842/1*dMkmjaTqrif4ov8lrHD-1g.png" /><figcaption>Not sure this could be much more minimal</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yU_7triMTxBuA0Wqjc-r4Q.png" /></figure><h3><strong>Test 1: Hover states</strong></h3><p>A contact form isn’t just to be looked at, it’s to be <strong>interacted</strong> with. Desktop users with mice should get hints that they can interact with an element through hover states, and the mouse cursor changing.</p><p>There are two main types of element in a contact form. The <strong>inputs</strong>, and the <strong>submit button</strong>. Whilst an input hover state is less common, we would absolutely expect a hover state on the submit button.</p><h4>Agency A</h4><p>No hover states on the form inputs, but we’ll let that slide.</p><p>The submit button is styled to look like a link, rather than a submit button, which is a little odd, but at least it looks like a clickable element.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/142/1*sNtY34WaJY4Bv9aHCqpwug.gif" /><figcaption>Is this a link or a button?</figcaption></figure><p>It has a nice subtle hover effect, increasing the contrast when I hover over the element.</p><p>Verdict: <strong>PASS </strong>👍</p><h4>Agency B</h4><p>There’s a strange mix of hover states here. The text inputs have no hover state, but my mouse cursor does change to a text cursor, which is good.</p><p>The snazzy budget slider unfortunately doesn’t change the cursor at all, which makes me think it can’t be interacted with for a second.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QUOanKsiEitKkF_j9vQdmw.png" /><figcaption>Looks nice, works badly</figcaption></figure><p>For some reason, the select dropdown does have a hover state. It starts looking grey and disabled, but when I hover it changes to white, increasing the contrast. This is good, but seems out of place when the other elements have no hover state.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/502/1*OXItYOqaApVi_XR8QgJqYQ.gif" /><figcaption>Is it disabled or not?</figcaption></figure><p>Finally, the submit button, which is the main thing I want to have a hover state, doesn’t have one. The only indication I can click the button is the mouse cursor changing to a pointer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/340/1*rxixb4U4jNGdLRwa-dF6Pg.png" /><figcaption>The submit button failure</figcaption></figure><p>Verdict: <strong>FAIL </strong>💩</p><h4>Agency C</h4><p>Agency C again has no hovers on the form inputs, but the mouse cursor changes so that’s OK.</p><p>The submit button hover state has obviously had a good bit of work put into it, although it has a strange 0.5s delay before the state kicks in, which feels odd.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/148/1*87EWUrLmd_oCofuj6ZUTQg.gif" /><figcaption>Probably took hours for some reason</figcaption></figure><p>Verdict: <strong>PASS </strong>👍</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VXCHObHoS4RWEr2wAvZTqA.png" /></figure><h3>Test 2: Keyboard navigation and focus states</h3><p>A <strong>major problem</strong> with websites today is they forget some users are unable to, or choose not to, use a mouse. <strong>Keyboard navigation</strong> is an important and often overlooked way of interacting with your site.</p><p>The main way users navigate via keyboard is by tabbing through all the interactive (focusable) elements on the site. You can give this a try by opening up a site and pressing tab, watching where the focus states go.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/1*HZfgGzzBlVCFurUsA5wrAw.gif" /><figcaption>Tabbing through the Etch home page.</figcaption></figure><h4>Agency A</h4><p>Agency A has decent hover states on the text inputs, but nothing on the select or submit button. It was so <strong>disorientating</strong> I managed to lose my place and had to record this gif twice!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/1*rakultrOY6QdqRrNwReY4g.gif" /><figcaption>Where’s my select focus state?</figcaption></figure><p>Verdict: <strong>FAIL </strong>💩</p><h4>Agency B</h4><p>Agency B has left the standard blue outline property intact on most of their form fields. This is often the recommended solution as keyboard users are familiar with the blue outline and they don’t have to re-learn your custom focus states.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/536/1*Prp8wzJDYcaZP5sRWYC7eg.gif" /><figcaption>Got lost half way through!</figcaption></figure><p>Unfortunately it all goes wrong when we come to the budget slider and select dropdown again. Neither of these show any kind of focus state and focus was actually skipped entirely on both. I was unable to interact with them at all using a keyboard.</p><p>Keyboard navigation is essential to blind users and failing to support it is a big accessibility problem.</p><p>Verdict: <strong>FAIL </strong>💩</p><h4>Agency C</h4><p>Our third agency has custom focus states on all elements and is easy to navigate. The submit button focus matches the hover, which is nice.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/456/1*7-SyD5Vsezfghyj_177E-Q.gif" /><figcaption>Pretty tidy</figcaption></figure><p>Verdict: <strong>PASS </strong>👍</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*na29pqRbhC5OXqr9OLR5FA.png" /></figure><h3>Test 3: Validation</h3><p>It’s easy to get things wrong when submitting forms on the web. A typo here, a missed field there. Good validation should prevent you submitting bad data and help you correct it when it’s wrong.</p><p>Many agencies only focus on “<strong>the happy path</strong>” when creating interactions and forget to help the users who aren’t doing it perfectly the first time.</p><h4>Agency A</h4><p>Oh boy. <strong>No validation whatsoever</strong>. The form submits, but if I get it wrong there’s nothing to tell me that I did get it wrong. The page refreshes and I’m left with my filled out form again feeling confused.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gm1QH-aSoIs5yGZbYR1ayg.png" /><figcaption>I wonder how many form submissions they‘ve had from me today</figcaption></figure><p>Verdict: <strong>FAIL </strong>💩</p><h4>Agency B</h4><p>Agency B has two nice validation points. Firstly, it validates client-side on submit so I don’t have to wait for the request to complete before realising I’ve messed something up.</p><p>Secondly, it validates each field as soon as I go to the next one, so I’ve got a heads up before I even try to submit the form.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ExjpAwg8kkbsdcWzUpAEqw.png" /><figcaption>That vertical alignment is pretty wonky</figcaption></figure><p>I would like to see some better error messages as there’s nothing here to explain what I’ve done wrong. The main error message is strangely aligned, as if it’s an afterthought. I feel like this form doesn’t really care about me.</p><p>Verdict:<strong> PASS</strong> 👍 (just)</p><h4>Agency C</h4><p>Our final agency has opted to use HTML5 validation instead of Javascript. This utilises the most basic form of validation, which is controlled by the browser and doesn’t allow you to set your own validation messages.</p><p>There’s also no error state on the field and we’re shown one error message at a time rather than knowing all the problems with the form at once.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U8QlVzzIUbR85AQwmlvkug.png" /><figcaption>This is simple, but it works</figcaption></figure><p>We do get some fairly decent error messages that help the user know what they need to do to correct the error.</p><p>An upside to this method is that it works when the user has Javascript turned off, or it failed for some reason. A more ideal solution however, would be to have HTML5 validation and write an enhanced layer over the top with Javascript, providing the best experience possible everywhere.</p><p>Verdict: <strong>Pass</strong> 👍 (Just)</p><h3>Final Scores</h3><p>After running all our tests we get the following scores:</p><ul><li>Agency A — 1/3</li><li>Agency B — 0.5/3</li><li>Agency C — 2.5/3</li></ul><p>Whilst all the agencies have excellent websites that look great, these results would make me most interested in <strong>Agency C</strong>. The web is not just a series of pretty pictures to be looked at, it’s interactive and it’s being used by people in millions of different ways with different levels of ability.</p><p>A good web agency should be embracing the web and embracing accessibility on the web for all users. By running these tests, you can see if your prospective agency cares about the details, about the web, and about users.</p><h3>Bonus tests</h3><p><strong>Having too much fun</strong>? Need a tie breaker? Here’s a few bonus tests for you to try.</p><p><strong>Warning: </strong>Some of these tests require knowledge of Chrome developer tools, which can be a little more involved and require some understanding of HTML.</p><h4>Form input types</h4><p>There’s a whole bunch of form input types available these days. Some might look exactly like a text input, but they could be: email, number or tel to name a few.</p><p>These special input types have extra built in validation power and will trigger <a href="http://mobileinputtypes.com/">different keyboard types on mobile</a>, making for a better user experience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/380/1*yR3VJLC2Kb39KfEcQawHWQ.png" /><figcaption>Who needs letters when you’re typing a telephone number?</figcaption></figure><p>In a contact form, the most important one to look out for is the email input type on the email field which will add an @ symbol to the front loaded keyboard on most devices.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/1*XeczXDMKSGaPLheDLwLglg.png" /><figcaption>type=”email” is the important bit</figcaption></figure><p>Both Agency B and C got this one right 👍, with Agency A failing 💩 and using a standard text input.</p><h4><strong>Labels with correct ids</strong></h4><p>Many users with <strong>visual disabilities</strong> need to browse the web using screen readers. These tools read the site aloud so the user can interact with it without having to see it.</p><p>Forms can be very disorientating for users with visual disabilities and one of the important bits for developers to remember is to include form input labels with an id to point to the correct form field. This helps users know where they are and how to navigate the form.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/854/1*HKMQX027aaRiag1qQaapIQ.png" /><figcaption>id=”label_23” hurrah!</figcaption></figure><p>Again, Agency B and C passed 👍, with Agency A falling flat and not including field labels at all 💩.</p><h4>Mobile styles</h4><p>With more and more of the web moving to <strong>mobile browsing</strong>, it’s important to offer a great experience on phones and tablets of <strong>all sizes</strong>.</p><p>By utilising responsive web design, it’s fairly simple to provide a great experience on every screen size.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E48iRSa5P2_bbE3HuNZrhw.png" /><figcaption>Etch.co on large screens</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P_s4XJXek7k6mNRZSsx0fw.png" /><figcaption>And the same site on tiny screens</figcaption></figure><p>Whilst Agency B and C did a decent job 👍 of making their forms display well on mobile, Agency A was a bit of a mess 💩.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QIvRyJtQn8EqWghunfL3jw.png" /><figcaption>How clean is that?</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8ipyC-grGINU7B6Ilc2NLg.png" /><figcaption>This just looks broken…</figcaption></figure><p><em>At </em><a href="https://etch.co/"><em>Etch</em></a><em> we care about the details and building inclusive apps for everyone.</em></p><p><em>Let’s see if we can help your team today </em><a href="/service/mailto:hey@etch.co"><em>hey@etch.co</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fbd0be17c04d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/etch-stories/ui-details-testing-the-contact-forms-of-top-digital-agencies-fbd0be17c04d">UI details: Testing the contact forms of Top Digital agencies</a> was originally published in <a href="https://medium.com/etch-stories">Etch</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TIL: Sass Debugging]]></title>
            <link>https://medium.com/@gavyn/til-sass-debugging-79a2f8753441?source=rss-801ec670a9ec------2</link>
            <guid isPermaLink="false">https://medium.com/p/79a2f8753441</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[sass]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Gavyn McKenzie]]></dc:creator>
            <pubDate>Wed, 12 Sep 2018 09:16:53 GMT</pubDate>
            <atom:updated>2018-09-12T09:16:53.296Z</atom:updated>
            <content:encoded><![CDATA[<p>Well I guess it runs on Javascript so why not?</p><p>You’ve probably used some javascript debugging like console.log or even the old classic alert() if you’ve been around long enough.</p><p>If you’ve ever had to delve into PHP, you probably used var_dump(), print_r(), or even die().</p><p>Well it turns out Sass has some debugging power too!</p><p>There’s 3 main directives, @error, @warn and @debug.</p><pre>@error: &quot;Variable: #{$foo} is invalid or missing.&quot;;<br>@warn: &quot;Color: #{$bar} is pretty awful, why not try #f66&quot;;<br>@debug: &quot;Current value of baz is: #{$baz}&quot;;</pre><p>The @error directive will cause a fatal Sass error and is probably best used for validating parameters in your mixins or functions.</p><p>The @warn directive will throw a warning that can be silenced by running sass with --quiet.</p><p>Finally, @debug is just for throwing out some debugging information to your console. Maybe check the value of a variable at runtime or something similar.</p><p><a href="https://www.sitepoint.com/using-sass-error-warn-and-debug-directives/">More reading at Sitepoint</a>.</p><p><em>At </em><a href="https://etch.co/"><em>Etch</em></a><em> we’re always learning so we can continue to build awesome software.</em></p><p><em>Let’s see if we can help your team today </em><a href="/service/mailto:hey@etch.co"><em>hey@etch.co</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=79a2f8753441" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TIL: Multiple CSS transforms in one statement]]></title>
            <link>https://medium.com/@gavyn/til-multiple-css-transforms-in-one-statement-d4299b3c0c86?source=rss-801ec670a9ec------2</link>
            <guid isPermaLink="false">https://medium.com/p/d4299b3c0c86</guid>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[web-design]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[sass]]></category>
            <dc:creator><![CDATA[Gavyn McKenzie]]></dc:creator>
            <pubDate>Tue, 04 Sep 2018 08:52:08 GMT</pubDate>
            <atom:updated>2018-09-04T08:52:08.968Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/transform">CSS Transforms</a> are awesome! They’re especially great for <a href="http://jankfree.org/">animations</a>. Sometimes your transforms need to get a little more complicated.</p><p>So you probably know about being able to transform multiple properties.</p><pre>.foo {<br>  transform: scale(2) translate(50%, 0);<br>}</pre><p>But did you know you can add transform properties multiple times?</p><pre>.foo {<br>  transform: <strong>translate</strong>(50%, 0) scale(2) <strong>translate</strong>(0, 50%);<br>}</pre><p>Each of the transforms will be applied in order. Which is quite important because…</p><h4>Bonus: Transform property orders matter.</h4><p>Transforms are calculated from right to left.</p><p>This:</p><pre>.foo {<br>  transform: scale(2) translate(50%, 0);<br>}</pre><p>Will produce a different result to this:</p><pre>.foo {<br>  transform: translate(50%, 0) scale(2);<br>}</pre><p>Because a transform is a matrix, not just a series of properties. That’s why is would be very difficult to have something like this:</p><pre>.foo {<br>  translate: 50%, 0;<br>  scale: 2;<br>}</pre><p>Which order should they be applied?!</p><p><a href="https://css-tricks.com/almanac/properties/t/transform/">More reading at CSS Tricks</a>.</p><p><em>At </em><a href="https://etch.co/"><em>Etch</em></a><em> we’re always learning so we can continue to build awesome software.</em></p><p><em>Let’s see if we can help your team today </em><a href="/service/mailto:hey@etch.co"><em>hey@etch.co</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d4299b3c0c86" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Roll your own flexible grid system]]></title>
            <link>https://medium.com/etch-stories/roll-your-own-flexible-grid-system-3ee4a70cf76c?source=rss-801ec670a9ec------2</link>
            <guid isPermaLink="false">https://medium.com/p/3ee4a70cf76c</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[sass]]></category>
            <category><![CDATA[front-end-development]]></category>
            <dc:creator><![CDATA[Gavyn McKenzie]]></dc:creator>
            <pubDate>Wed, 29 Aug 2018 11:17:36 GMT</pubDate>
            <atom:updated>2018-08-29T11:28:12.628Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m_1QxygJBWImX1QPX2EQ6w.png" /></figure><h4>DIY is cooler than off the shelf.</h4><p>Do you install <a href="https://getbootstrap.com/">Bootstrap</a> just for <a href="https://www.npmjs.com/package/bootstrap-grid-only">the grid</a>? Maybe you use <a href="https://www.creativebloq.com/features/5-top-grid-systems-for-web-designers">another grid system</a>? Why not have your own? Learn to make a flexible <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Flexible_Box_Layout/Basic_Concepts_of_Flexbox">flexbox</a> flex grid.</p><p>This tutorial assumes you know a bit about <a href="https://reactjs.org/">React</a> and <a href="https://sass-lang.com/">Sass</a>. If not, go <a href="https://reactjs.org/tutorial/tutorial.html">pick</a> <a href="https://sass-lang.com/guide">up</a> <a href="http://buildwithreact.com/tutorial">the</a> <a href="https://www.tutorialspoint.com/sass/index.htm">basics</a> <a href="https://medium.mybridge.co/learn-react-js-from-top-45-tutorials-for-the-past-year-v-2018-28b7f4d4b2c4">at</a> <a href="https://www.codecademy.com/learn/learn-sass">one</a> <a href="https://www.javascriptstuff.com/getting-started-tutorials/">of</a> <a href="https://scotch.io/tutorials/getting-started-with-sass">the</a> <a href="https://www.tutorialspoint.com/reactjs/index.htm">many</a> <a href="https://tutorialzine.com/2016/01/learn-sass-in-15-minutes">great</a> <a href="https://ihatetomatoes.net/react-tutorial-for-beginners/">tutorials</a>.</p><h3>Why?</h3><p>Using <a href="https://css-tricks.com/dont-use-grid-system-others/">other peoples grids</a> can be frustrating. They’re never quite right for what you want and then it’s difficult to get at the code to update them.</p><p>Rolling your own only takes about <strong>30 minutes</strong> and then it’s ready to use anywhere in your project!</p><p>We’re going to be using React and SCSS to create a flexible, flexbox based, grid with tons of <strong>power</strong>.</p><h3>Demo and Repo</h3><p>You probably just want to look at <a href="https://github.com/etchteam/flex-grid">this code</a> and fire up the demo right?</p><p>OK, moving on…</p><h3>FlexGrid</h3><p>Let’s start with the outer wrapper. We’ll need a container for our grid, which can also be used to force rows if we need to.</p><h4><a href="https://github.com/etchteam/flex-grid/blob/master/FlexGrid/Grid.js">The Javascript</a></h4><pre>import React from &#39;react&#39;;<br>import PropTypes from &#39;prop-types&#39;;</pre><pre>export default function FlexGrid({ children }) {<br>  return (<br>    &lt;div className=&quot;flex-grid&quot;&gt;<br>      {children}<br>    &lt;/div&gt;<br>  );<br>}</pre><p>Here’s a simple stateless component that we can use to start our grid component.</p><p>We’re going to try to expose as much of the raw <a href="https://www.w3.org/TR/css-flexbox-1/">flexbox API</a> as possible from this component. We’ll start with a list of parent properties from <a href="https://css-tricks.com/snippets/css/a-guide-to-flexbox/">this excellent article</a> by CSS Tricks.</p><ul><li><strong>flex-direction</strong> (row, row-reverse, column, column-reverse)</li><li><strong>align-items</strong> (stretch, flex-start, flex-end, center, baseline)</li><li><strong>justify-content</strong> (flex-start, flex-end, center, space-between, space-around)</li><li><strong>flex-wrap</strong> (wrap, nowrap)</li></ul><p>We need to turn these <strong>CSS props into React props</strong> so we can turn them into CSS classes so we can turn them back into CSS props (<em>Ahh, </em><a href="https://medium.com/javascript-scene/why-im-thankful-for-js-fatigue-i-know-you-re-sick-of-those-words-but-this-is-different-296fae0c888f"><em>the modern internet</em></a><em> is glorious…</em>).</p><p>We’ve got <strong>3 strings</strong>: direction, align, justify; and <strong>1 boolean</strong>: wrap.</p><p>We’ll use the <a href="https://www.npmjs.com/package/classnames">classnames module from npm</a> to generate custom classes for the strings and an on/off wrap class for the boolean. I’m using <a href="https://en.bem.info/">BEM</a> because I like the way it keeps things <strong>name-spaced and human readable</strong>, but feel free to pick your <a href="https://acss.io/">favourite</a> <a href="https://github.com/tachyons-css/tachyons">flavour</a> <a href="https://www.xfive.co/blog/itcss-scalable-maintainable-css-architecture/">of</a> <a href="http://oocss.org/">CSS</a> <a href="https://smacss.com/">organisation</a>.</p><pre>function Grid({ children, direction, align, justify, wrap, className, ...props }) {<br>  const cx = classNames({<br>    &#39;flex-grid&#39;: true,<br>    [`flex-grid--${direction}`]: direction !== &#39;&#39;,<br>    [`flex-grid--align-${align}`]: align !== &#39;&#39;,<br>    [`flex-grid--justify-${justify}`]: justify !== &#39;&#39;,<br>    &#39;flex-grid--wrap&#39;: wrap,<br>    [`${className}`]: className !== &#39;&#39;,<br>  });</pre><pre>return (<br>    &lt;div {...props} className={cx}&gt;<br>      {children}<br>    &lt;/div&gt;<br>  );<br>}</pre><p>I’ve tagged on a custom className prop just in case you need a little something extra, but <a href="https://philipwalton.com/articles/side-effects-in-css/">I wouldn’t recommend using this much</a>.</p><p>Finally we use the <a href="https://babeljs.io/docs/plugins/transform-object-rest-spread/">object rest spread</a> to pass through any other random props that might need adding to this component.</p><p>Each of these classes is essentially a direct map to a <strong>CSS flexbox property</strong>, so let’s dive into the CSS.</p><h4><a href="https://github.com/etchteam/flex-grid/blob/master/FlexGrid/_flex-grid.scss">The CSS</a></h4><p>We’ll start off with the base CSS to power the container.</p><pre>.flex-grid {<br>  display: flex;<br>  margin: (-$grid-gutter-width / 2);<br>}</pre><p>The <a href="https://www.smashingmagazine.com/2009/07/the-definitive-guide-to-using-negative-margins/">negative margin</a> is to offset the padding we’re going to add to our flex grid items. This will keep our grid edges lined up with everything else, but our cells nicely spaced apart, both vertically and horizontally.</p><p>Next up, we’ll start powering through the different optional classes. I’ll just show a snippet here, but you can grab the full set in the repo.</p><pre>.flex-grid {<br>  display: flex;<br>  margin: (-$grid-gutter-width / 2);</pre><pre>  &amp;--wrap {<br>    flex-wrap: wrap;<br>  }</pre><pre>  &amp;--direction {<br>    &amp;-row {<br>      flex-direction: row;</pre><pre>      &amp;-reverse {<br>        flex-direction: row-reverse;<br>      }<br>    }</pre><pre>    &amp;-column {<br>      flex-direction: column;</pre><pre>      &amp;-reverse {<br>        flex-direction: column-reverse;<br>      }<br>    }<br>  }<br>}</pre><h3>FlexGrid.Item</h3><p>We have a grid wrapper, now we need grid cells, or items.</p><h4><a href="https://github.com/etchteam/flex-grid/blob/master/FlexGrid/Item.js">The Javascript</a></h4><p>The FlexGrid item is virtually the same setup as the flex grid outer wrapper, but with a new set of props.</p><pre>function Item({ children, grow, shrink, align, flex, className, ...props }) {<br>  const cx = classNames({<br>    &#39;flex-grid__item&#39;: true,<br>    &#39;flex-grid__item--grow&#39;: grow,<br>    &#39;flex-grid__item--shrink&#39;: shrink,<br>    &#39;flex-grid__item--flex&#39;: flex,<br>    [`flex-grid__item--align-${align}`]: align !== &#39;&#39;,<br>    [`${className}`]: className !== &#39;&#39;,<br>  });</pre><pre>return (<br>    &lt;div {...props} className={cx}&gt;<br>      {children}<br>    &lt;/div&gt;<br>  );<br>}</pre><p>There’s one prop here that is new and not part of the flexbox API for flex children.</p><p>The ‘flex’ prop sets display: flex on this flex child. This is <strong>super useful</strong> when you want all the items to line up vertically with the same height. You might need to jiggle your child component a little here, but it will get you a long way. <strong>Don’t forget to set 100% width</strong>!</p><p>We’re going to want to have some control over the column widths in this component so we’ll add an extra set of props for: xs, sm, md and lg;</p><pre>function Item({ children, grow, shrink, align, xs, sm, md, lg, flex, className, ...props }) {<br>  const cx = classNames({<br>    &#39;flex-grid__item&#39;: true,<br>    &#39;flex-grid__item--grow&#39;: grow,<br>    &#39;flex-grid__item--shrink&#39;: shrink,<br>    &#39;flex-grid__item--flex&#39;: flex,<br>    [`flex-grid__item--align-${align}`]: align !== &#39;&#39;,<br>    [`flex-grid__item--xs-${xs}`]: xs,<br>    [`flex-grid__item--sm-${sm}`]: sm,<br>    [`flex-grid__item--md-${md}`]: md,<br>    [`flex-grid__item--lg-${lg}`]: lg,<br>    [`${className}`]: className !== &#39;&#39;,<br>  });</pre><pre>return (<br>    &lt;div {...props} className={cx}&gt;<br>      {children}<br>    &lt;/div&gt;<br>  );<br>}</pre><p>For maximum convenience, we’ll attach this to the main export from FlexGrid. You can keep it in the same file or a different file depending on your organisational preferences.</p><pre>Grid.Item = Item;</pre><pre>export default Grid;</pre><h4><a href="https://github.com/etchteam/flex-grid/blob/master/FlexGrid/_flex-grid.scss">The CSS</a></h4><p>Now we have the markup sorted and generating classes, we can add some CSS. Again, most of the options correspond to a <strong>single flexbox property</strong>.</p><pre>  &amp;__item {<br>    flex: 0 0 auto;<br>    min-width: 0; // Fixes a bug not letting the child shrink the content<br>    padding: $grid-gutter-width / 2;</pre><pre>    &amp;--grow {<br>      flex-grow: 1;<br>    }</pre><pre>    &amp;--shrink {<br>      flex-shrink: 1;<br>    }</pre><pre>    &amp;--flex {<br>      display: flex;<br>    }</pre><pre>    &amp;--align {<br>      &amp;-flex-start {<br>        align-self: flex-start;<br>      }</pre><pre>      &amp;-flex-end {<br>        align-self: flex-end;<br>      }</pre><pre>      &amp;-center {<br>        align-self: center;<br>      }</pre><pre>      &amp;-baseline {<br>        align-self: baseline;<br>      }</pre><pre>      &amp;-stretch {<br>        align-self: stretch;<br>      }<br>    }<br>  }</pre><p>There’s a few notable base styles here. We explicitly set all the basic flex properties with the shorthand flex: 0 0 auto;</p><p>This is short for:</p><pre>flex-grow: 0;<br>flex-shrink: 0;<br>flex-basis: auto;</pre><p>We also set min-width: 0; as there is a <a href="https://css-tricks.com/flexbox-truncated-text/">bug</a> with flex shrink which prevents it from squishing it’s inner content unless you specifically tell it that it can be zero width.</p><p>Finally, we set a nice gutter as mentioned up in the FlexGrid wrapper component above.</p><p>In order to create the columns, we’re going to use the breakpoints <a href="https://www.sitepoint.com/using-sass-maps/">Sass map</a> to generate a bunch of column classes for us.</p><pre>$bp: (<br>  xs: 0,<br>  sm: 480px,<br>  md: 768px,<br>  lg: 1024px<br>) !default;</pre><p>I’ve set these up with some <a href="https://medium.com/@julienetienne/pixels-are-dead-faa87cd8c8b9">dirty pixels</a>, but <a href="https://zellwk.com/blog/media-query-units/">you’d probably be better off using ‘em’s</a>.</p><p>Using a <strong>sass map</strong> lets us loop through the key/value pairs and create some awesome responsive grid classes. This example uses a 12 column grid, but you could use as many columns as makes you happy.</p><pre><a href="http://twitter.com/each">@each</a> $bp-key, $bp-value in $bp {<br>  <a href="http://twitter.com/media">@media</a> screen and (min-width: $bp-value) {<br>    <a href="http://twitter.com/for">@for</a> $i from 1 through 12 {<br>      &amp;--#{$bp-key}-#{$i} {<br>        width: percentage($i / 12);<br>      }<br>    }<br>  }<br>}</pre><p>The classes are generated in such a way that passing md={6}would make the grid item span 6 columns out of 12 (50%) at the md breakpoint (&gt;768px).</p><h3>Let me use it</h3><p>And that’s it! You should now have a customisable, super flexible, super powerful grid system that you can use in your app.</p><pre>&lt;FlexGrid wrap&gt;<br>  &lt;FlexGrid.Item xs={12} md={6} lg={3}&gt;<br>    Item<br>  &lt;/FlexGrid.Item&gt;<br>  &lt;FlexGrid.Item xs={12} md={6} lg={3}&gt;<br>    Item<br>  &lt;/FlexGrid.Item&gt;<br>  &lt;FlexGrid.Item xs={12} md={6} lg={3}&gt;<br>    Item<br>  &lt;/FlexGrid.Item&gt;<br>  &lt;FlexGrid.Item xs={12} md={6} lg={3}&gt;<br>    Item<br>  &lt;/FlexGrid.Item&gt;<br>&lt;/FlexGrid&gt;</pre><h3>TL;DR</h3><p>Use <a href="https://github.com/etchteam/flex-grid">this repo</a> as a starter to make your own flexbox grid system, it’s easy, <strong>honest</strong>!</p><p><em>At </em><a href="https://etch.co/"><em>Etch</em></a><em> we build awesome web software because we care about every bit of your app.</em></p><p><em>Let’s see if we can help your team today </em><a href="/service/mailto:hey@etch.co"><em>hey@etch.co</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3ee4a70cf76c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/etch-stories/roll-your-own-flexible-grid-system-3ee4a70cf76c">Roll your own flexible grid system</a> was originally published in <a href="https://medium.com/etch-stories">Etch</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TIL: Object rest spread rather than Object.assign]]></title>
            <link>https://medium.com/@gavyn/til-object-rest-spread-rather-than-object-assign-bc3e71df9dc0?source=rss-801ec670a9ec------2</link>
            <guid isPermaLink="false">https://medium.com/p/bc3e71df9dc0</guid>
            <category><![CDATA[es6]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[front-end-development]]></category>
            <dc:creator><![CDATA[Gavyn McKenzie]]></dc:creator>
            <pubDate>Tue, 28 Aug 2018 14:40:40 GMT</pubDate>
            <atom:updated>2018-08-28T14:40:40.700Z</atom:updated>
            <content:encoded><![CDATA[<p>Creating new objects just got a whole lot neater.</p><p>So you already try to create new objects rather than mutating current ones because you like your javascript to be <a href="https://medium.com/javascript-scene/master-the-javascript-interview-what-is-functional-programming-7f218c68b3a0">functional</a>.</p><pre>const foo = { id: 1, name: &#39;Etch&#39; };<br>const bar = Object.assign({}, foo);</pre><pre>// bar = { id: 1, name: &#39;Etch&#39; };</pre><p>Well the <a href="https://github.com/tc39/proposal-object-rest-spread">object rest spread</a> syntax lets you do this in a little bit of a nicer way.</p><pre>const bar = { ...foo };</pre><p>This one is still in the proposal stages so you’ll need to use <a href="https://babeljs.io/docs/plugins/transform-object-rest-spread/">babel</a> or <a href="https://github.com/facebookarchive/jstransform">something</a> <a href="https://github.com/Microsoft/TypeScript">similar</a> to make it work.</p><h3>Arrays</h3><p>Hey this rest spread thing also works with arrays!</p><pre>const foo = [1, 2, 3, 4];<br>const bar = [ ...foo ];</pre><pre>// bar = [1, 2, 3, 4];</pre><p>You can use this where you would have used Array.push or Array.concat</p><pre>const foo = [1, 2];<br>const bar = [3, 4];<br>const baz = [...foo, ...bar];</pre><pre>// baz = [1, 2, 3, 4];</pre><h3>Merging objects</h3><p>You can add or overwrite elements in the object just like you would with Object.assign.</p><pre>const foo = { id: 1, name: &#39;Etch&#39; };</pre><pre>const bar = { <br>  ...foo, <br>  name: &#39;Etch Software&#39;, <br>  services: &#39;Software development&#39;, <br>};</pre><pre>// bar = { <br>//   id: 1, <br>//   name: &#39;Etch Software&#39;, <br>//   services: &#39;Software development&#39;, <br>// };</pre><h3>Object destructuring</h3><p>You can combine the rest spread operator with object destructuring to pluck variables you want out of an object and do something with the rest of them.</p><pre>// A button component that accepts children <br>// and passes the rest of the props through.</pre><pre>function UselessButton({ children, ...rest }) {<br>  return (<br>    &lt;button {...rest}&gt;<br>      {children}<br>    &lt;/button&gt;<br>  );<br>}</pre><p><a href="https://developers.google.com/web/updates/2017/06/object-rest-spread">Further reading at Google Developers.</a></p><p><em>At </em><a href="https://etch.co/"><em>Etch</em></a><em> we’re always learning so we can continue to build awesome software.</em></p><p><em>Let’s see if we can help your team today </em><a href="/service/mailto:hey@etch.co"><em>hey@etch.co</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bc3e71df9dc0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TIL: How to insert values in between every item in an array]]></title>
            <link>https://medium.com/@gavyn/til-how-to-insert-values-in-between-every-item-in-an-array-6328bc73f605?source=rss-801ec670a9ec------2</link>
            <guid isPermaLink="false">https://medium.com/p/6328bc73f605</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Gavyn McKenzie]]></dc:creator>
            <pubDate>Mon, 20 Aug 2018 10:57:22 GMT</pubDate>
            <atom:updated>2018-08-20T10:57:22.988Z</atom:updated>
            <content:encoded><![CDATA[<p>In React, you can only return one JSX element (<em>Edit: </em><a href="https://pawelgrzybek.com/return-multiple-elements-from-a-component-with-react-16/"><em>Not any more!</em></a>), so inserting spacers between items is awkward.</p><p>I didn’t want to loop through the array and update it so it was <a href="https://lodash.com/docs/4.17.5">lodash</a> to the rescue.</p><pre>_.flatMap([1,2,3,4], (value, index, array) =&gt;<br>     array.length -1 !== index // check for the last item<br>     ? [value, &quot;s&quot;]<br>     : value<br>);</pre><p>Produces:</p><pre>[1, &quot;s&quot;, 2, &quot;s&quot;, 3, &quot;s&quot;, 4]</pre><p>Which is really neat, concise and <a href="https://tylermcginnis.com/imperative-vs-declarative-programming/">declarative</a>!</p><p><em>At </em><a href="https://etch.co/"><em>Etch</em></a><em> we’re always learning so we can continue to build awesome software.</em></p><p><em>Let’s see if we can help your team today </em><a href="/service/mailto:hey@etch.co"><em>hey@etch.co</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6328bc73f605" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TIL: Autofocus inputs are an accessibility problem]]></title>
            <link>https://medium.com/@gavyn/til-autofocus-inputs-are-an-accessibility-problem-32ced60c3109?source=rss-801ec670a9ec------2</link>
            <guid isPermaLink="false">https://medium.com/p/32ced60c3109</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[html]]></category>
            <category><![CDATA[accessibility]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Gavyn McKenzie]]></dc:creator>
            <pubDate>Tue, 14 Aug 2018 09:34:45 GMT</pubDate>
            <atom:updated>2018-08-14T09:34:45.736Z</atom:updated>
            <content:encoded><![CDATA[<p>Don’t dump people in without context.</p><p>We love our linters at <a href="http://etch.co/">Etch</a>, they keep us on track with the latest, up to date, standards automatically.</p><p>The other day I was adding autofocus on an input in React:</p><pre>&lt;input type=&quot;text&quot; autoFocus /&gt;</pre><p>I got flagged by <a href="https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-autofocus.md">jsx-a11y</a>.</p><p>If you haven’t heard of it, <a href="https://github.com/evcohen/eslint-plugin-jsx-a11y">jsx-a11y</a> is an <a href="https://eslint.org/">eslint</a> plugin that lints your <a href="https://reactjs.org/">React</a> code for accessibility problems, helping to catch them before you get to production.</p><p>Autofocus can dump screenreader users into your form with zero context, leaving them lost and confused on your page.</p><p>Autofocus can also confuse regular users, especially on mobile. So keep it simple, let people click in to your inputs when they are ready.</p><pre>&lt;input type=&quot;text&quot; /&gt;</pre><p><a href="http://www.brucelawson.co.uk/2009/the-accessibility-of-html-5-autofocus/">More information on Bruce Lawson’s blog</a>.</p><p><em>At </em><a href="https://etch.co/"><em>Etch</em></a><em> we’re always learning so we can continue to build awesome software.</em></p><p><em>Let’s see if we can help your team today </em><a href="/service/mailto:hey@etch.co"><em>hey@etch.co</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=32ced60c3109" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>