Live data from Hacker News

Writing docs well: why should a software engineer care?

surfingcomplexity.blog

41–45 of 45 posts

Re: Writing docs well: why should a software engineer care?

#41
post #25

Whether it's FOSS or corporate, people won't use your stuff if it's not documented properly. At best they'll use it reluctantly and complain about it. One thing there isn't enough of is task-driven documentation. Typically there's a getting started guide and a reference manual, with a huge gap between the two. The getting started project is usually at the hello world level - ok as far it goes, which is not far. The r…

I do despise how little there is of examples in most of the docs. Go had a right idea of integrating example code into tests so not only there is one way to add example code, it is also guaranteed to be runnable. It also have side effect of forcing developer to use their own interface they gave to users so they might notice it is shit before people start to complain (or leave defeated and search for different lib)

There's a framework to do this in most major languages. I think python started this with TestDoc.

Re: Writing docs well: why should a software engineer care?

#43

Whether it's FOSS or corporate, people won't use your stuff if it's not documented properly. At best they'll use it reluctantly and complain about it. One thing there isn't enough of is task-driven documentation. Typically there's a getting started guide and a reference manual, with a huge gap between the two. The getting started project is usually at the hello world level - ok as far it goes, which is not far. The r…

>Whether it's FOSS or corporate, people won't use your stuff if it's not documented properly. At best they'll use it reluctantly and complain about it. Maybe FOSS, but there is plenty of corporate SaaS and desktop apps that have basically zero documentation and you are told to contact the "support team" if you can't figure something out.

I think that's the type of software I'd at best use reluctantly and complain about.

Re: Writing docs well: why should a software engineer care?

#44
post #16

The tips at the end of the article are pretty solid. I'll add some more that helped my writing immensely: * Use bold text once or twice per section to break up the monotony and draw the reader's eye to where you want it. * Shorten! Cut away anything optional to the reader understanding your main point, and move it to footnotes, sidenotes, or a linked document/page. * Have someone read your first draft. If they ask a…

> Use bold text Really? Why not just . . . > Shorten And as an atheist, I can't stress the next one enough. Listicles are not ideacles, or somesuchacle. Lists show a lack of pedagogical thought. > Use lists religiously!

You're being cute, but losing meaning. Do you support using lists, or do you object to them?

Re: Writing docs well: why should a software engineer care?

#45

Earlier quoted context omitted.

>Whether it's FOSS or corporate, people won't use your stuff if it's not documented properly. At best they'll use it reluctantly and complain about it. Maybe FOSS, but there is plenty of corporate SaaS and desktop apps that have basically zero documentation and you are told to contact the "support team" if you can't figure something out.

I think that's the type of software I'd at best use reluctantly and complain about.

Well this is usually what people do. It usually is some company that has a dated or not great app, but has sector capture because they were first or were wise enough to spend on sales and marketing. After that, bigger (non-tech) businesses and governments, just "stick with what works" no matter the aggravation.
Post reply on HN