A place to cache linked articles (think custom and personal wayback machine)
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

4 лет назад
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. title: Five best practices in open source: external engagement
  2. url: http://ben.balter.com/2015/03/17/open-source-best-practices-external-engagement/
  3. hash_url: 79cca35c0ad4871d0159a6c940a64b47
  4. <p>When it comes to open source, simply publishing code isn’t enough. Open source is about fostering communities around shared challenges. Sure, you’ll want to <a href="http://ben.balter.com/2015/03/08/open-source-best-practices-internal-collaboration/">fine tune your internal collaboration workflows</a>, but at its core, open source is about proactively engaging external developers and supporting their ability to contribute. You can have open source without executive oversight. You can have open source without policy guidance. You can even have open source without large organizations. But you can’t have open source without open source developers and you certainly can’t have open source without open source code.</p>
  5. <p>Working regularly with government agencies to help ensure their first (or second) step into the open source world is a successful one, here are five best practices for pursuing open source in government (or any large organization for that matter):</p>
  6. <h3 id="expand-your-definition-of-stakeholders">1. Expand your definition of stakeholders</h3>
  7. <p>Going in to your first open source project, you’ll likely have a narrow definition of stakeholders. You’ve probably accounted for open source developers, internal business owners or subject matter experts, and possibly the press. Open source communities are made out of many more types of stakeholders, on both sides of the firewall. Put a different way, <a href="http://ben.balter.com/2013/08/11/everyone-contributes/">everyone contributes</a>.</p>
  8. <p>Here’s a short list of personas that likely already care about your project, our would care, if properly engaged:</p>
  9. <ul>
  10. <li>Non-technical, non-user stakeholders</li>
  11. <li>Potential users</li>
  12. <li>Veteran (or curious) users</li>
  13. <li>Subject matter experts (accessibility, content, i18n)</li>
  14. <li>Technical users</li>
  15. <li>Active developers</li>
  16. <li>Potential developers</li>
  17. </ul>
  18. <p>Even before you hit publish, there’s lots of ways to seed your project’s ecosystem with different types of contributors, technical and otherwise. Here’s a few ways they might contribute:</p>
  19. <ul>
  20. <li>Kick the tires, does the thing even work? Does it do what it says it does?</li>
  21. <li>Answer the question “what features would you love to see?”</li>
  22. <li>Flesh out documentation, ask questions, note where documentation is lacking</li>
  23. <li>Community evangelism, speak, teach, and spread your love for the project</li>
  24. <li>Submit new questions to the project’s Q&amp;A forums, or take a stab at an answer or two</li>
  25. <li>Host a genius bar at the next local meetup</li>
  26. <li>Translate the project into a different language</li>
  27. <li>Give feedback on proposed bug fixes and features, propose new ones</li>
  28. <li>Recruit new developers, help junior developers grow into the project</li>
  29. </ul>
  30. <p>In traditional government workflows, many of these functions happen by necessity, but artifacts, if they exist, are invisible to the open source community. Before you seek to engage external stakeholders, shift internal stakeholders off traditional workflows, and have them begin using the same tools you’d use to engage external stakeholders. Have a feature request? Open an issue. Want to review the docuemntation? Here’s a link to the public facing README.</p>
  31. <p>If you do it right, by the time you’re ready to engage the external community, you’ll be a pro, having already used the same tools to engage your internal community, which can now be placed on equal footing as external stakeholders. Put another way, your goal should be to support one large community, not two necessary unequal ones.</p>
  32. <h3 id="be-the-hub-encourage-spokes">2. Be the hub, encourage spokes</h3>
  33. <p>As the maintainer of an open source project, you should think of your role as being the host of the internet’s most boring cocktail party. You are responsible for extending invitations to a diverse list of party goers, providing drinks and snacks, and as attendees arrive one-by-one, taking their coat and providing introductions to one another.</p>
  34. <p>Open source is no different. You must invite contributors, provide them with the necessary tools to collaborate (both social and technical), and to float from conversation to conversation, connecting subject matter and technical experts, and smoothing over any potential disagreements among guests before they even arise.</p>
  35. <p>You can’t be a host, however, if guests are only allowed to talk directly to you. That wouldn’t be much of a party, and in the case of open source, wouldn’t foster much of a community. Yet that’s exactly how most open source efforts are initially structured, by instructing potential contributors to email <code>anonymous-inbox@agency.gov</code> as the sole “official” point of contact.</p>
  36. <p>Instead, minimize one-to-one interactions. There’s absolutely no way for you to scale. The types of questions and feedback you receive are going to be common to one another. <em>Is this column month-day-year or year-month-day?</em> <em>What unit is this represented in?</em>. Engaging developers via email logically necessitates that you’re going to be answering the same question multiple times, and will be engineering a system with a single point of failure: yourself. As we say in web development, non-blocking is better than blocking.</p>
  37. <p><a href="http://ben.balter.com/2014/10/07/expose-process-through-urls/">That means that every answer to every question should have a URL</a> (and a human name and face). As a rule, second time I’m asked a question via email, I always wait until I can reply with a URL, and if it’s a question I know others are going to have, even earlier than that. Ideally, you should only have to answer a question once, or even better, never, if the community can for you. When the second user encounters the same problem, they can search and get connected with the first. Better yet, by the time it’s happened a third time, it’s a documented problem, and a member of the community can propose an update to the documentation. This isn’t hypothetical, this happens every day in open source.</p>
  38. <p>In practicality, that means standing up public, linkable forums for stakeholders to ask questions and submit feedback, to engage with one another, and for you to support the community. Communities are created by relationships between humans — humans with names and faces — not between humans and a shared inbox or anonymous organization account. If all that’s locked away in a shared inbox or behind a corporate logo, if you hold a monopoly on the ability to communicate and funnel it through a single, tightly controlled access point, well, then, nobody’s going to want to come to your party.</p>
  39. <h3 id="minimize-friction">3. Minimize Friction</h3>
  40. <p>At GitHub, we measure workflows in terms of <a href="http://ben.balter.com/2013/08/11/friction/">friction</a>. You can define friction as the time it takes for a potential contributor to go from <em>“I want to contribute”</em> to <em>“I have contributed”</em>. When contributions are on a volunteer basis, minimizing friction is essential to encouraging first time contributors and to turn those first-time contributors into long-term collaborators.</p>
  41. <p>Think about it this way. Lets say I find a typo in your app. I need to make what is literally a single character change. The actually change itself should take less than thirty seconds. But what do I have to do to make that change? I’ll need to figure out the project dependencies and install them, bootstrap a local development environment, make my change, set up the test suite, run tests, and then figure out how to contribute my change back. That 30 seconds change just became a day long process and when friction is disproportionate to the time it takes to do the thing I set out to do, I’m simply not going to contribute.</p>
  42. <p>If a maintainer spends a few hours at the onset improving documentation and scripting common tasks, even if it only shaves a few seconds of contributor friction, those hours the maintainer spends will be well justified in the long run, when you multiply those seconds by the hundreds of developers that may contribute across the project’s lifetime, and the hundred more than would otherwise be turned away without it.</p>
  43. <p>In practice, that means walking through the contribution flow from discovery to merge and deployment, and anticipating the potential contributor’s needs at each step. How do I find the source code? Am I familiar with this language or platform? Where’s the documentation? Have I seen this license before, or do I need to hire a lawyer to know if I can contribute? What are the local system requirements? How do I bootstrap those dependencies? Tests? Once I’ve made my change, what’s the workflow for submitting an improvement? How long should I expect to wait on feedback? How long will it take to get merged so I can go work on the next thing?</p>
  44. <p>A lot of that comes down to contributor-friendly documentation (read: not internal policy), but a sane workflow (e.g., merging pull requests as they come in, not in a standing meeting on the 2nd Tuesday of the month) and some simple tooling can go a long way. At GitHub we have what we call culture tools, meaning I can jump into any project and know how to set things up and submit my proposed fix without reading a single line of documentation. <a href="https://github.com/parkr" class="user-mention">@parkr</a> expanded on that idea with what he calls <a href="https://byparker.com/blog/2015/language-agnostic-interfaces-for-software-development/" data-proofer-ignore="true">“Language-Agnostic Interfaces for Software Development”</a>. Whatever you call it, running <code>script/bootstrap</code> is a heck of a lot easier than spending a few hours learning how some random package manager works.</p>
  45. <h3 id="decentralize-governance">4. Decentralize governance</h3>
  46. <p>Successful open source is all about decentralization and informality, two things large organizations are traditionally terrible at. <a href="http://ben.balter.com/2014/08/03/why-isnt-all-government-software-open-source/">Think about what most large organizations optimize for</a>: meetings, in-house email, strict hierarchy, and tightly held process. In the world of open source, you don’t hold a meeting to merge a pull request. Email is foregone and process is exposed through public discussions. Heck, you don’t even need to be in the office or wearing a suit to comment on an issue. In order to be successful, and the step most large organizations overlook, is that to participate, you need to be a member of the community, not you the organization, but you the human. Open source developers can tell the difference between someone who is “one of them” and “gets it”, and someone who drops in once or week to communicate already-made decisions or follows a telemarketing-like support script when interacting with contributors. Put another way, no matter how much you water it, astroturf will never grow.</p>
  47. <p>When the White House merges a pull request, it’s done by a developer familiar with the project. The CIO doesn’t bring a laptop into the situation room and ask the President to sign off on the changes. That’d be crazy. The president isn’t a software developer, and the people in that room presumably have much better things to do. Yet more often than not, participating in the open source community is seen bureaucratically as public engagement, and thus, must be funneled through a public affairs office or similar committee-like blocking experience.</p>
  48. <p>Instead, push responsibilities to as close to the edge as possible. There’s a lot of different ways to think about community engagement, but essentially, there are three big buckets:</p>
  49. <ul>
  50. <li>
  51. <p><strong>Community stewardship</strong> - Day-to-day community engagement is going to require responding to issues and providing support. The questions may be technical, but more often than not, this role is best served by a fellow, intern, or other member of the open source community, that knows the lay of the land and has managed an open source project before, even if at a smaller (or personal) scale, and can empower others within your organization to do the same. Think of them as your open-source sherpa.</p>
  52. </li>
  53. <li>
  54. <p><strong>Code review-ship</strong> - Beyond general engagement, day-to-day project management will require regular, in-depth code review, providing feedback to developers, and generally working with contributors to enforce the project’s style and goals. This should be a technical person familiar with the project, whether an external contractor, a community member, or employee it doesn’t matter, as long as they’re able to understand the technical issues involved and move proposed changes forward at their own pace. This can be the same person who engages the community, but doesn’t need to be.</p>
  55. </li>
  56. <li>
  57. <p><strong>Leadership</strong> - Last, you’ll want someone to serve in a role the open source community would most often call “lead developer”. There can be multiple lead developers, and those developers can be the ones to provide early code review and feedback, but again, it’s important that they have a firm grasp of the technical issues at play. They’ll be responsible for accepting or rejecting pull requests on behalf of the project, long-term planning, working with the community to establish project roadmaps, coordinating releases, etc.</p>
  58. </li>
  59. </ul>
  60. <p>All of these roles of very different from writing a blog post or composing a Tweet and require a certain degree of speed, flexibility, and technical acumen. The only way the project is going to be successful is by decentralizing project governance to those most closely involved with the project. Obviously matters of policy as well as large, project-defining decisions should include non-technical stakeholders, but just because a code comment is public, doesn’t mean day-to-day maintenance should be the purview of a public affairs office or committee that maintains a standing meeting. Given the pace of open source software development, it’s simply not practical. Open source is about collaboration between humans, not between humans and your entire organization.</p>
  61. <h3 id="encourage-contributors">5. Encourage contributors</h3>
  62. <p>In open source, the right to contribute is assumed. In fact, if you don’t want contributors, if a project is simply published or if a project has reached end of life and is no longer maintained, you must explicitly disclaim that you are <em>not</em> accepting contributions, yet in the world of government and corporate open source, that’s sadly not always the case.</p>
  63. <p>I’ve personally contributed to open source projects maintained by government and other large organizations only to see my code languish as an open pull request, either because the bureaucratic process to review internally was to strict, because they had nobody empowered internally to review and approve the change, or because the code was intentionally only disclosed, and <a href="http://ben.balter.com/2014/09/29/source-disclosed-%E2%89%A0-open-source/">not really open source</a>, but not properly documented. In any case, many developers are left with a bad taste in their mouth from prior experience, and are skeptical of projects run by large organizations.</p>
  64. <p>As a result, to be successful, you’ll want to explicitly let developers know that you’re not only capable of accepting contributions at the pace that they’d expect, but that you <em>want</em> them to contribute. Practically, that comes in a few different forms:</p>
  65. <ul>
  66. <li>
  67. <p><strong>In advance</strong> - Include a phase like “we encourage you to contribute” in the project’s documentation, along with instructions on how to do so. Fork, create a descriptively named feature branch and submit a pull request? Great. Beyond workflow, these instructions should include what to expect from the project maintainers, and the technical requirements to run the projects locally. You’ll want to assume this is the contributor’s first time contributing, because likely it is.</p>
  68. </li>
  69. <li>
  70. <p><strong>Daily</strong> - You must provide constructive support, praise, and feedback with <em>every</em> contribution. Mentor first-time or junior contributors until they’re at the point where they can mentor others. If something doesn’t conform to your standards, hold their digital hand and help them fix it. Most importantly, always express gratitude when merging or commenting. An emoji thank you from the White House or well-known brand can go a long way to guaranteeing the contributor will submit their second (and third) pull request.</p>
  71. </li>
  72. <li>
  73. <p><strong>Going forward</strong> - While not vital on day one, automated testing will go a long way to give potential contributors the confidence to know that their contribution didn’t break anything, and will give project maintainers the confidence to merge it expeditiously. With GitHub and a service like Travis CI, contributors can get early feedback on pull request, simply by submitting a pull request, and all without the project maintainers reading a single line of code. Continuous integration will not only ensure software quality, but can be used to enforce project norms around documentation, style, or other things your organization cares about, in a friendly, self-help way. Ensure you’re not a blocker.</p>
  74. </li>
  75. </ul>
  76. <p>There’s a world of difference between uploading a zip file to an FTP server and open source. Open source is about fostering communities around shared challenges, and as the maintainer of an open source project, that responsibility falls squarely on your shoulders. To be successful, simply publishing code isn’t enough. Go out of your way to encourage, praise, and support each contributor and each contribution as if the project’s success depended on it, because in reality, it does.</p>
  77. <p><strong><em>This post is part of a series on best practices in open source. You may also be interested in <a href="http://ben.balter.com/2015/03/08/open-source-best-practices-internal-collaboration/">Five best practices in open source: internal collaboration</a>.</em></strong></p>