<?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 Guy Roberts on Medium]]></title>
        <description><![CDATA[Stories by Guy Roberts on Medium]]></description>
        <link>https://medium.com/@guy_20041?source=rss-2456338d8da9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*kSUgPXq6XGjD4225.</url>
            <title>Stories by Guy Roberts on Medium</title>
            <link>https://medium.com/@guy_20041?source=rss-2456338d8da9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 14:19:27 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@guy_20041/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 much help is Claude Code to me ?]]></title>
            <link>https://medium.com/@guy_20041/how-much-help-is-claude-code-to-me-7b1c7365e0f2?source=rss-2456338d8da9------2</link>
            <guid isPermaLink="false">https://medium.com/p/7b1c7365e0f2</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[claude-code]]></category>
            <category><![CDATA[json]]></category>
            <dc:creator><![CDATA[Guy Roberts]]></dc:creator>
            <pubDate>Mon, 11 Aug 2025 11:59:13 GMT</pubDate>
            <atom:updated>2025-08-11T12:07:49.590Z</atom:updated>
            <content:encoded><![CDATA[<h3>How much help is Claude Code to me ?</h3><p><em>This will be a worked example of using Claude Code write a way to show graphs of failure rates of payment services.</em></p><p>I want to see how much extra productivity it gives me.</p><p>As a spoiler, my conclusion is that this was fun, we made quick progress.</p><p>In my day job I plumb together computers that let people go into shops and pay cash towards credits on their home gas meters. Its the modern equivalent of putting 50p in a mechanical meter.</p><p>Being an older programmer, I have seen generations of frameworks and tech come and go. This turned out to be an advantage in my job because the technologies involved come from all eras, old SQL skills, Unix command lines, C, Java, Node servers, REST APIs and using AWS DynamoDB and Lambda.</p><h3>The task</h3><p><strong>I think with Claude Code, its really important to have a clear picture of what the task is and how it needs to be solved</strong>. Otherwise its like asking the Deep Thought computer about the answer to Life the Universe and Everything. You’ll get an answer, but it may well waste your time.</p><p>We provide payment paths for eight energy providers. Each day they each have thousands of payments, of which a small percentage fail. The outcomes are recorded in a DynamoDB table but we don’t yet have an instant way to see the ratio of payment failures and successes over time.</p><p>It would be handy to have a colourful dashboard of graphs that show trends at a glance.</p><p>I’ve been meaning to do this for years and I know exactly how to do it. Its just, well fiddly and hasn’t ever been a priority. So I’d like to work with Claude Code this morning to finally do it quickly.</p><p>The aim is to produce a HTML form that displays eight graphs showing the relative rates of success and failure for eight energy providers on a given day. If I have been successful, there will be a picture showing this below !</p><p>The starting point will be a JSON feed that provides the raw data from a DynamoDB table.</p><p>The table will have attributes for;</p><ul><li>the energy suppliers name</li><li>the time period (eg 15 minute intervals</li><li>a date</li><li>number of successful purchases</li><li>number of failures</li></ul><p>A small Lambda function will accept a query of the supplier, date and interval and return some JSON with the data.</p><p>Date formats cause a huge amount of pain around the world every day, so for this we’ll use a number since 1st January 1970, when I was six.</p><h3>Second thoughts</h3><p>This is a stream of thought, like Jack Kerouac ( but without the drugs, or the charisma ), so I am allowed to change my mind while writing.</p><p>Lets split the task into two,</p><p>i) fetching the data and then</p><p>ii) displaying it.</p><p>I can predict what this data will look like;</p><pre>{<br>    &quot;suppliers&quot;: {<br>        &quot;Acme Energy&quot;: {<br>            &quot;date&quot;: &quot;11-08-2025&quot;,<br>            &quot;interval&quot;: &quot;15 minutes&quot;,<br>            &quot;data&quot;: [<br>                {<br>                    &quot;start-time&quot;: &quot;1754907998&quot;,<br>                    &quot;successful-payments&quot;: &quot;40&quot;,<br>                    &quot;failed-payments&quot;: &quot;3&quot;<br>                },<br>                {<br>                    &quot;start-time&quot;: &quot;1754908898&quot;,<br>                    &quot;successful-payments&quot;: &quot;50&quot;,<br>                    &quot;failed-payments&quot;: &quot;5&quot;<br>                }<br>            ]<br>        },<br>        &quot;Squid Energy&quot;: {<br>            &quot;date&quot;: &quot;11-08-2025&quot;,<br>            &quot;interval&quot;: &quot;15 minutes&quot;,<br>            &quot;data&quot;: [<br>                {<br>                    &quot;start-time&quot;: &quot;1754907998&quot;,<br>                    &quot;successful-payments&quot;: &quot;541&quot;,<br>                    &quot;failed-payments&quot;: &quot;6&quot;<br>                },<br>                {<br>                    &quot;start-time&quot;: &quot;1754908898&quot;,<br>                    &quot;successful-payments&quot;: &quot;542&quot;,<br>                    &quot;failed-payments&quot;: &quot;1&quot;<br>                }<br>            ]<br>        }<br>    }<br>}</pre><p>This data only shows two 15 minute intervals for two businesses. To make the graphs work, we’ll need a lot more example data points.</p><p>Instead of writing realistic data by hand, I’ll ask Claude Code to do it.</p><p>But first I need to give it some context, so I’ll copy everything above and put it in a README.md file in a new directory. Then I’ll open a terminal in that directory and run Calude code.</p><p>Claude read my README.md and said</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5IVPHqlHqAS4ptkWq7HMGA.png" /></figure><p>I am fed up writing realistic JSON, so I will ask Claude to produce it. This took longer than I expected, about six minutes. Claude cleverly decided to write a python script to produce the data. The JSON file it produced was 26,000 lines long.</p><p>Here is what Claude concluded</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*45NGrECA-8P93DjxCmhPRQ.png" /></figure><p>It knew that people use less power at night ! And weekends ! It chose different baseline error rates for each company !</p><p>However the energy company names were so realistic that they included some of our clients, so I need to change those. I had to ask Claude to share the python script with me. That gave me an easy way to change the supplier names in the sample data.</p><p>It would have taken be hours and hours to produce and refine the example data, so I am already winning.</p><h3>Doing the graphics</h3><p>Its taken a couple of hours with tea breaks to get this far. By now Claude Code really understands the meaning of the data, so this should be easy. As with using any Genie, its important to make your wish carefully. This is my wish;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*52sqe7CbZpdg-OgZdLlOEg.png" /></figure><p>It took about a minute for Claude to use the Chart.js library to write the HTML and start a local web server.</p><p>But it did not work.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/1*j3pfMPKe3PTs4bg8Jieqwg.png" /></figure><p>I asked Claude to fix this, I could not be bothered to go in and find the problem. In ten seconds it turned out that the HTML was trying to load my original data file instead of the realistic one we created.</p><p>And then I was delighted.</p><p>It even disobeyed me and put the date select input straight into the page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/934/1*LdWvEIU2e0-Pi25-MOLJXA.png" /></figure><p>I was a bit taken aback at how clear it was. The only thing missing is some authentication and importantly, a way to query the JSON from a live feed. But I will leave those tasks for another morning.</p><h3>Why does the time axis start at 11:40 ?</h3><p>I asked why the time axis starts at 11:40, thats random. In my head I was already thinking it might be to do with Timezones. I asked Claud;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mA8BcVh7ENRYWCNBsNm_Uw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-deD-RE_PshjXnR8P0BZVw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jOvcvEv2ON9LhrY5bVnikA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nut18RLLJqTW8lQUmv9clg.png" /></figure><p>Even fixing that quirk was enjoyable, because I got to have a little think without having to read loads of Javascript. I knew the context and the likely trouble but did not need to dive in.</p><h3>Conclusion</h3><p>If you are clear about what you want to do, and how it should be done, Claude Code is a a joy to use. The total time for this was about two hours, and most of that was used up by me thinking what the JSON data structure would look like.</p><p>But if I had not had a clear idea of how to do this job, I think the AI would have taken me off down some rabbit holes and I’d be spending the next day trying to find my way out.</p><p>For the next step I will ask for help defining the DynamoDB indexes, ask Claude to write CLI commands to create the database table and fill it with example data. Then add authentication and a data feed.</p><p>The only thing left then will be to stop using example data and to set up a regular task in AWS to query the production data and update my new intermediate table.</p><p>It feels odd to have fun coding. Thanks Claude.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7b1c7365e0f2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>