Share E-Book

Docs for Developers An Engineer’s Field Guide to Technical Writing - Second Edition (Jared Bhatti, Sarah Corleissen etc.) (z-library.sk, 1lib.sk, z-lib.sk)

Author

,
,
,
,

Rating 4.0 AI initial rating

Log in to rate

Programming
Language English

Learn the craft of documentation for each step in the software development lifecycle, from understanding your users’ needs to publishing, measuring, and maintaining useful developer documentation. Well-documented projects save time for both developers on the project and users of the software. Projects without adequate documentation suffer from poor developer productivity, project scalability, user adoption, and accessibility. In short: bad documentation kills projects. This new edition has been fully updated and edited taking into account the needs for developers and tech writers today, with new content relating to AI, automation and LLMs. Docs for Developers demystifies the process of creating great developer documentation, following a team of software developers as they work to launch a new product. At each step along the way, you learn through examples, templates, and principles how to create, measure, and maintain documentation—tools you can adapt to the needs of your own organization. You Will Learn to: • Create friction logs and perform user research to understand your users’ frustrations • Research, draft, and write different kinds of documentation, including READMEs, API documentation, tutorials, conceptual content, and release notes • Publish and maintain documentation alongside regular code releases • Measure the success of the content you create through analytics and user feedback • Organize larger sets of documentation to help users find the right information at the right time • Understand where (and where not) to integrate AI into your documentation workflow This Book Is For Developers who need to create documentation alongside code, or for technical writers, product managers, community managers, developer advocates, and other technical roles who create and contribute to documentation.

Format PDF
Size 6.0 MB
(First 20 pages)

Registered users can read the full content for free

Register as a Gaohf Library member to read the complete e-book online for free and enjoy a better reading experience.

Page 1
Docs for Developers An Engineer’s Field Guide to Technical Writing, Second Edition ― Jared Bhatti · Sarah Corleissen Jen Lambourne · David Nunez Heidi Waterhouse
Page 2
Docs for Developers An Engineer’s Field Guide to Technical Writing Second Edition Jared Bhatti Sarah Corleissen Jen Lambourne David Nunez Heidi Waterhouse
Page 3
Docs for Developers: An Engineer’s Field Guide to Technical Writing, Second Edition ISBN-13 (pbk): 979-8-8688-2508-8 ISBN-13 (electronic): 979-8-8688-2509-5 https://doi.org/10.1007/979-8-8688-2509-5 Copyright © 2026 by Jared Bhatti, Sarah Corleissen, Jen Lambourne, David Nunez, Heidi Waterhouse This work is subject to copyright. All rights are reserved by the Publisher, whether the whole or part of the material is concerned, specifically the rights of translation, reprinting, reuse of illustrations, recitation, broadcasting, reproduction on microfilms or in any other physical way, and transmission or information storage and retrieval, electronic adaptation, computer software, or by similar or dissimilar methodology now known or hereafter developed. Trademarked names, logos, and images may appear in this book. Rather than use a trademark symbol with every occurrence of a trademarked name, logo, or image we use the names, logos, and images only in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark. The use in this publication of trade names, trademarks, service marks, and similar terms, even if they are not identified as such, is not to be taken as an expression of opinion as to whether or not they are subject to proprietary rights. While the advice and information in this book are believed to be true and accurate at the date of publication, neither the authors nor the editors nor the publisher can accept any legal responsibility for any errors or omissions that may be made. The publisher makes no warranty, express or implied, with respect to the material contained herein. Managing Director, Apress LLC: Welmoed Spahr Acquisitions Editor: James Robinson-Prior Development Editor: James Markham Coordinating Editor: Gryffin Winkler Illustrations by Neiko Ng Diagrams by Tegan Broderick and Eleni Fragkiadaki Code samples by Eleni Fragkiadaki Distributed to the book trade worldwide by Springer Science+Business Media New York, 1 New York Plaza, New York, NY 10004. Phone 1-800-SPRINGER, fax (201) 348-4505, e-mail orders-ny@ springer-sbm.com, or visit www.springeronline.com. Apress Media, LLC is a Delaware LLC and the sole member (owner) is Springer Science + Business Media Finance Inc (SSBM Finance Inc). SSBM Finance Inc is a Delaware corporation. For information on translations, please e-mail booktranslations@springernature.com; for reprint, paperback, or audio rights, please e-mail bookpermissions@springernature.com. Apress titles may be purchased in bulk for academic, corporate, or promotional use. eBook versions and licenses are also available for most titles. For more information, reference our Print and eBook Bulk Sales web page at http://www.apress.com/bulk-sales. Any source code or other supplementary material referenced by the author in this book is available to readers on GitHub via the book's product page, located at www.apress.com/979-8-8688-2508-8. For more detailed information, please visit https://www.apress.com/gp/services/source-code. If disposing of this product, please recycle the paper Jared Bhatti Berkeley, CA, USA Sarah Corleissen Victoria, BC, Canada Jen Lambourne Bicester, Oxfordshire, UK David Nunez Santa Barbara, CA, USA Heidi Waterhouse Minneapolis, MN, USA
Page 4
iii Praise for the Second Edition The book is like Strunk and White for writing tech docs—full of solid, time- tested advice about how to approach writing docs that everyone in the industry generally agrees with. Even if AI tools are doing the writing, we still need to get inside our users’ heads, collect friction logs about the docs, and recognize that our assumptions rarely match how our users interpret and process the same information. —Tom Johnson, Staff Technical Writer at Google and author of the blog I’d Rather Be Writing Approachable yet packed with knowledge, guidance, and charm, Docs for Developers walks through building purposeful, user-centered docs to help your customers succeed. Whether you're just diving into documentation or just need a refresher, this book is for you. —Manny Silva, Head of Docs at Skyflow and author of Docs as Tests: A Strategy for Resilient Technical Documentation Docs are the text version of your product. As AI reshapes how people find and consume information, that's never been more consequential. Understanding your users and writing docs that serve them is critical—and Docs for Developers makes that entire process accessible to any team, from audience research through writing, editing, and publishing. I wish every dev team had this book on their shelf. —Tal Gluck, Developer Advocate at GitBook and co-author of the State of Docs report
Page 5
iv Docs for Developers is a practical book that outlines the essential knowledge for writing high-quality documentation. Build confidence in your writing with concrete examples, valuable considerations for measuring documentation, and a timely AI appendix. Whether you're new to technical writing or have been writing for years, everyone has something to learn from this book. —Sarah Moir, Principal Technical Writer at Sigma, author of the blog This is Important Praise for the second edition
Page 6
v Table of Contents About the Authors xv Acknowledgments xvii Preface: Second Edition xix Foreword from the First Edition xxi Introduction xxv Chapter 1:  Understanding Your Audience 1 Corg.ly: One Month to Launch ...............................................................................1 The Curse of Knowledge .......................................................................................3 Creating an Initial Sketch of Your Users ................................................................4 Understanding Your Users’ Goals ....................................................................5 Understanding Who Your Users Are .................................................................6 Outline Your Users’ Needs ...............................................................................7 Validate Your User Understanding .........................................................................8 Using Existing Data Sources ............................................................................9 Support Tickets ................................................................................................9 Collecting New Data ......................................................................................10 Condensing User Research Findings ..................................................................14 User Personas ...............................................................................................15 User Stories ...................................................................................................17
Page 7
vi User Journey Maps ........................................................................................18 Creating a Friction Log ........................................................................................20 Summary.............................................................................................................22 Chapter 2:  Planning Your Documentation 23 Corg.ly: Creating a Plan .......................................................................................23 Plans and Patterns ..............................................................................................24 Content Types ......................................................................................................25 Code Comments ............................................................................................26 READMEs .......................................................................................................27 Getting Started Documentation .....................................................................29 Conceptual Documentation ...........................................................................31 Procedural Documentation ............................................................................33 Tutorials .........................................................................................................34 How-To Guides ..............................................................................................36 Reference Documentation .............................................................................39 Planning Your Documentation .............................................................................45 Summary.............................................................................................................48 Chapter 3:  Drafting Documentation 49 Corg.ly: First Drafts .............................................................................................49 Confronting the Blank Page (or Screen) ..............................................................50 Setting Yourself Up for Writing Success ..............................................................50 Choosing Your Writing Tools ...........................................................................51 Breaking Through the Blank Page .................................................................52 Defining Your Document’s Title and Goal .......................................................52 Creating Your Outline ..........................................................................................53 Meeting Your Reader’s Expectations .............................................................54 Completing Your Outline ................................................................................55 table of contents
Page 8
vii Creating Your Draft ..............................................................................................56 Headings ........................................................................................................57 Paragraphs ....................................................................................................58 Procedures ....................................................................................................58 Lists ...............................................................................................................59 Callouts ..........................................................................................................60 Writing for Skimming ..........................................................................................61 State Your Most Important Information First .................................................62 Break Up Large Blocks of Text .......................................................................63 Break Up Long Documents ............................................................................63 Strive for Simplicity and Clarity .....................................................................64 Getting Unstuck ...................................................................................................64 Let Go of Perfectionism .................................................................................65 Ask for Help ...................................................................................................65 Highlight Missing Content .............................................................................66 Write Out of Sequence ...................................................................................66 Change Your Medium .....................................................................................67 Working from Templates .....................................................................................67 Finishing Your First Draft .....................................................................................69 Summary.............................................................................................................70 Chapter 4:  Editing Documentation 71 Corg.ly: Editing Content .......................................................................................71 Editing to Meet Your User’s Needs ......................................................................72 Different Approaches to Editing ..........................................................................73 Editing for Technical Accuracy .......................................................................74 Editing for completeness ...............................................................................75 Edit for Structure ...........................................................................................76 Editing for Clarity and Brevity ........................................................................77 table of contents
Page 9
viii Creating an Editing Process ................................................................................79 Reviewing Your Own Document First ............................................................79 Requesting a Peer Review .............................................................................81 Requesting a Technical Review .....................................................................82 Receiving and Integrating Feedback ...................................................................82 Giving Good Feedback ........................................................................................83 Summary.............................................................................................................85 Chapter 5:  Integrating Code Samples 87 Corg.ly: Showing How It Works ...........................................................................87 Using Code Samples ...........................................................................................88 Types of Code Samples .......................................................................................89 Principles of Good Code Samples .......................................................................91 Explained .......................................................................................................92 Concise ..........................................................................................................95 Clear ..............................................................................................................96 Usable (and Extensible) .................................................................................98 Trustworthy ....................................................................................................99 Designing Code Samples ....................................................................................99 Choosing a Language ....................................................................................99 Highlighting a Range of Complexity ............................................................100 Formatting Your Code Samples ...................................................................101 Tooling for Code Samples .................................................................................101 Testing Code Samples .................................................................................102 Sandboxing Code .........................................................................................102 Automatically Generating Samples .............................................................103 Summary...........................................................................................................103 table of contents
Page 10
ix Chapter 6:  Adding Visual Content 105 Corg.ly: Worth a Thousand Words ......................................................................105 When Words Aren’t Enough ...............................................................................106 Why Visual Content Is Hard to Create ................................................................107 Comprehension ...........................................................................................109 Accessibility ................................................................................................110 Performance ................................................................................................110 Using Screenshots ............................................................................................111 Common Types of Diagrams .............................................................................113 Boxes and Arrows ........................................................................................113 Flowcharts ...................................................................................................115 Swimlanes ...................................................................................................117 Drawing Diagrams ............................................................................................118 Start on Paper..............................................................................................121 Find a Starting Point for Your Reader ..........................................................121 Use Labels ...................................................................................................121 Use Colors Consistently ...............................................................................122 Place the Diagram .......................................................................................122 Publishing a Diagram ..................................................................................122 Getting Help with Diagrams .........................................................................123 Creating Video Content ......................................................................................123 Reviewing Visual Content ..................................................................................125 Maintaining Visual Content ...............................................................................125 Summary...........................................................................................................126 table of contents
Page 11
x Chapter 7:  Publishing Documentation 127 Corg.ly: Ship It! ..................................................................................................127 Putting Your Content Out There .........................................................................128 Building a Content Release Process .................................................................130 Creating a Publishing Timeline..........................................................................131 Coordinate with Code Releases ...................................................................132 Decide How and Where to Publish ...............................................................132 Review, Test, and Approve Publication ........................................................134 Announce Your Docs ....................................................................................135 Planning for the Future .....................................................................................136 Summary...........................................................................................................137 Chapter 8:  Gathering and Integrating Feedback 139 Corg.ly: Initial Feedback ....................................................................................139 Listening to Your Users .....................................................................................140 Creating Feedback Channels ............................................................................141 Accept Feedback Directly Through Documentation Pages ..........................143 Monitor Support Issues ...............................................................................144 Collect Document Sentiment .......................................................................144 Create User Surveys ....................................................................................145 Create a User Council ..................................................................................146 Converting Feedback into Action ......................................................................147 Triaging Feedback .......................................................................................148 Following Up with Users ..............................................................................152 Summary...........................................................................................................152 table of contents
Page 12
xi Chapter 9:  Measuring Documentation Quality 155 Corg.ly: Are We Getting Through? ......................................................................155 Is My Documentation Any Good? ......................................................................156 Understanding Documentation Quality .............................................................157 Functional Quality ........................................................................................158 Structural Quality .........................................................................................164 How Functional and Structural Quality Relate .............................................167 Creating a Strategy for Analytics ......................................................................167 Organizational Goals and Metrics ................................................................168 Reader Goals and Metrics ...........................................................................170 Documentation Goals and Metrics...............................................................171 Tips for Using Document Metrics ......................................................................173 Make a Plan .................................................................................................174 Establish a Baseline ....................................................................................175 Consider Context .........................................................................................175 Use Clusters of Metrics ...............................................................................175 Don’t Be Afraid to Mix Qualitative and Quantitative Feedback ....................176 Summary...........................................................................................................176 Chapter 10:  Organizing Documentation 177 Corg.ly: The Next Release .................................................................................177 Organizing Documentation for Your Readers ....................................................178 Helping Your Readers Find Their Way ...............................................................179 Site Navigation and Organization ................................................................181 Landing Pages .............................................................................................185 Navigation Cues ...........................................................................................186 Search and AI Integration ............................................................................187 table of contents
Page 13
xii Organizing Your Documentation ........................................................................188 Assess Your Existing Content ......................................................................189 Outline Your New Information Architecture .................................................190 Migrate to Your New Information Architecture ............................................192 Maintaining Your Information Architecture ..................................................193 Summary...........................................................................................................193 Chapter 11:  Maintaining Documentation 195 Corg.ly: A Few Releases Later ...........................................................................195 Maintaining Up-to-Date Documentation ...........................................................196 Planning for Maintainability ..............................................................................197 Align Documentation with Release Processes ............................................198 Assign Document Owners ...........................................................................200 Implement a Versioning Strategy ................................................................201 Reward Document Maintenance .................................................................202 Automating Documentation Maintenance .........................................................203 Content Freshness Checks ..........................................................................203 Link Checkers ..............................................................................................204 Linters .........................................................................................................205 Reference Doc Generators ...........................................................................206 Release Note Generators .............................................................................206 Removing Content .............................................................................................207 Deprecating Documentation ........................................................................208 Deleting Documentation ..............................................................................209 Summary...........................................................................................................210 table of contents
Page 14
(This page has no text content)
Page 15
xv About the Authors Jared Bhatti is Head of Engineering Documentation at Waymo. Before that, he was the co-founder of Google’s Cloud documentation team. He’s worked on a variety of projects at Google, including Kubernetes, App Engine, and AdSense. He loves teaching writing and mentors several junior writers in the industry. Sarah Corleissen has worked as a Senior Technical Writer in a variety of organizations focused on cloud native and open source work, including Isovalent, the Linux Foundation, Stripe, and GitHub. Sarah served as co-chair for Kubernetes documentation from 2017 until 2021. She enjoys speaking at conferences and loves to mentor writers and speakers of all abilities and backgrounds. Jen Lambourne leads the technical writing and knowledge management discipline at Monzo Bank. Before her foray into fintech, she led a community of documentarians across the UK government as Head of Technical Writing at the Government Digital Service (GDS). Having moved from government to finance, she recognizes she’s drawn to creating inclusive and user-centered content in traditionally unfriendly industries. She likes using developer tools to manage docs, demystifying the writing process for engineers, mentoring junior writers, and presenting her adventures in documentation at conferences.
Page 16
xvi David Nunez is the co-founder of Falconer, an AI startup for creating, maintaining, and finding institutional knowledge. Before that, he led the technical writing organization at Stripe, where he founded the internal documentation team and wrote for Increment magazine. He also founded and led the technical writing organization at Uber and held a documentation leadership role at Salesforce. Heidi Waterhouse spent a couple decades at Microsoft, Dell Software, and many, many startups learning to communicate with and for developers. She’s constantly reassured to find that technical communication is universal across all roles. She is also the co-author of Progressive Delivery: Build the Right Thing for the Right People at the Right Time. about the authors
Page 17
xvii Acknowledgments A special thanks to everyone who made this book possible, including family and friends that supported us, colleagues that gave us encouragement, and test readers and editors who improved our work enormously. We’d specifically like to thank Riona Macnamara, Brian MacDonald, Sid Orlando, Brad Topol, Kelsey Hightower, Larry Ullman, Stephanie Blotner, Jim Angel, Betsy Beyer, Eleni Fragkiadaki, Lisa Carey, and Eric Holscher for their feedback, input, and encouragement. Individually, we would like to acknowledge the following people. Jared: Immense gratitude to Tegan Broderick who never wavered in her support, and a special thank you to Meggin Kearney and Ryan Powell for giving me the time and space to work on this. Sarah: Many thanks to Chris Aniszczyk at the Linux Foundation for supporting documentation in open source. Much love to my big sis, Tracy Marshall, who encourages me in all things. Jen: Colossal thanks to Luke Wilkinson for being on hand with a squish, a wine, and words of encouragement whenever I questioned if writing a book in a pandemic was a good idea. I will always be your number one subscriber. My immense gratitude to my mum, dad, and little brother Chris for always encouraging me to "write a bloody book." Chris, you're one step closer to getting your boat. To my colleagues past and present who teach me something new every day, and especially Eleni Fragkiadaki for her code and diagrams in this book. Thank you to Vince Davis for never losing faith in me, and finally to Rosalie Marshall for being the reason I started writing docs and the reason I’ll never stop.
Page 18
xviii David: My deepest gratitude goes to Katie Nunez for always believing in me, and Charlotte and Cameron for motivating me to pursue my passion for writing. My love and appreciation go to Lydia Nunez for showing me that the library is the coolest place to be, and to Alfred Nunez for always sharing his newspaper with me. Thank you Jessica and Stephen for being my best friends and inspiration. Eternal thanks to my current and former technical writing teams who’ve taught me so much. Finally, I’m forever indebted to John Souchak for giving me a chance. Heidi: Enormous thanks to my wife, Megan, for putting up with me muttering about this for a whole pandemic, and to my kids Sebastian and Carolyn, who are good sports about Weird Mom Hobbies. To Laura, who is always my first audience. I’d like to thank my former managers, Adam Zimman and Jess, and my current manager, Dawn Parzych, for giving me the encouragement, space, and time to work on such a big project, and for believing in me. acknowledgments
Page 19
xix Preface: Second Edition In 2021, the five of us raised a glass to celebrate the launch of the first edition of Docs for Developers. The celebration took place over a video call, since we were all still stuck indoors, but that didn’t diminish our excitement. Our book was out in the world. The first edition wasn’t just the product of several months of writing. It was the culmination of years of effort that took place in each of our workplaces, at conferences, and in workshops around the world. Each of us had championed writing documentation in our own way, and we had faced the same challenges with every project we took on. In each case, we met brilliant engineers working on fascinating projects struggling to communicate the value of what they built. In some cases, they weren’t writing any documentation, leaving potential users in the dark. In other cases, they were writing content, but it was so poorly organized, out of date, or misaligned with their users’ needs that they had an angry mob as their user base. Our goal in writing the first edition was to address these issues, answering all the questions we normally get when helping someone start up a new set of documentation. We walked readers through the process of building a documentation workflow, step by step, focusing on understanding their users’ needs and writing content to support them. The process we described is human-driven the entire way through, highlighting how each step in the process works. Then, in 2023, ChatGPT launched and everything got more complicated.
Page 20
xx On one hand, AI tools are now available to the public, allowing anyone to generate content at the push of a button (or at the very least, a prompt). On the other hand, it’s so easy to generate content that you can easily flood your users with inaccurate or irrelevant information. The set of questions we faced when creating a set of documentation suddenly got a lot longer. When should we apply these new AI tools? When should we avoid using them? Can I use an AI to generate all my drafts? What about using AI to do user research? Which tools are best for my particular problem? In our second edition, we address these questions with specific advice about integrating AI into your documentation workflows at each step along the way. We also added an “AI Appendix” at the end of the book which includes a framework for strategically evaluating and implementing AI technologies. We avoided being too prescriptive, letting you choose where to automate with the tools that work best for you, and anticipating that the future will bring a host of new tools for you to choose from. That said, the truth remains that technical writing is about effective communication, which means understanding your users and meeting their needs. AI can be a powerful assistant in this process, but it doesn't absolve us of the responsibility to connect with and understand our users to solve their problems. Ultimately, the best documentation is built on empathy, not just algorithms. As you read our book, we hope you feel empowered to wield these new tools to not only write faster, but to understand your users better. The tools may have changed but our goal is the same: clear, accurate and helpful documentation is more valuable now than ever before. We remain as excited today as we were in 2021 to see what you create. —Jared, Sarah, Jen, David, and Heidi Preface: second edition
The above is a preview of the first 20 pages. Register to read the complete e-book.

Recommended for You

Loading recommended books...
Failed to load, please try again later

Tip the Site

Scan the WeChat Pay or Alipay code to tip. No login required.

WeChat Pay
Alipay

Every 10 yuan is 1 year of VIP; the remainder counts as months (5 yuan is 5 months, 100 yuan is 10 years). Signed-in users are enabled immediately and both you and the admin get an email. Guests receive an ID and are sent to register.

← Back to List