<?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 E.- on Medium]]></title>
        <description><![CDATA[Stories by E.- on Medium]]></description>
        <link>https://medium.com/@arlequin?source=rss-ae9be66c5d77------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*MsSvDt0yDO76dOm44YXZ6A.jpeg</url>
            <title>Stories by E.- on Medium</title>
            <link>https://medium.com/@arlequin?source=rss-ae9be66c5d77------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 14:14:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@arlequin/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 we stopped drowning in AI-slop PRs]]></title>
            <link>https://arlequin.medium.com/how-we-stopped-drowning-in-ai-slop-prs-22239b819afa?source=rss-ae9be66c5d77------2</link>
            <guid isPermaLink="false">https://medium.com/p/22239b819afa</guid>
            <category><![CDATA[claude-code]]></category>
            <category><![CDATA[sdlc]]></category>
            <category><![CDATA[ai-engineering]]></category>
            <dc:creator><![CDATA[E.-]]></dc:creator>
            <pubDate>Mon, 26 Jan 2026 11:58:26 GMT</pubDate>
            <atom:updated>2026-01-26T11:58:26.689Z</atom:updated>
            <content:encoded><![CDATA[<h4>Software Development Life Cycle (SDLC) methodologies were meant to avoid Human Slop, ie. miscommunications. You can address AI cognitive dissonance following those same principles.</h4><p>In September‘25, we started spending hours in iterative loops of AI slop. AI just wasn’t smart enough to attack our complicated distributed algorithms.</p><p>Four months ago, we were struggling with:</p><ol><li>Reviewing large PRs that seem to be all over the place,</li><li>Creating brittle systems that seem to break with every change,</li><li>Gate-keeping areas of code that were ‘human only’, and</li><li>Keeping up with all the accelerated innovation.</li></ol><p>We often will get into infinite loops being ‘totally right’, and then having AI do whatever the h*ck it wanted.</p><p>In the meantime, we kept hearing how Software Engineering teams kept multiplying their productivity month-over-month (MoM). <em>But how?</em> If your codebase is non-trivial, and you are working on fairly complex technology, this seems impossible.</p><p>In October’25 we started thinking about how to move from AI informed to <a href="https://www.forbes.com/sites/jakepryszlak/2019/03/08/the-key-differences-between-data-driven-and-data-led/">AI lead</a>, in the hopes of eventually becoming AI driven.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XxFRLYxgwxTKmmy5.png" /><figcaption>Productivity during the past 6 months.</figcaption></figure><p>Since then, at <a href="http://desplega.ai/">desplega.ai</a>, we’ve been doubling our productivity monthly. We did this by reducing the human-in-the-loop to 3 essential moments, and by adding structure to what was initially a set of unstructured prompts.</p><p>This article will give you an idea on how to get there yourself.</p><h3>First: SDLC applied to AI</h3><p>AI coding platforms include a plan mode, a step in which they try to understand exactly what needs to be done and they describe how they’ll do it. <em>That’s wrong</em>. <em>What and How shouldn’t be together</em>, the objectives are different, the thought process is different, and also a mistake on defining What renders the How unnecessary.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-N1Rl9BGx123WnaQ.png" /><figcaption>Traditional phases in SDLC</figcaption></figure><p>That’s why most serious SDLC have stages with clear separation of concerns and well structured communication mechanisms between them. That’s why the <a href="https://en.wikipedia.org/wiki/Shift-left_testing"><em>shift-left movement</em> </a>has proven to be an essential tool to deliver in a fast and cost-effective manner. Hence, if you already start by merging two essential parts of the process, imagine what you can expect next?</p><h4>First learning: <strong><em>Research first</em></strong></h4><blockquote><em>You need to understand the problem in depth (research) before proposing a solution</em>.</blockquote><p>LLMs are compartmentalized. Your coding LLM and your GTM LLM, or your Notion one, don’t have holistic knowledge. Furthermore, they are limited by a context attention span (by size or focus). The same is true for the human reviewing, give them something too long, and they’ll also lose focus or procrastinate. That is our second learning.</p><h4>Second learning: <strong><em>Split Into Atomic Tasks</em></strong></h4><blockquote><em>You need to split tasks in self-contained steps that provide a small &amp; structured context. Humans will review said context.</em></blockquote><p>Now that you understand the problem, and you have smaller tasks, you need to deal with the compounding effect of introduced errors. The earlier you introduce an error, or your LLM assumes erroneously something and keeps that in their context, the higher the impact down the line.</p><p>At least for me, it happens often that I find myself switching LLMs for different problems or restarting a new chat, simply because they are on an infinite loop of wrong answers, they just decided wrong at the beginning. It’s not only coding, generating images or text has the same problem. Sometimes you need to just start fresh again, because the context built in a single step has gone awry. That’s the third learning.</p><h4>Third learning: <strong><em>Don’t iterate, restart</em></strong></h4><blockquote><em>You shouldn’t hesitate to starting from scratch at any step, if the output seems inaccurate. Particularly true during research and planning, as the quality of these compounds heavily.</em></blockquote><p>As a result, your software engineers now will behave closer to Tech Leads.</p><h3>Second: Researching, Planning, and Implementing</h3><p>From those 3 learnings, we distilled three distinctive steps for our SDLC:</p><p><strong>Research</strong></p><p>Once you have an objective, you start a research on how your current solution, and existing libraries work. It could be a highly intensive process, hence we usually rely on multiple agents, MCPs, and other plugins that investigate the web, architecture, DB, infrastructure, code (even the deprecated one), libraries, docs, etc.</p><p>The output is a snapshot on the current systems available to achieve your objective. It’s a well crafted document that summarizes the state of the art at a given point in time. No more, no less.</p><p>You can store and version your research, and you can also stop relying on documentation altogether. This was key, now you have fresh research before a task, not outdated documentation that’s more difficult to maintain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0MBQE-A4ZzlbAzzT.png" /></figure><p>As humans, we review, edit and approve research. For example, you would remove deprecated libraries that don’t need updating, or corner cases that don’t represent business concerns.</p><p><strong>Planning from one, or more, research</strong></p><p>The tenet here is that you should be able to execute each step only with the output from the step before. That results in planning only requiring research documents as input. No more context, no more distractions, just plan.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1dUOI06mwinXZtGf.png" /></figure><p>The output from planning is a design document. It goes as low-level as showing key code changes. It will describe which algorithms and libraries it’s planning to use. This is all about the How.</p><p>As a Plan reviewer, <em>the level of scrutiny you apply would be that of a document that you’ll hand down to an intern, for them to implement on their own</em>.</p><p>No questions allowed. You are looking for decisions that deviate from how you envision the system in the hopes that you can detect edge cases, and lighten your code review phase.</p><p><strong>Implement a plan</strong></p><p>This is the “easy” part, if you did well before. Plans usually have phases, and each phase doesn’t require the context of the previous one, only the Plan. This is a direct result of how our plan was crafted, as you would do when defining a plan for your team, e.g. the plan should get implemented even if someone is sick, ooo or just got hired. Hence each step needs to be “atomic”.</p><blockquote><em>Atomicity means that you can restart your coding agent with each implementation phase, keeping your context always at bay.</em></blockquote><p>Our implementation agent will ask for impromptu snippet reviews, do multiple commits, and PRs, depending on the size of the feature or the practices of your team.</p><h3>Third: DIY or try one in 2 minutes.</h3><p>As a starting point we opensourced our plugin, and agents, so you can use them as a guide <a href="https://github.com/desplega-ai/ai-toolbox/tree/main/cc-plugin/base/agents">here</a>. If you instead prefer to try it in action, you can:</p><p><strong>For claude-code</strong></p><pre>/plugin marketplace add desplega-ai/ai-toolbox<br>/plugin install desplega@desplega-ai-toolbox<br>/desplega:research &lt;your research query&gt;</pre><p><strong>For anything else</strong> (<a href="http://skill.sh/">skill.sh</a>)</p><pre>npx skills add desplega-ai/ai-toolbox</pre><p>This will get you off the ground, but if you really want to leverage this power, you’ll need to learn and adapt it to your codebase. The mastery comes from actually understanding the patterns you follow in your own SDLC.</p><p>Feel free to reach out with questions, and have fun!</p><h3>The-one-thing</h3><p>Whatever you do, <strong><em>start using all the knowledge you’ve got from working in teams of hundreds of engineers</em></strong>. Because it doesn’t matter the size of your company, in a few months the dynamics are going to be that of having an unlimited number of colleagues, and you need to master how to deliver at that scale.</p><blockquote><em>I’ve been hearing more and more companies that are 10x’ing personal allowances. They know how much of a gain there is, a single person in 5 minutes could save them years of investment, or decide to leave the company to do it on their own.</em></blockquote><p><em>You can do it!</em></p><p><a href="https://www.pleasedontdeploy.com/p/how-we-stopped-drowning-in-ai-slop#footnote-anchor-1-185398290">1</a> Together with Taras we wrote this series of articles to share different concepts we applied in this journey, starting with the mental model we used to tailor each step today. We will include Reviews, Quality Assurance, Security, Monitoring &amp; Reliability soon, keep tuned!</p><p><a href="https://www.pleasedontdeploy.com/p/how-we-stopped-drowning-in-ai-slop#footnote-anchor-2-185398290">2</a> We won’t talk today about testing, monitoring, and everything that comes afterwards, so that you really trust what’s produced. That comes next.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=22239b819afa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The future of your code is no-code.]]></title>
            <link>https://arlequin.medium.com/the-future-of-your-code-is-no-code-b72d81bf58f3?source=rss-ae9be66c5d77------2</link>
            <guid isPermaLink="false">https://medium.com/p/b72d81bf58f3</guid>
            <category><![CDATA[sdlc]]></category>
            <category><![CDATA[qa]]></category>
            <category><![CDATA[vibe-coding]]></category>
            <dc:creator><![CDATA[E.-]]></dc:creator>
            <pubDate>Tue, 04 Nov 2025 10:56:27 GMT</pubDate>
            <atom:updated>2025-11-04T10:56:27.917Z</atom:updated>
            <content:encoded><![CDATA[<h4>Is your codebase being reduced every day?</h4><blockquote><strong>Tl;dr</strong>: We argue how with LLMs we need to shift our software development practices to accommodate for pseudo-deterministic ephemeral code. We deep dive into the challenges with vibecoding and a potential model for software development allowing for Agentic code generation with every run.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FfhhMb5CU7LyMtYe.png" /></figure><p>Since the introduction of High-level programming languages (HLPL), Software Development has evolved throughout the years introducing new frameworks, repositories, IDEs, and services meant to reduce the complexity of creating new software. The core precept that has guided this evolution is dual: a firm idealized belief that software provides means to solve a problem once,<em> and for all</em>, and a pragmatic realization that the world is always more complex than you could imagine, leading to increasing challenges. Complexity compounds while software eats the world. The reigning belief for the past 50 years has been to simply re-utilize as much as possible, which leads to specialization of software.</p><p>Particularly in these past two decades, we’ve seen SaaS and global repositories, like npmjs, become key. Nowadays we don’t implement their own feature-flag solutions, ORMs, or RBAC systems. In fact, multiple startups have been created with tens of engineers, instead of thousands, as a result of this, and it doesn’t end there. Many businesses don’t have a tech team, however they do have their own ecommerce and social media software strategies based on services like shopify or instagram for business. The landscape keeps shifting and adapting to that landscape has been a trademark for our profession.</p><p>Most experienced Software Engineers took those notions at core, which lead to two shifts in the last years:</p><ol><li><em>It became a lack of seniority trademark to develop solutions from scratch</em>.<br>There are things that you simply don’t do, unless it’s your team’s sole objective, e.g. creating a UI component library, an ORM, or implementing a search algorithm. Actually seniority is defined as <strong><em>refining systems to decide which providers/libraries to use</em></strong>, and that requires</li><li><em>Knowing your core business tech advantage, a must for great Tech leaders</em>.<br>Long gone are the days in which technologists’ value was locked on knowing the intricate details of a codebase (<a href="https://itrevolution.com/product/the-phoenix-project/">check the Phoenix Project</a>! Nowadays this is detrimental). For the past decade, it has been always about identifying early on where to focus tech efforts, and delegate the rest. Great Tech leaders are able to place the right bets so that the software they produce becomes key leverage to the business. <strong>Their software is core to the value proposition of their business.</strong></li></ol><p>Vibe-coding is the ultimate expression of these precepts, and that’s why you should embrace it everywhere. In particular, two things happen simultaneously:</p><ol><li>You can afford to generate code <em>faster than ever</em>,</li><li><em>Your applications can mutate themselves</em> based on user input.</li></ol><p>Almost everyone is focusing on (1), very few are exploring (2), and most start-ups are focused (3). Three is the easy path forward, providing infrastructure to all, and skipping the conundrum altogether.</p><p>We argue here that you should start leveraging, buying and building, solutions that follow an approach closer to (2). We make a point on why (1) keeps adding tech debt in your codebase, one of the most insidious challenges in this new world. While (2) is actually providing a new HLPL language to your customers, what the industry has been calling no-code/low-code solutions, now in human language.</p><h3>First: Vibe-coding is, unfortunately, still coding.</h3><p>You could think it’s funny, sad, glorious or a condemnation, but vibe-coding is still coding. In fact, <em>&lt;rant&gt; it’s a bit worse than old fashion coding, you still need to debug &amp; test — which I really procrastinated on — and you don’t get to write those cool double for-loops any more&lt;/rant&gt;</em>.</p><p>Actually most vibe-coders are experiencing the same problems any software engineer team had before: lack of security, monitoring, stable releases, “wasting” time in QA, etc. And that has a simple truth: they are generating code without knowing how to <em>manage code</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-bM-PpqId9bkG2fH.png" /></figure><p><em>Reddit vibecoder threads are plagued with these issues.</em></p><p>The main issue for mature tech teams is a bit different, though, it’s that the code generated stays there, possibly forever. Unless you decide to dedicate part of your team to prune your codebase, which humans are historically bad at, the ratio at which you’ll be introducing new forgotten features has grown exponentially. Yes, you now can afford to introduce a new set of features per customer, it also means you’ll end in 2 years with a codebase equivalent to that one that was produced before in ~20yrs with a similar team.</p><p>This is a challenge not just for the size, and complexity of the code itself, but also because it means you have a fraction of the time to implement all the measures that came before with decades of maturity. That will take a toll, and you’ll likely end-up investing on:</p><ol><li>Agents that clean the codebase</li><li>Agents that remove unused code-paths,</li><li>Agents that remove unused features,</li><li>Monitoring, telemetry, etc, those things that you needed with a team of 100 before.</li></ol><p>The feeling would be that of a software company that is continuously deprecating their software and reducing the team. Having seen this in the past, the constant burden of maintenance 80% of the time, instead of the classic 20%, I know leads to productivity issues.</p><p>So how do you start building systems that don’t need to rely on so much code?</p><h3>Second: Prompts! are still non-deterministic in nature.</h3><blockquote><strong>“Code should self-improve with every run”</strong></blockquote><p>This has been the main tenet since day one at <a href="http://desplega.ai/">desplega.ai</a>. The challenge was to adapt and rely on the non-deterministic nature of prompts. Basically, you need to generate code that is stable enough so core areas of your software work as your users expect, and knowing what they expect is always key. Because <strong><em>users will anchor their expectations</em></strong> to some version of the software ( e.g. even if the functionality provided is equivalent, a human will get bothered if buttons change color every time), we decided to use the term ‘anchoring intents’ to denote what we need to be deterministic.</p><p>We concluded that whichever strategy we followed, we needed to allow for (a) custom code and (b) a way to anchor certain properties or characteristics down to the detail. If you end up using custom code for (b) then you run the risk of having just code, and that’s something we aim to avoid.</p><p>To solve for this, we’ve been working with the following high level flow:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ICuFwLpfV3k2b9wt.png" /></figure><p>Human-in-the-loop to anchor behavior is an unavoidable requirement, that is either a user action, a PM review, or a Team meeting; the system needs a confirmation. With this strategy your development efforts are now centered on Agents whilst the rest of the team (UX, Product, QA, etc) are still working on their day-to-day customer centric view. If you think about it, you have just done a major infrastructure update that will keep updating itself, and luckily reduced your codebase in the process.</p><p><strong><em>Note</em></strong></p><p>With enough expertise you could easily go and adjust the anchored intents manually, however these are usually bloated prompts with very detailed descriptions that make it so the system is deterministic where it matters.</p><h3>Third: Expertise still is the key differentiating factor</h3><p>Just in this high level example, you can see how if your objective was to build an e-commerce platform, you would need to fine-tune at least:</p><ol><li><em>A coding agent</em><br>You need a coding agent that knows your technology stack, business principles, design principles and limitations profoundly. It needs to know AWS/GCP, ORM, JS framework, Payment rails, tracking system, etc.</li><li><em>An observability agent</em><br>To manage your monitoring, traceability, experiments, etc. A constant oversight on your infrastructure and monitoring production before an incident escalates. It needs to understand your system signals, what systems to interact with, the options at its disposal, and when to alert who and how.</li><li><em>A set of agents to handle communications<br></em>Internally and externally, a wide range of agents supporting customers, employees, and prospects. This is your most revenue sensitive set of agents, and maybe the most relevant one,</li><li><em>An agent to ensure your quality upon delivery</em><br>Whenever you put your system out there, it needs to work better each time. Either a Web UI E2E testing agents, APIs, evals or all the previous ones, to ensure your application as a whole works as expected for all your customers, all the time. You can focus on the first 3, that if your quality is poor, no-one will use your product.</li></ol><p>Each of these agents mentioned above deserves special attention, and potentially a team of individuals working on it. This is why expertise is still needed in each area, and you should find out what’s the right way to get that expertise: in-house or not. You’ll always need someone in your team to review the configurations, and manage these agents, however you may not need someone in your team to develop this agent’s infrastructure in each case. Think of how you pay for DataDog, NewRelic or Grafana, each of the agent networks above would be an equivalent service.</p><p>In our e-commerce example, you may consider your products and your network effects are the key competitive advantage, bundled with your unique user experience. In that case, the scope for your team is around controlling these agents, more than creating that infrastructure, and ‘anchoring’ a particular voice and UI. They need to do it exceedingly well, so that you don’t lose the raise against the next e-commerce.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*C3DWyYTHIKlFIts9.png" /></figure><p>Vibe-coding apps regenerate the code in each iteration and lack the maturity to do so effectively.</p><p><strong><em>Note</em></strong></p><p>The idea of learning and re-generating the code based on usage, means that majority of the work would be around having a tight feedback loop that allows your agents to regenerate the ephemeral code upon issue discovery to improve a target metric, for example network performance, FPS, etc. Setting up and managing the feedback loop is going to be the majority of the work, and why you need to be conscious there’s an exploding need of better quality solutions, i.e. the quality bar will keep rising.</p><h3>The-one-thing: Code should be ephemeral</h3><p>Remember those old days of C/C++, Cobol, Pascal, Assembly, and Fortran, vs Java, Python, C#, RoR, JS, PHP, etc. Their VMs and interpreters may be slower, but the time savings and broader support justified the change immensely.</p><p>Whatever solution you use, or create, it should be one where the code is ephemeral, intents are permanent. There’s no reason to see it differently this time, this is simply the next leap.</p><p><strong>Leap first</strong></p><h3>References</h3><ol><li><a href="https://www.mckinsey.com/capabilities/quantumblack/our-insights/ai-for-it-modernization-faster-cheaper-and-better">AI for IT modernization: Faster, cheaper, better</a></li><li><a href="https://martinfowler.com/articles/exploring-gen-ai/anchoring-to-reference.html">Anchoring AI to a reference application</a></li><li><a href="https://martinfowler.com/articles/2025-nature-abstraction.html">LLMs bring new nature of abstraction</a></li><li><a href="https://fortune.com/2025/05/21/technologists-are-embracing-vibe-coding-as-they-deploy-more-ai-enabled-tools-to-boost-productivity/">Technologists are embracing ‘vibe coding’ as they deploy more AI-enabled tools to boost productivity | Fortune</a></li><li><a href="https://webtech.tools/vibe-coding-in-2025">Vibe Coding: The Rise of a Revolutionary Trend in Software Development in 2025 | WebTech Tools</a></li><li><a href="https://x.com/karpathy/status/1886192184808149383?lang=en">Andrej Karpathy on X: “There’s a new kind of coding I call “vibe coding”, where you fully give in to the vibes, embrace exponentials, and forget that the code even exists. It’s possible because the LLMs (e.g. Cursor Composer w Sonnet) are getting too good. Also I just talk to Composer with SuperWhisper” / X</a></li><li><a href="https://www.forbes.com/councils/forbestechcouncil/2025/08/27/the-cost-of-poor-software-quality-and-how-ai-can-fix-it/">The Cost Of Poor Software Quality And How AI Can Fix It</a></li><li><a href="https://www.mckinsey.com/capabilities/quantumblack/our-insights/ai-for-it-modernization-faster-cheaper-and-better">AI for IT modernization: Faster, cheaper, better</a></li><li><a href="https://seths.blog/2015/02/leap-first-is-now-available/">Leap First — Seth Godin</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b72d81bf58f3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Don’t Leave Quality to Chance: Step up your SDLC]]></title>
            <link>https://arlequin.medium.com/dont-leave-quality-to-chance-step-up-your-sdlc-a1b2a970f3b7?source=rss-ae9be66c5d77------2</link>
            <guid isPermaLink="false">https://medium.com/p/a1b2a970f3b7</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[qa]]></category>
            <category><![CDATA[e2e-testing]]></category>
            <category><![CDATA[sdlc]]></category>
            <dc:creator><![CDATA[E.-]]></dc:creator>
            <pubDate>Wed, 29 Oct 2025 12:07:15 GMT</pubDate>
            <atom:updated>2025-11-04T10:52:43.051Z</atom:updated>
            <content:encoded><![CDATA[<p><em>A dirty little secret when using AI for coding: you are now in a scaleup.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v3pYLUiXNm8Fv814hBPHmw.png" /></figure><blockquote><strong>tl;dr:</strong><em> You have 10x productivity from your SWE team, but your quality and efficiency have dropped. This is because you have effectively scaled your team overnight; what was previously a team of 10 now feels like a team of 50. We discuss a few reasons for this, the theory behind it, and how teams have overcome these challenges before… because they </em>have<em> done it in the past!</em></blockquote><p>A few times in my career, I’ve had the opportunity to be a direct manager of 10+ individuals. My record is actually ~25, and I’m not proud of it. Usually, what led to those circumstances was either me being a late hire after years of poor management practices or a major re-org that resulted in me leading a new organization. I don’t recommend it, however, I would do it again if needed.</p><p>This is the art of managing the unmanageable, and in each case, I did two things from day one that proved incredibly rewarding:</p><ol><li>Put safeguard processes in place that allowed me to shape the work in the organization (over the years, I started calling that ‘defining principles’).</li><li>Make myself redundant by spotting the talent that would later lead the organization.</li></ol><p>To be clear, I have tried many other approaches throughout my career, and I’ve learned quickly that these two were the only things that mattered. I’ve done this for scaling teams in Growth, Product, UX, HR, and Tech many times, and it’s a key area I mentor on. That’s because it used to be a challenge present only in larger teams; with AI, this is becoming a challenge in Tech even with a team of two people.</p><p>So let’s talk about those Safeguard Processes and leave the People Management topic for a future post.</p><h3>Why is this a problem now?</h3><p>Theories like the<a href="https://en.wikipedia.org/wiki/Ringelmann_effect"> Ringelmann effect</a>,<a href="https://aws.amazon.com/executive-insights/content/amazon-two-pizza-team/"> Amazon’s Two-Pizza Team</a> rule, and<a href="https://en.wikipedia.org/wiki/Brooks%27s_law"> Brooks’s Law</a> were all based on humans as the main source of labor. That means humans were the ones producing the work, and very few were leading that work. To be specific:</p><ol><li><strong>Free-riding</strong> is the key concept in the Ringelmann effect, and it’s the result of others being so distracted that they cannot see your lack of contribution. If others are 10x as productive, it means you can ‘vanish’ much earlier on.</li><li><strong>Single-threaded leaders</strong> may not be affordable or needed in a world where 90% of the work is defining a direction, and the rest just happens. Maybe you can save on that second pizza.</li><li><strong>Brooks’s Law</strong> focuses on exponential communication as a result of a growing team. However, you can see how exponential communication is also necessary as a result of exponential productivity. There are more things to communicate than before, and humans are particularly slow when it comes to relaying information to each other.</li></ol><p>As a result, now more than ever, CEOs, CTOs, Heads of QA, and VPs of organizations of any size are concerned about the same thing,</p><p>How to manage larger (augmented) teams?</p><p>The good news is that the solution has been around for a while, and it may be easier to implement nowadays, given that your <em>human</em> team is smaller. As I mentioned above, Leading by Principles was popularized by individuals like<a href="https://de.wikipedia.org/wiki/Andrew_Grove"> Andrew Grove</a>,<a href="https://www.trilliondollarcoach.com/"> Bill Campbell</a>, and<a href="https://a16z.com/books/what-you-do-is-who-you-are/"> Ben Horowitz</a> as the only way to introduce sustained change in an organization. Tim Howes referred to it as “<em>Make Peace with Repeating Yourself (Ad Nauseam)</em>.” I prefer pointing people to my writing, as suggested by<a href="https://www.principles.com/#get-the-books"> Ray Dalio’s Principles</a> or<a href="https://en.wikipedia.org/wiki/The_Mythical_Man-Month"> Frederick Brooks’s The Mythical Man-Month</a>.</p><p>Here I propose a high-level framework to create a high-velocity, self-correcting system focused on three short principles that are core to bring your SDLC and organization to the next level:</p><ol><li><a href="https://paulgraham.com/words.html">Writing</a>, and reading, before doing</li><li>A single<a href="https://www.nasa.gov/johnson/jsc-mission-control-center/"> Mission Control Center</a></li><li><a href="https://sre.google/sre-book/eliminating-toil/">Eliminating toil!</a></li></ol><p>Before getting into the weeds, I want to stress one thing: This can be used beyond Tech, as this is not a Tech problem but an organizational challenge. Having said that, below I’m going to go into the specifics of how to implement this in Tech organizations. Sorry, not sorry!</p><h3>First: Writing, and reading, before doing.</h3><p>Suddenly, your output is not the output of a single person anymore; it’s the output of a team. That means your solutions could introduce larger mistakes, faster than before. You could, let’s say, create a software that spends $1,000/hr in resources in an afternoon, and you wouldn’t notice. Or you could develop what you think is the right feature very quickly, overnight, and expose all the PII data from your customers without notice.</p><p>Yes, your lead is going to review the code, but sometimes the issue isn’t a distraction; it’s simply a lack of knowledge. The feedback from your CTO or VP will eventually come, and maybe too late. Other times, your team will end up creating an overcomplex solution, e.g. implementing an NP-hard algorithm in the front-end and making your app unusable without anyone noticing. After all, part of the trade is bringing simple solutions to complex problems.</p><p>There’s more, though! Diverging is also a major risk. One of the biggest challenges we’ve seen is learning from each other and<a href="https://medium.com/capchase/capchases-communities-blue-print-11d1904faa1e"> Breaking Silos</a>. If the person sitting next to you has discovered how to be 2x more efficient in some aspect, you want to learn it, fast! This is the way to accelerate the whole organization long-term, and nowadays that tweaking could give you a key competitive advantage.</p><p>To get started on this, start easy, and enforce it:</p><ol><li><strong>Add 30 minutes a day</strong> for a design review (or PRD review).</li><li><strong>Force constraints:<br></strong>+ A document size limit of two pages<br>+ The document must be shared 24 hours in advance.<br>+ Only comments added to the document at least 2 hours before the review will be discussed.<br>+ The output is a clear “yay” or “nay.”</li><li><strong><em>Shift Left!</em></strong><br>Invite everyone to the meeting: QA, UX, Tech, Product, the CEO if they want to!</li><li><strong>The magic rule: </strong><em>Speak now or forever hold your peace.<br></em>Discussions could not prolong, you need to move fast, so a decision in that call needs to be held for the next few months at least.</li></ol><p>You will get one thing out of this process: a daily cadence for your team. You’ll see how you can remove many ad-hoc meetings if you handle this properly. Above all, the number of ‘surprises’ from someone wanting to change something late in the game should be close to zero, if you are using the magic rule properly.</p><h3>Second: Mission Control Center</h3><p>If you are thinking of KPIs and OKRs to track weekly, that’s great… but it’s not what I’m talking about.<br>Four years ago, having a well-integrated observability dashboard was optional for an early-stage team. You could assume system usage was limited and the entropy added by people changing your system was small, meaning every change could eventually be reviewed by the lead. I remember being on a team of four ICs at Google early in my career, and my manager reviewed every single PR. That worked because we produced like a 4-to-1 team; it won’t work if you produce like a 20-to-1 team.</p><p>The Mission Control Center, then, becomes vital to catch your team’s “mistakes” before your users do. If your k8s nodes are suddenly restarting every five seconds, or your latest release has no network connectivity, you need to know, fast. And this is going to happen because LLMs make mistakes! And they make those mistakes faster than you can review them… hopefully.</p><p>As a leader, enforcing the idea of a single, centralized, up-to-date mission control center will allow you to:</p><ol><li>React to issues before they become postmortems and churn problems.</li><li><a href="https://techcrunch.com/2016/06/12/data-breadlines-and-data-brawls/">Remove all data-brawls</a> that may appear when something doesn’t work as expected.</li></ol><blockquote><strong><em>Did you notice how this links to the First point?</em></strong></blockquote><blockquote>It’s in writing &amp; reading where you define your operating principles. ;)<br>In this case, that’s where you enforce the dashboard update, if needed.</blockquote><h3>Third: Eliminating the Toil!</h3><p>This is the most difficult and entertaining part of the job, and it is easy to remember: <em>don’t do the same thing twice!</em></p><p>The most challenging part about toil is the mental space it consumes. If you are thinking all day about that painful five-minute task you need to do, the burden isn’t just those five minutes; it’s the weight you carried throughout the day. I like to think of it as the source of<a href="https://en.wikipedia.org/wiki/Parkinson%27s_law"> Parkinson’s Law</a>.</p><p>In my experience, the biggest pain of asking people to eliminate toil is that the activity itself becomes toil, which is our favorite thing to procrastinate on. I suggest you follow three strategies to get the most out of it:</p><ol><li><strong>Buy, buy, buy</strong><br>Toil is, by definition, context to your business. It’s that thing you need to do, and if you do it well, nobody cares. On top of that, having toil is detrimental to your team’s motivation. Repetitive tasks that don’t help them advance in their self-actualization end up being a source of burnout for talented individuals.<br>My advice, if you can, is to buy solutions. Why?<br><strong>+ You suddenly have an expert team</strong><br>They are improving that area of your software, it’s their core value. Think of how you don’t develop your own CRM, HRIS, ERP, or ATS, even though you could. Apply that thinking to each area of your team, e.g.,<a href="https://www.desplega.ai/pricing"> QA automation</a>,<a href="https://grafana.com/"> Observability</a>, or<a href="https://pullpo.io/"> performance measurement</a>.<br><strong>+ You can focus on your business<br></strong>You don’t have to track progress, manage, or invest time in these areas, and that’s your competitive advantage now. You do not need to understand how to build the best platform for logging, testing, or extracting data from<a href="https://bitbucket.org/product/"> Bitbucket</a> to measure productivity.</li><li><strong>Mix it up</strong><br>Some things you won’t be able to buy, like creating that release dashboard or defining your set of test cases. For those, make them a standard part of a larger project. That way, it’s just eating the whole cake; even if you only like the frosting, at least you get some.</li><li><strong>Rotations! Rotations! Rotations!</strong><br>If you have build-cop or release rotations, a good strategy is to use those weeks for the person on rotation to work on minimizing toil. You should take it one step forward and actually reward toil minimization. A good strategy is to give the person a ‘skip’ in the rotation queue or even a day off if the time saving was significant.</li></ol><p>Finally, when focused on toil, always remember to ask:<a href="https://xkcd.com/1205/"> Is It Worth The Time?</a></p><h3>the-one-thing: Never be the bottleneck</h3><p>It’s easy to decide to implement these mechanisms and delay everything else until they are ready. In fact, it’s even easier to say, ‘we are not delivering on time because we need to do &lt;toil&gt;’; that makes you [Tech, QA, Product, etc.] the bottleneck. The other little dirty secret is: <em>If you are the bottleneck, if your organization is the bottleneck, </em><strong>you are not doing a good job</strong>.</p><p>My advice is that whenever you implement this process, you agree on a timeline, hold yourself accountable to it, and ensure everything is done so that your team is <em>not</em> the bottleneck. Internalize the following:</p><p>In the eyes of a founder, it’s better to have tried and failed than to have never tried and saved resources, even with a 100-to-1 chance. That is how they’ve been successful at building an amazing startup.</p><h3>References</h3><ol><li><a href="https://www.linkedin.com/posts/ecura_our-first-outage-from-llm-written-code-activity-7367176285967618048-tXPo">Our first outage from LLM-written code (LinkedIn Post)</a></li><li><a href="https://aws.amazon.com/executive-insights/content/amazon-two-pizza-team/">Amazon’s Two-Pizza Team Rule</a></li><li><a href="https://paulgraham.com/words.html">Writing, Briefly by Paul Graham</a></li><li><a href="https://sre.google/sre-book/eliminating-toil/">Eliminating Toil (Google SRE Book)</a></li><li><a href="https://medium.com/capchase/capchases-communities-blue-print-11d1904faa1e">Capchase’s Communities Blue-print (Medium)</a></li><li><a href="https://techcrunch.com/2016/06/12/data-breadlines-and-data-brawls/">Data Breadlines And Data Brawls (TechCrunch)</a></li><li><a href="https://review.firstround.com/what-i-learned-scaling-engineering-teams-through-euphoria-and-horror/">What I Learned Scaling Engineering Teams Through Euphoria and Horror (First Round Review)</a></li><li><a href="https://www.simform.com/blog/project-vs-product-mindset/">Project vs. Product Mindset (Simform)</a></li><li><a href="https://www.linkedin.com/feed/update/urn:li:activity:7358495366930976769/">AI is not a silver bullet</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a1b2a970f3b7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Is Quality Assurance a waste of money]]></title>
            <link>https://arlequin.medium.com/is-quality-assurance-a-waste-of-money-a0771a99040e?source=rss-ae9be66c5d77------2</link>
            <guid isPermaLink="false">https://medium.com/p/a0771a99040e</guid>
            <dc:creator><![CDATA[E.-]]></dc:creator>
            <pubDate>Wed, 03 Sep 2025 22:27:06 GMT</pubDate>
            <atom:updated>2025-09-03T22:27:06.424Z</atom:updated>
            <content:encoded><![CDATA[<h4>You are as weak as your weakest link.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9KM5ZiZub3eQXTyK.png" /><figcaption>You are as weak as your weakest link.</figcaption></figure><blockquote><strong>tl;dr:</strong> The key principle to understand with the <strong>Return on Quality Investment (ROQI)</strong> is that wealth preservation (saving) is not the same as wealth creation (return). QA leaders should be unafraid to avoid using the term ROI and instead lead with loss avoidance, e.g., “our QA efforts cost X, but they are saving money / helping with wealth preservation / loss avoidance for 10*X.”</blockquote><p>For <a href="https://harlequinetcie.substack.com/p/push-for-qa-as-your-devex-powerhouse">Quality Assurance to be a power center</a>, we need to be able to articulate precisely the value contributed by the team to the organization. Executives will challenge every dollar allocated to what they see as <strong><em>context</em></strong> efforts, and try to divert them to the <strong><em>core</em></strong>; i.e., adding new products, expanding to new geos, etc. That is their job, after all, and they will struggle to understand why your <strong><em>context</em></strong> team needs such heavy investment. <a href="https://www.youtube.com/watch?v=emQ2innvuPo">[1]</a></p><p>I propose we look into three areas to answer the dreaded question,<em> “Is it worth it?”</em> when defining your budget for your QA team for 2026. Each of these should be seen only through the lens of QA:</p><ol><li>Feature Delays due to <strong>Quality Control</strong> bottlenecks.</li><li>Churn due to low <strong>Product Quality</strong>.</li><li>Reputation damage due to <strong>Incidents</strong>.</li></ol><p>The mindset when answering these questions should be always the same: <em>we are optimizing for future revenue</em>, above all. That means, we know our team needs to be lean, and we commit to constantly optimizing costs.</p><p>At the end, a short story on how this looked for me in the past, and how a high-level company mindset would help you define a successful team.</p><h3>First: Gather the data</h3><p>In preparation for the conversation, you should make sure to gather all available data on the points for your discussion. This needs to be comprehensive and unbiased; you must do your best so this data represents the business reality.</p><p>Each area has a slightly different group of stakeholders you need to talk with, which is where your SETIs and QA Analysts can help.</p><h4>Feature Delays due to Quality Control Bottlenecks</h4><p>Meet with your SRE or DevOps team and ask them to help you collect metrics that explain to your organization the challenges of not having QA, e.g., building the wrong solution, or involving QA late in the process, i.e. why shifting left is important. A few metrics I’ve used in the past:</p><ul><li><strong>Time from pull request/code merged until deployment <br></strong>This is very tactical, but it’s easy to translate into how effective we are as a team. You could run your CI pipelines in 5 minutes, and all automated tests could be flawless, but if deployments are only twice a month, then there’s something in the QA process that needs to change.</li><li><strong>% feature rollbacks<br></strong>If you are rolling back features often, it means that your practices are not mature enough when either defining or validating those features internally; both require QA involvement early on.</li><li><strong>Avg. time from project conception to full launch <br></strong>Related to the above, even if you’ve caught issues before a user ever sees them, the problem may be that your involvement is so late in the process that features take months to be delivered. Again, add a point for <em>shift-left</em>.</li></ul><h4>Churn due to Low Product Quality</h4><p>If you read <a href="https://substack.com/inbox/post/171250251">my last article</a>, this is why Customer Support should be one of your best friends. They have the knowledge and expertise to help you communicate the challenge properly. They can provide you with:</p><ul><li><a href="https://en.wikipedia.org/wiki/Net_promoter_score">NPS</a> overall for users.</li><li>Expenditure on discounts, rewards, or other financial compensation given to customers due to issues with the service.</li><li>Actual churn due to the quality of our product. For this, make sure they include the category in the forms they give to leaving customers.</li></ul><p>This is when you talk with marketing and sales reps, and you get a sense of the following things:</p><ul><li>General communications sent to the customer base on topics regarding quality.</li><li>How important is quality for your ICP? A good product marketing team should have these quantified based on interviews.</li><li>Marketing investments done with a messaging around quality.</li></ul><h3>Second: A fireside chat with Finance</h3><p>Armed with all this information, you should now have an understanding of what’s at stake if your product lacks quality in certain areas. For example, you can now argue why the onboarding flows should be flawless, because your users might not use the product if something fails there, or justify why payments could be handled manually, and the QA investment there should be nil.</p><p>Your finance leader may not care about delivery velocity, or they may equate churn attributed to low product quality with bad customer support; or they may argue the value given by the product is so overwhelming that product failures will be dismissed even if your quality drops. In many respects, it’s a controversial topic.</p><p>The difficulty, from a data-minded leader’s perspective, is simply that <em>we wouldn’t know if we could have gotten away with similar results with less investment</em>. That’s what a CFO would articulate, and I would say most of us would agree. If you are faced with this conversation, then <em>now is when you flip the script: we agree, </em><strong><em>let’s experiment!</em></strong></p><h4>Option 1: Lookback Analysis</h4><p>My preferred option, and the good news is that you probably have this information already: Examine those rushed new product launches.</p><p>During those crazy launches, you purposely skipped QA practices simply because you were willing to afford it, and the results were self-explanatory. I’m sure your issues spiked immediately, and after 6 months, some of the largest projects were consuming 4x costs in infrastructure, and deliveries were equally delayed. Those ‘successful’ product launches give you a blueprint of the cost of skipping QA. They are a playground where expectations from your customers are also low.</p><h4>Option 2: Show Me the Money!</h4><p>If the objective is to experiment with new tools and processes to reduce costs while sustaining productivity, what you need is a budget to make that happen. You’ll likely need someone working on this full-time, and you’ll also need to try new tools and frameworks.</p><p>This is where you commit to a plan and align on how much you are willing to invest and for how long to achieve a clear goal on cost reduction or increased effectiveness.</p><blockquote>This is your opportunity to get promoted. If you show you can build a better organization that’s more cost-effective, then you are on the path to being a key asset in your company.</blockquote><h3>Third: An innovative QA tactic, revenue generating</h3><p>Let’s imagine you get a chance to present the budget plan and 2026 roadmap to your executive team. They are going to be interested in cost-effectiveness and how to reduce churn; that will make them feel satisfied with the department… and you can do them one better!</p><p>You can build an extra case around delivery velocity, and how that could open the door for your team to deliver multiple projects with high quality and customized features to unblock deals without dreading a release will hamper the rest of your system. This could have such a positive impact, i.e., imagine telling a customer that their special fix will take 2 days instead of a month. That even though you would agree it requires consistent investment from the engineering on writing and maintaining tests and infrastructure, you’ll want to do so for the upside alone.</p><p>Again, to prove the above you should set an experiment, define how you are going to measure success across the organization, and track those metrics to show this has paid off. For us, it was winning deals because we would implement features in hours, instead of months, and customize flows in minutes, without endangering all our users. <strong>Having tech not to be a bottleneck for sales was seen as such a competitive advantage that the investment in the area kept steady for years.</strong></p><p>This takes me to my real life example.</p><h3>A team without QA</h3><p>In my whole career, I only hired 1 QA leader, and when I hired that person, whom I already knew, I hired them to run the SRE, IT, Sec&amp;Compliance, and QA teams. Why?</p><p>Because my objective was to have them so busy with other things that <strong>automating Quality Controlandteaching the art of Quality Analysts</strong> to Tech, UX, and Product, would be their only reasonable path forward. He was in the job for 3 years, we had a team of ~60 engineers at peak, and he never hired a single other person with a QA background. <em>We did hire SDETs, SREs, and trained many others to cover aspects of the QA function to create a </em><strong><em>QA culture</em></strong>.</p><p>You can think this is a fairy tale, but let me show you our metrics and how we defined success:</p><p>With an incredible idealistic Northstar we defined those KPIs that would get us closer to the goal.</p><h4>Northstar: 0 business-critical incidents per Q.</h4><ul><li><strong>1 user reported an incident per quarter max.</strong><br>This is key. We didn’t care as much about having issues in our app unless a user reported them. There are two things you should keep in mind though:<br>(a) Given how we implemented CI/CD in an extremely strict manner, CFR and other standard metrics weren’t as meaningful for us.<br>(b) I’m not including anything related to monitoring and alerting in this essay, but there were matching metrics to ensure we were tracking everything meaningful happening in our app in real-time.<br>Also extremely important, we tracked how many issues we fixed proactively, ie. we would actively fix issues that were blocking users before they reached out to us, and we would notify them once everything was taken care of. That would be tracked as a great achievement in a separate board. There’s nothing better than to reach out to a customer and say: “we’ve seen you experienced a challenge, it’s fixed,” or even better if they never even realized the issue.</li><li><strong>5-minute CI duration<br></strong>This meant running 1500 end-to-end (E2E) tests in under 5 minutes, you can imagine the efforts on parallelization, ephemeral environments, and infrastructure to run these tests in a team of at most 60 individuals. <br>All worth it, because as you know, while <em>engineers tend to trust passing test results, they often </em><a href="https://engineering.fb.com/2020/12/10/developer-tools/probabilistic-flakiness/"><em>retry failing tests a number of times</em></a><em> and consider failures followed by passing results as flaky. </em>By reducing the length of the CI pipeline, we save hundreds of hours a year, as each minute saved has a multiplying effect. For example, 1 minute saved here for a team of 60 potentially represents 10+ hours saved per week; thus going from 30 minutes, to 5 was an incredible achievement.</li><li><strong>1-minute rollbacks<br></strong>Whenever an issue was detected we would rollback. As fast as possible, as automated as possible. That meant all changes-configuration, flags, db migrations, etc.-needed to be tightly coupled in a single release, and all services needed to be backward compatible. This gave us the confidence of knowing that if we released frequently enough, we would be able to revert mistakes in seconds.</li><li><strong>95% E2E coverage<br></strong>Test coverage is a vanity metric, but the main concern here was: “have we automated 95% of the tests defined for this product?” For different products in different maturity stages, we oscillated between 80–99% coverage. <br>It would hold us accountable, and by defining these e2e mandatory tests sets in our design and launch documents, we were able to hold ourselves accountable to the quality we needed in each area. <br>This was the enforcement tool for our QA leader to make sure the organization was learning.</li></ul><p>The byproduct of these ambitious targets was that two years later we had 2.5 million fully automated E2E test runs per month, from a base of 1500 automated E2E tests. On top of that, we had unit tests, integration tests, and image diff tests to provide more comprehensive coverage. All that was supported by a community of dedicated Software Engineers, and one individual who had this as their main core responsibility. We’ve done deployments at crazy hours with extreme confidence.</p><h3>The-one-thing: Cost — (Quality) — Speed.</h3><p>Counterintuitively, when discussing budget allocation for QA, you need to fix Quality by means of feedback from Marketing, Customer Support, and Sales, and you should center your plan around Speed &amp; Cost. Don’t discuss ideal Quality standards; <strong>leverage the voice of your customers</strong>. They define what Quality is acceptable. Shift the conversation to what you can do to increase the effectiveness of the team, and talk about velocity and costs for the whole organization.</p><blockquote>Be radically clear: <strong>optimizing revenue is QA’s top priority.</strong></blockquote><h3>References</h3><p><a href="https://engineering.fb.com/2020/12/10/developer-tools/probabilistic-flakiness/">How do you test your tests? (Probabilistic flakiness) — Meta DevInfra</a><br><a href="https://www.schneier.com/blog/archives/2013/03/is_software_sec.html">Is Software Security a waste of money? — Schneier on Security</a><br><a href="https://substack.com/inbox/post/171250251">Push for QA as your devex powerhouse — E.-</a><br><a href="https://taosecurity.blogspot.com/2007/07/no-roi-no-problem.html">No ROI? No Problem — Richard Bejtlich</a><br><a href="https://medium.com/capchase/capchases-communities-blue-print-11d1904faa1e">Capchase Communities Blue-print — E.-</a><a href="https://www.schneier.com/blog/archives/2008/09/security_roi_1.html">Security ROI — Schneier on Security</a><br><a href="https://www.youtube.com/watch?v=emQ2innvuPo">Core vs Context — Geoffrey Moore</a><br><a href="https://www.desplega.ai/tools/qa-cost-calculator">ROQI Calculator — desplega.ai</a></p><p><em>Originally published at </em><a href="https://harlequinetcie.substack.com/p/is-quality-assurance-a-waste-of-money"><em>please-dont-deploy</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a0771a99040e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Push for QA as your devex powerhouse]]></title>
            <link>https://arlequin.medium.com/push-for-qa-as-your-devex-powerhouse-2abd8e2812c2?source=rss-ae9be66c5d77------2</link>
            <guid isPermaLink="false">https://medium.com/p/2abd8e2812c2</guid>
            <category><![CDATA[ai-tools]]></category>
            <category><![CDATA[cto]]></category>
            <category><![CDATA[qa]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[E.-]]></dc:creator>
            <pubDate>Thu, 28 Aug 2025 20:58:37 GMT</pubDate>
            <atom:updated>2025-08-28T20:58:37.748Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1003/1*tkT4-Adz0pfQfiK7s3beiA.jpeg" /></figure><blockquote>tl;dr: As AI progresses, the bottleneck shifts to testing fast &amp; well. We argue for splitting the traditional QA role into two strategic functions: QA Analysts, who ensure you build the right thing for the customer, and SETIs, who build infrastructure for devs to ship safely and fast.</blockquote><p>Your team is coding faster than ever, and now what was a team of 10 feels like a team of 50. The CEO wants to go even faster, and that has resulted in your CTO pushing for bigger releases, still every few days, maybe a couple of weeks. Flash-forward 2 months, and now you are sitting with Customer Support &amp; the Account Management team. The quality of your flagship product is dropping, and a top customer is about to churn. Now you are in a battle of wits with Product, Customer Support, Sales and Engineering. The blaming dance commences.</p><p>Have you seen the blaming dance? I’ve been there. QA says they didn’t have time to review, Engineering says Product wanted it to be released ASAP, Product points at Sales, at best, or back at QA at worst. Sales says ‘isn’t it your job to deliver things right?’. You walk out of the meeting with the certainty that your team is now going to be only doing <strong>Quality Control</strong>. There’s no time to code, so you have gone back to a team of testers.</p><p>You wish it would end on that Defect Escape Rate increase since you started using Cursor, it’s not. It seems your leaders think with AI you can do more with less, it’s time to reduce your department costs. So not only are you seeing your <a href="https://en.wikipedia.org/wiki/DevOps_Research_and_Assessment">DORA metrics spike</a>, you <em>need</em> to do more with less. This isn’t a feeling, it’s a trend, e.g. the 2024 DORA report found that while AI boosts individual productivity, it has been linked to a 1.5% reduction in delivery throughput and a 7.2% decrease in delivery stability.</p><p>Personally, I’ve been faced with challenges like this in QA, HR, Data, SRE, Growth and many other orgs, and I’m going to tell you what worked in all cases: <strong>reframe the problem, think big, think positive</strong>. All that summarizes in a single question:</p><blockquote><strong>How can you make a power-center out of QA?</strong></blockquote><p>Each of those times, I found these 3 questions helped me distill what we needed next:</p><p><em>(1) What are you doing that you shouldn’t be doing? <br>(2) What should you actually be doing to have more impact long term? <br>(3) How can you shift motivations in your team to make (1) &amp; (2) happen.</em></p><p>Below you can see this plan laid out to move QA beyond QC, a plan that took me 1yr to implement with a 60 people team before the AI revolution; <em>be patient</em>.</p><h3>First: Fight the Illusion of Quality Control.</h3><p>If your organization still thinks of QAs as testers, or simply release gatekeepers, it’s key to explicitly name those activities. You need to equate <strong>Quality Control</strong> activities with <a href="https://sre.google/sre-book/eliminating-toil/">‘toil’</a> for the engineering team. The key here is to show your peers that these activities are a particular implementation of a broader vision of <strong>Quality Assurance</strong>. Avoid stepping into exactly what QA is, for now focus on naming each <strong>Quality Control </strong>activity your team does.</p><p>Start by building a list of any and all repetitive tasks that happen once the code has been written, e.g. writing tests, lint, image diff, static code analysis, build, deploy in staging, canary, feature flags set up, etc. Armed with that list, bring your SRE or DevOps team onboard so together you can have a shared, unified, understanding of what are <strong>Quality Control</strong> activities in your company. For example, you could say <strong>Quality Control</strong> groups staging monitoring, alerting, performance, all testing, static code analysis, etc. Believe me, they’ll be excited to see you understand the pain of their daily work, and how their time should really be invested in building better infrastructure.</p><p>With SREs as allies, start small, educating teams, presenting the difference between <strong>Quality Control</strong> and <strong>Quality Assurance</strong>. Add some Engineer Managers to the conversation, and introduce a key core concept: <em>Accountability</em>. At this point you need to have a discussion on who will be accountable for <strong>Quality Control</strong>. This is why the SRE team can help you, they implement the tools for logging, monitoring, alerting, etc, but Engineering uses those frameworks. <strong>Quality Control </strong>should center on the same, you provide the tools you don’t enforce the implementation.</p><p>At this point, naturally, people are going to start asking themselves what is <strong>Quality Assurance</strong>; which leads us to step 2.</p><blockquote>It’s important to know you are defining <strong>Quality Control</strong> for your Company, and you could use arbitrary terms, like <a href="https://harlequinetcie.substack.com/p/writing-tests-was-never-the-bottleneck"><em>Accidental QA</em></a>, if that simplifies conversations.</blockquote><h3>Second: Frame QA as an Engineering org-wide Practice</h3><p><em>“ </em><strong><em>Quality Assurance</em></strong><em> is meant to prevent mistakes and defects in the development and production by avoiding problems and delays when delivering products or services to customers”.</em></p><p>You need to make an effort to remind everyone about a key aspect of <strong>Quality Assurance, it comprises <em>avoiding delays</em> not just problems, and <em>customer satisfaction</em></strong>. The defect prevention aspect differs from the defect detection aspect of <a href="https://en.wikipedia.org/wiki/Quality_control">Quality Control</a> and it is what has been referred to as a <a href="https://en.wikipedia.org/wiki/Shift-left_testing">shift-left</a>.</p><p>You should harness the core concept of shift-left, not into human hours saved by detecting a defect early, but by the reputation damage and potential loss-of-revenue that could result from building and shipping the wrong product. I recommend you use 2 data-points to accentuate the message:</p><p>(a) In 2024 alone, these <strong>costs were estimated at 2.4Tn in the US</strong> alone, the pain is real. You can find similar numbers for whichever geo you are focused on.</p><p>(b) Approach customer success &amp; sales, ask them <strong>how often they need to waive fees, give discounts, or lose customers</strong> because something wasn’t shipped in the right way; either late, faulty, or improper solution.</p><p>Those two above translate immediately to mission critical business needs, defined as a need for effective and efficient product delivery.</p><p>The final step in your presentation is to translate QA into two key areas that bring value to the company:</p><ol><li><strong><em>Quality Analysis </em></strong><em>(</em><a href="https://harlequinetcie.substack.com/p/writing-tests-was-never-the-bottleneck"><em>Essential QA</em></a><em>)<br></em>Working closely with Product and go-to-market to understand the customer needs. <br>QA needs to understand beyond features, the quality and the service expected from customers. That way you can define guardrails for the organization, incl. non-functional requirements, that will ensure your releases are effective.</li><li><strong><em>Quality Control</em></strong><em> (</em><a href="https://harlequinetcie.substack.com/p/writing-tests-was-never-the-bottleneck"><em>Accidental QA</em></a>)<br>Working closely with devex to accelerate delivery in the <em>‘right way’</em>. QA is also responsible for providing the tools and frameworks for efficient releases. You’ll collaborate closely with SREs, Engineering and UX to provide that infrastructure that would guarantee fast releases with the right quality, or even faster rollbacks.</li></ol><p>We have defined a new scope, it’s time to re-shape QA to have impact across the organization.</p><h3>Third: Implement The QA Executive Playbook</h3><p>You’ve done it! Everyone understands how <strong>Quality Assurance</strong> has a broader scope and it shouldn’t be a gatekeeper, instead it should be an enabler. <em>Now, let’s outplay Tech!</em></p><p>You need to bring it all together with flawless execution, to have company-wide impact and become a powerhouse. For that, you need to ensure you have top performers building strong foundations in each area. Timing is of the essence, every effort you do during the next 3 months needs to be successful so your credibility grows, and it’s going to be impossible to do this alone.</p><ol><li><strong>Building bridges</strong><br>A Quality Assurance Analyst needs to work extremely closely with Customer Support, UXR, Account Managers, Product Managers, and any other person that works directly with customers. If you can spend 10hrs a week listening into customer calls, do it! Your team needs to become a subject matter expert on the needs and expectations from customers. (My hack: Listening to Gong Calls instead of podcasts) <br>Please make sure to have a clear scope early on: focus on understanding what are those customer needs above all, much less on how to solve for those. This team needs to fall in love with the problem, as solutions should ‘surprise them’ . <br>Two KPIs to track here: NPS (esp. for new features), and # valid tickets from customer support (think of DER).</li><li><strong>Delegating until it hurts</strong><br>Your Software Engineer in Test &amp; Infrastructure team (SETIs) should invest all their time on building the infrastructure so software engineers can implement their own tests, and their managers have visibility on how well they are doing so. <br>You can always start with quick wins like adding Image Diff, improving record-replay API tests, or adding a new low-touch, no-code, provider. <br>The KPIs I like to start with are proxies for change-lead-time, and change-failure-rate.</li></ol><h3>The-one-thing: No-one should be a tester.</h3><p>Stop asking for your testers to do better and faster, instead teach them how to have exponential impact. Divide them in at least two groups, those that have affinity with technology, and those that have affinity with the product. The former should be trained to become SETIs, working closely with SRE/DevOps, and driving delivery acceleration. The latter need to transition to QA Analysts, with a deep comprehensive understanding of the customers and company vision. They should center on user satisfaction.</p><p>Doing only one will render you exposed to the whims of your leaders, and if you manage to do both, congrats! You are on an executive path!</p><h4>References</h4><ol><li><a href="https://every.to/source-code/i-stopped-writing-code-my-productivity-exploded">I Stopped Writing Code. My Productivity Exploded. — Yash Poojary</a></li><li><a href="https://testfort.com/blog/ai-in-software-testing-a-silver-bullet-or-a-threat-to-the-profession">AI in Software Testing: How Artificial Intelligence Changes — testfort.com</a></li><li><a href="https://arxiv.org/abs/2409.02693">“The Role of Artificial Intelligence and Machine Learning in Software Testing” — Ramadan et al., arXiv</a></li><li><a href="https://arxiv.org/abs/2408.06224">“A Multi‑Year Grey Literature Review on AI‑assisted Test Automation” — Ricca et al.</a></li><li><a href="http://prepare.sh/">“QA and SDET is the Safest Job during AI Boom (2025 Market Analysis)” — prepare.sh</a></li><li><a href="https://wolfcareers.com/blog/what-are-the-differences-in-these-positions-qa-qe-and-sdet">“What Are The Differences In These Positions: QA, QE, and SDET?” — WolfCareers</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2abd8e2812c2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Running Tests Was Never The Bottleneck]]></title>
            <link>https://arlequin.medium.com/running-tests-was-never-the-bottleneck-80f0685d62d0?source=rss-ae9be66c5d77------2</link>
            <guid isPermaLink="false">https://medium.com/p/80f0685d62d0</guid>
            <category><![CDATA[qa-automation]]></category>
            <category><![CDATA[qa-testing]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[qa]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <dc:creator><![CDATA[E.-]]></dc:creator>
            <pubDate>Tue, 12 Aug 2025 15:46:41 GMT</pubDate>
            <atom:updated>2025-08-12T15:46:41.152Z</atom:updated>
            <content:encoded><![CDATA[<h4>Essential vs Accidental QA</h4><p>I’ve been deep-diving during the past few months on Quality. Specifically on how we can accelerate the SDLC through means of QA. It’s not news, quality, velocity, and costs balance each other; however, with the revolution of LLMs, cost has become less about the financial burden and more about the focus one. And this is something difficult to grasp for most of us.</p><p>In this new landscape, I started making a key distinction when talking about tasks, and quality is no exception. For this article, I would call that distinction Accidental vs. Essential QA (yes, I love <a href="https://www.cs.dartmouth.edu/~cs50/Reading/NoSilverBullet.pdf">Frederick Brooks’ ‘No Silver Bullet’</a>).</p><h3>Accidental QA should be delegated</h3><p>Accidental QA is the realm of crash-finding, negative testing, and safety rails. Accidental QA has been fading away for a while; it is where your agent swarms can have fun, and potentially you could go deeper with more deterministic approaches.</p><ul><li><strong>Automated exploration &amp; fuzzing</strong>.<br>Meta’s <em>Sapienz</em> runs tens of thousands of UI-level tests daily, surfacing actionable failures fast — proof that random exploration at scale can find real issues before users do. Another example is <a href="https://antithesis.com/">Antithesis</a>, a continuous reliability platform that autonomously searches for problems in your software within a simulated environment, ideal for server side applications. <a href="http://www0.cs.ucl.ac.uk/staff/K.Mao/archive/p_issta16_sapienz.pdf">[5]</a></li><li><strong>Static analysis &amp; policy gates</strong><br>To catch dependency, security, and style regressions automatically — prerequisites that DORA finds correlate with stronger delivery <em>and</em> organizational performance when paired with solid CI/CD. <a href="https://dora.dev/research/2022/dora-report/2022-dora-accelerate-state-of-devops-report.pdf">[1]</a></li><li><strong>LLM-assisted test coding (not generation).</strong><br>LLMs are fairly good at generating simple unit tests to check a well-defined set of inputs, if those inputs were defined by you, or if they are instructed to try a large enough set of input/output pairs. However, this is a sore point. Autonomy in these systems has shown that naïve generators <em>bless</em> buggy behavior because their oracles are designed to pass; that means early design choices prevent them from finding <em>real</em> bugs. <a href="https://arxiv.org/abs/2412.14137">[6]</a></li></ul><p>So yeah, the <a href="https://www.workingtheorys.com/p/make-something-heavy">light</a> “random walk + guardrails” check, performed by your smoke test layer, or a lazy jr QA intern could be fairly replaceable. We’ve known for a while that CPUs are good at “Try a lot, fail fast, report (somewhat) clearly.” If you haven’t, you should automate this aggressively to reduce your change failure rate without burning human cycles…</p><p><a href="https://open.substack.com/pub/alduba/p/database-migration-wartime-stories?selection=fcea468b-c066-45d9-ba7b-9149363049b5&amp;utm_campaign=post-share-selection&amp;utm_medium=web&amp;aspectRatio=instagram&amp;textColor=%23ffffff">Waiting for QA should never happen again</a>, but it’s not the actual strategic bottleneck.</p><h3>Essential QA is your moat</h3><p>During my early days in the industry, I dreaded when my CEO, VP, director, Staff PM, etc, would try my functionality. Everything <em>worked</em>, everything looked <em>ok</em>, I would argue I would even have done <em>what they told me to do</em>… but it was obviously at fault, because the photo tile was too small, they couldn’t share that document with two different sets of friends without making copies, or any other arbitrary distinction. I did learn fast that it was that eye that made them who they were in the organization, the visionaries.</p><p>This is no different with AI code generation.</p><p>Birgitta Böckeler’s recent experiment on <strong>autonomous AI code generation</strong> consistently achieved “well-tested” code [i.e., great Accidental QA with high coverage, unit/integration/E2E suites]; yet the actual<strong> functionality diverged from the intent as complexity grew</strong> (the examples were fairly small). They also noted E2E suites “can’t cover all test cases” and that gaps in requirements led the AI to filling in assumptions.</p><p>If this reminds you of the old days, it’s because this is the old lesson from Frederick Brooks: the hard part of software is the conceptual design and specification, not the syntax. He framed it as <em>essential</em> vs. <em>accidental</em> complexity (surprise!), our tools can reduce the accidental, but the essence (deciding what the system should do) remains stubbornly human. LLMs are good at guessing what you aimed to say, however the context needs to be transferred so that guess is more informed; this is extremely relevant for complex scenarios where multiple answers could be “right”. <a href="https://www.cs.dartmouth.edu/~cs50/Reading/NoSilverBullet.pdf">[7]</a></p><p>Alas, the human challenge!</p><p>If LLMs have taken away the need to code these paths, then what you really need is to train your QA Lead — be it a QA professional, a Product Manager, an Engineer or an Ops person — so that they can actually deeply understand what your customers want out of this new feature. That way they would be defining at a higher level those paths your acceptance tests should follow, and those go beyond a static stage of the product.</p><p>So if you ask me, it’s time for another extreme shift-left in QA. It’s the time to ensure your organization puts the work in the acceptance criteria; this is the heavy work. Because in the same way that ML became about data cleansing &amp; optimizing loss functions, if coding fades away, <em>the relationship between customer needs &amp; crafting perfectly balanced acceptance criteria will become the talent moat.</em></p><h3>The-one-thing: Divide and conquer</h3><p>Automate the “Accidental QA” layer ruthlessly, and put your<strong> best PMs and QA leads next to customers</strong> to make acceptance criteria <em>heavy</em>, executable, and non-negotiable. That’s how hopefully quality will become part of your revenue engine, not a cost center.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W5zwcwVELvI4N9xyidotLQ.jpeg" /></figure><h3>References</h3><ol><li><a href="https://dora.dev/research/2022/dora-report/2022-dora-accelerate-state-of-devops-report.pdf">Accelerate State of DevOps Report (DORA) — Google Cloud / DORA Research.</a></li><li><a href="https://github.blog/news-insights/research/research-quantifying-github-copilots-impact-on-developer-productivity-and-happiness/">Quantifying GitHub Copilot’s Impact on Productivity — GitHub Research Blog</a></li><li><a href="https://ordep.dev/posts/writing-code-was-never-the-bottleneck">“Writing Code Was Never the Bottleneck.” — ordep.dev</a>.</li><li><a href="https://martinfowler.com/articles/pushing-ai-autonomy.html">“How far can we push AI autonomy in code generation?” — Birgitta Böckeler</a></li><li><a href="http://www0.cs.ucl.ac.uk/staff/K.Mao/archive/p_issta16_sapienz.pdf">“Sapienz: Intelligent automated software testing at scale.”</a> — Engineering at Meta. — <a href="http://www0.cs.ucl.ac.uk/staff/mharman/ACM-surveys-sbse.pdf">ACM Survey</a></li><li><a href="https://arxiv.org/abs/2412.14137">“Design choices made by LLM-based test generators prevent them from finding bugs.” — Mathews &amp; Nagappan (arXiv:2412.14137)</a>.</li><li><a href="https://www.cs.dartmouth.edu/~cs50/Reading/NoSilverBullet.pdf">“No Silver Bullet: Essence and Accidents of Software Engineering.” — Frederick P. Brooks, Jr. (1987)</a>.</li><li><a href="https://www.workingtheorys.com/p/make-something-heavy">“Make Something Heavy.” — Anu Atluru, Working Theorys.</a></li><li><a href="https://martinfowler.com/bliki/GivenWhenThen.html">“Given-When-Then.” — Martin Fowler (BDD / Specification by Example primer).</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=80f0685d62d0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Github Actions can help you win a Hackathon]]></title>
            <link>https://medium.com/capchase/how-github-actions-can-help-you-win-a-hackathon-1070aad38fa?source=rss-ae9be66c5d77------2</link>
            <guid isPermaLink="false">https://medium.com/p/1070aad38fa</guid>
            <category><![CDATA[reverse-engineering]]></category>
            <category><![CDATA[lua]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[github-actions]]></category>
            <category><![CDATA[hackathons]]></category>
            <dc:creator><![CDATA[E.-]]></dc:creator>
            <pubDate>Wed, 21 Jun 2023 09:51:16 GMT</pubDate>
            <atom:updated>2023-06-21T09:51:16.388Z</atom:updated>
            <content:encoded><![CDATA[<p>by <a href="https://medium.com/u/d4ea4876631d">Lucas Crijns</a> <a href="https://medium.com/u/c3c1999d7136">Bruno Ploumhans</a> <a href="https://medium.com/u/393ea660052c">Oisín Morrison</a>, based on <a href="https://devpost.com/software/voyager-o6dauy">their winner project</a> for <a href="https://royale.sqlillo.com/#/">SQLillo Royale</a> during <a href="https://hackupc.com/">#hackupc</a>.</p><p>Last May we travelled to Barcelona from Switzerland to participate in HackUPC, Spain’s first student hackathon, as team OutLauz. At this hackathon Capchase presented an unusual challenge which immediately piqued our interest, standing in stark contrast to the other challenges involving supply chain optimisation, financial trading or developing games. Instead, they proposed a Fortnite like battle royale game with one simple goal: be the last one standing! Coming from mathematical backgrounds, this immediately sparked our interest as we felt we could use our maths skills to outwit the other teams.</p><p>The game had relatively simple rules that we had to learn to take advantage of. In this game, all players start at a random position in a 500×500 2D world. Players can move around in any direction in the world, using special abilities such as shooting bullets, melee attacks and dashing to kill and avoid other players. These abilities had cooldowns, so we had to learn how to make the most of these powers!</p><p>To play the game, Capchase presented an online platform where one could upload their playercode in Lua, which was then used to play subsequent games. We were faced with two problems from start:</p><ol><li>For every minor change we made, we would have to manually reupload our code.</li><li>We would have to watch the newly played game to see if our code had actually improved our player performance!</li></ol><p>Argh! these manual tasks would make it annoying to develop our agent. Fortunately, we are also engineers that know a thing or two about how web development works. Wouldn’t it be great if we simply reverse engineered the APIs underlying the platform? We can automate all of it!</p><p>Okay sure, we automate uploading and aggregating results, but how do we do that? Simple! We use Github actions to automate this for us: At every push we upload our code to Capchase’s platform and aggregate results, then displaying them in comments on the last commit. This way we could promptly see if a middle-of-the-night commit included a devastating or winning change.</p><h3>Reverse engineering the API</h3><p>It was the first night of the hackathon, and the rules of the game had not crystallised yet, as Capchase were fighting with their monolithic C codebase. Of course, this was the perfect time to reverse engineer an unstable API!</p><p>To do this, we can open the devtools of any browser and watch requests for saving code and loading recent matches. Let’s start with code uploads. There is a big blue save button for code:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*keVS5oo-mVRugbQS" /></figure><p>Monitoring network requests when we press it, we see:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/990/0*ngSuGB_WsFlsCfvi" /></figure><p><em>Aha! A HTTP POST action when we press the save button</em>. That must be when the code gets uploaded. Indeed, when we check the JSON of the request, it contains the code we just typed in the browser.</p><p><em>Okay, so how do we do it now from, say, a Python script?</em></p><p>We can simply use the requests library to upload it. Unfortunately, there is a catch: We need to be authenticated to upload code. In the POST request we notice there is a specific authorisation header sent along:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/535/0*mXEp-hEfcsysOVq4" /></figure><p><em>Alas! We need an authorisation token. Where do we get that?</em></p><p>Probably during the login we obtained such a token. And yes, we find it upon login, straight after posting our credentials:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FWT2bqxEby-furkH" /></figure><p>Now we have all the ingredients to upload our code:</p><ol><li>A way to get a token upon login, and</li><li>a way to use that token to upload our code.</li></ol><p>We are almost there. The only thing that remains is to get the last played match.</p><p>Going to the matches tab and monitoring requests, we find:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mBvQ-0Z_Oj8yqIAf" /></figure><p>Right, it loads all available matches and we see that the JSON includes a timestamp for each match. Perfect, now we only need to download the results of the match to check who won. Monitoring again the requests, we find that:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*b79WQ_zJuDo9JGYk" /></figure><p>A huge JSON file is being loaded to preview a match. This JSON file contains the moves of every player. This is what we need to determine who won. Using the IDs in the match overview, we can load the JSON file of the match at a specific URL.</p><p>With the API known, we can create Python scripts that do this for us. To see how we did that, look at our repository under ‘scripts’: <a href="https://github.com/lucashc/Voyager">https://github.com/lucashc/Voyager</a>.</p><h3>Github actions for the win</h3><p>Once we have our Python scripts — `post.py` to upload our code, and `summary.py` + `get_ranking.py` to generate a markdown summary of the game and a computed ranking… the next step is to run them automatically with GitHub Actions!</p><p>As a first step, we start with the first script — `post.py`, and we just want to run it for each push to the `master` branch. The action workflow definition must be placed in the right directory, here ours is at `.github/workflows/push.yml`:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/372/0*MujghEkVUjOasXbB" /></figure><p>The first line gives a name to our workflow, which will be displayed in the action panel when the workflow runs:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/410/0*050mFbPW9DfRj4Wu" /></figure><p>Then, we define the “trigger” for the workflow, i.e. which conditions need to be met to start the workflow. In our case, we want to run the workflow for every push to the `master` branch. We chose to only trigger on the `master` branch to avoid prematurely uploading code that we were developing on separate branches. This is just one example, but GitHub offers many other triggers, so make sure to check out <a href="https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows">the official documentation</a>.</p><p>Once our workflow has a trigger, we can define the steps of the workflow. Workflows are split into `jobs`. For now, we only need a single job to run our Python script. We name the job `upload`. Then we need to choose an Operating System for the job, here we pick `ubuntu-latest`. Under `steps`, we list the steps or “actions” that the job must execute. Here we have two steps:</p><ul><li>First, we run the `actions/checkout@v2` action with the `uses` keyword. This is an action provided by GitHub (see <a href="https://github.com/actions/checkout">https://github.com/actions/checkout</a>) that will checkout the repository. This is required to access any file in the repository, and should probably be the first action of every job.</li><li>Second, we use the `run` keyword to directly execute a command — in our case we run the Python script. We also give the command a `name` that we will see in the Actions tab.</li></ul><p>And there we have our first job:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*R_1Z7r2A3Pqh2wja" /></figure><p>Now, we want to run our summary scripts, and generate a comment containing the Markdown output. Here is what the end result will look like (truncated):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/765/0*_9hpIFQqni7Eboww" /></figure><p>We know how to run code, but we do not know how to add a comment on a commit. Fortunately for us, someone else already published a reusable action that does exactly this: <a href="https://github.com/peter-evans/commit-comment">https://github.com/peter-evans/commit-comment</a>. Passing a generated comment to it is a bit tricky, so let’s go through the steps.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/473/0*wyQ4zaHh9bar7loD" /></figure><p>First, we define a new job, `add-feedback-comment`. We add a `needs` clause to make sure that it runs after our previous `upload` job. Once again, it runs on the latest Ubuntu release, and the first step is to checkout the repository.</p><p>In principle, the two other steps are quite simple:</p><ul><li>Run the Python scripts to produce the comment message body.</li><li>Give that to the `peter-evans/commit-comment@v2` action to create the comment.</li></ul><p>However, passing a multiline string to a subsequent step is not as easy as one would expect. We can save task outputs by writing to the `$GITHUB_OUTPUT` file, in the `key=value` format. However, this doesn’t work for multiline strings. For that, we need to use a <a href="https://en.wikipedia.org/wiki/Here_document">heredoc</a>. We first output `key&lt;&lt;SOME_UNIQUE_IDENTIFIER` to start the heredoc, and then everything until the next occurrence of `SOME_UNIQUE_IDENTIFIER` is considered part of the value for the `key`.</p><p>Now we understand the content of the `run`. Note that each line corresponds to a different shell command:</p><ul><li>Generate a random unique identifier for the heredoc. Here it is stored in the shell variable `$EOF`. For security, it is better to generate a unique identifier, otherwise a malicious user knowing the used identifier could end the heredoc prematurely and then write to any other variable.</li><li>Start writing to the `feedback` value by opening a heredoc.</li><li>Write the title of the commit message to `feedback`.</li><li>Run `summary.py` and add its output to `feedback`.</li><li>Run `get_ranking.py` and add its output to `feedback`.</li><li>Close the heredoc.</li></ul><p>Additionally, we give a unique `id` to this step. This allows us to refer to the output using `${{ steps.&lt;step identifier&gt;.outputs.&lt;key&gt; }}`. In our example, we can access the output using `${{ steps.generate-commit-message.outputs.feedback }}`. This is then used for the comment action.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yqoPsis27Iinec1l" /></figure><p>And that’s it!. This is just scratching the surface of what can be done using the very powerful GitHub Actions workflows. No excuse to not use them for your projects now!</p><p>Wait — we forgot the most important question! Did we win? Well, kind of, we won something for the use of GitHub actions, but were second in the Capchase challenge. Might be something to do with randomly hand-picking hyperparameters iteratively… Turns out, randomly hand-picking hyperparameters is worse than running a grid search algorithm on the parameter space. Who knew?!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1070aad38fa" width="1" height="1" alt=""><hr><p><a href="https://medium.com/capchase/how-github-actions-can-help-you-win-a-hackathon-1070aad38fa">How Github Actions can help you win a Hackathon</a> was originally published in <a href="https://medium.com/capchase">Capchase Tech</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[‍ Capchase’s communities blue-print]]></title>
            <link>https://medium.com/capchase/capchases-communities-blue-print-11d1904faa1e?source=rss-ae9be66c5d77------2</link>
            <guid isPermaLink="false">https://medium.com/p/11d1904faa1e</guid>
            <category><![CDATA[fintech]]></category>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[management]]></category>
            <dc:creator><![CDATA[E.-]]></dc:creator>
            <pubDate>Thu, 01 Jun 2023 01:22:06 GMT</pubDate>
            <atom:updated>2023-06-01T01:22:06.013Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>🫱🏼‍🫲🏾 Capchase Communities Blue-print</strong></h3><blockquote>🫱🏼‍🫲🏾 Community structures within Tech complement our squads and pods. <br>They are given the high stake responsibility of defining and implementing the standards and systems to deliver results for years to come. <br>Nowadays we have communities for Data Analytics, Data Science, Data Engineering, Software Infrastructure &amp; Quality, and full-stack.</blockquote><p>When I joined Capchase we had three teams: front-end, back-end and data. Each team was centered in a well-defined, stable, tech stack and expertise. Data was the world of python &amp; bigquery, front-end defined our nodejs &amp; reactjs architecture, and back-end had the responsibility of bridging between these worlds using go, rust &amp; elixir. Even though we were less than 15 people then, we had 10+ repos, 7+ coding languages, and 5+ services running. We found three key limiting factors that questioned the whole approach:</p><ul><li><em>Silos</em> <br>Each team had a team lead that was both a people manager &amp; technical lead. Strongly coupled reporting lines made it so that ownership over technology and solutions was centralized in a single team and person. Hence, looking for advice or allowing for people to collaborate outside their teams seemed out of place. Knowledge transfer across the organization was nil.</li><li><em>Excruciating coordination</em> <br>Each project, feature, or new product required these teams to coordinate with each other. Hence, even though we were a small team, most of our time was spent coordinating efforts across these teams. The most challenging piece was deciding when one team was going to implement the ‘missing partial feature’ for another team to deliver. As a result, in most cases, we ended up going back to the drawing board weeks after a project started given the lack of context in early assumptions.</li><li><em>Future-proof solutions</em><br>Because each team was limited in their view of Capchase’s needs and plans, it was impossible for them to provide solutions that would actually fulfill our business on a long term horizon. They all had a partial view only informed by their backlog. As a result, we had some teams taking on large amounts of technical debt, and others spending months over-engineering solutions.</li></ul><p>To solve these limitations we asked ourselves, what is the right balance to strike between speedy delivery and robust innovative solutions?</p><p>The answer to this not so original question, drove us to create the squad &amp; community concept at Capchase. Today we will center in the latter.</p><p><strong>What are Communities at Capchase?</strong></p><blockquote>As Andrew Grove would indicate in High-output management, communities [functional teams] are there to increase Capchase’s leverage whereas our squads [mission teams] are there for speedy deliver on short-term initiatives.</blockquote><p>A community is a non-hierarchical team, there are no managers, only experts &amp; leads. It’s an added responsibility to that of our squads for all members who need to actively contribute on a weekly basis. It’s the maximum expression of our builder attitude &amp; servant leadership.</p><p>Our community approach was born from two cornerstones of our Tech culture:</p><ol><li><strong><em>We fall in love with challenges, not solutions.<br></em></strong>A community is focused on a single main technical challenge in our system, e.g our Data pipelines, our Data Analytics systems, payments infrastructure, CI/CD, customer vendor integrations, etc. That means their expertise is built around the challenge and it could change in the future. We had communities moving from Go to Elixir, from Elixir to nodejs, moving away from bigquery or maybe start using it. The challenge, however, stayed always fixed, as it is core for Capchase.</li><li><strong><em>‘I am because we are’<br></em></strong>Intellectual humility and a ‘we first, not me first’ mindset live at the core of Capchase Tech culture. Communities are teams of tech teams, individuals coming with their unique perspectives from different business concerns in mind and sharing all those to build a better Capchase. Sometimes the changes take weeks, months or quarters, but those are usually the most significant ones. We are here to enable all of us to innovate today, tomorrow, always.</li></ol><p><strong>How do Communities work at Capchase?</strong></p><blockquote>Any organization that designs a system (defined broadly) will produce a design whose structure is a copy of the organization’s communication structure.<a href="https://en.wikipedia.org/wiki/Conway%27s_law#cite_note-Conway-2">[2]</a><a href="https://en.wikipedia.org/wiki/Conway%27s_law#cite_note-3">[3]</a></blockquote><blockquote>— Melvin E. Conway</blockquote><p>Because of the challenge-led approach, communities are born when there’s an <em>almost</em> universal tech need, that should not have a limited time horizon; and often gets discovered through organic discussion between tech leads, community leads &amp; managers.</p><p>Once a need is identified, we strive to move towards a ‘system thinking’ first vision and away from a ‘team delivery’-centric approach. Sometimes this results in a conflict of interest between communities and squads. Community’s plans can run counter to the short-term interests of a single squad, so it’s key to find the right initial community members that will have the ability to evaluate these tradeoffs carefully and <a href="https://medium.com/capchase/escalation-manifesto-ac123d8941b">escalate as necessary</a>.</p><p>From those initial members we usually have one emerge as a community lead. This servant leader, which potentially rotates, is the representative for that community and they are responsible for ensuring their community delivers on their commitments, including OKRs.</p><p>Finally, participating in a community is considered a <em>privilege</em>, it’s not an obligation. While the community newsletters and support channels are open to everyone in Tech, community meetings are only for individual contributors who want to actively further their impact beyond their direct teams. It’s an added responsibility to that of their squad, and one requiring an equal level of effort. It shows a deep commitment to our Tech &amp; Capchase vision.</p><h3>Our community blue-print</h3><h4><strong>Expected Outcomes</strong></h4><p>The single most important piece of a community is their expected outcome. A community exists with an objective, and a community that doesn’t have a vision — ie. a well crafted expected outcome — or fails to deliver on it, needs to be dismantled. It is this methodology that helps us scale &amp; escalate in an organized manner.</p><p>So we define a <strong><em>community</em></strong> at Capchase by clearly stating <em>expected outcomes, activities, and member behaviors</em> that regulate the group.</p><p>We divided the expected outputs from a community into:</p><ul><li><strong>6 month+ clear roadmap for a sizable Tech area<br></strong>Communities own their OKRs, KPIs, and long term initiatives over certain Tech areas. They focus their energy on improving our systems continuously so we can move faster, with better quality, while fully aligned with the overall Tech vision. They’re often focused on long term results.</li><li><strong>Coordination to define &amp; implement standards across Capchase<br></strong>Communities are expected to define standards, and also implement them. To achieve this, a community should allocate less than 5% of their time to finding new approaches, and instead invest heavily on mechanisms to further existing approaches that have already been defined as standards after a Tech-wide approval. We expect a community will invest most of its time making efforts to track, measure and iterate their solutions.</li><li><strong>Continuously shared knowledge, tools and practices<br></strong>Communities should provide async channels for every Tech staff member at Capchase to ask related questions and get support. In general, they should provide open community slack channels, email groups — so that others can email questions without becoming a member — and even office hours when needed.</li></ul><h4>Activities</h4><ul><li>Follow best practices in their area of influence: these best practices are documented and shared across the company on a centralized information hub.</li><li>Ensure the general reliability and quality levels for all related systems under the area.</li><li>Translate Capchase’s vision to our Tech functional spaces, eg. front-end, back-end, data analytics, data engineering, data science, reliability, QA, CVI, etc, with enough thought process that it accounts for future needs and changes in our objectives.</li><li>Define and propose extensions of Capchase best practices.</li><li>Define code reviewers, and ensure Tech design reviews include an adequate representative of the community when needed.</li><li>Regular meetings with all active members.</li><li>Share updates with the wider Tech org: e.g. a newsletter or meeting minutes.</li></ul><h4>Community member behaviors</h4><p>A community <strong>is</strong> its members, it’s essential that every member is an example of Capchase Tech in their values and behaviors:</p><ul><li><strong>Builder attitude is the most important quality for all members<br></strong>We value action over ideas. Every community member needs to take on the responsibility of helping improve the community by making things happen while helping enforce best practices. That could look like actively validating and implementing solutions in the area, by means of pull request reviews, design reviews and contributing to new projects.</li><li><strong>Regularly attends &amp; effectively contributes during weekly meetings.<br></strong>Participating during meetings is highly encouraged. But making those contributions effective is the key characteristic of each community member. Community meetings are open, but community members have to contribute their time and effort to current projects, not just check in for interest or to increase their knowledge. Communities are for the invested, not the casually interested.</li><li><strong>Shares knowledge and validates ideas with the whole Tech org.<br></strong>A community member needs to influence more than their direct teams. They’re responsible for sharing the knowledge acquired in the community with the wider Tech org. But as examples of the Capchase builder attitude, they have to make sure they’re influencing through their work as well as through sharing updates: they should validate ideas with the whole Tech org.</li></ul><p>We call this our <em>invested membership principle</em>.</p><p>This blue-print is the end result of multiple iterations in which we had introduced small thought through changes and measured the impact that they had in Tech and Capchase.</p><p>Stay tuned for more!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_22p0QkwVyJephtTprjCjQ.png" /><figcaption><strong><em>Stay tuned for a detailed post on how those changes and iterations were introduced and measured.</em></strong></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=11d1904faa1e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/capchase/capchases-communities-blue-print-11d1904faa1e">🫱🏼‍🫲🏾 Capchase’s communities blue-print</a> was originally published in <a href="https://medium.com/capchase">Capchase Tech</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Escalation manifesto]]></title>
            <link>https://medium.com/capchase/escalation-manifesto-ac123d8941b?source=rss-ae9be66c5d77------2</link>
            <guid isPermaLink="false">https://medium.com/p/ac123d8941b</guid>
            <category><![CDATA[remote-working]]></category>
            <category><![CDATA[management-and-leadership]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[escalation]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[E.-]]></dc:creator>
            <pubDate>Mon, 02 Jan 2023 09:02:43 GMT</pubDate>
            <atom:updated>2023-01-02T11:13:58.263Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>💡 Our guide to get the right people <strong><em>together</em></strong>, and <strong><em>empower</em></strong> them to make difficult decisions <strong><em>faster</em></strong> in a bottom-up culture.</blockquote><h3><strong>Escalation, a practice for the intellectually humble</strong></h3><p>We consider escalation a manifestation of a key cultural trait: intellectual humility. It is because we understand our limitations, that we escalate when we need help resolving an unexpected challenge. It is also because we have an innate builder attitude that we want to hold ourselves accountable &amp; responsible for those final decisions. As a result, escalations become a necessary tool that is used early, often &amp; explicitly.</p><h3>Guli Moreno on Twitter: &quot;Culture is hard. But, it&#39;s also one of the most beautiful parts of building a company. Here&#39;s what&#39;s worked for us @GetCapchase (and some things we&#39;ve yet to figure out). Comments are welcome!😊 https://t.co/Piojqp22Xg / Twitter&quot;</h3><p>Culture is hard. But, it&#39;s also one of the most beautiful parts of building a company. Here&#39;s what&#39;s worked for us @GetCapchase (and some things we&#39;ve yet to figure out). Comments are welcome!😊 https://t.co/Piojqp22Xg</p><p>At Tech, we promote escalations to happen whenever the issue at hand cannot be resolved by the involved individuals and a serious trade-off is needed. Hence, the individuals sought during an escalation, welcome the opportunity to intercede and collaborate beyond their current scope. It means their skills are required and no-one in that current group feels comfortable driving the decision.</p><p>Interestingly enough, not only should you frequently escalate looking for more senior individuals in an area, but we also consider it a clear sign of seniority for those that know what, how and when to escalate.</p><h3><strong>Are you delayed, surprised or blocked?</strong></h3><blockquote>🫵🏽 It’s not on you, but <strong>you are your only hope</strong>.<br>Since we know you will need help while delivering autonomously, being autonomous means we trust you to know when to escalate.</blockquote><p>We escalate,</p><ul><li><em>As soon as we foresee a potential delay</em> <br>You want the right people to be aware of potential tardiness so that they can either help accelerate or communicate accordingly. <br>This is the main reason why we escalate (usually <strong>after waiting a reasonable time</strong>). We have several SLAs defined for different activities that allow us to know when to escalate. For example, we have a 48hrs start-to-finish rule for any design document, so comments are expected to be replied in a couple hours, not days. In general, clear pre-arranged ETAs for activities is essential to ensure escalations are no surprises.</li><li><em>When unforeseen circumstances happen<br></em>We’ve all been there. The reasons are many, e.g. either because we missed a now “obvious” requirement, we didn’t identify a key dependency, or simply, because all software changes [Check <a href="http://www.cs.unc.edu/techreports/86-020.pdf">“No Silver Bullet”</a> on software Changeability]. Although most of the time we are able to resolve those challenges swiftly, it’s important to at least give visibility to the organization so we can learn from them.</li></ul><blockquote>“Do you have any idea what a curse it is to have perfect 20/20 hindsight? As soon as something bad happens, I immediately know how it could have been avoided. I can’t take it anymore!” — <a href="https://www.southparkstudios.com/video-clips/odn5a2/south-park-captain-hindsight">Captain Hindsight</a>.</blockquote><ul><li><em>When you are overwhelmed<br></em>The above was centered on how other foreign elements could affect your project. However, there’s one thing that could also result in a need for escalation: work paralysis. How many times have you found yourself going again and again over your list of tasks without being able to move forward on any? That is usually coupled with the feeling of lack of understanding of where to start. This is the right moment and time to escalate. You <em>have exhausted almost all reasonable alternatives, you need help!<br></em>Hopefully you can quickly navigate this difficult moment together with your manager, tech lead or a more senior team member.</li></ul><h3><strong>Early, often and explicitly</strong></h3><blockquote>❤️‍🔥 <strong>In a remote set up, escalation is fundamental<br></strong>Your co-workers don’t notice you are blocked, or waiting, unless you promptly voice your concerns. Thus, this skill must be mastered very early in your career.</blockquote><p>Often we avoid bothering colleagues assuming they are busy with their day-to-day. In fact, we perceive that those who can help us usually complain it takes away their focus. As a result, we try to wait until our next daily, 1&lt;&gt;1, weekly catch-up, etc…</p><figure><img alt="It’s a trap!" src="https://cdn-images-1.medium.com/max/1000/0*4ZRQU6Ls5V0IkvWN.jpg" /></figure><p><strong>Waiting times compound, ask for help early on!<br></strong>Given the team you need help from takes 1 hour to reply to your emails, and you probably wait for an extra hour before sending a response, and email thread trying to resolve an issue could take a day easily. Now you are at least a day delayed. Generally speaking, if you wait X and the other person waits Y, each communication flow would add X+Y in each direction. You can see how you need to aim to shorten these cycles as much as possible.</p><p>For that reason, we strive to communicate promptly and escalate even earlier to resolve challenges. Whenever you are delayed, you should be able to ‘start a mental counter’, until escalation happens. And the steps through that escalation path should be aim to accelerate the feedback cycle each time.</p><p>For example, to accelerate the feedback cycle at Tech, we follow this rule for tickets:</p><pre>(i) ticket → (ii) group message → (iii) direct message → (iv) video-call</pre><p>We have reasonable ETAs for each and it includes checking the working hours, as we are globally remote.</p><p><strong>Escalating often means you are giving visibility<br></strong> You are trusted to be autonomous, this means when you face a challenge you are expected to raise awareness on your own. The other person can always share context with you on why this is not relevant for them at a given point in time. However, they won’t be able to do so unless you escalated first.</p><p>We know there is a balance here to strike, as a result, part of our onboarding focuses on our communication style.</p><p><strong>Be explicit!</strong></p><p>When escalating, the new individual/s involved should be able to quickly internalize, and gain a clear understanding on what you expect they will provide to this challenge. Hence, they need to understand <em>(a) this is an escalation, (b) required context, and (c) your expected outcome &amp; timeline</em>.</p><p>To be able to communicate efficiently we suggest to be extremely concise when preemptively answering the following four <em>(4)</em> questions in any escalation message:</p><p><em>Why is this important to the person/team I’m escalating to?<br></em>Be crystal clear of the impact for them, and the company. This should be your first line in your email/message as it defines the urgency and importance for anyone else. For example: this will delay project X 2 weeks if not looked upon, and project X is our top team priority.</p><p><em>What are the relevant details of the challenge?<br></em>Summarize all relevant context for the current issue, aiming to reduce unnecessary back-and-forth.</p><p><em>What have you tried?<br></em>If you already tried something or you have any suggestions on how to proceed, you need to specify it here together with the trade-offs you need help with.</p><p><em>What do you need? <br></em>Explicitly say what is your expected outcome, from whom and by when.</p><p><em>Thanks for reading through our escalation manifesto 3.0!</em></p><p>Escalation has become a key tool for our ever growing team in the past year, and we have had multiple conversations across the whole org in this regard. Escalation is regarded nowadays as a great example on how our remote teams differ from collocated/hybrid teams, a cultural staple, one skill that is mandatory for all from day one, and a ‘must’ as we become a top tech team world-wide.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lOiuKJVHdQxGCg8Cv0SBug.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ac123d8941b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/capchase/escalation-manifesto-ac123d8941b">Escalation manifesto</a> was originally published in <a href="https://medium.com/capchase">Capchase Tech</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[4 axioms for any payment system]]></title>
            <link>https://medium.com/badiapp/4-axioms-for-any-payment-system-32af1d090b51?source=rss-ae9be66c5d77------2</link>
            <guid isPermaLink="false">https://medium.com/p/32af1d090b51</guid>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[full-stack]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[payments]]></category>
            <dc:creator><![CDATA[E.-]]></dc:creator>
            <pubDate>Sat, 28 Nov 2020 15:01:04 GMT</pubDate>
            <atom:updated>2020-11-28T15:01:04.267Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IgkkYCr9TsLsAvNo" /><figcaption>Photo by <a href="https://unsplash.com/@ninjason?utm_source=medium&amp;utm_medium=referral">Jason Leung</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>We just went through a major refactor in our payments system to better our integration with three providers: Stripe, Google Play, and Apple’s App Store. We had a working integration for years, however we were lacking some visibility in our full user journey due to a combination of offline/online interactions with the providers after the payment hands-off.</p><p>We share here four axioms that have proven key during the development.</p><h4><strong><em>Be server based</em></strong></h4><p><em>Any client logic (web, mobile, desktop, etc) will eventually be tempered with; intentionally or not. </em>For example, a user could clear their local storage half-way through a payment, lose their internet connection, have a months old app version, intentionally change your beloved js, create &amp; distribute a fake version of your app, etc. Therefore, relying on any client sensitive logic is detrimental for your monitoring, auditing, security, &amp; business needs.</p><p>Strive for server-based solutions that are resilient to unexpected client behaviour whenever possible. It’s ok for a payment solution to rely heavily on the server. In turn, this has other benefits for our users, for example, seamless experience when moving between platforms or devices.</p><p><em>It’s not about efficiency, it’s about security for you and your user.</em></p><h4><strong><em>Be explicit</em></strong></h4><p>Your source of truth is always the bank account, i.e. the providers. Any other value should be considered an “educated guess” until explicitly matched with a final invoice… and even in those cases the value could still be inaccurate, e.g. a purchase could be refunded offline months later. Thus, we explicitly state at which degree we are estimating all values.</p><p>This further expands to complex topics like: currency exchange rates, tax regulations, delayed payments, etc.</p><p><em>Empower your finance team, they have the final call.</em></p><h4><strong><em>Store all results</em></strong></h4><p>Let’s say we have a record in our DB indicating a user purchased product Y at $100 with 21% value added tax (VAT).<em> How much was the VAT amount?… </em>If you said $17.3553719008, you are right! See how confusing it could be? That $100 is actually 121% of the tag price. <em>How would you round it? Are you considering your provider fees?</em></p><p>Yes, there are industry standards on how to calculate VAT, how to round, and how to handle invoices with several items that avoid these issues. The question I pose is:<em> how reliable of a system are you building if you assume everyone in your organisation is familiar with those standards?</em></p><p>Finally, another very common mistake in computer science is to assume that math is perfect; it’s not.<em> </em><strong><em>Numerical errors</em></strong><em> cost money</em>. I propose two rules aimed to reduce those:</p><ol><li>Store every calculation result (including intermediate results).</li><li>Use integers instead of floats (floats/doubles could be <em>affordable</em>).</li></ol><p>The example above will look like this: we actually store those <strong>five</strong> values separately [21%,1736, 8264, 10000, USD]. This allows us to track and correct errors (rounding, wrong VAT applied, wrong exchange rate, etc.) and debug old purchases, <em>even when the faulty code is long gone</em><strong><em>.</em></strong></p><h4><strong><em>Audit everything</em></strong></h4><p>The history of a purchase is as important as the purchase itself when improving a users’ journey. For example, we need to:</p><ul><li>Store the historic tier payments (Apple’s App Store) whenever they change, in a very lean manner. We use tier payments in Apple’s App Store.</li><li>Know how long it took a user to go from “start pay” to “ received good”, or “ refund payment”.</li><li>Track who introduced changes to our system, authorised exceptions, change prices, etc.</li></ul><p>Logging is not enough. We need to be able to go back years, store transactions synchronously, ensure we record all, etc. Bear in mind, this also could provide information to reconstruct a whole user’s journey when necessary.</p><p>As you may see, these principles could be applied broadly. My advice, <em>you should only enforce it when it pays off ;)</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=32af1d090b51" width="1" height="1" alt=""><hr><p><a href="https://medium.com/badiapp/4-axioms-for-any-payment-system-32af1d090b51">4 axioms for any payment system</a> was originally published in <a href="https://medium.com/badiapp">badiapp</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>