<?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 Sam Strong on Medium]]></title>
        <description><![CDATA[Stories by Sam Strong on Medium]]></description>
        <link>https://medium.com/@samstrong?source=rss-95fb023a0d02------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*M-tIghWuQrzjP9hf.png</url>
            <title>Stories by Sam Strong on Medium</title>
            <link>https://medium.com/@samstrong?source=rss-95fb023a0d02------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 19:35:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@samstrong/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[Random Capitalisation in iOS 11]]></title>
            <link>https://medium.com/@samstrong/random-capitalisation-in-ios-11-7bb73415f9e9?source=rss-95fb023a0d02------2</link>
            <guid isPermaLink="false">https://medium.com/p/7bb73415f9e9</guid>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[iphone]]></category>
            <category><![CDATA[autocorrect]]></category>
            <dc:creator><![CDATA[Sam Strong]]></dc:creator>
            <pubDate>Sun, 11 Mar 2018 21:48:08 GMT</pubDate>
            <atom:updated>2018-03-11T21:48:08.926Z</atom:updated>
            <content:encoded><![CDATA[<p>Since upgrading my phone to iOS 11, I’ve been noticing some fairly irritating behaviour in the autocorrect. Random words would be capitalised for no apparent reason. This was especially noticeable when I typed the word “climbing”. As someone who goes bouldering a few times a week… well, you get the idea.</p><p>I finally got annoyed enough to spend some time finding out what was going on and it comes down to a change in the way iOS uses your contacts. Autocorrect uses the name fields of your contacts more aggressively now. Because I had a contact with “The Climbing Works” in the first-name field, iOS was merrily treating “Climbing” as someone’s name and capitalising it. Every. Damned. Time.</p><p>This can be prevented by putting the name of the business in the “Company” field instead. Enjoy and good luck if you’ve got a friend whose name is also a common word…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7bb73415f9e9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Resetting a 2011 iMac Running High Sierra]]></title>
            <link>https://medium.com/@samstrong/resetting-a-2011-imac-running-high-sierra-6b48da92d1f?source=rss-95fb023a0d02------2</link>
            <guid isPermaLink="false">https://medium.com/p/6b48da92d1f</guid>
            <category><![CDATA[macos]]></category>
            <category><![CDATA[lol]]></category>
            <category><![CDATA[apple]]></category>
            <category><![CDATA[high-sierra]]></category>
            <category><![CDATA[failure]]></category>
            <dc:creator><![CDATA[Sam Strong]]></dc:creator>
            <pubDate>Fri, 20 Oct 2017 17:22:19 GMT</pubDate>
            <atom:updated>2017-10-20T17:22:19.293Z</atom:updated>
            <content:encoded><![CDATA[<p>My thoughts prior to starting: this will be a quick job. Macs tend to just work.</p><ol><li>Backup all the things (twice, maybe three times)!</li><li>Restart the iMac holding down cmd + R.</li><li>Once inside the system utilities menu, reformat your hard drive using APFS (your only choice).</li><li>Select to install a new version of High Sierra (this will take a while).</li><li>Leave the computer to do its thing.</li><li>Come back to computer to discover a grey screen with a slightly darker grey stop sign.</li><li>Look up what this means.</li><li>Discover that it can mean <em>so many things</em>.</li><li>Restart with cmd + R to get back into the system utilities.</li><li>Raise eyebrows when you see the old “Internet Recovery” logo.</li><li>Discover that your hard drive no longer has a valid partition.</li><li>Raise eyebrows further.</li><li>Try installing the OS again.</li><li>See that it’s now trying to install Lion.</li><li>Realise that something has gone very wrong and the reason your hard drive has an invalid partition is probably because the Lion era disk utility can’t read APFS file systems.</li><li>Install Lion.</li><li>Go to the App Store and try installing High Sierra.</li><li>Get message that says High Sierra requires macOS 10.8 in order to install.</li><li>Search for what version 10.8 actually is (it’s Mountain Lion).</li><li>Search your purchase history for Mountain Lion.</li><li>Install Mountain Lion.</li><li>Install High Sierra.</li><li>Install all of the other things that you actually need.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6b48da92d1f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[React Router & componentDidMount]]></title>
            <link>https://medium.com/@samstrong/react-router-componentdidmount-388ddf4ac86b?source=rss-95fb023a0d02------2</link>
            <guid isPermaLink="false">https://medium.com/p/388ddf4ac86b</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[react-router]]></category>
            <dc:creator><![CDATA[Sam Strong]]></dc:creator>
            <pubDate>Wed, 18 Oct 2017 20:33:03 GMT</pubDate>
            <atom:updated>2017-10-18T20:33:03.586Z</atom:updated>
            <content:encoded><![CDATA[<p>This one is short.</p><p>So I added React Router to my app and discovered that whenever I switched routes the components were being recreated (both constructor and componentDidMount being called). I then spent a bit of time trying to find out if this was intended behaviour since I was using componentDidMount for an XHR request and other SPA’s I’d worked on (using other tech) didn’t reload components when routing. The internet being the lovely contradictory mess that it is refused to provide me with an answer. Bugs, HoC’s, “/” being magical. All those were discussed.</p><p>In the end I asked on Reactiflux and got an answer from one of the mods. This is expected behaviour.</p><p>So, if you find yourself wondering about this, here it is: components being recreated every time you route somewhere is how React Router works.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=388ddf4ac86b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Super Basic Starter Kit for React & Webpack]]></title>
            <link>https://medium.com/@samstrong/super-basic-starter-kit-for-react-webpack-6b75333aefac?source=rss-95fb023a0d02------2</link>
            <guid isPermaLink="false">https://medium.com/p/6b75333aefac</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[webpack]]></category>
            <dc:creator><![CDATA[Sam Strong]]></dc:creator>
            <pubDate>Wed, 16 Aug 2017 20:52:20 GMT</pubDate>
            <atom:updated>2017-08-16T20:52:20.103Z</atom:updated>
            <content:encoded><![CDATA[<p>There are a lot of repositories and tutorials out there for “getting started” with React and Webpack. A lot of them still require a serious learning curve or include a ton of other stuff that you may not need.</p><p>What if all you want is to skip the set up and start writing some React components? What if you just want to prototype a front end without committing to any particular server side stack?</p><p>I’ve put together <a href="https://github.com/RapidOwl/super-basic-react-and-webpack">Super Basic Webpack &amp; React</a>. It does pretty much what it says on the label. You get Webpack, Webpack Dev Server, Babel and a few plugins that are needed to get you writing your first React components. I’ve also included two very simple examples of class-based and function-based components.</p><p>Clone the repo, follow the readme, <a href="https://facebook.github.io/react/docs/hello-world.html">hit up the official React docs</a> and have fun.</p><p>🔥 😺 🔥</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6b75333aefac" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[React, Array map() & Map forEach()]]></title>
            <link>https://medium.com/@samstrong/react-array-map-map-foreach-bd886ce1d7d6?source=rss-95fb023a0d02------2</link>
            <guid isPermaLink="false">https://medium.com/p/bd886ce1d7d6</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[foreach]]></category>
            <category><![CDATA[maps]]></category>
            <category><![CDATA[arrays]]></category>
            <dc:creator><![CDATA[Sam Strong]]></dc:creator>
            <pubDate>Tue, 01 Aug 2017 20:12:23 GMT</pubDate>
            <atom:updated>2017-08-01T20:12:23.044Z</atom:updated>
            <content:encoded><![CDATA[<p>I love playing with new codestuff and often jump in with both feet, learning by example. When I do this, it’s easy to end up missing one little thing and spending a chunk of time working out what went wrong.</p><p>In this case I was teaching myself React and making use of a Map object.</p><p>I was so used to using the Array object’s map() function for turning data into lists of components that I tried to use the Map object’s forEach() method to do the same job.</p><p>Here’s my code using map()…</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/21480515d13a83a4efcfd855c82bc234/href">https://medium.com/media/21480515d13a83a4efcfd855c82bc234/href</a></iframe><p>Here’s my code using forEach()…</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/79a0d2668a09bf01173d5c8efe111740/href">https://medium.com/media/79a0d2668a09bf01173d5c8efe111740/href</a></iframe><p>They look similar, right? They transpile just fine. No errors in the Chrome dev console. No hints as to what was wrong. But my DayPlan components were not appearing. I spent a while searching for answers (on account of Google not really knowing the difference between an Array map function and a Map object).</p><p>It didn’t work because <strong>forEach() doesn’t return anything, whereas map() does</strong>.</p><p>So what’s the solution?</p><p>Use forEach on your map to build an array of objects that you can then render.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a606b2a53fe32f7f5fcfd5b2e966b883/href">https://medium.com/media/a606b2a53fe32f7f5fcfd5b2e966b883/href</a></iframe><p>So there we go. Hopefully this will save someone else a bit of time!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bd886ce1d7d6" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>