<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Eli Bierman</title>
    <description>The latest articles on DEV Community by Eli Bierman (@eli).</description>
    <link>https://dev.to/eli</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F77140%2Fc26c333b-3e20-4eef-9fa3-426da48fac35.jpeg</url>
      <title>DEV Community: Eli Bierman</title>
      <link>https://dev.to/eli</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/eli"/>
    <language>en</language>
    <item>
      <title>3 Essential Components of Great Documentation</title>
      <dc:creator>Eli Bierman</dc:creator>
      <pubDate>Wed, 13 Jun 2018 02:15:28 +0000</pubDate>
      <link>https://dev.to/eli/3-essential-components-of-great-documentation-2cih</link>
      <guid>https://dev.to/eli/3-essential-components-of-great-documentation-2cih</guid>
      <description>&lt;p&gt;I originally wrote this as a response to &lt;a href="https://dev.to/nonlinearnygma"&gt;@nonlinearnygma&lt;/a&gt;'s post:&lt;/p&gt;


&lt;div class="ltag__link"&gt;
  &lt;div class="ltag__link__content"&gt;
    &lt;div class="missing"&gt;
      &lt;h2&gt;Article No Longer Available&lt;/h2&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;It got really long and I felt a bit rude leaving such a long comment, so I decided to make it its own post. I clearly have a lot of opinions about documentation! This post focuses on what makes documentation great, and how a beginner to a project can get involved in contributing to its documentation. &lt;/p&gt;

&lt;p&gt;&lt;em&gt;Update:&lt;/em&gt; After writing this post I saw &lt;a href="https://dev.to/ojkelly"&gt;@ojkelly&lt;/a&gt; has a very similar post describing documentation in layers:&lt;/p&gt;


&lt;div class="ltag__link"&gt;
  &lt;a href="/ojkelly" class="ltag__link__link"&gt;
    &lt;div class="ltag__link__pic"&gt;
      &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--JGKkKosk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://res.cloudinary.com/practicaldev/image/fetch/s--dSbuI0_9--/c_fill%2Cf_auto%2Cfl_progressive%2Ch_150%2Cq_auto%2Cw_150/https://dev-to-uploads.s3.amazonaws.com/uploads/user/profile_image/77382/cfd8550b-2a35-4318-bfff-d826fc1c6c88.jpeg" alt="ojkelly image"&gt;
    &lt;/div&gt;
  &lt;/a&gt;
  &lt;a href="/ojkelly/the-four-layers-to-great-documentation-dj7" class="ltag__link__link"&gt;
    &lt;div class="ltag__link__content"&gt;
      &lt;h2&gt;The Four Layers to Great Documentation&lt;/h2&gt;
      &lt;h3&gt;Owen Kelly ・ Jun 7 '18 ・ 5 min read&lt;/h3&gt;
      &lt;div class="ltag__link__taglist"&gt;
        &lt;span class="ltag__link__tag"&gt;#documentation&lt;/span&gt;
        &lt;span class="ltag__link__tag"&gt;#docs&lt;/span&gt;
        &lt;span class="ltag__link__tag"&gt;#marketing&lt;/span&gt;
        &lt;span class="ltag__link__tag"&gt;#writing&lt;/span&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/a&gt;
&lt;/div&gt;


&lt;p&gt;I really love how he describes the layers building on each other, so be sure to check out that post. &lt;/p&gt;

&lt;h2&gt;
  
  
  But Nobody Likes Writing Docs...
&lt;/h2&gt;

&lt;p&gt;If you feel this way you are not alone. Writing documentation doesn't always feel like a priority when you also need to code. Good documentation makes code more reusable and understandable, so the code and other coders will thank you for it. Writing documentation at the same time as you write code can make it a more manageable and enjoyable task. &lt;/p&gt;

&lt;h2&gt;
  
  
  Writing Docs Helps You
&lt;/h2&gt;

&lt;p&gt;Writing documentation is a great way to think through the details of a technical subject. It can help reframe issues in your mind that lead to insights about the project or areas for improvement that you may not have thought of before. It can even help in the planning stages of a project or new feature. Some people even practice &lt;a href="https://gist.github.com/zsup/9434452"&gt;Documentation-Driven Development&lt;/a&gt;!&lt;/p&gt;

&lt;h2&gt;
  
  
  Writing Docs Helps the Community
&lt;/h2&gt;

&lt;p&gt;Documentation is the first place most coders go to try out or learn about a new project, or when they come across an issue or try solving a new problem with a project they already are familiar with. That means that documentation contributions can make even more of a positive impact on a project's community than contributions to the code. &lt;/p&gt;

&lt;p&gt;&lt;a href="http://opensourcesurvey.org/2017/"&gt;GitHub's 2017 Open Source Survey&lt;/a&gt; found that the biggest problem encountered in open source was "incomplete or confusing documentation." Their top insight from the survey was this:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Documentation is highly valued, frequently overlooked, and a means for establishing inclusive and accessible communities.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Any contribution (small or large) is always greatly appreciated by the project maintainers and its users. &lt;/p&gt;

&lt;h2&gt;
  
  
  Aspirational Documentation
&lt;/h2&gt;

&lt;p&gt;Some projects with documentation that I try to learn from:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://vuejs.org/v2/guide/"&gt;VueJS&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://sqlite.org/quickstart.html"&gt;SQLite&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://www.freebsd.org/docproj/"&gt;FreeBSD&lt;/a&gt; (especially compared with Linux)&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://bunjil.js.org"&gt;Bunjil&lt;/a&gt; (I haven't used it, but this GraphQL server by &lt;a href="https://dev.to/ojkelly"&gt;@ojkelly&lt;/a&gt; that he shared in his post has really #nicedocs)&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://docs.docker.com/"&gt;Docker&lt;/a&gt; (contributed by &lt;a href="https://dev.to/presto412"&gt;@presto412&lt;/a&gt;)&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://aws.amazon.com/documentation/"&gt;AWS&lt;/a&gt; (contributed by &lt;a href="https://dev.to/technologymop"&gt;@technologymop&lt;/a&gt;)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;All of these projects include the components I describe below. Let me know in the comments if there are any projects with documentation you love. I'm always looking for more documentation inspiration! &lt;/p&gt;

&lt;h2&gt;
  
  
  My Ideal Documentation
&lt;/h2&gt;

&lt;p&gt;In my opinion the ideal documentation usually has 3 components. &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;The Why / Goals:&lt;/strong&gt; the context and goals of the project&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The What / API / Reference:&lt;/strong&gt; detailed technical documentation of the programming interface&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The How / Examples / Guides:&lt;/strong&gt; example-based guides for accomplishing specific tasks&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  The Why / Goals
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;What was the motivation for this project being built in the first place?&lt;/li&gt;
&lt;li&gt;What are some similar projects and how are they different?&lt;/li&gt;
&lt;li&gt;What types of projects would this project be a good fit for, and when might something else be better?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Usually this is best answered by the authors of the project. If it's possible, it might be helpful to get their point of view on this to add to the documentation if it's not there already. Sometimes people leave out explaining where the project might &lt;em&gt;not&lt;/em&gt; be the best fit, but it is very useful and appreciated by users.&lt;/p&gt;

&lt;h3&gt;
  
  
  The What / API / Reference
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;What are the different high-level components and how do they fit together?&lt;/li&gt;
&lt;li&gt;What are the different low-level data types and functions and what do they do?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;There is usually some of this already. If there isn't any, it can be very difficult to get started at all. This can be a good place for suggesting changes where things are unclear to you as you are learning how to use the project. Maintainers can sometimes be picky about this area of the documentation since it's viewed as the authoritative source of information, but it can be a good opportunity to learn about the nitty-gritty details of the project. &lt;/p&gt;

&lt;p&gt;The format of this type of documentation is often language-specific, since most languages come with some kind of built-in system for generating docs from comments in the source code. That is usually the format that people coding in that language expect to see this type of documentation in. &lt;/p&gt;

&lt;h3&gt;
  
  
  The How / Examples / Guides
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;How do you install the project and get some basic code running?&lt;/li&gt;
&lt;li&gt;What steps do you take to build a simple application using this project?&lt;/li&gt;
&lt;li&gt;What steps do you take to address common problems the project addresses?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This is usually the area with the most room for improvement and easiest for someone new to the project to jump into. &lt;/p&gt;

&lt;p&gt;This part of the documentation holds a user's hand and walks them through each step in a clear way, leading them to the nirvana of working code that solves a real issue (or it's clear how it can be applied to one). &lt;/p&gt;

&lt;p&gt;You can write this type of documentation by building a small thing using the project and take careful notes at every step about what you're doing, so that somebody else could follow along by just copy-pasting. You can easily turn this into a guide that takes users from total beginner to a small win and an aha-moment. &lt;/p&gt;

&lt;p&gt;Most people coming to a project are total beginners in it, so writing for other beginners from a beginner's perspective is immensely valuable. People with more experience in the project may actually have trouble seeing from a beginner's perspective so they usually really appreciate this type of contribution. I think this type of documentation goes a long way in making projects more approachable. &lt;/p&gt;

&lt;p&gt;I'd love to read other people's opinions on what makes good documentation here or on &lt;a href="https://dev.to/nonlinearnygma"&gt;@nonlinearnygma&lt;/a&gt;'s post. Do you have a love-hate relationship with documentation? Any favorite #nicedocs?&lt;/p&gt;

</description>
      <category>documentation</category>
      <category>nicedocs</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
