<?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 Mayowa Daniel on Medium]]></title>
        <description><![CDATA[Stories by Mayowa Daniel on Medium]]></description>
        <link>https://medium.com/@mayowadaniel?source=rss-2fca329a872d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*MDIJyk0mhS8ywcdydrZffQ@2x.jpeg</url>
            <title>Stories by Mayowa Daniel on Medium</title>
            <link>https://medium.com/@mayowadaniel?source=rss-2fca329a872d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 14:31:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mayowadaniel/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 I learned TypeScript]]></title>
            <link>https://mayowadaniel.medium.com/how-i-learned-typescript-6949c6ff951f?source=rss-2fca329a872d------2</link>
            <guid isPermaLink="false">https://medium.com/p/6949c6ff951f</guid>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[how-to]]></category>
            <category><![CDATA[typescript-with-react]]></category>
            <dc:creator><![CDATA[Mayowa Daniel]]></dc:creator>
            <pubDate>Thu, 24 Mar 2022 13:15:47 GMT</pubDate>
            <atom:updated>2022-03-24T13:16:15.038Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*moJeTvW97yShLB7URRj5Kg.png" /><figcaption>TypeScript icon and stylized text</figcaption></figure><p>I wrote <a href="http://olog.me/">olog.me</a>’s website in regular react and javascript and was rewriting pretty much the whole thing for the react native app.</p><p>I found myself wondering what shape a lot of the data I was passing as props had and the need for TypeScript in my life became clear.</p><p><a href="https://github.com/typescript-cheatsheets/react">This</a> cheatsheet was gold</p><p>I also used what I was learning to complete a lot of <a href="https://www.educative.io/courses/grokking-the-coding-interview/7D5NNZWQ8Wr">educative.io content</a>. The questions are in JS but I solve them in my local editor with Typescript.</p><p>Between that and my app, I came away feeling great about it.</p><p>I understood the most arcane typescript syntax, generics from <a href="https://www.typescriptlang.org/docs/handbook/intro.html">the official handbook</a>. I also learned about their “utility types” from there.</p><p>Having a legit pain was my trigger.</p><p>I used to be on about how jsDoc was enough, yada yada</p><p>Now I see</p><p>TypeScript FTW</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6949c6ff951f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cache Quirks With Expo]]></title>
            <link>https://mayowadaniel.medium.com/when-youre-using-expo-to-make-a-react-native-app-there-are-a-bunch-of-quirks-to-look-out-for-81a7894d2af?source=rss-2fca329a872d------2</link>
            <guid isPermaLink="false">https://medium.com/p/81a7894d2af</guid>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[expo]]></category>
            <dc:creator><![CDATA[Mayowa Daniel]]></dc:creator>
            <pubDate>Thu, 08 Apr 2021 12:15:37 GMT</pubDate>
            <atom:updated>2021-04-08T12:17:35.811Z</atom:updated>
            <content:encoded><![CDATA[<p>When you&#39;re using expo to make a react native app, there are a bunch of quirks to look out for.</p><p>Chief, for me of late, is all the quirks around clearing the cache. <br>It works differently for ios and android.</p><p>Android let’s you delete the data an app has without uninstalling it. <br>iOS wants you to reinstall the app.</p><p>There was a bug with gestures, that wasn&#39;t really a bug and I didn&#39;t realise it till I ran my project on a device I hadn&#39;t used in a whillleeee.</p><p>It was on iOS and reinstalling expo cleared it.</p><p>On android, clearing the data would&#39;ve been enough without a clean install.</p><p>This should&#39;ve been a medium article but twitter felt easier.</p><p>I&#39;ll copy paste it on medium in a bit</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=81a7894d2af" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What to do when you need remote debugging enabled for your expo app to work and you need your expo…]]></title>
            <link>https://mayowadaniel.medium.com/what-to-do-when-you-need-remote-debugging-enabled-for-your-expo-app-to-work-and-you-need-your-expo-81907812351d?source=rss-2fca329a872d------2</link>
            <guid isPermaLink="false">https://medium.com/p/81907812351d</guid>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[expo]]></category>
            <category><![CDATA[redux]]></category>
            <dc:creator><![CDATA[Mayowa Daniel]]></dc:creator>
            <pubDate>Tue, 02 Mar 2021 12:32:18 GMT</pubDate>
            <atom:updated>2021-03-02T12:32:18.518Z</atom:updated>
            <content:encoded><![CDATA[<h3>What to do when you need remote debugging enabled for your expo app to work and you need your expo app to work to enable remote debugging</h3><p>The problem:</p><p>I found that adding redux to my expo app would make my app error out if I didn&#39;t choose “Debug Remote JS” in Expo’s developer menu (the one you open by shaking your device). It would say something like “main is not registered” when it’s actually been registered. The issue is that the developer menu cannot be opened when the app is in this crashed state and the developer menu appears to be the only way to enable remote debugging for JS.</p><p>The solution was to register a dummy, redux-free component in my index.js file (scaffolded by the expo-cli) in place of my App.js file. (that initialized a redux store).</p><p>So you have an index.js file that looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TOjBDbUD1VEIvinwmmTNHQ.png" /></figure><p>Here’s the content of the FakeApp file</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9E1FRMOrwvd58X0zEuvLFA.png" /></figure><p>Once that loads, I shake my phone and choose “Debug Remote JS” and carry on.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=81907812351d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Making Redux Devtools work in an Expo-managed React Native App]]></title>
            <link>https://mayowadaniel.medium.com/making-redux-devtools-work-in-an-expo-managed-react-native-app-2a20597f7d6f?source=rss-2fca329a872d------2</link>
            <guid isPermaLink="false">https://medium.com/p/2a20597f7d6f</guid>
            <category><![CDATA[redux]]></category>
            <category><![CDATA[expo]]></category>
            <category><![CDATA[redux-devtools]]></category>
            <category><![CDATA[react-native]]></category>
            <dc:creator><![CDATA[Mayowa Daniel]]></dc:creator>
            <pubDate>Fri, 05 Jun 2020 05:04:32 GMT</pubDate>
            <atom:updated>2020-06-05T05:05:17.304Z</atom:updated>
            <content:encoded><![CDATA[<p>Making Redux Devtools work in an Expo-managed React Native App</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/0*8BX0ZswGJAMSSZkM.png" /><figcaption>expo imagery</figcaption></figure><p>It was a wild ride.</p><p>First thing to note is that you don’t need to install any packages in your dependencies like</p><p>react-devtools,</p><p>remote-redux-devtools or</p><p>remotedev-rn-debugger</p><p>You only need one installation: the react-native-debugger.</p><p>You do NOT install it as an npm package.</p><p>The instruction here: <a href="https://github.com/jhen0409/react-native-debugger/blob/master/docs/getting-started.md">https://github.com/jhen0409/react-native-debugger/blob/master/docs/getting-started.md</a> says you should download the latest. This led me astray.</p><p>What I wanted to install was the “ last release of v0.10 (0.10.7)” as outlined on this page: <a href="https://github.com/jhen0409/react-native-debugger">https://github.com/jhen0409/react-native-debugger</a></p><p>Here’s the command to make that happen</p><p>brew update &amp;&amp; brew cask install <a href="https://raw.githubusercontent.com/caskroom/homebrew-cask/b6ac3795c1df9f97242481c0817b1165e3e6306a/Casks/react-native-debugger.rb">https://raw.githubusercontent.com/caskroom/homebrew-cask/b6ac3795c1df9f97242481c0817b1165e3e6306a/Casks/react-native-debugger.rb</a></p><p>I later found out I needed to follow these installation instructions instead because of the version of react native my expo installer added to my project.</p><p>It’s important you don’t change the versions of react, react native or expo that come with your expo initialization of your project. I did that and had to backtrack after I ended up with a 100% notice of the JavaScript bundle download on my device but a white screen with nothing on it.</p><p>I kept my store configuration the same as my web app so it looked like this:</p><pre>const<em> composeEnhancers </em>=<em> window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ </em>||<em> compose</em>;</pre><pre>const<em> store </em>=<em> createStore(rootReducer, composeEnhancers</em>(<em>applyMiddleware</em>(<em>thunkMiddleware</em>)));</pre><p>I then followed the instructions on the getting started page (<a href="https://github.com/jhen0409/react-native-debugger/blob/master/docs/getting-started.md">https://github.com/jhen0409/react-native-debugger/blob/master/docs/getting-started.md</a> except the “install the latest version part”)and voila, redux and react devtools were a go.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2a20597f7d6f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Topping a Typing Speed Leaderboard with Puppeteer]]></title>
            <link>https://mayowadaniel.medium.com/topping-a-typing-speed-leaderboard-with-puppeteer-cd47809310aa?source=rss-2fca329a872d------2</link>
            <guid isPermaLink="false">https://medium.com/p/cd47809310aa</guid>
            <category><![CDATA[scraping]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[puppeteer]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Mayowa Daniel]]></dc:creator>
            <pubDate>Mon, 30 Sep 2019 20:06:30 GMT</pubDate>
            <atom:updated>2019-10-13T07:17:42.223Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UTir_EjYGSviyBsIgq0lYA.png" /></figure><p>In early September, a friend asked how I learned to type without looking at the keyboard.</p><p>I showed him keybr.com; it’s a solid web app that makes getting good at this a breeze.</p><p>I spent 45 minutes, on average, every day in February of 2016 using their tool.</p><p>I haven’t had to look at any alphabet while typing ever since.</p><p>After showing him around the site, we started checking out high scores.</p><p>We were wowed by scores as high as 149 words-per-minute before it hit me:</p><p>Imagine beating the fastest times with code?</p><p>Puppeteer immediately came to mind.</p><p>You <em>know</em> what happens next…</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FH3qv83zZPIFvDEdN0q%2Ftwitter%2Fiframe&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FH3qv83zZPIFvDEdN0q%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FH3qv83zZPIFvDEdN0q%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="271" frameborder="0" scrolling="no"><a href="https://medium.com/media/2e086509dee4d3143484ff67d48eb346/href">https://medium.com/media/2e086509dee4d3143484ff67d48eb346/href</a></iframe><p>No hands 😎</p><p>The code lives <a href="https://gist.github.com/danieloi/c0d185887e0599302a7ca578914089fa">here</a></p><p>Here’s a video that explains the whole thing:</p><iframe src="https://cdn.embedly.com/widgets/media.html?url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D1GZEuxMhq_o&amp;src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F1GZEuxMhq_o&amp;type=text%2Fhtml&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/646746f324f5c65149511f7b41ec0317/href">https://medium.com/media/646746f324f5c65149511f7b41ec0317/href</a></iframe><p>By my estimates, I can run marathons around the fastest speeds.</p><p>If I limit my loops to execute in speeds my screen can display (60 keystrokes per second for a 60 Hz screen or 1 keystroke every 16ms), assuming an average of 6 characters per word, I can crank out a whopping 10 words per second and 600 words per minute (more than 2 times the world record). Remember I’m limiting myself to the refresh rate of my screen. Any moderately powered smartphone can go several times faster.</p><p>The trickiest part of the code was the async loop. I read an excellent medium article that made implementing this part trivial. The explanation is <a href="https://codeburst.io/javascript-async-await-with-foreach-b6ba62bbf404">here</a>.</p><p>All that being said, this exercise got me thinking…</p><p>Back in JS2 (8th grade), I was graded on my typing speed in one of my classes.</p><p>In my freshman year of college, I used Wolfram Alpha (a lot) to see the steps for solving complex Math problems.</p><p>Problems I had to learn to solve without this tool to do well in my Calculus class.</p><p>Problems with solutions I would need to learn again if they were to crop up as quickly as a year later.</p><p>Problems I’m yet to come across 6 years later.</p><p>Before computers, most tools boosted our physical output.</p><p>Computers boost our intellectual output.</p><p>My view is that modern school systems should demonstrate that current tools are factored into what it is they teach and how students are graded.</p><p>No one should let specs like their typing speed or Calculus test scores be the metric for gauging theirs or anyone else’s intellectual output.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cd47809310aa" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>