Live data from Hacker News

The tree-based approach to organizing documentation sucks

worldofbs.com

41–50 of 97 posts

Re: The tree-based approach to organizing documentation sucks

#41
post #8
post #3

>graph based Is it really too uncool to say "hypertext" these days? That's all I'm understanding here. Write docs in hypertext. Otherwise I agree.

Isn't google providing a lot of heavy lifting for wikipedia, by "figuring out" what I want and taking me there. Wiki just on itself, where you need to browse inside to get where you need won't work. Now you need to find the right node in the graph that connects to your information. I feel the same way about Stack Overflow. I rarely search for the answer to my question inside SO, instead google takes me to the relevan…

Links aren't used for searching, they're used for expanding knowledge on a topic you're already investigating. A personal example: I had to update our metrics infrastructure so I read the existing documentation to understand the way it is done today, and there was a link to our metrics naming spec. I wasn't going to need it but it was still interesting to understand what the conventions are and potentially updating them.

We're using the Atlassian wiki, for which I find search to be very bad so we kind of _have_ to work with links.

Re: The tree-based approach to organizing documentation sucks

#43
IMO documentation exploration can be solved with good search.

Tailwind is a good example of this at https://tailwindcss.com/docs.

The table of contents is worded pretty well but once you get past ground zero of using a tool being able to search for what you want becomes a quick way to find what you're looking for. Especially since the search is powered by Algolia, it's pretty good with full text search.

Re: The tree-based approach to organizing documentation sucks

#45
post #39
post #30

Earlier quoted context omitted.

Sorry, what’s Slab? I couldn’t figure it out by googling “slab source.”

> Slab I'm guessing, it is https://slab.com/ ("The knowledge base that democratizes knowledge"), which I discovered by searching for "Slab for Slack".

Thanks, that's indeed the tool. Sorry I should have linked that.

Re: The tree-based approach to organizing documentation sucks

#46
post #40

I think the author is missing a key part of why developers often don't like writing documentation but do like answering questions: replacement value. A developer's compensation is based upon their perceived value (how much it seems like they are needed) and replacement value (how much would it cost to replace them). A developer that answers questions gets a reputation for helpfulness - this increases their perceived…

There's another perspective to take on this. This sort of behavior you are describing locks you further and further into the role you are in right now, reducing the rate of which you grow and learn. It sets up by dynamic where the company is incentivized to keep you there.

Another possibility is that you make yourself entirely removable or even just solve the problem so well that it no longer needs headcount. Instead of seeing people reaching out to you as satisfying a "I feel needed" emotion, you can see the need to have been reached out to as a tax that reduces the value you create.

Businesses really like developers who reduce replacement costs, solve their problems, and enable others. They tend to put them on increasingly valuable and interesting problems.

Re: The tree-based approach to organizing documentation sucks

#47
Related to this: understanding the various types of documentation, and using them all appropriately.

I highly recommend Daniele Procida's talk about this, [0] and the accompanying web page [1]. He gives a useful taxonomy of the 4 kinds of documentation. Through the power of Unicode:

    ┌──────────────────────────┬─────────────────────────┐   /\
    │        Tutorials         │       How-to Guide      │   || Practical 
    │    (Learning-oriented)   │    (Problem-oriented)   │   ||
    ├──────────────────────────┼─────────────────────────┤
    │       Discussions        │        Reference        │   ||
    │ (Understanding-oriented) │  (Information-oriented) │   || Theoretical
    └──────────────────────────┴─────────────────────────┘   \/
    
     

[0] https://youtu.be/t4vKPhjcMZg?t=160 (that will take you to the start of the talk proper)

[1] https://documentation.divio.com/

edit Didn't spot the link to [1] at the bottom of the article :P

Re: The tree-based approach to organizing documentation sucks

#48

Documentation sucks where no one gets promoted for writing great documentation.

I like writing good documentation.

I’ve never seen any incentive for that, apart from colleagues’ thanks, which is not especially converted into promotion.

Re: The tree-based approach to organizing documentation sucks

#49
This view is too much simplified. If docs were tree vs graph problem we would probably have at least some orgs doing it right, while there are literarily almost zero.

Just few of the missing aspects:

1. Narrative style. You can't do ad hoc whatever wherever and call it a day. Most people don't have it and many are quite illiterate IMO. You need to practice this and most engineers don't like that. Hell, even most seniors don't like writing tickets IME which take almost the same time as putting garbage on Slack. I created templates on both GH and GL and almost nobody uses them even tho you don't need to think about anything but follow few rules.

2. Its quite hard to know what level of detail to put in documentation. You need a lot of experience for this - put to much, and it gets quickly outdated, put too little, and it doesn't convey much. Good documentation exists on multiple levels - as bunch of markup files "on the spot", as formal hi and low level documentation and also those are usually affecting different target groups so you actually need to design docs. Cross references are absolutely essential, the docs need to be 100% hyperlinked and in static site format (no big Word or PDF docs really, that should exist only as an export variant). But you also need a tree, because you can just say to people "here is a bunch of docs" just surf around, and good luck". So both tree and graph are required at the same time.

3. Documentation is a service. It has source code, build procedure, automatic link checking, versions, exports to bunch of formats, crosslinks, variables, macros, configuration for different environments, abbreviations, definitions, automation, includes and what not... Its quite hard to get it right. After years of struggle on different projects I finally created my own stuff [1] by bundling many different tools and configs in docker container that I use on all projects, for docs spanning 50-500 pages. I maintain that for years now, constantly (so yeah, its a job).

I am always interested in this as I write tones of docs as a part of system design role. If you have some good ideas to offer, don't hesitate.

[1]: https://github.com/majkinetor/mm-docs-template

Re: The tree-based approach to organizing documentation sucks

#50
The style of the content is often more important than the structure.

I've invented a documentation style I call "Notes for Nerds" It consists of the specific notes you make for yourself if you need to re-implement something complicated you've done.

It's example driven, very specific and includes only such verbiage as necessary to contextualize the specific technical commands or code.

I invented it because I found at Google that the best documentation was always the rough first pass stuff before it got prettied up. I specifically searched for deprecated documentation because it covered the technical exploration of the project before the final gloss was applied. Compare this to Google's public documentation if you want to throw up in your mouth a little bit.

Notes for Nerds style works smashingly. I hereby grant the reader the right to re-implement my idea anywhere you like.

Also, don't use Confluence. It is everything bad and wrong about a documentation tool. If Notion had a ticket system they would kill Atlassian overnight.

Post reply on HN