<?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 Ken Shih on Medium]]></title>
        <description><![CDATA[Stories by Ken Shih on Medium]]></description>
        <link>https://medium.com/@ken.shih?source=rss-954a3595e8db------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*PhHl5pZsPBdK0G4U.</url>
            <title>Stories by Ken Shih on Medium</title>
            <link>https://medium.com/@ken.shih?source=rss-954a3595e8db------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 07:51:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ken.shih/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[Pad the Denominator]]></title>
            <link>https://medium.com/making-meetup/pad-the-denominator-4068a950245e?source=rss-954a3595e8db------2</link>
            <guid isPermaLink="false">https://medium.com/p/4068a950245e</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[cloudwatch]]></category>
            <category><![CDATA[error-rate]]></category>
            <category><![CDATA[configuring-alarms]]></category>
            <category><![CDATA[terraform]]></category>
            <dc:creator><![CDATA[Ken Shih]]></dc:creator>
            <pubDate>Thu, 27 May 2021 15:44:00 GMT</pubDate>
            <atom:updated>2021-05-27T15:44:00.977Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*157IY7KaCDcJOgk2" /><figcaption>Photo by <a href="https://unsplash.com/@michalmatlon?utm_source=medium&amp;utm_medium=referral">Michal Matlon</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Quick Tip: <strong>Pad the Denominator to avoid noisy error rate alarms</strong></h3><p>A little DevOps ditty… Ok, this isn’t an amazing insight, but no one’s ever mentioned this to me before, so I thought I’d share. Let me know what you think.</p><h3>Scenario</h3><p>You’ve rolled out a new service and you alert on error rate. Good on you!</p><p>It’s a new service, so sometimes you have low traffic and you find that it gets a small number of recoverable errors and sometimes even a single error causes it to alarm!</p><p>Everyone tells you that it’s a “noisy alert” and that makes you sad. What do you do?</p><h3>Solution</h3><p><strong>Pad the Denominator to avoid noisy error rate alarms</strong></p><p>That is, error rate is normally calculated like this:</p><blockquote>error-rate = 100% * ( error-count / message-count )</blockquote><p>and alert if error-rate &gt; X% for Y data points. Hint: avoid alerting on a single data point!</p><p>Instead, do this:</p><blockquote>error-rate = 100% * ( error-count / ( message-count <strong>+ FUDGE-FACTOR</strong>))</blockquote><p>That way, when traffic is low, your error rate is insensitive to typical recoverable errors like slow startup time or network effects when your application has reasonable retry logic. Yet, it will still alarm if your service is erroring significantly!</p><p>At the beginning of the life of a service:</p><ol><li>Traffic might be tiny — since you may be doing a gradual rollout, alpha testing, or A/B testing in production, we know <a href="https://en.wikipedia.org/wiki/Fallacies_of_distributed_computing">the network is not reliable</a>, so errors are expected!</li><li>Traffic might be discontinuous — since projects don’t live in a vacuum but are subject to be used based on strategic priorities or delays in other work streams, feature rollouts, so your system might go through starts-and-stops</li><li>Your implementation is clunkier at the start — You should always start simple, <a href="https://blog.codinghorror.com/the-last-responsible-moment/">last responsible moment</a> and all, but that means things are clunky. For example, for a new <a href="https://aws.amazon.com/lambda/">AWS Lambda</a>, you may not have handled <a href="https://mikhail.io/serverless/coldstarts/aws/">cold starts</a> well yet, you haven’t had time to set up a <a href="https://en.wikipedia.org/wiki/Blue-green_deployment">blue-green deployment</a>, your memory needs could be tweaked, you don’t know about <a href="https://aws.amazon.com/about-aws/whats-new/2019/12/aws-lambda-announces-provisioned-concurrency/">provisioned concurrency</a>, you might be new to the team/technology/domain so unexpected kinks are everywhere, but everything still works well for your users!</li></ol><p>Hardening a system takes time and you don’t want/need to wake up yourself or your teammate at 3am for trivialities causing <a href="https://en.wikipedia.org/wiki/Alarm_fatigue">alarm fatigue</a> and loss of goodwill. But you still want to be paged when there’s a real problem!</p><p>What is nice about this little trick of padding your denominator is that your alert is resilient in many conditions:</p><ol><li>Beginning of service life when traffic is low and spotty</li><li>Middle of service life with regular &amp; high traffic</li><li>After incidents and in discontinuous recovery periods</li><li>End of service life when traffic is decreasing</li></ol><p>Padding the denominator lets your alarm, like a jazz musician, <a href="https://www.fretjam.com/how-to-solo-over-chord-changes.html">play through the changes</a>.</p><p>Help keep burnout low on your team and for yourself.</p><p><strong>Pad the Denominator!</strong></p><h3>Real Example: Testing Multi-Regional Support</h3><p>This was an alarm that I noticed had been going off one or more times a day for weeks. Because it auto-resolved almost immediately every time, no one bothered to clean it up.</p><p>The problem was that we had introduced an experiment that added support in an additional AWS region, us-west-2, in addition to the original region we had originally deployed the service in, us-east-1.</p><p>The implementor did a great job with the service and had also done the right thing by adding the alarms, but because it was an experiment, us-west-2 got a much smaller amount of traffic than the original, yet it had an almost identical <a href="https://www.terraform.io/">Terraform</a> template, including <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/AlarmThatSendsEmail.html">CloudWatch alarm</a> definitions like:</p><blockquote>metric_query {<br> id = “errorRate”<br> expression = “((errors * 100) / requestCount )”<br> label = “4XX error rate”<br>}</blockquote><p>Reason for the alarm: While some HTTP 4XXs are expected in cases of user error, an unusual amount of such errors would be an aberrant case worthy of investigation. We were alerting when errorRate became greater than 50%. Pretty conservative.</p><p>us-east-1 was getting moderate, but consistent traffic averaging some 1000s of requests per minute (rpm) ranging from ~500 rpm to ~3000 rpm.</p><p>us-west-2 was getting a sample rate of about 50 rpm, but varied from~0 rpm to ~100 rpm.</p><p>This meant there were periods of time when traffic was really low on us-west-2, just a small handful of 4XXs would put us in alarm state!</p><p>To correct the problem, we padded the denominator…</p><blockquote>expression = “((errors * 100) / ( requestCount + 50))”</blockquote><p>with the desire to ignore error % when cardinality was closer to 0, yet being responsive to consistent high rates of error, especially once the service was starting to take normal continuous amounts of traffic.</p><p>A little change like this alone can save countless hours of uninterrupted sleep, loss of goodwill, jadedness, and alert fatigue. Making such habits normal practice of every on-call engineer can help combat burnout, PTSD, and help keep engineers fresh for when they are needed for an actual emergency.</p><p>I know folks who do graphics programming have these sorts of fudges to, say, make an edge of a triangle look right, even if it looks mathematically incorrect in code. I guess we do the same things for DevOpsX as we do for UX!</p><p>Software engineering is a human endeavor. Taking care of these details, acknowledging the organic nature of where computer systems meet human systems, we endeavor to engineer humanely.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4068a950245e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/making-meetup/pad-the-denominator-4068a950245e">Pad the Denominator</a> was originally published in <a href="https://medium.com/making-meetup">Making Meetup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Five Uses of the Knife†: A Software Architecture study with LaunchDarkly, AWS Lambda, and Apollo…]]></title>
            <link>https://medium.com/making-meetup/five-uses-of-the-knife-a-software-architecture-study-with-launchdarkly-aws-lambda-and-apollo-4f79a07a705?source=rss-954a3595e8db------2</link>
            <guid isPermaLink="false">https://medium.com/p/4f79a07a705</guid>
            <category><![CDATA[launchdarkly]]></category>
            <category><![CDATA[graphql]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[aws-lambda]]></category>
            <dc:creator><![CDATA[Ken Shih]]></dc:creator>
            <pubDate>Wed, 21 Apr 2021 22:39:32 GMT</pubDate>
            <atom:updated>2021-04-21T22:39:32.575Z</atom:updated>
            <content:encoded><![CDATA[<h3>Five Uses of the Knife†: A Software Architecture study with LaunchDarkly, AWS Lambda, and Apollo GraphQL</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*YZRR4gU0E0wg8uML" /><figcaption>Photo by <a href="https://unsplash.com/@nasa?utm_source=medium&amp;utm_medium=referral">NASA</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>On every other Friday at Meetup we have an hour-long “Engineering Collective” meeting where the agenda is in two parts:</p><ol><li>We go over <a href="https://adr.github.io/">ADRs</a></li><li>People reserve 5–10 minute slots to share work or introduce discussion topics</li></ol><p>Someone brought up their addition of a feature flag into our GraphQL edge API using <a href="https://docs.launchdarkly.com/sdk/client-side/node-js">LaunchDarkly’s Node client SDK</a>.</p><p><a href="https://medium.com/u/a796c0de5c00">Nick Olinger</a>, a Staff Engineer, pointed out that in his recent experience with performance optimization of our <a href="https://aws.amazon.com/lambda/">AWS lambda</a>-based <a href="https://www.apollographql.com/">Apollo GraphQL server</a>, he noted that the addition of such use of the library had added significant latency (note: these problems were not due to the library itself, which is well-documented, but on how, in some cases, we had done the implementation).</p><p>He and team had recently brought p95 performance of the graph from 450ms down to 275ms over their heroic efforts in Q1. While it was 75ms shy of our OKR and still far away from our eventual goals of sub-100ms, it was an extremely impressive feat, especially since the graph was one of our hottest spots of change by multiple teams in Q1 and regressions to latency were almost daily occurrences.</p><p>I noticed that the ensuing discussion played out 4 distinct and typical software engineering paradigm approaches beautifully, so I thought I’d capture it, as an interesting scene to ponder…</p><h3>The Points</h3><p><a href="https://medium.com/u/9f96e9614042">Annyce Davis</a>, Senior Director of Engineering, pointed out that we should remove flags after we were finished with our testing in production or A/B testing, so that any latency problems would be temporary and acceptable for features that weren’t hardened yet.</p><p>I, a Staff Engineer, noted that we had seen implementation problems in the past, and that we should wrap the bare use of LaunchDarkly in a library to deal with initialization and startup problems that we’d seen in other areas of the codebase that used LaunchDarkly.</p><p><a href="https://medium.com/u/a796c0de5c00">Nick Olinger</a>, mentioned earlier, suggested using a distributed cache, so that we could pay startup penalty only infrequently, instead of on every underlying lambda task creation (managed automatically by AWS and with varying cardinality)</p><p><a href="https://medium.com/u/5dcaa727ab0d">Doug Tangren</a>, another Staff Engineer, pointed out that the LaunchDarkly client already caches flags, but that on initialization it loads all the feature flags and that startup time can be significant. He said we should consider moving our server from Lambda to <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/Welcome.html">ECS</a>, so that instead of cycling lambda processes frequently, long-running service tasks would only pay on initialization, but then be more predictable afterward.</p><h3>The Approaches</h3><p>One management approach: best practice and governance.</p><p>One evolutionary approach: erect an interface, then <a href="https://docs.microsoft.com/en-us/azure/architecture/patterns/strangler-fig">strangle</a> &amp; <a href="https://en.wikipedia.org/wiki/Don%27t_repeat_yourself">DRY</a>.</p><p>One domain approach: optimize your tier for its characteristic and concrete uses.</p><p>One platform approach: structure your architecture for resiliency, in this case, vertically scale.</p><h3>The Pros &amp; Cons</h3><p><strong>The management approach</strong></p><p><em>Pros:</em></p><ul><li>We have too many flags, keeping them clean makes things easy to understand</li><li>The best code is no code, clean up after yourself. After your performance is hardened production, you’re just left with the good stuff. And, while the feature is under development, there’s a built-in “warning” signal in the code that other engineers can read and understand that something is in progress.</li><li>Doing this approach doesn’t limit doing the other approaches!</li></ul><p><em>Cons:</em></p><ul><li>Practice can be difficult to establish and maintain. The cost of not linting, not sufficiently marketing the practice, or not sufficiently governing the practice means the advantages of the Pros are simply lost.</li><li>Feature flags are a tool and not just a tool for A/B test features. Part of a <a href="https://pair.withgoogle.com/chapter/errors-failing/">graceful failure</a>, <a href="https://docs.microsoft.com/en-us/azure/architecture/patterns/bulkhead">bulkheading strateg</a>y, or <a href="https://sre.google/workbook/on-call/">oncall playbook</a>under critical conditions might be to turn off a feature. In that class of feature flag use cases, you actually want to keep the feature flag around, so a uniform policy of “delete that” limits the utility of feature flags themselves.</li></ul><p><strong>The evolutionary approach</strong></p><p><em>Pros:</em></p><ul><li>Naive first tries always have problems, as do well intentioned second and third tries. Interface orientation lets you improve the system, with low coordination cost. You manage your improvement behind a <a href="https://en.wikipedia.org/wiki/Strategy_pattern">Strategy Pattern</a>, so even though your implementation can dramatically improve, your clients don’t have to do a thing to get the benefits of that improvement.</li><li>Doing this approach doesn’t limit doing the other approaches!</li></ul><p><em>Cons:</em></p><ul><li>Contrary to conventional wisdom, <strong>not</strong> <a href="https://en.wikipedia.org/wiki/Fundamental_theorem_of_software_engineering">every problem in computer science can be solved with another layer of indirection</a>. Just because you have a good interface, doesn’t guarantee that the solution will evolve.</li><li>If the library wrapper doesn’t follow <a href="https://en.wikipedia.org/wiki/Open%E2%80%93closed_principle">Open-Closed Principle</a>, a wrapper around a canonical library may over-encapsulate, limiting the power and utility of the original library, draining trust in the library and DRY, encouraging a tangle of forked implementations.</li></ul><p><strong>The domain approach</strong></p><p><em>Pros:</em></p><ul><li>Often the source-of-truth of the data is not very concerned about performance. For example, a tax or accounting microservice would need to prioritize correctness and transactionality over performance. But, a federated GraphQL exposing tax data needs to be high-performant. The two domains have different design goals. For GraphQL, a cache and/or index are essential architectural tools to deliver <a href="https://sre.google/sre-book/service-level-objectives/">SLO</a> regardless of how the source-of-truth system is designed.</li><li>Doing this approach doesn’t limit doing the other approaches!</li></ul><p><em>Cons:</em></p><ul><li>Simple in construction… caches are surprisingly difficult to get right. Classic abuses of caches confuse caches and indexes or operational data with reporting data. Invalidation, over or under caching, and liveness issues can be subtle or, worse, obvious.</li><li>Caches can hide problems with the underlying data if you’re not disciplined about not introducing business logic outside the source-of-truth.</li></ul><p><strong>The platform approach</strong></p><p><em>Pros:</em></p><ul><li>Authors in the system can simply write more naive code and the system operates with fewer problems.</li><li>Vertical scaling is easy to reason about, and has a kind of architectural simplicity, where you don’t have to coordinate various subsystems. New systems, especially, can benefit from vertical scaling, so over-architecturing in YAGNI can be managed.</li><li>This may be a more cost effective approach?</li><li>Doing this approach doesn’t limit doing the other approaches!</li></ul><p><em>Cons:</em></p><ul><li>Hiding things behind a magic powerful server can be very problematic. Monolithic memory use can be as bad as other monolithic uses, hiding resource use to the point of unmanageability. That is, poorly encapsulated, concern-separated bundles become overly entangled in their shared resource pools. The tragedy of the commons () in memory use is as easy to occur as over-coupling in library use or in poorly modularized code.</li><li>ECS is harder to operationalize and maintain than Lambda, so lower AWS cost MIGHT be replaced with higher complexity and maintenance cost, ultimately <a href="https://www.investopedia.com/terms/c/cogs.asp">COGS</a>. A long-running process means your system has to be that much more well-factored in memory use and resource consumption than a <a href="https://theburningmonk.com/2017/06/finding-coldstarts-how-long-does-aws-lambda-keep-your-idle-functions-around/">process that dies every XX minutes</a>. Lambda forces some architectural discipline simply by its constraints, similar to how the design of node encourages horizontal scaling, by design.</li><li>ECS is simply more flexible than Lambda &amp; sometimes having fewer constraints means, well, not enough constraints.</li></ul><h3>The Solution is just part of the Story</h3><p>In truth, the “solution” works “best” when all these concerns are addressed in concert and each in sufficient measure.</p><p><a href="https://en.wikipedia.org/wiki/Occam%27s_razor">Occam’s Razor</a> in one of these dimensions does not always mean the razor applies to the system or problem as a whole.</p><p>For example, to solve our “problem” perhaps we could simply initialize <a href="https://docs.launchdarkly.com/sdk/client-side/javascript#initializing-the-client">the LaunchDarkly client</a>, during <a href="https://docs.aws.amazon.com/lambda/latest/dg/runtimes-extensions-api.html#runtimes-extensions-api-reg">Lambda function initialization</a>, that way the cost of initialization is done BEFORE a user attempts to fetch the data, and no additional runtime tax is paid during the individual request-response cycle for this feature.</p><p>This did not require the <strong>management approach</strong>! But we should clean up test flags &amp; keep permanent bulkhead shutoff valves where needed.</p><p>This did not require the <strong>evolutionary approach</strong>! But if we should access LaunchDarkly through, at least, an interface function on the server so that we access the initialized client on the server instead of initializing our own in every use case.</p><p>This did not require the <strong>domain approach</strong>! But, certainly, we will need a cache for other purposes.</p><p>This did not require the <strong>platform approach</strong>! We didn’t need to migrate to ECS just to optimize this problem, but this does not mean managing operating expenses won’t make us migrate later.</p><p>While it did not require, concretely, any of the discussed approaches, it was a remarkable illustration of symposium. We exposed each of our biases and tendencies like characters in a play and each communicated progressive suggestions to the engineering organization in one tight scene. I just loved what everyone brought to the table and how we’ll create a better system together because of it. The bi-weekly Engineering Collective just reminds me again, writing software is a human endeavor, <a href="https://www.meetup.com/blog/">Community Matters</a>, diversity matters, and when we work together, <strong>we are better together</strong>.</p><p>I wonder what David Mamet thinks? †</p><p>† — <em>David Mamet wrote a book called </em><a href="https://en.wikipedia.org/wiki/Three_Uses_of_the_Knife"><em>Three Uses of the Knife</em></a><em>, where I filched the title of this blog article.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4f79a07a705" width="1" height="1" alt=""><hr><p><a href="https://medium.com/making-meetup/five-uses-of-the-knife-a-software-architecture-study-with-launchdarkly-aws-lambda-and-apollo-4f79a07a705">Five Uses of the Knife†: A Software Architecture study with LaunchDarkly, AWS Lambda, and Apollo…</a> was originally published in <a href="https://medium.com/making-meetup">Making Meetup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I learned to stop worrying and love the Mob]]></title>
            <link>https://medium.com/making-meetup/how-i-learned-to-stop-worrying-and-love-the-mob-2cb93a425b75?source=rss-954a3595e8db------2</link>
            <guid isPermaLink="false">https://medium.com/p/2cb93a425b75</guid>
            <category><![CDATA[social-coding]]></category>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[mob-programming]]></category>
            <category><![CDATA[engineering-leadership]]></category>
            <category><![CDATA[extreme-programming]]></category>
            <dc:creator><![CDATA[Ken Shih]]></dc:creator>
            <pubDate>Sun, 01 Dec 2019 21:43:59 GMT</pubDate>
            <atom:updated>2019-12-07T04:53:04.740Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="“Leading the Mob”. A crowded subway platform filled-shoulder-shoulder between parked trains on both sides." src="https://cdn-images-1.medium.com/max/1024/0*_AlEWW_whkIhtFJu" /><figcaption>Photo by <a href="https://unsplash.com/@vimarovi?utm_source=medium&amp;utm_medium=referral">Victor Rodriguez</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>So, you’re leading an engineering team and want to have some tips about how to do <a href="https://en.wikipedia.org/wiki/Mob_programming">mob programming</a> effectively.</p><p>Or, you’re already mobbing, but have run into some trouble spots. Or for whatever reason you just want to compare notes.</p><p>This article is for mobbing at any level.</p><h3>TL;DR</h3><p>I’m going to talk about how you can effectively lead a single team in Mob programming.</p><p>The following are the section headings of this article. As a TL;DR feel free to treat the list of “Techniques” as a menu of things to try.</p><p><strong><em>Background</em></strong><em> </em>← you can skip this if time-pressed</p><ul><li><em>Apophasis</em></li><li><em>How it happened for me…</em></li></ul><p><strong><em>Key Principles</em></strong><em> </em>← I find this to be the essential glue</p><ul><li><em>Be an excellent facilitator</em></li><li><em>Value Diversity: Work with what you got</em></li><li><em>Keep it positive</em></li></ul><p><strong>Techniques</strong><em> </em>← make these into cards, shuffle the deck &amp; use one!</p><ul><li><em>All the existing Agile tools retrofitted to mob-style</em></li><li><em>All the existing Communication tools, retrofitted to the mob</em></li><li><em>All the existing Pairing tools</em></li><li><em>AnytimeRetro</em></li><li><em>Call out positive contributions</em></li><li><em>Dedicated hardware</em></li><li><em>Don’t Mob</em></li><li><em>Facilitator role</em></li><li><em>Mob with another mob</em></li><li><em>Parallel Play</em></li><li><a href="https://en.wikipedia.org/wiki/Pomodoro_Technique"><em>Pomodoro Technique</em></a></li><li><em>Remote Mob</em></li><li><em>Rotate Roles</em></li><li><em>Scout</em></li><li><em>Try to mob on anything</em></li></ul><p><strong><em>Concluding Rant</em></strong></p><h3>Background</h3><h4>Apophasis*</h4><p>[<a href="https://en.wikipedia.org/wiki/Apophasis">*</a>] In this article, I’m not going to talk about the fast feedback loops, dynamism, transparency, improved quality, team alignment, cohesion, quick leveling up, knowledge sharing, the profound impact on DevOps preparedness, paradoxical speed-through-single-stream-of-work, the leveraging of various skills in one place to blaze through issues, the fun nor even, how it helps us work better together. You get it. You’re just here looking for practical advice on mobbing, not a rehash of what Mob programming is and why it’s a good idea. So I’m not going to talk about that.</p><h4>How it happened for me…</h4><p>Instead I’m going to talk about some of my takeaways after 1 year and 4 mobs at Meetup.</p><p>Thanks to the work of many, but in particular, <a href="https://medium.com/u/be885b51c078">Will Weaver</a>, a former Engineering Manager at Meetup, <a href="https://en.wikipedia.org/wiki/Pair_programming"><em>Pairing</em></a> as a practice was already made vibrant at Meetup. And just like in real life everywhere, an ad-hoc “mob” might happen anywhere, especially around an on-call issue or difficult question. So Meetup, being a platform for folks to meet up <a href="https://www.urbandictionary.com/define.php?term=IRL">IRL</a>, was already accustomed to some aspects of social coding.</p><p>I was the engineering lead of a team called “Platform Services Classic,” which tasked with isolating and making tractable the tangly and reviled 17-year old legacy monolith.</p><p>We were dealing with some hairy issue, when I think it was Tyler Beebe (sorry if it was you, <a href="https://medium.com/u/fe4a91e5eb73">Elle Mundy</a>) who said,</p><blockquote>“let’s mob on it”</blockquote><p>Just prior, I had noticed the familiar uh-hey-er-we-should-really-sync-up-on-this look from Doug Tangren. So the whole team naturally jumped on the bandwagon.</p><p>After a notably vibrant and productive session, we did a quick end-of-day retro about whether to continue mobbing the next day.</p><blockquote>“Yeah!!”</blockquote><p>was the unanimous sentiment.</p><p>3 teams and 4 mobs later: several teams at Meetup now mob by default daily, while the remaining pair by default.</p><h3>Key Principles</h3><p>Since we started mobbing, a number of engineer leads have expressed some interest or tried mobbing, but have also had a number of stumbling blocks. As a result, I’ve collected these thoughts on leading the mob.</p><h4>Be an excellent facilitator</h4><p>If you’re lucky, it’ll just happen without a hitch. But just in case, be prepared to be an excellent facilitator.</p><p>That is, troubleshoot the team every minute. Are people getting frustrated? Is someone feeling that their opinion isn’t being heard? Are you not hitting an effective flow and releasing high quality rapidly?</p><p>An excellent facilitator may need to set up the framework or ground rules, and direct the flow, at first. Actively curate your Mob structure(s) to promote positive collaboration, psychological safety, and good engineering practices. Use what you know. Model facilitation techniques (check out <a href="https://larahogan.me/">Lara Hogan</a> or other resources you can find about on this).</p><p>Consider the specific and real people you have on your team and sensitively use the processes and techniques you’ve learned as a software engineer, leader, manager, or agile coach. Then let the mob take it over, as soon as you possibly can so you can just be an ordinary member of the mob.</p><p>As the lead, you’ll need to introduce the process when needed. But soon, your team should start doing the same. Part of the cross-training you get out of mobbing is also the leadership training your team gets.</p><h4>Value Diversity: Work with what you got</h4><p><strong><em>Be like water</em></strong><em>.</em> Every person is different*, so you’ll need to be fluid and creative rather than force some robotic or tyrannical behavioral social norm that exists only in your head.</p><p>There is no “ideal” make up to the mob. Luckily**, I’ve been in great mobs with those in their early 20s to late 40s, with at least 3 genders, and with a diverse ethnic and economic background.</p><p><strong><em>Our differences are not a problem</em></strong>, but rather a powerful capability that help us overcome the diversity of problems we encounter in the art of practical engineering.</p><p>Asides:<br>[*] Again, <a href="https://medium.com/u/be885b51c078">Will Weaver</a> has a good metaphor for the team. If you’ve ever played Dungeons &amp; Dragons, you know a band is made up of characters playing some radically different yet essential parts of the party. Whether you’re a Fighter, Magician, Thief, or Cleric, your unique character has an essential role to play in surviving the range of expeditions, dragons, orcs and traps in the game.<br>[**] Meetup has been a great champion of diversity, what has made it surprisingly resilient in the face of rapid change.</p><h4>Keep it positive</h4><p><strong><em>Cultivate kindness</em></strong><em>. </em>We are doing Social Coding here. So, be a social engineer.</p><p>Love your team mates because they are lovable. Everyone has strengths and weakness. Foster a culture that emphasizes the strengths of others. Celebrate them by being surprised and grateful. In return you’ll quickly catch oversights and blind-spots better than any pair or solo engineer and will release a well-rounded product.</p><p><strong><em>Cultivate trust and safety</em>*</strong>. Safe and fulfilled people will bring their best most engaged and creative selves to the team. This is exactly what we need when tackling complexity, then operating and maintaining the systems that we write and that we have inherited.</p><p>Asides:<br>[*] See Google’s <a href="https://rework.withgoogle.com/guides/understanding-team-effectiveness/steps/foster-psychological-safety/">Tool: Foster Psychological Safety</a>.</p><h3>Techniques</h3><p><strong><em>Troubleshoot every minute: Some tools to use</em></strong></p><p>Here’s an alphabetical list of tools you can use to address rough patches you come across in your mobs. You could even shuffle these into a set of playing cards and flip through them to consider if you want to play just one card today.</p><h4>All the existing Agile tools retrofitted to mob-style</h4><p>Each of these could be a separate “card” you play. Since these are less specific to mob programming, I only mention them: <a href="https://en.wikipedia.org/wiki/Kanban_board">Kanban Boards</a>, Lean, <a href="https://www.agilealliance.org/the-magic-of-small-user-stories/">Write small Stories</a>, <a href="https://en.wikipedia.org/wiki/Stand-up_meeting">Standups</a>, <a href="https://smile.amazon.com/Agile-Retrospectives-Making-Teams-Great/dp/0977616649">Retrospectives</a>, <a href="https://www.pagerduty.com/resources/learn/post-mortem-incident-report/">Post Mortems</a>, <a href="https://retrospectivewiki.org/index.php?title=The_Prime_Directive">the Prime Directive</a>, <a href="https://leancoffee.org/">Lean Coffees</a>, <a href="http://www.extremeprogramming.org/rules/iterationplanning.html">IPM</a>s are all tools with plenty of history and utility. Use them judiciously and just as importantly, stop using what becomes no longer useful. E.g. some mobs might find you need less ceremony with fewer tickets since much is captured in conversation. Others might double-down on writing tickets together as a way to capture work and remember what they agreed to.</p><h4>All the existing Communication tools, retrofitted to the mob</h4><p>Remember to get on the same page with <strong>whiteboard</strong> conversation. Gather feedback outside the mob or simply have another shared visualization with <a href="https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/about-pull-requests"><strong>PR</strong></a><strong>s. </strong>Manage <a href="https://slack.com/"><strong>Slack</strong></a> by minimizing interruptions, or block off time to respond to DMs and email, or sometimes lean into them with the mob!</p><h4>All the existing Pairing tools</h4><p>You can copy/alter any tools you want from the <a href="https://en.wikipedia.org/wiki/Pair_programming">Pairing</a> world, <a href="https://gist.github.com/jordanpoulton/607a8854673d9f22c696"><strong><em>Driver/Navigator</em></strong></a><em> </em>is a key one, where the mob has 1 driver and many navigators.</p><p>I’ve also seen a limited use of <a href="http://wiki.c2.com/?PairProgrammingPingPongPattern">Ping Pong</a> as a way to get things started. Particularly in making the transition from paring to the mob.</p><h4>Anytime<a href="https://smile.amazon.com/Agile-Retrospectives-Making-Teams-Great/dp/0977616649">Retro</a></h4><p>The team feedback cycle can be up-to-the-minute in a mob. At the end of every day, it’s useful to go around the circle and ask each member for “pluses and minuses.” That is, one thing that went right and one thing that went wrong. Then decide on how to handle the minuses and how to reinforce the pluses. This can take as long as 5 minutes.</p><p>Once you’ve established safe feedback with this practice, run this card any time something is going off-the-rails and you want to nip it in the bud. You can do it at the end of the day, at the end of the POM (see “Pomodoro Technique” below), or in extreme cases, just stop the mob immediately and run a 5-minute Retro — (bonus card: “gut check: does everyone just need to get <strong>ice cream</strong> and come back?”)</p><h4>Call out positive contributions</h4><p>Remember to keep things positive and acknowledge the good work that your team is doing. This is easy. “That was a good idea.” Done. When you describe what you did in standup, acknowledge their contribution in public, “We made progress on feature X, since Georgette came up with the idea that we do Y”. Done. Not only is honoring people’s work the right thing to do, but you’ll often find that there will be a virtuous circle of positive communication of this type reverberating in your group. Everyone starts giving each other props!</p><h4>Dedicated hardware</h4><p>You don’t need to put the cart before the horse. You don’t need to buy stuff on day one. But, it is very useful to have a dedicated mob station with multiple screens and keyboards.</p><p>We have a station set up with a dedicated team Mac-mini and 2 shared screens facing opposite directions on a long bench so that 2 sets of engineers can face each other*. For remote mobbing, we all have the same high-quality headsets (integrated mic+headphones). Common hardware helps encourage a safe and efficient space with a shared, configured, predictable set of tools, IDEs, and key bindings, in an agreed-upon environment.</p><p>[*] Thanks to our director, <a href="https://medium.com/u/50cd16ed6a8c">Brian Guthrie</a>, for suggesting and then getting the company to buy these for us.</p><h4>Don’t Mob</h4><p>Just like any technique, process, paradigm or framework, mature use of that technique means judicious use of it. Sometimes you just need to not mob. Accommodate cognitive diversity and different levels of social coding experience by pulling back when you need to.</p><p>On my team, we mob by default, but 2 times a week we scheduled 2-hour blocks of “solo-flight.”</p><p>My only caution to this would be: if the team hasn’t yet built up the skill of mobbing effectively, try to commit at least a month to mobbing exclusively. You need to build the mobbing muscle before can back away from it effectively.</p><h4>Facilitator role</h4><p>Some mobs in the <a href="https://en.wikipedia.org/wiki/Tuckman%27s_stages_of_group_development">storming phase </a>of team development will find it hard to resolve differences between equal but opposite approaches, styles, or find they get sidetracked by a desire for micro-improvements, frustration with key-bindings, or Slack. Maybe you have someone who’s “grabby” with the keyboard, or any number of distractions. At this point, it’s good to introduce the “Facilitator” role. The facilitator is in charge of a small handful of duties (3–5) like “Driver Defender” so no one besides the designated driver is allowed to grab the keyboard), “Focus Keeper” to stop side-tracking from the task at hand — perhaps by capturing the concerns on a whiteboard that “don’t need to be worked on <em>right now</em>” — or by assigning a “lead navigator.” The facilitator will quickly arbitrate and keep the group on task. This role should rotate, but as lead, it’s helpful for you to model what you’re looking for by being the 1st in the role, or much better, assign someone else from the team that you know will be a good at it.</p><h4>Mob with another mob</h4><p>Other teams may be mobbing or not. But when you have interacting services or need to implement a feature request from another team or vice-versa, invite 1 or more of them into your mob!</p><p>It can be a mirror that re-enforces to the mob how well they are collaborating or really illustrate the positive impact their work is making for the other team. Another team can often introduce your team to other new ways of thinking.</p><p>When inviting another team, I always make sure to start with a good facilitator, whiteboard tasks, and asking members from the guest team to “drive” the keyboard. This is like serving your guests at the dinner table first and it quickly integrates the guest team.</p><p>If your mob isn’t yet <a href="https://en.wikipedia.org/wiki/Tuckman&#39;s_stages_of_group_development">norming or performing</a>, you’ll want to manage this carefully. Sometimes I’ll ask for fewer members of the guest team to join or curate the interaction in some way. Do what you need to keep your team psychologically safe! At other times I’ll let the experiment reveal itself.</p><h4>Parallel Play</h4><p>I like to use this term for our scatter/gather technique.</p><p>That is, you’ll find that certain tasks like reading documentation can be awkward in the Mob. Or, maybe you’re finding it hard to work out an agreed-upon approach to a problem between good alternatives. Or, sometimes even if your team normally flows, people just need space.</p><p>When this happens: Agree to do a POM or two apart (see “Pomodoro Technique” below), with the plan to come together to review each other’s findings, with the goal of integrating them back into the mob.</p><p>My team mobs by default every day, but we dedicate several hours two afternoons a week for “solo flight,” to give honor for diverse tasks, interests, and individual creative outlets in addressing our planned work from the prioritized backlog.</p><h4><a href="https://en.wikipedia.org/wiki/Pomodoro_Technique">Pomodoro Technique</a></h4><p>Pomodoro is also extremely useful. Like pairing, most people find it is exhausting interacting with people all day long. “POM” force you take much-needed breaks and really do work to refresh the mind and tempers. Don’t be rigid though. My current team likes 30-minute POMs, with 5-minute breaks. I’ve worked with others that like to keep focus for 1 hour at a time. We use the app, <a href="https://apps.apple.com/us/app/focus-time-manager/id777233759?mt=12">Focus</a>, installed on our mob station, laptop and phones. Another team at Meetup like to use <a href="https://github.com/GreatWebGuy/MobTime">MobTime</a> which features a reminder for named driver-rotation! There are many many alternatives to choose from.</p><h4>Remote Mob</h4><p>People who have discovered that mobbing works for their team <a href="https://www.urbandictionary.com/define.php?term=IRL">IRL</a> often find working in distributed teams especially challenging. However, we have found this to be relatively easy to overcome.</p><p>Two tools from this list are especially important to make this work: <em>Dedicated hardware </em>(above in this section) and <em>Mob with another mob </em>(below).</p><p>For occasional remote members, we join our mob station to a <a href="https://zoom.us/">Zoom conference</a> and ask those IRL to bring our laptops to the station and join the Zoom with the same quality headset (mic+headphones) that our remote employees do. Once you’ve established IRL practice, this works remarkably well.</p><p>For a full-time hybrid remote plus IRL team that mob everyday, instead of headphones, we use a high-quality conference speaker/mic, shift the position of the camera often, and have multiple monitors positioned that we can face both the screen and each other.</p><h4>Rotate Roles</h4><p>Don’t let anyone get pigeonholed. It inhibits learning and takes away from some of the gains of mob programming. That is, you build empathy, resiliency, plasticity, exposure, and growth when mobbing. Let this happen, even when some people are “not good at it.” We usually rotate some aspect of they mob every POM.</p><h4>Scout</h4><p>This is like parallel play, but instead of the whole team simply have one person break off to do a spike, Proof-of-Concept, troubleshoot, or research a problematic area blocking the mob. They then bring their findings back within a time-boxed effort.</p><p>This is useful when you need to give one of your introverts on the team a break or if you have a competing priority that simply must be handled, but you don’t want to make the team lose momentum on your main line of work.</p><h4>Try to mob on anything</h4><p>Once you discover the power of mob program you might be tempted to try it. Not just on programming tasks, but almost everything. I highly encourage this. We mob on everything and anything. I have yet to find any task that hasn’t benefited. We mob on writing tickets, planning projects, for on-call issues, stakeholder interactions, PRs, interviews, presentation slides, and, of course, lunch. It turns out that extreme collaboration and focus is a powerful, reusable component to build on your team!</p><h3>Concluding Rant</h3><p>The problems of software engineering have fundamentally changed since the early 21st century.</p><p>The turn-of-the-millennium began with the highly caffeinated lone anti-social “rock stars” delivering too much too clever inscrutable code that only <em>he</em> (sadly, “he” is still the <a href="https://www.daxx.com/blog/development-trends/number-software-developers-world">over-majority</a> pronoun) could maintain. Valuing overly technical/mechanical thinking and lack of cognitive diversity created terrible UX and pre-cursed <a href="https://en.wikipedia.org/wiki/Dr._Strangelove">Dr. Strangelove</a>-like failures similar to <a href="https://www.washingtonpost.com/local/trafficandcommuting/female-dummy-makes-her-mark-on-male-dominated-crash-tests/2012/03/07/gIQANBLjaS_story.html">not having female crash dummies</a> and <a href="https://hbr.org/2017/04/a-new-more-rigorous-study-confirms-the-more-you-use-facebook-the-worse-you-feel">Facebook depression</a>.</p><p>From today’s lens, the proliferation of distributed systems in the day-to-day programmer’s life, a greater complexity of ecosystems, architectures, domains, remote working, outsourcing, the transiency of goals and teams, dynamic global interaction, all make Social Coding practices like Mobbing invaluable.</p><p>The social craft of coding makes difficult systems tractable. It helps us to understand and maintain complex systems pooling together our mental perspectives and interpretations.</p><p>Perhaps more importantly, by working together with a diversity of engineers, the design of our software tends to reflect and work for the diversity of humanity that our systems seek to serve.</p><p>Coding/Development/Engineering is a social endeavor. It is a human endeavor. Both in the product you create and even in the in-the-moment process of creating it, software has a decidedly social impact.</p><p>It effects in the world, your company, your teammates, and you.</p><p>So, as a facilitator of the Mob: If you cultivate kindness, trust and safety, and diversity, you will see it <strong>immediately</strong> reflected in the world around you every day you come to work.</p><p>P.S. Props to my most recent mob-mates: Tyler Beebe, <a href="https://medium.com/u/27e470663e75">Jaclyn E. Jiménez</a>, and Anna Armentrout. Thank you for the daily lessons. Mob rule!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2cb93a425b75" width="1" height="1" alt=""><hr><p><a href="https://medium.com/making-meetup/how-i-learned-to-stop-worrying-and-love-the-mob-2cb93a425b75">How I learned to stop worrying and love the Mob</a> was originally published in <a href="https://medium.com/making-meetup">Making Meetup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>