Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
How to Document Well*
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Asher Glick
January 30, 2013
Technology
1
79
How to Document Well*
Version 1 of how to document programs well
Asher Glick
January 30, 2013
Tweet
Share
Other Decks in Technology
See All in Technology
データの整合性を保ちたいだけなんだ
shoheimitani
8
3.1k
会社紹介資料 / Sansan Company Profile
sansan33
PRO
15
400k
All About Sansan – for New Global Engineers
sansan33
PRO
1
1.3k
Red Hat OpenStack Services on OpenShift
tamemiya
0
110
Oracle Cloud Observability and Management Platform - OCI 運用監視サービス概要 -
oracle4engineer
PRO
2
14k
こんなところでも(地味に)活躍するImage Modeさんを知ってるかい?- Image Mode for OpenShift -
tsukaman
0
140
クレジットカード決済基盤を支えるSRE - 厳格な監査とSRE運用の両立 (SRE Kaigi 2026)
capytan
6
2.7k
Bill One 開発エンジニア 紹介資料
sansan33
PRO
4
17k
Context Engineeringが企業で不可欠になる理由
hirosatogamo
PRO
3
580
制約が導く迷わない設計 〜 信頼性と運用性を両立するマイナンバー管理システムの実践 〜
bwkw
3
930
Bedrock PolicyでAmazon Bedrock Guardrails利用を強制してみた
yuu551
0
230
10Xにおける品質保証活動の全体像と改善 #no_more_wait_for_test
nihonbuson
PRO
2
260
Featured
See All Featured
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
60
42k
Build your cross-platform service in a week with App Engine
jlugia
234
18k
Navigating Weather and Climate Data
rabernat
0
100
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
57
50k
Prompt Engineering for Job Search
mfonobong
0
160
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
270
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
359
30k
Marketing to machines
jonoalderson
1
4.6k
Balancing Empowerment & Direction
lara
5
890
Rails Girls Zürich Keynote
gr2m
96
14k
How to Ace a Technical Interview
jacobian
281
24k
Technical Leadership for Architectural Decision Making
baasie
1
240
Transcript
How to Document Well* Asher Glick V1.0
Three Key Parts to Documenting Understandable Comments in Code Provide
Screenshots or Pictures Wiki pages or Document Pages Install instructions or Setup How to use the program Dev environment Setup
Understandable Comments in Code When people are reading your code,
including yourself, they need to be able to understand what the code does without analyzing each line of code
Understandable Comments in Code Don't Comment Every Line This is
worse than no comments because now whomever is reading the code has to read twice as many lines
Understandable Comments in Code Don't only comment parts you don't
understand You will forget even the lines you did understand
Understandable Comments in Code Write a short statement what each
function does If you see that function called you can easily figure out what it does
Understandable Comments in Code Write a short statement what each
function does If that function is spitting out the wrong result you can easily discover that it is the problem
Understandable Comments in Code Write a short statement for large
blocks of code or conditional statements Because those should really be separate functions
Provide Screenshots or Pictures Screenshots help the user decide if
they want to use the program before they download or install it
Provide Screenshots or Pictures Screenshots help developers figure out what
is wrong when they see something that is out of place
Provide Screenshots or Pictures Don't provide fake screenshots or UI
that does not exist This confuses users disappoints them when they install or use the software They can be used as a "planned feature mockup" with proper identification
Wiki Pages or Document Pages The first three pages of
documentation 1) Install instructions or Setup 2) How to use the program 3) Dev environment Setup
The most important page! Wiki Pages or Document Pages Install
instructions or Setup
Wiki Pages or Document Pages Install instructions or Setup If
the user does not know how to get the program on their computer they can't fathom using it
Wiki Pages or Document Pages How to Use the Program
The user must know how to use the program How can they use it if they don't know how
Wiki Pages or Document Pages Developer Environment Setup After the
end-users are taken care of make sure the developers know how to setup the environment to develop in
Next Version (2.0) Examples with and without good comments Pictures
(Screenshots) because I said I should Example documentation pages Better Graphics, less words