Ask HN: How to level up your technical writing?

295 points by maxekman ↗ HN
Hi fellow HNers!

I have a fairly strong background in cloud system and application architecture. However I feel that I’m sometimes limited by my technical writing skills to communicate my ideas and concepts. Any advice on how to take ones technical writing skills to the next level?

I’m willing to do what it takes, being online courses, contributing to OSS process work or what else you might suggest.

Looking forward to tap into the HN hive mind on this topic!

Thanks, Max

161 comments

[ 2.9 ms ] story [ 229 ms ] thread
Technical writing benefits from Practical Style (the reader's time is important, the reader wants to get a job done, easy parsing of sentences is important), so I'd recommend one of the two best books about writing in English:

Joseph M. Williams, Style: Ten Lessons in Clarity and Grace.

An old edition is fine. There are many editions with slightly differing titles (Toward Clarity and Grace, The Basics of Clarity and Grace), all of them are fine. Get the cheapest or fastest to deliver or whatever. Don't think about which one to get.

The other great book about writing is Thomas&Turner's Clear and Simple as the Truth. It teaches Classical Style, which is less fitting to technical documentation, as the authors discuss themselves.

Thanks for the literature tips, will definitely get one of the books right away. Will also learn more about Practical Style as I haven’t heard about that.
I came in to write exactly what you wrote. +1
Find good examples of well written documentation and emulate those.

The most effective way to improve your writing is through improving your reading.

I’m a literary nerd as well as a technologist, and will tell you it’s easy to spot an English Lit graduate by their universally good documentation skills. Not because they use fancy words, or exotic expressions, because they use simple deadpan and well measured (never crowded) sentences. These tend to always write as though they’re explaining to an intelligent child (with a pleasant unassuming and direct simplicity.)

Good suggestion! Do you have any technical docs that stand out as extra good in your opinion?
I remember the Ansible docs as pretty good.

I’m sure you have read those great todo articles on medium or log rocket or whatever.

The problem with citing good professional documentation is that this is usually or inevitably taken on by a team, so docs are really a standard of a good editor.

The problem with stuff in the wild is it can be too bloggy or conversational.

What you need is awareness and purpose. Stop reading junk as soon as you identify it (skim junk for take always ;).

Cherish and reread somethings that “speak to you.”

Ironically, the best technical documentation is dry and to the point (without sounding as though generated from already inadequate code comments [glare].)

Edit out sarcasm, sentiments, and unnecessary references or language.

Explain what is happening, show an example and stop. You’ll do fine!

Do read one of those boring grammar/punctuation books. Just being aware of good sentence form will make you a better writer.

I did all this stuff over a decade ago, so I don’t have a link off hand.

Stripe is very often mentioned as an example of great docs - https://stripe.com/docs
Thanks! Will definitely check that out. I know I have stumbled in there before, but not having used the service I have not really looked around too much.
K&R, or anything else Brian Kernighan.
I had to look up what K&R was but makes sense after some searching. That book is probably worthwhile for lots of other reasons, even if I program in Go for most tasks. Thanks for the pointer!
Some are suggesting more reading, and others are suggesting more writing. I propose that it is best to do both, and maintain active feedback loops between the two.
Write a new technical article each week on your blog. Get feedback (by sharing them). You'll improve over time.
I strongly commend "The Technique of Clear Writing" by Robert Gunning. I don't think it's in print anymore, but copies are still inexpensively available through Amazon and elsewhere.
The best way in my opinion is to write, and write more. Once you write your first doc, send it to someone who you believe may be your target audience and have them critique it. What’s confusing to them? What’s not?

It’s no different than writing code or writing a book. It takes time, iteration, and focus.

Personally happy to review a doc or two and provide feedback if that is helpful. I run a docs site for my company.

This! The best way to get better at writing is to write :)
Two things I recommend: the Google tech writing courses: https://developers.google.com/tech-writing

And "Bugs in Writing", which I've been pressing into people's hands for twenty years now. https://www.amazon.com/BUGS-Writing-Revised-Guide-Debugging/...

Have you taken the Google tech writing course? Were there any big takeaways for you?

About a year or so ago I read through a bunch of that course and it seemed like it would be okay for someone who is new to writing in a business setting. But generally the summary was said: be concise as possible while still getting the message across to the appropriate audience.

Looking at it again, the "organizing large docs" is pretty good. https://developers.google.com/tech-writing/two/large-docs#pr...

"Choose a heading that describes the task your reader is working on. Avoid headings that rely on unfamiliar terminology or tools."

After writing a lot of text, print it out, take it outside if the weather's nice, put away your laptop, tablet, and phone, sit down with a pen, read over the entire document, and mark up the paper with your pen.

It's a much better experience and result than reading on a screen, editing it while you're reading, getting distracted, jumping back and forth between doing other things.

And on the next iteration, change the column width a little.
Larry McEnerney’s lecture The Craft of Writing Effectively:

https://www.youtube.com/watch?v=vtIzMaLkCaM

McEnerney’s lectures are great, let me just add that he is from the very same "school of writing" (actually, the same faculty) as my recommendation, Joseph M. Williams.

As is George Gopen who also has a wonderful book that is more into the finer points of where to stick which part of the sentence. Williams and also McEnerney's lecture are much more motivating.

Strunk and White.

To some it will be too obvious. But English speakers (especially English as a second language people) outside the US have often never heard of it.

I'll also add the course from The Great Courses - 'Building Great Sentences: Exploring the Writer's Craft' by Brooks Landon.

Just the audio version is sufficient, especially if you can listen to it on a daily commute. They give specific advice on how to simplify sentences that have multiple dependent clauses into a more compact form, which can be particularly useful for technical writing.

Unfortunately, this is now apparently behind a sign-up wall but for a counterpoint:

https://www.chronicle.com/article/50-years-of-stupid-grammar...

"The Elements of Style does not deserve the enormous esteem in which it is held by American college graduates. Its advice ranges from limp platitudes to inconsistent nonsense. Its enormous influence has not improved American students’ grasp of English grammar; it has significantly degraded it."

Probably a more brutal takedown than deserved but I'm not at all sure it's wrong.

That criticism would hold more water if it were more well written.
The article is needlessly contrarian and negative. The book is useful to get students or anyone playing a trade writing from 3/10 to a 7/10. A lot of critics lose sight of this.

It's a great book to use for guidelines to start with when building out your own style. If youre an editor and want to use it to compell others to write with a style, it's less useful.

Tech writer here.

The absolute, invariable first rule in tech writing is to know your audience.

Understand not just their technical problems but take the time to empathize with why they have these problems in the first place.

Tech writing isn't about documenting, it's about finding the best way to explain something to people so they can solve their problems.

Oh, and use an editor (the human kind, not the digital kind.)

> Oh, and use an editor (the human kind, not the digital kind.)

This is so important (IMNSHO). It's fairly obvious, that editors are becoming a "lost art."

My mother was a scientific editor, and she was brutal (she edited some of my work).

It's really hard to find fiction books, that are less than 500 pages.

I read a story about Stephen King. Apparently, he hates being edited (most writers don't like it).

When he was just starting out, he was forced into being edited. I remember reading 'Salem's Lot, back in the 1970s. It was an awesome book (Relatively short, succinct, scary as hell), and made me suddenly become a Stephen King fan.

As he got more and more famous, he started being able to bully his editors, to the point where his work is barely edited at all.

And it shows.

I really can't read him, anymore.

I always like to point at Victor Hugo. In Les Misérables, apparently (I didn't count), more than a quarter of the text is essays which do not move the plot forward. The essay about Waterloo is the most egregious example.
Too bad that wasn't in the musical. Can you imagine Russell Crowe belting an essay on Waterloo?
I would pay good money to watch that!
Apparently that was a bit of the style at the time (one of them delves into the Paris sewer system) to kind of "show off". Some other contemporary works are clearly written to be serialized.
Once downloaded a copy of Hound of the Baskervilles, broken into chapters as separate files. Each chapter was almost exactly the same length, within a few hundred characters, showing that it had been serialized first and chapters were sized for publication.
I'm trying to remember if it was Dumas, but some French author was reputedly paid by the word, so all their dialogue is incredibly drawn out ("I have a question." "What is the question?" "It is, as you might expect from me, a simple question." "By all means, please, present me with the question, that I may resolve your puzzlement." ... etc.).
Many modern novels seem that way too. Not the elaborate dialog, but endless rambling descriptions.

Historical novels are often big offenders. Like the author has done a ton of research, not a bad thing, but can't bear to leave any of it out, and there is no editor to say that's too much, people don't need to know how big the potato patch at the Palace of Versailles was.

while not a big Western fan, I do find Louis L'Amour's compact descriptive format to be intensely engaging
That's one of the ongoing theories as to why Moby Dick was so long ... not merely to accentuate the 99.99% bordedom of whaling (with the 0.01% of "excitement"), but because he'd get paid better if it were longer

Having read the "Great Illustrated Classics" edition of Moby Dick as a kid, and watched the Gregory Peck film, I can confidently assert I NEVER want to read the whole thing.

Even those "condensed" versions had enormous swaths of nothing in them!

When I read Moby Dick I found it a quick read for the length. Full of incidents and plot.
> Apparently, he hates being edited (most writers don't like it).

I've grown to love it. It was a long road. Once you start disciplined writing an editor becomes like a personal trainer who helps you be your best. Until I learned to write with more steel and less fire, ego ruled my writing. The familiar sins are;

- loving the sound of your own (inner) voice

- showing off what you know rather than considering what the reader might care to hear (and muddying waters so as to appear deep)

- pretentious talk (circumlocutory linguistic gymnastics)

A good editor gets to know your weaknesses and corrects them gently.

(comment deleted)
>A good editor gets to know your weaknesses and corrects them gently.

Or maybe not-so-"gently" .. I'll take useful constructive criticism (regardless of harshness) over unactionable "reword" every dang day of the week (and 3 times on Sunday)

> It's really hard to find fiction books, that are less than 500 pages.

To play editor for a moment — your sentence needs no comma, and it’s easy to find fiction books with fewer than 500 pages ;)

Was a clause omitted?

Fair point.

I look for books in a certain genre, though.

I find myself retreating to classics that are over 30 years old, because the new stuff is so unreadable.

I'll probably start The Black Company (for like, the twentieth time), soon.

In the great short books category, Willa Cather’s plains trilogy books are like 150-200 pages each, they’re fast reads and the prose is excellent — I’d start with ‘O Pioneers!’
https://www.btb.termiumplus.gc.ca/tpv2guides/guides/pep/inde...

The suggestion is to never separate a subject from a verb or a verb from its object

Hey, thanks for that! Proper comma (and semicolon) usage is always a challenge for me.

I decided to develop the habit of the "Oxford Comma," but I don't think I have it down, yet. It also seems to be "un-American." American English does not like commas.

On the other hand American English LOVES periods, leading to visual abominations like N.A.T.O.
I don't especially care whether you choose the Oxford comma, or not.

But be consistent!

If you always use the Oxford comma, you never have any confusion.

When you sometimes use it and sometimes don't, confusion proliferates

Wow, that's a great link. Thanks for posting that. I'd never seen it before as a reference.
> It's really hard to find fiction books, that are less than 500 pages.

For SF & F this seems to be a deliberate choice, from what I understand. This is from an iterview with Ted Chiang:

TC: I think the reaction varies, because science fiction is a more commercial genre. There are a lot more people in science fiction whose goal is to make a living from writing fiction by publishing one or more novels a year. And people who enter science fiction generally receive more messaging about fiction writing as a sole source of income than, say, people entering mainstream fiction. The messaging there is different: get an MFA, teach; it’s understood that your teaching position supports your career as a writer. For writers entering science fiction, that’s not really a thing yet. We’re maybe getting there, but the messaging they receive is mostly: Be very prolific.

https://culture.org/an-interview-with-ted-chiang/

>> As [Stephen King] got more and more famous, he started being able to bully his editors, to the point where his work is barely edited at all.

Yeah, I kinda noticed that too. I picked up a book of his and couldn't finish it because it felt like every episode in the story was written so that it took maybe ten, maybe fifty more pages than it really needed to. Extreme padding.

I think Liu Cixin also went through something similar. The Dark Forest was lean and mean. The next two books were progressively fatter and more verbose and full of aimless meandering. Though maybe that was an attempt to complete a trilogy to capitalise on the first book, if I'm more cynical.

While I see where you’re coming from re: The Three Body Problem Vs the rest of the series, the core ideas in the Dark Forest and Deaths End are so exciting that I can’t help but feel the rest of the story is a justification for exploring them.
Oops- I meant The Three Body Problem was lean and mean Thanks!
> extreme padding

First drafts tend to be verbose. Poor editing contributes to that kind of prose slipping through into publication.

As to huge page counts, mysteries are similar to science fiction as genres but I don't see a push to expand to huge sizes.

All genres are places where earning a living is possible. Someone said if you have a popular mystery series, every public library will buy at least one hardback copy of each of your books.

If you are big time popular, they might order 20 copies, like the last few Sue Grafton books.

Similar for ebook and audio books.

I think page padding is more a thing in self publishing. I'm part of a few fiction writer communities and longer (in general) makes more money. You are advised to start with short stories and graduate to novels as soon as possible. This is especially true for authors enrolling their books in Kindle Unlimited. They are paid per page read. The more pages they can have the reader go through without boring them enough to just quit, the more they get paid.
> It's really hard to find fiction books, that are less than 500 pages.

Allow me to introduce you to the myriad Maigret novels by George Simenon. :) They are my favorite filler books when I want something good at only 150-200 pages.

These days shorter fiction is almost always published as part of a collection, unless you are selling on line or self publishing in print.
Is this in response to the wrong comment? I'm giving an example of the opposite of what you're saying.
What I meant was that books like the Maigret novels probably wouldn't be published as free standing books, but packed into collections, say three or four of them together, to get closer to the magic 500 pages.

I will mention that I highly recommend Simenon's writing, Maigret series and others. He's a fine writer. The TV series with Michael Jambon is excellent. The Maigret stories are the right length to turn into an hour show without losing too much of the interesting details.

You can literally buy these as paperback though, directly from the publisher: https://www.penguinrandomhouse.com/series/IMA/inspector-maig....
Of course, but remember that they were first published in 1931. The last ones were 1973 but by then they were so popular they could go against the already established trend of longer books.

Someone writing new mysteries today probably could not get a single book that short accepted by a publisher.

I can only read his short fiction with few exceptions. He got to the point where he would take 50 pages (exaggeration, but still...) to describe, I dunno, a room. Okay, so the room is important, but is it that important?
I've never read King, but do recall the hilarity of Goldman's "The Princess Bride: S. Morgenstern's Classic Tale of True Love and High Adventure, The "Good Parts" Version" ""editorial' comments throughout ... like "with this and that, we move to chapter 4"
That's not just him, it seems to happen to a lot of authors when they get famous. They get more clout and can push back on the editors, or the editors become afraid to cut too much, and suddenly you have bricks where half the words could be removed.
You can see it in action by looking at a boxed Harry Potter set.
If you follow the publication of big name writers, there is a tendency for their later works to get longer and longer, and, as you say, harder to read.

Examples include Robert Heinlein in Science Fiction, James Michener in general fiction, Herman Wouk in general fiction. For Wouk, his well known Caine Mutiny is a fairly long book, but it's tightly written. Later works not so much.

You can see exactly the same with other authors. Asimov and J. K. Rowling, to pick two obvious candidates.

Compare "Foundation" with "Foundation and Earth" or "Foundation's Edge". Or "The Philosopher's Stone" with "The Order of the Phoenix". The former were well-edited and succinct. The latter were overly long, in some cases sorely repetitive with large amounts of padding, and a good editor could have cut them down by at least half without losing much.

And let's not even get into Robert Jordan...

Even the best authors need an editor.

>Even the best authors need an editor.

I've worked as a reviewer/editor (with "compensation" in the form of the acknowledgment page) on a handful of technical books

Overall, of the ~7 authors I've reviewed/edited, I can confidently assert only one was wrong, but ALL wrote in nearly-unfollowable ways

Eh, depends...as you point out it is becoming a "lost art". The average quality of editors is utterly abysmal, so if you're pretty handy with style, or have lived under the cosh of an academic style guide for long enough you can probably get by without an editor.
>lived under the cosh of an academic style guide for long enough you can probably get by without an editor.

I'd say the opposite

As someone who's recently been put back under the "cosh of an academic style guide", I can definitely say the "academic style guide" does NOTHING to help with editing ... it's all about FORMAT

Format is nice, and all ... but almost 100% irrelevant to the content

Then it's a lost cause, you can't expect an editor to understand content, their function is to impose style, any reasonable exposure to formal language should be sufficient (but actually I disagree completely).

If major publications can't employ decent editors what hope have you?

Grammarly is still better than no editor.
IMO not by much. I mean, it catches out and out errors which is something I guess. And it gives some generally applicable feedback about excessive use of passive voice, overly long sentences, etc. But for the most part it doesn't really improve your writing in terms of structure, clarity, etc.
I always get the feeling that grammarly adds to much commas. And so many of the sentence rewriting suggestions just provide glibberish.
Somehow it often removes commas for me.
I still use Grammarly in my browser, but had to turn it off on my phone and elsewhere ... it's a great idea of a tool ... but ends up being unworkable too often :(
I think many people write off empathy as being about warm and fuzzy feelings, and don't realize that it's a very useful skill that can be improved with practice.

The more effectively you can imagine perspectives other than your own, the more easily you can come up with creative solutions, communicate well, and overall just be a more pleasant person to be around.

> The absolute, invariable first rule in tech writing is to know your audience.

While that’s definitely true for tech writing generally, I feel it’s usually not the best advice for someone wanting to improve their technical writing.

Tech writing is first and for all “writing”. I feel that’s where a lot of people are struggling already: they may know vocabulary and grammar, but they have difficulties to write a well structured text. Even a single paragraph consisting of two or three sentences can be very hard for many people to actually think about. They may have been focusing on “shortcut” rules such as “maximum X words per sentence” or “maximum Y sentences per paragraph”. But those are more often than not a distraction to actually think about a logically structured text.

It’s important to have a narrative to guide the reader through the text, presenting new pieces of information in a logical sequence, and anticipating how a reader could misunderstand what you’re trying to say. For fiction writers, coming up with a narrative feels natural (even if it still can be hard). However, non-fiction writers may not even realise that they need some kind of narrative.

You do need to know your audience to anticipate how your reader could misunderstand your text, but I think it’s best to start practising by writing for yourself or someone like yourself. Write something about a topic you know pretty well, but do not master perfectly. Then, read what you’ve written one or two weeks later, and see if it still makes sense to you. If some parts seem confusing, try improving them.

You could do the same with texts written by someone else: whenever you think the text is confusing or unclear, try improving itself.

Do not just quickly add a word or sentence that specifically addresses your confusion, but take a step back and try to understand what caused the confusion. Try to really think about the order in which information is presented, whether that information is explained clearly, and whether all information in your text is necessary to understand the point you’re making.

Start with lists.

When writing about a concept, or a system, do something like

---

This system consists of

- A

- B

- C, (but see notes on C below)

(and then do the same for C further down)

---

Label each section with a header and have a ToC that has every header in it.

All this will let you do two things:

- cut down on bullshit, and be concise and precise.

- see and quickly change the structure of your document

Since you said you're willing to try "what it takes": I suggest to try contributing a couple of articles to LWN.net[1]. You'll gain valuable experience working with highly competent editors.

Be prepared for several rounds of fine-grained heavy editing process. FWIW, I benefited greatly from my interaction with the LWN editors by contributing a handful of articles. Here's a somewhat recent example[2].

[1] https://lwn.net/op/AuthorGuide.lwn

[2] "A QEMU case study in grappling with software complexity" — https://lwn.net/Articles/872321/

I'll also throw in a plug for opensource.com.

Article-length (i.e. ~ 1K word) pieces for a publication where editors will actually take time and care to work with you--which is by no means a given these days is definitely the path I would recommend. Note that this is different in a number of ways from technical documentation. At the same time, it's also closer than something more literary or (for the most part) something more like reporting which has its own style (and other rules).

I have a bit of an unusual suggestion. One thig that had helped me is reading "The Economist". Their style is succinct, doesn't make lot of assumptions about reader's prior knowledge. Many a times I have read articles in it about many of the areas which I am barely familiar with and come out better informed. Probably that's what one would strive for in technical documentation.
Their style guide [1] is one of my references when trying to improve my own writing.

While my professional writing has been mostly academic, I find the progression is similar to tech writing.

First you learn to show your erudition and command of the ingroup speech.

Then, if you have a genuine desire to communicate, you progress to simpler yet precise language, stop using the big words when not necessary (often, they are just signaling and gatekeeping) and develop empathy for and understanding of the audience.

1: https://cdn.static-economist.com/sites/default/files/store/S...

Definitely one of the best-written publications out there. Not as "literary" as The New Yorker. But brings in a certain amount of cleverness/humor/storytelling that newspapers (by design) mostly lack outside of feature stories where some of those elements can be overdone.
(comment deleted)
It's not strictly from the technical writing corner, but I've learned a lot from the book "The Craft of Scientific Writing" by Micheal Allay. It's more geared towards scientific papers, but I've found the style papers are structured to be a very useful starting point for design documents and runbooks. I tend to start with something like that, and adjust it according to the audience.
I have failed deeply and fundamentally as a technologist by not being able to explain the technology in plain language.

I now regard it as a minimum bar that I can explain the broad outlines in plain language.

Anyone who can’t is is a fucking fraud.

While I see where you're coming from, get deep enough into specialized concepts and a "plain language" explanation that assumes no prior knowledge is going to have to hand wave away a huge amount of detail and may not even be completely accurate in many respects. Yes, you can probably give an intelligent person the gist of what's going on, perhaps by analogy, but it may not really be an "explanation."
Sit down with people from the target audience and let them use the thing you are going to write about. Observe where they struggle. Let them articulate what they are doing and why. You wouldn't believe…
Blogging & measuring average time on page is a great way to see if you're able to write content that's relevant and engaging for readers. Average time on page should be at least 5 minutes for a blog post.

Improving open source project READMEs and documentation is another great way to practice writing.

I am writing an O'Reilly book now and having a professional editor will help you learn the common errors you're making.

You should try to write short paragraphs, short sentences, and at a 4th-6th grade reading level. Good writing for literature is a lot different that good technical writing.

A good novelist may write at a 12th grade reading level, may use complicated words, and will use literary devices like allegory and foreshadowing.

A good technical writer should explain a concept in the most simple way possible. They should explicitly avoid literary devices like foreshadowing - their goal is to explain the concept in a straightforward manner. They should also avoid big words and long sentences. A large portion of technical readers are not native English speakers, so only the most basic words should be used.

I disagree with using time on page as a metric. If you can answer the question in half the time, good for your readers.

In many cases, people want the tl;dr only, so I try to give them that first.

> Average time on page should be at least 5 minutes for a blog post

How do you come up with "at least 5 minutes for a blog post"

A blog post should be as long as it needs to be - and no longer

I've developed my skills by writing documentation, presentations, blog posts, in-depth articles, and Stack Overflow answers. I always start out by thinking about who my audience is and why they're reading what I wrote, and I always finish by trying to cut down the material I've written so it doesn't contain anything unnecessary.

In technical writing, clarity reigns. Clarity above all else. Lists? Use bullet points. Topics? Make headings. Do two terms seem similar? Change your wording to make the differences obvious. Is there a technical term? Use it consistently. Are you using the same word in different senses? Use two different words. Using negatives? Use positives instead, they are easier to parse.

If you are good at the details of writing, your thoughts and ideas become clearer, because clear writing exposes the flaws in your ideas.

Recommended book: Style: Lessons in Clarity and Grace.

I also recommend finding a topic to blog about. You don't need to be an expert. Just keeping an active blog teaches you a lot about writing.

In general, I like to do something like this:

Pick a product/ technology you’re familiar with and which has great documentation.

Go to their docs, and pick a page that is on a topic you know well.

Read only the title of the page.

Write the documentation.

When you’re done, compare your results with theirs. What headings did you choose vs theirs? Why do you think they chose the ones they did? How does your document flow vs theirs? How’d they illustrate the concepts vs you?

It’s an informative and fun exercise, at least to me.