<?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 Will Newmarch on Medium]]></title>
        <description><![CDATA[Stories by Will Newmarch on Medium]]></description>
        <link>https://medium.com/@WillNewmarch?source=rss-bdc7d6ca5f5e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*x7402TeRUvHqX8bfER-XVQ.jpeg</url>
            <title>Stories by Will Newmarch on Medium</title>
            <link>https://medium.com/@WillNewmarch?source=rss-bdc7d6ca5f5e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 10:34:46 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@WillNewmarch/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[What If We’re Building AI Systems The Wrong Way?]]></title>
            <link>https://medium.com/@WillNewmarch/what-if-were-building-ai-systems-the-wrong-way-ccb123cd8a8b?source=rss-bdc7d6ca5f5e------2</link>
            <guid isPermaLink="false">https://medium.com/p/ccb123cd8a8b</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[design-systems]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[artificial-life]]></category>
            <dc:creator><![CDATA[Will Newmarch]]></dc:creator>
            <pubDate>Sun, 07 Jun 2026 07:36:00 GMT</pubDate>
            <atom:updated>2026-06-07T07:36:00.565Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*10EbwQBbeCMdG51bhTPyew.png" /><figcaption>The evolution of structure to growth</figcaption></figure><p>Over the last couple of years I’ve spent a lot of time building chat assistants into web applications, and I’m starting to wonder — should we be building AI systems like organisms?</p><p>As with any product feature, one of the first questions that comes up is “What are people actually going to do with this?”. It’s a sensible question. If we’re building software then we should probably understand the problem we’re trying to solve.</p><h4>The evolution of structure to growth</h4><p>A while ago, I was watching a user test of a chat assistant designed to help users amalgamate customer feedback. The assistant had access to customer feedback. It understood the concept of customer feedback and what its users might want to do with it. Its entire reason for existing was discussing and processing a corpus of customer feedback.</p><p>Within a few minutes, a user asked it for its opinion on a particular American president.</p><p>To my surprise and horror, it had an opinion, it provided it — and the opinion was wonderfully controversial.</p><p>Now, putting aside the fact that a feedback analysis assistant probably shouldn’t be weighing in on American politics, it highlighted something interesting.</p><p>LLMs don’t seem particularly interested in our plans.</p><p>After repeatedly watching this sort of thing happen, I’ve started wondering whether we’re approaching these systems from entirely the wrong direction.</p><h4>Designing Deterministic Systems</h4><p>As developers we’re used to building deterministic systems. Applications where we can predict almost everything they can do.</p><p>We know what routes exist. We know what buttons can be clicked. We know what happens when a form is submitted. We know what happens when a user forgets their password.</p><p>The more predictable a system is, the easier it becomes to design. We can identify scenarios ahead of time and build solutions for them.</p><p>This way of thinking has served software engineering incredibly well.</p><p>The problem is that LLMs don’t seem to play by the same rules.</p><h4>The Trouble With LLMs</h4><p>LLMs are inherently non-deterministic, yet we find ourselves trying to apply the same approach.</p><p>What is this system going to do?</p><p>How is it going to be used?</p><p>What questions will people ask?</p><p>What edge cases do we need to account for?</p><p>Asking these questions with an LLM based system inevitably leads to a little cry in the corner of the office before trying to come up with some sort of solution design in the hope it caters for everything.</p><p>The number of possible interactions becomes effectively infinite.</p><p>The more systems I’ve built, the more I’ve noticed that trying to predict every possible behaviour is usually a losing battle.</p><p>Users will always find something you didn’t think of.</p><p>Models will always encounter situations you didn’t anticipate.</p><p>The question then becomes — if we can’t reliably predict behaviour, what should we be designing instead?</p><h4>Tell It What It Is</h4><p>I’ve found that some of the best assistants I’ve built have actually had surprisingly simple prompts.</p><p>You are a feedback analyst.</p><p>You have access to customer feedback.</p><p>Your purpose is to help people understand what customers are saying.</p><p>You can search feedback, identify themes and summarise findings.</p><p>That’s it.</p><p>No giant list of things it should do.</p><p>No giant list of things it shouldn’t do.</p><p>No attempt to anticipate every possible conversation that might occur.</p><p>Just enough information for the system to understand what it is and why it exists.</p><p>Oddly enough, that often seems to be enough.</p><p>When I look back at systems that performed well, they weren’t usually the ones with the most instructions. They were the ones with the clearest identity.</p><p>The more I think about it, the more this starts to resemble how living things are structured.</p><h4>An Organic Approach</h4><p>Consider your liver.</p><p>Your liver doesn’t understand the human body.</p><p>It doesn’t understand your career, your hobbies, your mortgage, or your poor life choices after a few pints on a Friday evening.</p><p>It has a purpose.</p><p>It performs that purpose.</p><p>Everything else is somebody else’s problem.</p><p>The same is true for your lungs. Your kidneys. Your immune system.</p><p>Each part exists for a reason.</p><p>Each part has a role.</p><p>None of them understand the whole.</p><p>Yet somehow the whole thing works.</p><p>Nature doesn’t appear to build giant general-purpose components. It builds lots of specialised things with clear purposes and allows them to interact.</p><p>The behaviour of the organism emerges from those relationships.</p><h4>Applying This To LLM Systems</h4><p>Let’s imagine we’re building a customer feedback platform.</p><p>A deterministic approach might be to create a single assistant and spend weeks telling it what to do.</p><p>If the user asks about sentiment, do this.</p><p>If the user asks about feature requests, do that.</p><p>If the user asks about bugs, do something else.</p><p>Then add another fifty scenarios for good measure.</p><p>An organic approach might look different.</p><p>One component exists to retrieve feedback.</p><p>One component exists to identify themes.</p><p>One component exists to analyse sentiment.</p><p>One component exists to summarise information.</p><p>Each component has a clear identity.</p><p>Each component understands why it exists.</p><p>Importantly, none of them need to understand the entire system.</p><p>The sentiment analyser analyses sentiment.</p><p>The summariser summarises.</p><p>The theme extractor extracts themes.</p><p>That’s it.</p><p>We’re not telling them exactly what to do in every possible situation.</p><p>We’re telling them what they are.</p><p>The overall behaviour emerges from the interaction between those specialised components.</p><p>Just as it does in nature.</p><h4>Conclusion</h4><p>I’m not suggesting we stop designing software properly and let chaos reign.</p><p>But I do wonder whether we’re trying to force deterministic thinking onto systems that fundamentally aren’t deterministic.</p><p>Perhaps the challenge isn’t predicting every possible thing a user might do.</p><p>Perhaps it’s creating components with clear identities, clear purposes and clear relationships to one another.</p><p>The more time I spend building with LLMs, the less they feel like traditional software.</p><p>And the more they feel like something from the world of artificial life.</p><p>Perhaps the future isn’t telling systems what to do.</p><p>Perhaps it’s telling them what they are, and letting the rest emerge from there.</p><p>And if science fiction has taught us anything, artificial intelligence has always been far more interested in answering “What am I?” than “What should I do next?”.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ccb123cd8a8b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How We Accidentally Turned Our Wedding Seating Plan Into an Algorithm Problem]]></title>
            <link>https://medium.com/@WillNewmarch/how-we-accidentally-turned-our-wedding-seating-plan-into-an-algorithm-problem-0bcec56ae00b?source=rss-bdc7d6ca5f5e------2</link>
            <guid isPermaLink="false">https://medium.com/p/0bcec56ae00b</guid>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[wedding-tool]]></category>
            <category><![CDATA[wedding-planning]]></category>
            <category><![CDATA[seating-plan-software]]></category>
            <dc:creator><![CDATA[Will Newmarch]]></dc:creator>
            <pubDate>Sun, 31 May 2026 12:31:00 GMT</pubDate>
            <atom:updated>2026-05-31T12:31:00.864Z</atom:updated>
            <content:encoded><![CDATA[<p>Wedding seating plans are one of those tasks that sound simple until you actually try to do one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z65t8vgXnlX6OEw6RCVOMA.png" /></figure><p>At first glance, it’s just putting names on tables. How hard can that be?</p><p>Then you start doing it.</p><p>You’ve got family groups, friendship groups, table sizes, children, people who should sit together, people who absolutely should not sit together, and a few guests who are apparently “easy-going” but only under very specific conditions.</p><p>It turns out a wedding seating plan is not really a list — It’s a puzzle.</p><p>When my wife and I were planning our wedding, I had recently finished studying a Master’s in AI at Sussex. I’d really enjoyed the subject ‘artificial life’, which involved genetic algorithms, optimisation, and other things that make you look at normal life problems and think, slightly dangerously:<br>“I can probably automate this.”</p><p>So when we reached the seating plan, that’s exactly what I tried to do.</p><p>I’ve since built a proper version of the idea here: <a href="https://theseatingplan.app/">https://theseatingplan.app</a></p><p>But the first version was, shall we say, not quite ready for public use.</p><h4>#1 — We turned our guest list into a maths problem</h4><p>The first version used a genetic algorithm.</p><p>In simple terms, it created lots of possible seating plans, scored them, kept the better ones, mixed them together, changed them slightly, and repeated the process until it found something strong.</p><p>The idea was to search through far more possibilities than we ever could manually.</p><p>Because that’s the strange thing about seating plans. Even with 80 guests, the number of possible arrangements is enormous. You can move one person and suddenly three other tables need rebalancing. You fix one family group and accidentally split another. You solve one problem and quietly create two more.</p><p>So we tried to describe what a “good” seating plan meant.</p><p>My wife and I spent around four hours entering over 3,000 preferences for about 80 people. It took roughly 4 hours. A romantic evening, as I’m sure you can imagine.</p><h4>#2 — The algorithm did what humans are bad at</h4><p>Humans are very good at judgement. Computers are better at grunt work.</p><p>We know the story behind the guest list. We know which groups matter. We know who will make someone feel comfortable, and who might make the meal feel slightly longer than it needs to.</p><p>What we’re less good at is checking thousands of possible combinations. That’s where the algorithm helped.</p><p>It could keep testing arrangements without getting bored, emotional, hungry, or distracted by whether we’d ordered enough evening food. It could try combinations we wouldn’t have thought of, keep the ones that worked best, and gradually improve the plan. Ultimately, that was the valuable part.</p><p>Not that it replaced our judgement. It didn’t.</p><p>It gave us a way to search for something closer to the ideal seating plan, while still letting us decide what “ideal” actually meant.</p><h4>#3 — The lesson was not “make people enter 3,000 things”</h4><p>The obvious problem with the first version was that it asked far too much of us.</p><p>Nobody planning a wedding should need to spend four hours explaining every social relationship in their guest list to a computer. That is not efficiency. That is just spreadsheet misery wearing a fake moustache.<br>But the core idea still felt right.</p><p>A wedding seating plan has loads of moving parts. There are too many possible versions to reasonably work through by hand. So rather than dragging names around endlessly and hoping you’ve found a good arrangement, it makes sense to let a system do the heavy lifting.</p><p>Then you make the human decisions.</p><p>Because no algorithm knows your family better than you do. But an algorithm can test a lot more table layouts than you can before losing the will to continue.</p><h4>#4 — The version I wish we’d had</h4><p>That’s what I’ve tried to build with TheSeatingPlan.</p><p>Not a random seating generator. I don’t think that’s what weddings need.<br>The aim is to help find a strong seating arrangement based on your guests, groups, table sizes, children, accessibility needs, priority guests, and seating preferences. Then, if you want to make changes, you can drag people around yourself.</p><h4>#5 — The practical takeaway</h4><p>If I were doing our seating plan again, I’d still use an algorithm.<br>I would just try very hard not to make us manually enter 3,000 preferences again.</p><p>The ideal seating plan is rarely obvious. It sits somewhere inside a huge set of possible arrangements, and every couple has their own version of what “ideal” means.</p><p>For some, it’s keeping families together.</p><p>For others, it’s making sure children are near parents, older guests are comfortable, and certain people are given a bit of thoughtful distance.</p><p>For most weddings, it’s all of those things at once.</p><p>That’s why it becomes stressful. Not because the task is silly, but because it genuinely has lots of competing constraints.</p><p>I hope TheSeatingPlan makes that process a bit easier. Not by pretending to understand every emotional nuance of your guest list, but by doing the repetitive optimisation work so you can focus on the decisions that actually need a human.</p><p>And if it prevents even one couple from spending their evening entering 3,000 preferences into an over-engineered prototype, I’ll consider that a meaningful public service.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0bcec56ae00b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Surprisingly Hard Problem of Pub Rota Planning]]></title>
            <link>https://medium.com/@WillNewmarch/the-surprisingly-hard-problem-of-pub-rota-planning-d7214b3e3d45?source=rss-bdc7d6ca5f5e------2</link>
            <guid isPermaLink="false">https://medium.com/p/d7214b3e3d45</guid>
            <category><![CDATA[saas]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[pubs-and-bars]]></category>
            <category><![CDATA[hospitality]]></category>
            <dc:creator><![CDATA[Will Newmarch]]></dc:creator>
            <pubDate>Fri, 22 May 2026 13:34:43 GMT</pubDate>
            <atom:updated>2026-05-28T08:45:30.916Z</atom:updated>
            <content:encoded><![CDATA[<p>Most software starts with someone being mildly annoyed for a long time, then making increasingly questionable life choices in an attempt to fix it. Ultimately, that’s pretty much what happened here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7J51UuyoG4_eh_YInWln5Q.png" /><figcaption>The Sunday Night Rota Problem</figcaption></figure><p>If you’ve never worked in hospitality, rota planning can look deceptively simple from the outside. You need people on shifts, you put names in boxes, job done. In reality, it’s one of those operational problems that seems straightforward right up until it isn’t. Availability changes, someone calls in sick, weekends are chaos, payroll matters, fairness matters, and the whole thing can bite you in the bum at exactly the wrong time.<br>This got me thinking about how many UK pub managers are still piecing together a staff rota manually every week, often with a mix of spreadsheets, screenshots, and WhatsApp messages. It works… until it doesn’t.</p><h4>Where the idea came from</h4><p>I didn’t come at this as a detached founder doing market research from afar. My wife worked in pubs for years, and family and friends have too. I also spend a fair bit of time in pubs — strictly for product research, obviously — so I kept hearing and seeing the same pain points around pub rota planning and shift cover.</p><p>Not dramatic, headline-grabbing pain. Just repetitive, time-consuming, mentally draining pain. The kind that slowly eats your week.<br>You’d hear things like:<br>- “I’ve redone this rota three times already.”<br>- “I can’t get anyone for Saturday night.”<br>- “I’m trying to make it fair but someone’s always unhappy.”<br>- “I spent my day off sorting next week’s shifts.”</p><p>And that was the interesting bit for me. It wasn’t just a scheduling problem; it was a constant optimisation problem with human constraints layered on top. If you’ve managed people, you know there’s no perfect rota — only less painful trade-offs.</p><h4>From observation to building something useful</h4><p>At the same time, I’m doing a Masters at Sussex, and I’d been learning more about optimisation and search algorithms. That gave me a useful lens for thinking about the rota problem. Instead of asking, “What’s the perfect schedule?” it becomes, “How do we search efficiently for a good schedule under real constraints?”</p><p>That felt closer to reality.</p><p>Skedula came out of that overlap:<br>- practical pub experience from people close to me,<br>- repeated observation of rota planning pain,<br>- and a growing interest in algorithmic ways to handle messy, constrained decisions.</p><p>Skedula is a tool for pub managers to build rotas with less hassle. The tagline is “Rota done. Shift covered.” Short version: help you get to a workable, fair rota faster, and make last-minute shift cover less chaotic.</p><p>I’ve tried to price it in a fair way as I feel many managers might end up paying out of their own pocket for such a tool — so, I went for roughly the price of a pint every month — as it felt appropriate and affordable especially for (hopefully) fixing rather an irritating problem.</p><h4>A quick note on the optimiser, without turning this into a dissertation</h4><p>The current optimiser uses simulated annealing. If that sounds intimidating, the practical idea is simple.</p><p>Imagine you have one draft rota. You make a small change — swap a shift, move a person, rebalance a weekend — then score whether it got better or worse based on your rules. Better changes usually stay. Worse changes usually get rejected. But not always.</p><p>Why allow worse changes at all? Because if you only ever accept immediate improvements, you can get stuck in a locally “good enough” rota and miss a better one nearby. Simulated annealing occasionally accepts a worse move early on so it can explore more options, then gradually becomes stricter as it goes.</p><p>In plain English: it starts more adventurous, then settles down.<br>I like this approach because pub rotas are messy. Hard rules matter — availability, role cover, keyholders, duty managers — but soft preferences matter too. Fairness matters. Consistency matters. Not giving someone six closes in a row matters, unless they’ve somehow volunteered for it.<br>You’re not solving a clean maths puzzle. You’re balancing people, operations, and unpredictability.</p><p>Is simulated annealing the final answer forever? Probably not. But right now it’s a practical fit for the problem space and gives useful results without pretending the world is tidy.</p><h4>What I’m actually trying to improve</h4><p>I’m not trying to “disrupt hospitality workforce management” or any other sentence that should probably be banned.</p><p>I’m trying to reduce weekly friction for people running pubs.<br>If Skedula helps a manager spend less time wrestling a staff rota on Sunday night, that’s a win. If it improves shift cover when someone drops out last minute, that’s a win. If it makes rota planning feel a bit less like punishment for caring about fairness, that’s definitely a win.</p><p>There’s also a trust angle here. Most managers can smell fluff instantly. So I’d rather be honest: this is built iteratively, from real conversations and ongoing feedback, and it will keep improving as more edge cases appear.<br>Because they always appear.</p><h4>Why I’m writing this</h4><p>Partly for transparency, partly to force myself to articulate the thinking, and partly because I suspect plenty of people in hospitality have normalised a painful process that could be better.</p><p>You can check out Skedula here: <a href="https://skedula.co/">https://skedula.co</a>.</p><p>I hope this becomes the kind of rota software that feels practical, honest, and actually useful on a busy week. Not just in a demo. At £6/month, it’s priced at roughly the cost of buying me a pint — enough to help keep the thing running, and hopefully a lot less than the value of the time it saves each month.</p><p>And if nothing else, at least my questionable life choices now have a coherent theme.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d7214b3e3d45" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Verdanari — A Modern Faith for a Living World]]></title>
            <link>https://medium.com/@WillNewmarch/verdanari-a-modern-faith-for-a-living-world-b115e57ac482?source=rss-bdc7d6ca5f5e------2</link>
            <guid isPermaLink="false">https://medium.com/p/b115e57ac482</guid>
            <dc:creator><![CDATA[Will Newmarch]]></dc:creator>
            <pubDate>Fri, 19 Sep 2025 17:37:45 GMT</pubDate>
            <atom:updated>2025-09-19T17:37:45.208Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mUrDCzegldrI8v40cmVxGA.png" /></figure><h3>Verdanari — A Modern Faith for a Living World</h3><p>I’ve been fascinated by systems — whether in code, nature, or general beliefs. Recently I started sketching out what a conceptual faith might look like if you combined the ecological reverence of paganism with the animistic spirit of Shinto. The result is something I’m calling <strong>Verdanari*</strong>.</p><p>This isn’t a dogmatic system, but a framework for living in sync with the world around us. Here’s the overview.</p><h4>The Core Idea</h4><p>At the heart of Verdanari is <em>Verdan</em>, the life-force that animates all things. Think of it as a universal current that flows through mountains, rivers, cities, and people. If it exists, it carries Verdan.</p><p>This means nothing is “mundane.” The desk you’re working at has spirit. The tree outside your window has spirit. Even your morning coffee has spirit. And once you start seeing the world that way, you can’t help but treat it differently.</p><h4>The Spirits</h4><p>Verdanari breaks spirits down into three groups:</p><ul><li><strong>Kami</strong> — spirits of places, objects, and phenomena.</li><li><strong>Verdanes</strong> — seasonal forces or archetypes tied to solstices and equinoxes, guiding the year’s rhythm.</li><li><strong>Ancestors</strong> — guardians woven into the same spiritual web as everything else.</li></ul><p>It’s less about believing in “gods up there” and more about recognising spirit <em>here</em>, in every direction.</p><h4>The Practice</h4><p>Verdanari is practical. Here are the basics:</p><ul><li><strong>Shrine-keeping (<em>sanve</em>)</strong> — set up a small shrine at home, work, or outdoors. Keep it clean, offer incense, leaves, salt.</li><li><strong>Festival Cycles</strong> — eight points in the year (like the pagan sabbats) marked with offerings, cleansing, and a shared meal.</li><li><strong>Kami Reading</strong> — a reflective practice of noticing natural signs: the wind, a bird call, or how leaves drift in water.</li><li><strong>Spirit Walks</strong> — go out, walk silently, notice. That’s it.</li></ul><p>Simple rituals, repeated, build connection.</p><h4>The Ethos</h4><p>Verdanari isn’t about rules, it’s about balance.</p><ul><li>Harmony over dominance.</li><li>Reciprocity over consumption.</li><li>Cleansing imbalance, not punishing failure.</li></ul><p>It asks: “How do I act so that the web of spirits remains in balance?”</p><p>Verdanari isn’t designed to be a replacement for anyone’s beliefs — it’s simply a lens that can sit alongside existing traditions. It’s a way of seeing the world that emphasises respect for life, reciprocity, and awareness of cycles. These practices can potentially sit alongside other faiths, enriching rather than contradicting them — because recognising spirit in nature doesn’t diminish any other spiritual path, it simply deepens connection to the living world we all share.</p><h4>The Structure</h4><p>No central authority. No scripture. Just stories, rituals, and communities. Local guides — called <em>Kinari</em> — help keep shrines and lead ceremonies. Everything else adapts to place and people.</p><p>It’s deliberately decentralised, because no one community can dictate what spirits look like in another.</p><h3>Getting Started</h3><p>Interested? Here’s how you can begin today:</p><ol><li>Create a tiny shrine with a stone, leaf, or token.</li><li>Offer thanks daily to the spirits of your home and your ancestors.</li><li>Mark the next solstice or equinox with a meal and reflection.</li><li>Take a walk in silence, treating everything you notice as alive.</li></ol><p>Verdanari isn’t about perfection. It’s about awareness, gratitude, and small repeated acts that tie you to the flow of Verdan.</p><p>It’s early days, but I think there’s something here. A way of living faith that is modern without being sterile, ancient in inspiration, but alive and evolving in the present.</p><p><strong><em>* Verdanari</em></strong><em> is a constructed name made from two parts:</em></p><ul><li><strong><em>Verdan</em></strong><em> — adapted from verdant (lush, green, flourishing) and resonant with Verde (Latin for “green”) and Verdantem (Old French/Latin roots). It’s also used here as the name of the sacred life-force itself.</em></li><li><strong><em>-ari</em></strong><em> — a suffix meaning “one who is associated with” or “followers of.” For example, Templari (templars), Luminari (those associated with light).</em></li></ul><p><em>So </em><strong><em>Verdanari</em></strong><em> translates roughly to “those of the Verdant force” or “followers of Verdan.”</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b115e57ac482" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Nurturing a Positive Work Environment: Transformative Ways of Cultivating Psychological Safety]]></title>
            <link>https://medium.com/@WillNewmarch/nurturing-a-positive-work-environment-transformative-ways-of-cultivating-psychological-safety-821c787ddfd6?source=rss-bdc7d6ca5f5e------2</link>
            <guid isPermaLink="false">https://medium.com/p/821c787ddfd6</guid>
            <dc:creator><![CDATA[Will Newmarch]]></dc:creator>
            <pubDate>Thu, 01 Feb 2024 07:50:48 GMT</pubDate>
            <atom:updated>2025-09-19T12:53:16.060Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*rIMsWqD6YygRYpeLdQrknQ.png" /></figure><h3>Psychological Safety — 5 Ways to Build a Happier, More Innovative Team</h3><p>Psychological safety might sound like another fluffy HR term, but in reality, it’s the backbone of high-performing teams. When people feel safe to share ideas, ask questions, and make mistakes without fear of ridicule, collaboration flourishes. Creativity takes off. Work becomes enjoyable.</p><p>But when psychological safety is missing, the opposite happens. Toxicity creeps in, communication breaks down, and progress stalls.</p><p>So how do you turn a workplace into somewhere people feel supported, respected, and heard? Let’s break it down.</p><h3>Positive Feedback Publicly, Negative Feedback Privately</h3><p>Shout about wins in public. When someone does a great job, recognise it openly. A quick thank-you in a team meeting or Slack channel can go a long way. It sets the tone that contributions matter.</p><p>But when there’s room for improvement? That’s best kept one-to-one. Nobody wants to be embarrassed in front of their peers. Delivering constructive feedback privately creates space for honesty and growth, without fear of humiliation.</p><h3>Swap Destructive Criticism for Constructive Criticism</h3><p>We’ve all seen criticism used as a blunt weapon. It drains morale and kills momentum. The alternative? Constructive criticism — pointing out what can be improved and how.</p><p>Encourage solution-focused thinking. Instead of “this is wrong,” try “here’s a way we could make this better.” Lead by example, and soon the culture shifts. Criticism becomes fuel for progress rather than a barrier.</p><h3>Create Space for Expression</h3><p>In toxic workplaces, people stay quiet because speaking up feels risky. That silence is dangerous. To avoid it, carve out spaces where people can voice ideas and concerns without judgement.</p><p>This might mean regular check-ins, anonymous surveys, or simply asking “what do you think?” in meetings. The important part is listening. Acknowledge what’s said, take it seriously, and work together on solutions. Trust builds from there.</p><h3>Build a Feedback Culture</h3><p>Feedback shouldn’t be a once-a-year performance review. It should be woven into daily work. Small, regular conversations help normalise feedback so it’s seen as supportive, not scary.</p><p>Try peer-to-peer feedback sessions. Encourage listening and empathy as much as speaking. The more feedback becomes part of the rhythm, the more comfortable people will be with giving and receiving it.</p><h3>Embrace Humility</h3><p>Teams thrive when egos are left at the door. A culture of humility means no voice is automatically louder than another. It means collaboration over competition, listening over shouting.</p><p>When leaders model humility — admitting mistakes, asking for input, treating every role as important — the whole team follows. That’s where real innovation happens: not from one loud voice, but from many working in sync.</p><h3>Final Thought</h3><p>Psychological safety isn’t built overnight. It takes consistency, trust, and effort from everyone. But the payoff is massive: stronger teams, happier people, and better results.</p><p>A workplace where people feel safe isn’t just “nice to have.” It’s the foundation of excellence.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=821c787ddfd6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Star Trek: TNG — 10 Extraterrestrial Team Management Tips]]></title>
            <link>https://medium.com/@WillNewmarch/star-trek-tng-10-extraterrestrial-team-management-tips-d28e32edb160?source=rss-bdc7d6ca5f5e------2</link>
            <guid isPermaLink="false">https://medium.com/p/d28e32edb160</guid>
            <dc:creator><![CDATA[Will Newmarch]]></dc:creator>
            <pubDate>Mon, 21 Jun 2021 13:26:22 GMT</pubDate>
            <atom:updated>2024-01-31T10:15:16.433Z</atom:updated>
            <content:encoded><![CDATA[<h3>Star Trek: TNG — 10 Extraterrestrial Team Management Tips</h3><p>Space… the final frontier of <em>team management</em>?!</p><p>March 2020, the UK went into lockdown. To stay (relatively) sane, while working from home, I blocked out an hour for my daily lunch break. For 178 of those lunches I watched <em>Star Trek — The Next Generation</em>, and my goodness, what a fantastic 178 lunches they turned out to be.</p><p>For an hour a day I would find myself traversing the galaxy, encountering new planets, races, technologies, and natural phenomena.</p><p>Through it all I noticed one thing in particular — the starship Enterprise runs like clockwork.</p><p>The ship’s crew consists of over 900 people, all from different backgrounds, races, creeds and specialities. But all aligned for one purpose — working harmoniously together to get the job done.</p><p>It dawned on me that whilst this is a fictional team of people from the 24th century. Travelling through space, faster than the speed of light. We could learn something from them and their approach to team management.</p><p>So here goes — could these values be translated to a team in the 21st century? Having almost 200 hours of Star Trek under my belt (including the movies). I have compiled my top ten tips from this brilliant series and its excellent approach to team management and dynamics.</p><h3># 1 — Lead from the front — Team Management 101</h3><p>Inspire others by behaving in a way you’d like them to behave. Captain Jean-Luc Picard always steps forward to put his life on the line to defend his crew. He will fearlessly explore dangerous new worlds, make first contact with unknown beings, and even battle with Klingons.</p><p>Picard inspires others to act in the same way as he would by setting a good example. In doing so he gains the respect of his crew.</p><p>Leading by example inspires your team to work towards a common goal. You may not be battling Klingons or negotiating with a new race of beings, but all industries and professions will require their own moments of bravery.</p><p>Leading from the front will solidify the ideals you encourage. It will give your leadership more gravity, and will inspire the team members around you. And to quote a past team leader of mine; <em>“By inspiring others; we earn our place”.</em></p><h3># 2 — Good mental health is vital</h3><p><em>“Confidence is faith in oneself. It can’t easily be given by another.” — Deanna Troi</em></p><p>Deanna Troi, the ship’s counsellor, sits on the left hand side of the Captain. Her position shows just how important her role is when running a team. She plays a vital role in the overall mental health of the crew as their counsellor and therapist.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*r4vs0cKyCJkOj4Sr.png" /></figure><p>By ensuring everyone is supported mentally, Deanna keeps the crew running smoothly and harmoniously. Her effective communication means conflicts are resolved, and by offering social support both on the ship and on away missions.</p><p>This aspect of team dynamics can quickly be forgotten. Deanna’s close relationship with the Captain throughout the program is a testament to how important her role is.</p><p>Deanna Troi sitting next to Picard shows that they aren’t paying lip service to mental health. It is a fundamental area that needs constant work and care. This year more than any other, it’s clear just how important focusing on mental health needs to be. Thoughtful and holistic team management cannot be truly successful without proper care of mental health.</p><h3># 3 — Earn respect, don’t expect it — Not all management styles are good</h3><p><em>“Respect is earned, not bestowed.” — Deanna Troi</em></p><p>In the 135th episode; “Chain of Command, Part 1,” Captain Picard is sent on a secret mission, the success of which depends on the crew believing he has left for good. Captain Jellico takes command of the Enterprise and immediately starts making dramatic changes, much to the dismay of the crew.</p><p>Jellico made so many demands on the crew so soon that they resented him and pushed back on his management style. Commander Riker in particular fell out with him so badly that he was relieved from duty and replaced.</p><p>Jellico didn’t listen to anyone, treated the crew with little respect, yet expected them to respect him as Captain. This clearly demonstrates the need to earn respect before you can do effective team management.</p><h3># 4 — Protect your team so they can do their job</h3><p>Tell your team what they need to know, shield them from things that will only scare/hurt them.</p><p>When Chief Medical Officer Beverly Crusher discovers that the ship is infected with an unknown virus that de-evolves living creatures and will eventually kill all the crew, she keeps the details to herself. This action enables the team to discover the source of the virus and how to get rid of it.</p><p>While the crew needed to know enough about the virus to track its origin and try and deal with it, the gory details of their almost certain deaths were not required. Knowing those intense details would, almost certainly, have put them off doing what they needed to do, to get their job done.</p><p>To give this a 21st century spin; when a team has a deadline to hit, or a particularly important piece of work to get done, a good team leader or scrum master, using effective communication, can steer the team while batting off any potential distractions.</p><h3># 5 — Encourage a learning culture</h3><p><em>“Things are only impossible until they are not.” — Captain Jean Luc Picard</em></p><p>Many episodes of TNG revolve around some sort of Research &amp; Development project someone has developed that requires testing. On rare occasions this leads to catastrophe, with the crew battling to get back to some sort of status quo. More often than not the output is successful and benefits not only the ship, but whole worlds and civilizations.</p><p>While R&amp;D can sometimes cause issues, giving precious time to learn and experiment ignites the passion and creativity of our teams. While it might not always benefit civilisations as a whole, it can often lead to unexpected improvements in products, processes, and more.</p><h3># 6 — Create safe spaces to talk freely and minimise unprofessional discussion</h3><p>Captain Picard would often call someone to his ‘ready room’ for a private chat, out of earshot from the crew on the bridge, using these chats for advice on how to deal with a troublesome officer, or opinions on his plan to tackle a delicate situation. Most importantly, once the door had closed, Picard was able to speak freely.</p><p>Speaking in private creates opportunities for senior officers to figure out a suitable outcome. This would often mean the Captain would be more vulnerable with them than he would the rest of the crew.</p><p>Speaking candidly to someone who can help (a senior team member, for example) is useful in quickly finding a solution. However moaning without a point or suggested resolution can lose respect. There’s a time and a place for speaking openly. If you need to talk candidly and honestly, note who’s in the room.</p><h3># 7 — Trust your crew</h3><p>Towards the end of the episode “Hollow Pursuits” the Enterprise mysteriously accelerates to dangerous warp speeds, exceeding design specifications, while the engineering team work furiously to discover and resolve the problem. The rest of the crew can only watch and wait as the ship counts down to hull breach and certain death.</p><p>The action is focused on La Forge and Barclay eliminating all possible causes of the problem and slowing the ship. However I can’t help but admire the composure of the crew on the bridge, their patience and trust in the engineers is incredible, staying out of the way so they can work, while they can do nothing but quickly hurtle towards doom.</p><p>Their composure allows the rest of the team to continue doing their job properly no matter what the circumstances.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/532/0*BrHpr_ly9e3e8YZv.gif" /></figure><p>It is integral that you trust your team to play their roles. Avoid micromanagement at any cost! While for many of us, our lives don’t depend on being trusted to do our jobs, the strength of a team comes from the trust we have for one another. We will be more successful if we trust those around us.</p><h3># 8 — Don’t talk down to anyone — Respect every member of your team</h3><p>When Captain Picard talks one-to-one with the crew he would replicate them a cup of <em>“tea, Earl Grey, hot”</em>. An important act of respect before engaging them in conversation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*D_qdxwOtrovk0VGH.png" /></figure><p>The Enterprise is structured by a strict and clear hierarchy, however the Captain talked to everyone as an equal, showing them respect no matter what their position.</p><p>Remember that it doesn’t matter where you’re at in your career, you’re no more or less important than anyone else. You’re all playing a required role and should treat everyone with the same respect you would expect from them.</p><h3># 9 — Question the Captain’s intentions and encourage debate</h3><p>A heated back-and-forth between the Captain and Commander Riker would often feature in episodes of TNG. While this made for great television, from a team management standpoint it demonstrates a key feature in the Captain’s relationship with his team.</p><p>The Captain welcomed debate and professional criticisms, even though he was leading the ship, he understood the value of hearing out his team and making an informed decision based on different viewpoints.</p><p>Not only does discussion over someone’s intentions lead to better outcomes, it also allows communication of context around a decision and a chance to explain. From a scientific perspective, it is proven that people consider things from different angles when explaining them <a href="https://en.wikipedia.org/wiki/Rubber_duck_debugging">out loud</a> and often leads to better decision making overall.</p><p>More importantly though, having a culture whereby anyone can (respectfully) question their leader’s intentions is incredibly healthy and important in allowing an open and safe culture of communication and harmonious team dynamics.</p><h3>#10 — Lead from the front</h3><p>See point 1. After considering all these other tips for great team management, the most important by far is to lead from the front, lead by example, and encourage others by acting in a way you wish the team to act.</p><p>Encouraging a team to follow principles like these only works if you start by encouraging yourself to follow them. Leaders should lead by example to solidify ideals amongst the team, and to inspire and earn the respect they require.</p><p>—</p><p>So there you have it. My 10 learnings on team management from all 178 episodes of <em>Star Trek: The Next Generation</em>. So, next time you sit down for your lunch break, why not chill out to a mind-blowingly awesome episode of TNG and observe the stellar team dynamics first hand!</p><p>—</p><p><em>In 1987 </em><a href="https://en.wikipedia.org/wiki/Star_Trek:_The_Next_Generation"><em>Star Trek: The Next Generation</em></a><em> aired for the first time. Written by Gene Roddenberry, it ran until 1994, spanning 178 episodes over seven seasons.</em></p><p><em>Originally published at </em><a href="https://www.prodpad.com/blog/team-management-tips/"><em>https://www.prodpad.com</em></a><em> on June 21, 2021.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d28e32edb160" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Patterns in Usage Equal Happy Users]]></title>
            <link>https://medium.com/@WillNewmarch/patterns-in-usage-equal-happy-users-4e0ac0cd3269?source=rss-bdc7d6ca5f5e------2</link>
            <guid isPermaLink="false">https://medium.com/p/4e0ac0cd3269</guid>
            <category><![CDATA[serverless]]></category>
            <category><![CDATA[usage-analytics]]></category>
            <category><![CDATA[api]]></category>
            <dc:creator><![CDATA[Will Newmarch]]></dc:creator>
            <pubDate>Fri, 23 Apr 2021 15:07:40 GMT</pubDate>
            <atom:updated>2021-04-23T15:07:40.285Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Rh52pQVoNd-Su4aDoSwtzA.jpeg" /></figure><p>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…</p><p>A happy user is a regular user, and a regular user often exhibits patterns in their usage of a product.</p><p>If you can spot patterns in your users’ usage then you can often spot your happy users!</p><p>Now “why would I want to know which of my users is happy with my product?” I hear you ask!</p><p>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.</p><p>What if you could, spot the patterns, and when they stop? Then you could encourage the user to continue back into their pattern.</p><p>But why sit trawling through usage data when you can get AI to spot the patterns for you!</p><p>I’ve built a little service to help people do just that…</p><p><a href="https://binarystripes.io/">https://binarystripes.io</a></p><p>(…oh, and it’s serverless!)</p><p>Let’s consider an example!</p><h3>The Company</h3><p>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.</p><h3>The Customer</h3><p>Their first customer being analysed is Charlie…</p><p>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.</p><p>Here’s the last 4 weeks of data:</p><p>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</p><h3>The Analysis</h3><p>We want to discover if Charlie has a weekly habit of coffee buying…</p><p>Charlie buys a coffee on a Monday and a Wednesday every week as we can see from the binary.</p><p>We can discover this by asking the algorithm to calculate patterns with intervals of 7.</p><p>We send Charlie’s data up to the API with the instructions to interval at 7…</p><p>The resulting JSON is returned…</p><p>[{<br> start: 0, // The index the pattern starts<br> end: 21, // The index the pattern ends<br> pattern: [1, 0, 1, 0, 0, 0, 0], // The pattern<br> trailingPattern: [1, 0, 0, 0, 0, 0, 0], // Binary when the pattern ended<br> count: 3, // The length of the pattern<br>}]</p><p>We can clearly see that there is one pattern in Charlie’s weekly coffee buying!</p><h3>The Reaction</h3><p>But oh no! It looks like Charlie’s coffee buying habit changed after 3 weeks.</p><p>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.</p><p>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!”</p><p>Powerful stuff eh?</p><p>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!</p><p>The possibilities are endless!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4e0ac0cd3269" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Real-Time Data Distribution with WebSockets and NodeJS]]></title>
            <link>https://medium.com/@WillNewmarch/real-time-data-distribution-with-websockets-and-nodejs-dd543a52a006?source=rss-bdc7d6ca5f5e------2</link>
            <guid isPermaLink="false">https://medium.com/p/dd543a52a006</guid>
            <category><![CDATA[data-distribution]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[websocket]]></category>
            <category><![CDATA[nodejs]]></category>
            <dc:creator><![CDATA[Will Newmarch]]></dc:creator>
            <pubDate>Mon, 15 Apr 2019 08:58:53 GMT</pubDate>
            <atom:updated>2019-04-15T08:58:53.619Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Originally published on Tuesday 29th July 2014</em></p><p>Two of my favourite technologies in the world of web development are NodeJS and WebSockets.</p><p>NodeJS is creating new ways of thinking when coding server-side by allowing for quick and easy implementation of asynchronous, real-time environments.</p><p>WebSockets are now being included in the latest browsers and allow for real-time communication amongst other exciting applications.</p><p>It turns out it’s very easy to implement WebSockets with NodeJS and the results are pretty awesome. After doing a bit of research into how other people have implemented the two, I set about making my own chunk of code to distribute data to anyone else connected. This allows one to set up a multitude of scenarios in next to no time, opening up some very exciting possibilities.</p><p>I was impressed by the fact that in only 35 lines I could set up a server-side mechanism to distribute any data it receives to all other connections involved. Below is the code chunk and for this example, you must have installed NodeJS on your server as well as the ‘http’ package and the ‘websocket’ package via npm (There are other WebSocket packages available, I just liked the way this one was implemented).</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e34143de98a3d7b67d4e15e6ce56efec/href">https://medium.com/media/e34143de98a3d7b67d4e15e6ce56efec/href</a></iframe><p>If you’re interested to see exactly what this code can do in just a couple of minutes, demo it by following these simple steps…</p><p>Make sure you have NodeJS and the required packages (‘http’ and ‘websocket’) installed on your server.</p><p>Next, upload the code into a JavaScript file onto your server and run with NodeJS.</p><p>After setting this up you can create a WebSocket connection using just a few lines of JavaScript.</p><p>This can even be achieved by pasting the code into a browser console* that supports WebSocket if you want to demo it quickly. Once set up, all other connections will receive anything sent to the server.</p><p><em>*This must be done when the console is open on a non-secure site (http only)</em></p><p>To connect to your data distribution server, firstly, create your WebSocket connection by running the below line, replacing ‘localhost’ with your server’s IP address. This creates a WebSocket object and connects via the unsecured WebSocket protocol (ws) to your server IP, via the port set in the previous code.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1af99715cc02290b6615115b2da3f383/href">https://medium.com/media/1af99715cc02290b6615115b2da3f383/href</a></iframe><p>Next, we set up what to do when a message is received client-side. Here I’m console logging the object returned from the server, which will contain several pieces of data to do with the message as well as the message itself.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/703e15a8776080b1506ce8d1de7d9f80/href">https://medium.com/media/703e15a8776080b1506ce8d1de7d9f80/href</a></iframe><p>Now our WebSocket is set up and we can send it something. Why not begin by greeting everyone else who’s connected? You will also receive this message as the code simply distributes everything it receives to every connection it is handling (thus the term ‘echo server’!).</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d139d74f4eea81aea901f58529512eac/href">https://medium.com/media/d139d74f4eea81aea901f58529512eac/href</a></iframe><p>And there you have it. With 38 lines of code, we have created a data distribution mechanism, connected to it, and sent it some data!</p><p>WebSocket is now included in the latest browsers, and is constantly being utilised to help out with real-time applications. A good source to check browser compatibility can be found on Wikipedia — <a href="http://en.wikipedia.org/wiki/WebSocket#Browser_support">http://en.wikipedia.org/wiki/WebSocket#Browser_support</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dd543a52a006" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Build Your Own Basic Physics Engine in JavaScript.]]></title>
            <link>https://medium.com/@WillNewmarch/build-your-own-basic-physics-engine-in-javascript-26f0b1fedc72?source=rss-bdc7d6ca5f5e------2</link>
            <guid isPermaLink="false">https://medium.com/p/26f0b1fedc72</guid>
            <category><![CDATA[physics-engine]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Will Newmarch]]></dc:creator>
            <pubDate>Thu, 21 Mar 2019 22:02:17 GMT</pubDate>
            <atom:updated>2019-03-21T22:02:17.171Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Originally published on Thursday 15th December 2016</em></p><p>A popular and exciting application of JavaScript in web at the moment is physics engines.</p><p>While it’s very easy to go and download a well known JavaScript based physics engine library with all the bells and whistles you could supposedly ever want, sometimes the amount of time required for learning the intricacies of these libraries can equal out to the time it takes to tailor your own engine.</p><p>Building your own often comes with its own benefits, including knowing the underlying code like the back of your hand and knowing that all the features you require are available to you, not to mention the satisfaction that your system is running purely on your own code, and so, with this in mind I thought I’d lay out a few chunks of code to hopefully inspire others to take a more involved approach on their next physics based project.</p><p>Firstly, I’d like to caveat by saying that while the idea of this post is to encourage a deeper understanding of physics engines, anything in the realms of three dimensional physics is probably best done with a library due to the amount of complex maths involved. Two dimensions is plenty when writing from scratch, unless you have a degree in mathematics and a lot of time on your hands.</p><p>So without further ado let me provide and explain some simple chunks of code, that will hopefully allow any developer to put together a foundation for their own two dimensional physics engine.</p><p>To begin, we need to set up our basic tools for the job. A basic html5 canvas element, filling the screen…</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1f1c92efcc74617f3abf16f576dcf362/href">https://medium.com/media/1f1c92efcc74617f3abf16f576dcf362/href</a></iframe><p>As you can see we’re grabbing some measurements of the window size as well as initialising an array to hold ‘physical objects’, and finally, the canvas element which we set with an ‘id’ of ‘canvas’ and set it’s width and height to be the same as the window. The getContext() method returns an object that provides methods and properties for drawing on the canvas and this is used later on to effectively ‘draw’ onto the canvas.</p><p>Next we need a basic ‘physical’ object. This object has 6 basic parameters, allowing it to be rendered on screen. These are an x/y position, a width and a height, and a velocity on the x and y axes.</p><p>As you can see the object also has a ‘nextFrame’ function, which lies at the heart of the animation of the object. It updates the object’s position based on it’s velocity every time it is run, and, as is suggested in the method name, is basically a method for updating the object to the next frame position.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6365e13617de8888257b09a89309e842/href">https://medium.com/media/6365e13617de8888257b09a89309e842/href</a></iframe><p>Next we need a ‘frame render’ function and a loop. This function clears and redraws the whole frame, updating each object via the ‘nextFrame’ function as it goes.</p><p>In the ‘frameRenderLoop’ function you can see that we’re using a function called ‘requestAnimationFrame’. This takes a function as a parameter and runs this function whenever the client is ready to refresh the visual content, and is a function built into most browsers. It usually averages at a rate of 60fps which is more than enough for us, though it is also best practice to use this function when looping an animation in this manner as this is what the function is specifically designed for.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f8fde4f05945d8a04c2bc147d9c2f8bd/href">https://medium.com/media/f8fde4f05945d8a04c2bc147d9c2f8bd/href</a></iframe><p>Ok, if we run all this code in the browser and run the following code in the console, we will trigger the frame render loop and add an object into the environment…</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e2aa762e4c396d1d950683739a24f737/href">https://medium.com/media/e2aa762e4c396d1d950683739a24f737/href</a></iframe><p>…and BOOM!</p><p>Your environment is now running and you can add in and manipulate live objects via the console. This is just a very basic example to demonstrate what can be done, and by allowing the physicalObjects variable to be globally available, we can easily play about with objects and see what’s going on.</p><p>You’ll probably have noticed by now that objects are drifting off screen never to be seen again. We need to adapt our environment slightly to handle this. One way this can be done is with a function picking up on objects that have gone off screen and shifting them instantaneously back on screen on the opposite side, allowing objects to loop across the environment.</p><p>This technique is most famously used in the classic arcade game ‘Asteroids’. The below function requires a physical object to be passed in and ‘actions’ the shift to the opposite edge if it has gone off screen. This function can be included in the render loop to apply this manipulation to objects before being rendered again once they have drifted off screen.</p><p>This function would look something like the following, and would be run on every frame render…</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/096a992ff1b5d7c2d94e6d519af4504e/href">https://medium.com/media/096a992ff1b5d7c2d94e6d519af4504e/href</a></iframe><p>You now have a basic but effective physics engine in your browser, and enough understanding of the mechanics to build upon it and take it to where you want it to be.</p><p>The next steps I would take would be to look into some basic collision detection so that objects can interact, and perhaps some object pooling to help with memory management, though hopefully by now you have an understanding of the very basics behind such engines and are encouraged to go and take more control over your physics based projects by building from scratch!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=26f0b1fedc72" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Reliably Fix a Bug in 6 Simple Steps.]]></title>
            <link>https://medium.com/@WillNewmarch/how-to-reliably-fix-a-bug-in-6-simple-steps-c08d43d77d14?source=rss-bdc7d6ca5f5e------2</link>
            <guid isPermaLink="false">https://medium.com/p/c08d43d77d14</guid>
            <category><![CDATA[bug-fixing]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[debugging]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Will Newmarch]]></dc:creator>
            <pubDate>Fri, 08 Mar 2019 11:55:52 GMT</pubDate>
            <atom:updated>2019-03-08T11:55:52.738Z</atom:updated>
            <content:encoded><![CDATA[<p>As developers, we endeavour to create and build flawlessly, and without fault. However, there will almost always be issues and bugs in a system. No matter how much effort goes in to the initial work of a project, we are only human, we usually have deadlines to meet, and ultimately we have restrictions on planning and end testing. There are many ways to tackle bugs in the system and everyone has their own mindset on the subject, although I’ve come up with a relatively reliable process for tackling them. Here’s some methodology I’ve pieced together in the time I’ve been working in web development — I hope these simple steps can be of help to you.</p><h4>1. Find out how to replicate the bug</h4><p>In a similar way to scientists testing a theory or detectives proving a case, you need a reliable method of replicating the bug to use as your key to proving the before and after. Where it’s broken and where it’s fixed. This will give the team confidence that the bug is understood and has been fixed. Put some time into coming up with a solid workflow that reproduces the bug and make a note of it.</p><p>The team may well have completed step 1 for you, however when this happens be sure to review the evidence and come to your own conclusion as to how to replicate the bug. You have a different mindset when it comes to the workings of a codebase so your angle will always be different. If it results in the same workflow, great! You’ve got even more evidence that this is the scenario causing the issue. If not, then you have saved yourself time in the long run by not looking into mechanics that aren’t part of the problem.</p><h4>2. Make sure you truly understand the problem — assumption is the root of all f-ups</h4><p>The information for a new bug usually comes from all sorts of different sources. It can be riddled with opinions and assumptions for what might be causing the issue and this can confuse things and lead to numerous ‘wild goose chases’, ultimately wasting time, effort, and sanity in the process. It is often best to step away from the provided information and try to interpret things from a different angle. Try to just look at the facts, and ignore the assumption, and from this, start to piece the issue together.</p><p>By pinpointing where in the code the bug was caused, when your team says to you “Great, it’s fixed! But what was wrong?”, you need a solid answer. Assumption is the root of all f-ups and if you assume what the problem is, that may well bite you in the bum later when a linked issue arises. This diminishes the teams confidence in your ability and will ultimately keep you up at night wondering “was that actually the problem?”. You are a logic problem solver; you need sleep!</p><p>While you have a solid way of replicating the bug from a UI perspective, this may not necessarily mean you understand the bug. A whole range of different mechanics will probably be involved when recreating the bug so it is important to pin down exactly where in the code the issue is. Avoid running on assumption, even if it happens to be correct. You need to know for a fact that you have tweaked the right piece of code that causes the issue.</p><h4>3. Fix the bug</h4><p>You know what the problem is and you can now reliably prove a fix to others. Go fix the problem. I can’t really help you with this, sorry. I know, you read the title and you assumed I could. The key word in that title was ‘reliably’ not ‘fix’, though we probably share a common friend to help with this (<a href="https://stackoverflow.com/">https://stackoverflow.com/</a>).</p><h4>4. Prove the fix</h4><p>You’ve fixed it, well done! Now you can prove you’ve fixed it using step 2s outcome. Perfect, everyone’s happy, though we’re not quite out of the woods yet…</p><h4>5. Don’t test your fix. Try to break your fix.</h4><p>To ‘test’ a fix in a digital product can mean anything from simply proving the bug doesn’t exist any more in the original scenario, to anything up to retesting the whole thing. Instructing a fix to be ‘tested’ is always going to be a vague instruction and can mean anything from minutes to days of work. Even if you have a test suite with 100% code coverage you may still have missed that vital scenario that could present issues.</p><p>To help save confusion and promote a different mindset to testing work, don’t test the applied fix, but instead try to break it. As a developer I find this a really useful reminder to not just run the output from step 2 and assume the bug is resolved, but to go a step further and really push it. I could easily ramble on here about the sub-conscious struggles developers have with properly testing their work as well as the ‘developer-blindness’ that builds from working on a project for so long that you don’t see the interface in the same way as the end user, though this could be a whole new (probably quite dull) article.</p><p>Ultimately, trying to break something completely switches the mindset of a developer and aids them in pushing their work to it’s limits. It may not be very satisfying in the short term discovering new bugs or different scenarios that recreate a bug, though in the long term it will provide a great sense of trust in the work being done and will weed out the weaknesses of the product more effectively from a developer perspective.</p><h4>6. Closing the loop</h4><p>Ok, you’ve managed to break it? See step 1 and repeat.</p><p>If not, don’t you feel so much more relaxed in the knowledge that you’ve understood the problem without any assumption, you’ve reliably recreated it and utilised this to prove the fix, and you’ve tried to break it and failed (eventually). Congrats!</p><p>I’ve found that while this process can sometimes be time consuming, in the long run the reliability in the output it provides always seems to correlate with the amount of discipline applied to using the process. Essentially the more I’ve stuck to these steps, the less problems have arisen from past bug fixes.</p><p>Ultimately there may come a time when the s*** hits the fan and you need to rely on your intuition slightly more when kicking out that all important fix, though for the most part I’d say try and stay focused on what’s needed to provide something solid. Resist being the hero. Be proud of being pragmatic.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c08d43d77d14" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>