<?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 Intractables on Medium]]></title>
        <description><![CDATA[Stories by Intractables on Medium]]></description>
        <link>https://medium.com/@intractables?source=rss-7faac642d26a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*8S8-AhvhOs632tx2KiqHbg.png</url>
            <title>Stories by Intractables on Medium</title>
            <link>https://medium.com/@intractables?source=rss-7faac642d26a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 20:01:28 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@intractables/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[XDD part II: MDD, the Monitoring-Driven Development]]></title>
            <link>https://intractables.medium.com/xdd-part-ii-mdd-the-monitoring-driven-development-5fb56fe9b8a?source=rss-7faac642d26a------2</link>
            <guid isPermaLink="false">https://medium.com/p/5fb56fe9b8a</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[reliability]]></category>
            <category><![CDATA[monitoring]]></category>
            <dc:creator><![CDATA[Intractables]]></dc:creator>
            <pubDate>Fri, 18 Jun 2021 19:23:07 GMT</pubDate>
            <atom:updated>2021-08-26T21:48:23.293Z</atom:updated>
            <content:encoded><![CDATA[<p>(part I of the series: <a href="https://intractables.medium.com/xdd-what-drives-your-development-part-i-tdd-17c14610197a">Test-Driven Development</a>)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p0g_8Ijd4U9mgN9zUOQ4KA.jpeg" /></figure><p>MDD can be viewed as a generalization of the idea of Test-Driven Development to the world where the software is not only continuously developed, but also continuously operated.</p><p>In an <em>idealized</em> way, we can picture it like this:</p><p>Before implementing a feature, say a new API endpoint on the backend, the developer creates “gauges” that measures key characteristics of said endpoint, e.g. response time, error rate, request rate.</p><p>The “gauges” are metrics emitted to an appropriate system of record, e.g. Prometheus, InfluxDB, OpenTSDB or perhaps one of the many available SaaS offerings for real-time monitoring.</p><p>On top of the metrics of these “gauges” alerts are setup, to actively inform of a regression in the metrics.</p><p>The developer makes sure that the gauges show a “broken” feature, since the feature is not there yet, e.g. 100% error rate with a code “resource not found”, with alerts firing and delivered through appropriate channels, e.g. PagerDuty pages, chatroom notifications, etc.</p><p>Now, the developer implements the feature, deploys, and hopefully sees the gauges “go green” and alerts clearing up.</p><p>Those alerts will now save the developer when the feature breaks down in production for any reason, forever after, just like the tests in the test suite, being run automatically, inform us when the code is broken. At this time, the alert routing can be changed from the individual developer to the oncall team (of which said developer is perhaps a member)</p><p>Yay, we now have a recipe for generalizing of the red-green TDD to the world of continuously operated software!</p><p>A few things to note:</p><ul><li>We didn’t mention testing for correctness of the endpoint created. We merely check that its “vitals” are good. What if a regression results in endpoint behaving improperly, returning incorrect data or resulting in wrong side-effects?</li><li>The whole business of creating gauges and alerts seems like a lot of repetitive toil: how can it be streamlined?</li><li>What about more specialized metrics? For example, let’s say a feature being implemented creates an asynchronous task. Wouldn’t it be appropriate to monitor things like the size of the task queue, task failure rate, retry rate, time spent in queue, etc? How can developers standardize on “what” and “how” of monitoring?</li><li>How to manage this swarm of metrics and alerts as the system evolves? What if alerts are noisy? What if the developer who created the feature left the company, and the poor soul on call is woken up by an alert for that feature at 3am in the morning?</li></ul><p>The answer to these questions is familiar: “it depends.”</p><blockquote><em>Treat your monitoring configurations as code.</em></blockquote><p>But our “XDD” approach gives us a key piece of guidance: creating monitoring configurations is a (software) engineering activity. It means tooling, principles and processes will often be similar to those of the “usual” software engineering: source control, review workflows, expressive DSLs, etc. <em>In other words, treat your monitoring configurations as code.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5fb56fe9b8a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Unexpected Code-freeze Algorithm]]></title>
            <link>https://intractables.medium.com/the-unexpected-code-freeze-algorithm-9104016e678a?source=rss-7faac642d26a------2</link>
            <guid isPermaLink="false">https://medium.com/p/9104016e678a</guid>
            <category><![CDATA[super-bowl]]></category>
            <category><![CDATA[code-freeze]]></category>
            <category><![CDATA[hypergrowth]]></category>
            <category><![CDATA[production-engineering]]></category>
            <dc:creator><![CDATA[Intractables]]></dc:creator>
            <pubDate>Thu, 04 Feb 2021 20:01:02 GMT</pubDate>
            <atom:updated>2021-02-04T20:26:09.883Z</atom:updated>
            <content:encoded><![CDATA[<p>Temporary Code Freezes are a widespread practice in tech, when all deployments are stopped for a few days before some important Big Event passes.</p><p>The goal of a Code Freeze is to reduce uncertainty introduced by changes by, well, preventing the changes.</p><p>The problem with announced code freezes is that it often leads to <strong>stampedes</strong>: developers are rushing to push their code out before the Code Freeze, corners get cut, vetting quality plummets, etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N2n9UVd1-tBpn4Snlq5d0g.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@elmuff?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Sandra Grünewald</a> on <a href="https://unsplash.com/s/photos/icicles?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>Often, <strong>“the last deployment train before the freeze”</strong> is a bit of a cluster, with too many changes, poorly tested, resulting in higher-than-usual rate of regression and uncertainty, which kind of defeats the whole purpose.</p><p>The “ideal” solution is not to have the code freezes at all, but that requires the levels of technological maturity that take lots of time and effort to achieve, particularly in hyper-growth companies.</p><p>We propose a <strong>pragmatic solution</strong>: “The Unexpected Code-freeze”:</p><p><strong>Announce two weeks in advance that on a random day between Monday and Thursday, at noon, there will be a suddenly announced Code Freeze.</strong></p><p>(The exact randomization scheme is left as an exercise for the reader)</p><p>That’s it, no stampede. Those who wait for the last minute to ship their changes will either have to plan to ship in advance, or will have to wait until after the Big Event.</p><p>Happy deployments!</p><p>P.S. This post is inspired by the <a href="https://en.wikipedia.org/wiki/Unexpected_hanging_paradox">Unexpected Hanging Paradox</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9104016e678a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[XDD — what drives your development? Part I: TDD]]></title>
            <link>https://intractables.medium.com/xdd-what-drives-your-development-part-i-tdd-17c14610197a?source=rss-7faac642d26a------2</link>
            <guid isPermaLink="false">https://medium.com/p/17c14610197a</guid>
            <dc:creator><![CDATA[Intractables]]></dc:creator>
            <pubDate>Sat, 02 Mar 2019 00:27:43 GMT</pubDate>
            <atom:updated>2019-03-02T16:26:04.599Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YElOpaBEYhqfsIbhOHTOhw.jpeg" /></figure><h3>XDD — what drives your development? Part I: TDD</h3><p>This is the beginning of a series of posts along the theme of X-driven-development.</p><blockquote>Have you heard of Pain-Driven Development or Destruction-Driven Development or Outage-Driven Development?</blockquote><p>Keep on reading these series, and you will! :)</p><p>But first, as a prelude, we start with TDD, the now largely non-controversial, accepted concept of Test-Driven Development, and <em>why it’s not nearly enough.</em></p><p>The notion of systematic testing of software predates the term “Test-Driven Development”, but TDD makes testing a primary <em>driver</em> of the development process, hence the name.</p><blockquote>In short, test-driven development requires the developer to first write a test <em>before</em> implementing a new feature; run the test and see it fail, since the feature is not implemented yet; implement the feature and see the test pass;</blockquote><p><a href="https://www.codecademy.com/articles/tdd-red-green-refactor">Letting the test fail</a> at first is a crucial step, as it gives <em>some</em> assurance that the test’s failure will correctly signal feature’s failure. Another crucial aspect is to keep refactoring the code as developer’s understanding of requirements emerges in the process of testing and coding. This supposedly allows good design to be interactively discovered in response to requirements, reducing the need for upfront design effort, increasing both the responsiveness and the velocity of the development process.</p><p>Test-driven Development:</p><ul><li>A radical departure from the (now quaint) notion that someone other than the developer (e.g., a tester, a QA engineer, etc) is responsible for testing developer’s code.</li><li>A staple of the Agile Development methodologies, <a href="https://qr.ae/TUffD7">re-discovered</a> and popularized by <a href="https://www.amazon.com/gp/product/0321146530">Kent Beck</a>, <a href="https://martinfowler.com/books/refactoring.html">Martin Fowler</a>, <a href="https://www.amazon.com/Software-Development-Principles-Patterns-Practices/dp/0135974445/">Robert C. Martin</a>.</li><li>A key enabler of high-velocity development with tight, short delivery cycles.</li><li>Taken sometimes way too far, but more often, not nearly far enough, especially in legacy enterprise environments.</li><li>At scale, a non-trivial practice, requiring acquisition of skill, adjustment of process/tooling and, a cultural shift in engineering.</li></ul><p>Using the technical debt metaphor, adopting a <em>practical</em> TDD approach can be compared to paying off your high-interest revolving debt as the first step to financial health: the codebase will be drowning in technical debt until a robust code testing practice is adopted by <em>every</em> developer, who assumes the responsibility of writing high-coverage tests for <em>all</em> the code they write.</p><p>The good consequences of TDD:</p><ul><li>Coding for testability shapes design and implementation in (mostly) beneficial ways.</li><li>Tests serve as a safety net going forward.</li><li>Enables (relatively) worry-free refactoring.</li></ul><p>The pitfalls and anti-patterns to look out for:</p><ul><li>Premature overgeneralization: when taken too far, unnecessary complexity may result from superfluous or trivial testing.</li><li>Self-delusion and false sense of security — due to lack of coverage or false coverage, e.g. tests testing mocks and fixtures rather than actual implementations.</li><li>Brittleness in the testing codebase, that itself becomes a burden.</li><li>Unbalanced <a href="https://martinfowler.com/articles/practical-test-pyramid.html">test pyramid</a>.</li></ul><p>Finally, let’s note that TDD originated in the era dominated by shrink-wrapped software: where a project, once “shipped” (usually physically shipped on hard media like CD-ROMs), would be operated by the customer and not touched by the original developers, remaining unchanged (in fact, unchangeable) and mostly running on a single machine.</p><p>But the dominant kind of software these days is operated and usually continuously developed and deployed to huge clusters of machines — think GMail, Uber, Amazon, etc. As a result, software merely passing tests in testing environments doesn’t tell us whether the <em>production</em> environment is healthy. And the production environment, with all its complexities, is what truly matters.</p><blockquote>Ultimately, while some form of TDD is absolutely indispensable to create and maintain any large modern codebase, it is not nearly enough to ensure that “prod” (the production environment) stays continuously healthy.</blockquote><p>Tending to “prod” health was my obsession for the past seven years, and a key ingredient that emerged early on was the Monitoring-Driven Development.</p><p>Stay tuned!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=17c14610197a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ditch Regret]]></title>
            <link>https://intractables.medium.com/ditch-regret-2e7d59c850e?source=rss-7faac642d26a------2</link>
            <guid isPermaLink="false">https://medium.com/p/2e7d59c850e</guid>
            <category><![CDATA[life-lessons]]></category>
            <category><![CDATA[regret]]></category>
            <category><![CDATA[atavism]]></category>
            <dc:creator><![CDATA[Intractables]]></dc:creator>
            <pubDate>Fri, 12 Feb 2016 02:51:49 GMT</pubDate>
            <atom:updated>2021-07-11T19:56:03.400Z</atom:updated>
            <content:encoded><![CDATA[<p>tl;dr: Regret is an atavistic mechanism which is painful and largely useless. We have better tools to guide our actions. Regret doesn’t depend on what you do: it’s a habit of mind. Ditch it.</p><p>Look around and you’ll see fellow humans wallow in regret.</p><p>Regret is a self-inflicted wound, a mechanism powered by suffering that is meant to influence our decision-making.</p><p>Get rid of it. You’re better off relying on different mechanisms: your moral compass, your rationality, your self-interest, you (com)passion, whatever. Hone those other mechanisms, but ditch the regret, the unnecessary suffering that doesn’t do anything for you anyway.</p><p>Regret is especially counter-productive if you’re a glutton for punishment and pain, and there are a lot of pain junkies out there. A pain junkie can seek regret-inducing behaviors so that they can then wallow in the pain of regret.</p><p>Here’s a dose of stupid: the phrase “I’m going to regret this”. Hey,<em> you are regretting it already, experiencing your potential future as something in the past.</em></p><p>Not only regret is suffering, regret is a <strong>poor guide for actions</strong>. Because it does not depend on the actions you take or don’t take. This is exemplified by the funny phrase “it’s better to regret something you did than something you didn’t do.” See how this presupposes that you’re going to regret something either way? It’s best not to regret at all.</p><p>Regret is about your attitude toward outcomes of actions. Regret itself is not an inevitable outcome of actions, it’s merely a habit of mind. To get rid of the regret you merely need to change the attitude toward outcomes and actions.</p><p>That’s not to say you should go ahead and do all the stupid shit that regret is possibly stopping you from. Just use other mechanisms to make better decisions while sparing yourself some pain.</p><p>And for the pain junkies out there, just use the newfound reserves of pain tolerance on something more productive.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2e7d59c850e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>