<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Will Newmarch</title>
    <description>The latest articles on DEV Community by Will Newmarch (@mrwillington).</description>
    <link>https://dev.to/mrwillington</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F586116%2Ff44f9cbd-eaf3-4c33-a6c7-81dad935646a.jpeg</url>
      <title>DEV Community: Will Newmarch</title>
      <link>https://dev.to/mrwillington</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mrwillington"/>
    <language>en</language>
    <item>
      <title>Patterns in Usage Equal Happy Users</title>
      <dc:creator>Will Newmarch</dc:creator>
      <pubDate>Tue, 13 Apr 2021 16:00:30 +0000</pubDate>
      <link>https://dev.to/mrwillington/patterns-in-usage-equal-happy-users-3db1</link>
      <guid>https://dev.to/mrwillington/patterns-in-usage-equal-happy-users-3db1</guid>
      <description>&lt;p&gt;Throughout my career I've built various web-apps. These include short life projects (e.g. online brand campaigns) and long life projects (e.g. websites, various SAAS products etc.). Through it all I've noticed one thing...&lt;/p&gt;

&lt;p&gt;A happy user is a regular user, and a regular user often exhibits patterns in their usage of a product.&lt;/p&gt;

&lt;p&gt;If you can spot patterns in your users' usage then you can often spot your happy users! &lt;/p&gt;

&lt;p&gt;Now "why would I want to know which of my users is happy with my product?" I hear you ask!&lt;/p&gt;

&lt;p&gt;Well, imagine this, you have a happy user exhibiting a pattern, but suddenly the pattern stops, the user disappears and you're one user down on your user base.&lt;/p&gt;

&lt;p&gt;What if you could, spot the patterns, and when they stop? Then you could encourage the user to continue back into their pattern.&lt;/p&gt;

&lt;p&gt;But why sit trawling through usage data when you can get AI to spot the patterns for you!&lt;/p&gt;

&lt;p&gt;I've built a little service to help people do just that...&lt;/p&gt;

&lt;p&gt;&lt;a href="https://binarystripes.io"&gt;https://binarystripes.io&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;(...oh, and it's serverless!)&lt;/p&gt;

&lt;p&gt;Let's consider an example!&lt;/p&gt;

&lt;h2&gt;
  
  
  The Company
&lt;/h2&gt;

&lt;p&gt;A coffee chain is interested in seeing whether there are patterns in their customers purchasing habits so that they can autonomously trigger incentives to encourage them to carry on as a regular customer.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Customer
&lt;/h2&gt;

&lt;p&gt;Their first customer being analysed is Charlie...&lt;/p&gt;

&lt;p&gt;We can represent Charlie’s daily coffee buying habits in binary, one being a day they bought a coffee, zero being a day they did not.&lt;/p&gt;

&lt;p&gt;Here's the last 4 weeks of data:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;1,0,1,0,0,0,0,1,0,1,0,0,0,0,1,0,1,0,0,0,0,1,0,0,0,0,0,0&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The Analysis
&lt;/h2&gt;

&lt;p&gt;We want to discover if Charlie has a weekly habit of coffee buying...&lt;/p&gt;

&lt;p&gt;Charlie buys a coffee on a Monday and a Wednesday every week as we can see from the binary.&lt;/p&gt;

&lt;p&gt;We can discover this by asking the algorithm to calculate patterns with intervals of 7.&lt;/p&gt;

&lt;p&gt;We send Charlie’s data up to the API with the instructions to interval at 7...&lt;/p&gt;

&lt;p&gt;The resulting JSON is returned...&lt;/p&gt;

&lt;p&gt;&lt;code&gt;[{&lt;br&gt;
    start: 0, // The index the pattern starts&lt;br&gt;
    end: 21, // The index the pattern ends&lt;br&gt;
    pattern: [1, 0, 1, 0, 0, 0, 0], // The pattern&lt;br&gt;
    trailingPattern: [1, 0, 0, 0, 0, 0, 0], // Binary found when the pattern ceased&lt;br&gt;
    count: 3, // The length of the pattern&lt;br&gt;
}]&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;We can clearly see that there is one pattern in Charlie’s weekly coffee buying!&lt;/p&gt;

&lt;h2&gt;
  
  
  The Reaction
&lt;/h2&gt;

&lt;p&gt;But oh no! It looks like Charlie's coffee buying habit changed after 3 weeks.&lt;/p&gt;

&lt;p&gt;The algorithm has told us when it changed and we can see from the trailing pattern that Charlie did not return on Wednesday for their second coffee of the week.&lt;/p&gt;

&lt;p&gt;In Charlie's case we can now send them an email or show them a subtle advert saying "We missed you last Wednesday! Have 20% off your coffee next Wednesday!"&lt;/p&gt;

&lt;p&gt;Powerful stuff eh?&lt;/p&gt;

&lt;p&gt;So you don't run a coffee chain? Why not apply this technique to your web app, or mobile app. Instead of buying a coffee maybe they're logging in, or using a specific part of your service or website!&lt;/p&gt;

&lt;p&gt;The possibilities are endless!&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>analytics</category>
      <category>serverless</category>
      <category>api</category>
    </item>
    <item>
      <title>3 Ways to Utilise Your Subconscious for Problem-Solving</title>
      <dc:creator>Will Newmarch</dc:creator>
      <pubDate>Wed, 03 Mar 2021 17:01:21 +0000</pubDate>
      <link>https://dev.to/mrwillington/3-ways-to-utilise-your-subconscious-for-problem-solving-27l7</link>
      <guid>https://dev.to/mrwillington/3-ways-to-utilise-your-subconscious-for-problem-solving-27l7</guid>
      <description>&lt;p&gt;As developers, we are perpetually tasked with providing solutions to complex problems. Whether it’s fixing a bug, coming up with a method for some new functionality, or designing architecture for the next big build, our role is to create solutions to problems.&lt;/p&gt;

&lt;p&gt;While it’s often more customary to rely solely on our conscious mind when solving these problems, we tend to overlook the power of our subconscious in helping with this.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sleep On It
&lt;/h2&gt;

&lt;p&gt;You’ve probably heard of the phrase ‘sleep on it’. Whether you give it value or not, it’s scientifically proven that if you sleep on a problem, your brain spends the night working through all the problems you had during the day. &lt;/p&gt;

&lt;p&gt;If you get an average amount of sleep, this is a good eight hours your brain spends thinking about whatever problems you had the previous day.&lt;/p&gt;

&lt;p&gt;This is a long time for your brain to be considering something, and as developers it’s in our nature to be as efficient as possible; so why not take advantage of this?&lt;/p&gt;

&lt;p&gt;A common mindset I encourage in myself is that, when I have a particularly difficult issue to solve, I read it through, do a little research around the subject, then reschedule it to the next day and get on with something else.&lt;/p&gt;

&lt;p&gt;More often than not, a solution comes to me during the night, in the shower, or over breakfast, and I get into work and hit the ground running.&lt;/p&gt;

&lt;p&gt;I often employ this method to bugs and tasks that are taking too long to consider. It saves time and, more importantly, reduces stress caused from taking too long to come up with, or refactor towards, an ‘ideal’ solution. It has become an integral way of doing things in my working week.&lt;/p&gt;

&lt;h2&gt;
  
  
  Short-Term Distraction
&lt;/h2&gt;

&lt;p&gt;However, what if you haven’t got time to sleep on things, and your issue is a little more urgent? If you’re struggling with solving something and want to tap into the power of your subconscious, simply work on something more mundane for a couple of hours. This should be enough time to distract your conscious mind from the problem and let your subconscious think it over. &lt;/p&gt;

&lt;p&gt;By doing this, you may provide yourself with the ‘epiphany’ that you require during your distraction time, or you may sit down to think it through again to find that your understanding of what is involved has shifted, providing you with the right path to find your solution.&lt;/p&gt;

&lt;h2&gt;
  
  
  Mull It Over
&lt;/h2&gt;

&lt;p&gt;Contrary to this last point, consider the case that you’re in no rush. You have a big project coming up, for example, that requires some unusual or complex architecture. &lt;/p&gt;

&lt;p&gt;Read the brief/specification thoroughly, do any relevant research, and then work on something completely different for a while (not too long, or you’ll never end up building it!). &lt;/p&gt;

&lt;p&gt;Your subconscious will spend days and nights letting your ideas and thoughts percolate, and when you eventually get to drawing up the architecture, it will be solid and well considered.&lt;/p&gt;




&lt;p&gt;With these methods in mind (pun intended), with a defined understanding of the capabilities of your subconscious, your productivity will improve, your stress levels to decrease and you can feel slightly smug in the knowledge that you’re using your brain that bit more efficiently!&lt;/p&gt;

&lt;p&gt;Utilise your subconscious; less stress, higher quality output!&lt;/p&gt;

&lt;p&gt;&lt;em&gt;To end, here’s a clip from Season 3 Episode 14 of The Big Bang Theory where Sheldon tries to get a ‘mundane’ job to allow his subconscious to think through a problem he can’t solve. — &lt;a href="https://youtu.be/O1WpE5ntqbQ"&gt;https://youtu.be/O1WpE5ntqbQ&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>mentalhealth</category>
      <category>worklifebalance</category>
      <category>problemsolving</category>
    </item>
  </channel>
</rss>
