Ask HN: Good ways to capture institutional knowledge?
547 pointsSuccessful companies institutionalize the knowledge of their employees; this leads to better continuity and faster on-boarding. Things like huge monorepos of useful code, internal tools, process manuals, etc. are example products of this. Young companies tend to depend on the dedication and talent of key individuals, and in maturation, must somehow make the jump to institutionalized knowledge (so that "if someone got hit by a bus" things are ok). What are some successful methods you have used or seen used to accomplish this transition? What are problems you faced (skeptics, opponents, etc.)? I am involved with an organization that is slowly growing, is about to lose key personnel, and is looking to prepare.
Comments (213) 95 threads
Earlier comments1.) communicate asynchronously as much as possible. If you have a synchronous conversation like a meeting, make sure there is a written representation of what was discussed. If it doesn't persist, it doesn't exist
2.) Understand that implementing a wiki by itself will not work. There's a gravitational pull to throw a bunch of junk in it (like a file cabinet). Things become out of date and each person will structure things in a different way.
3. Create some loose structure around sharing regular, written updates about what each person/team is working on.
At my company (https://www.friday.app), we've created a tool that is somewhere in-between Slack and a wiki. It's kindof like a work journal. As a distributed team who only has 1 meeting every week, it's a place where all our updates are captured in a single place.
- The code change itself
- Tests that demonstrate that the change works as expected
- Updated documentation relevant to that change (documentation should live in the same repo as the code to support this)
- A link to the ticket/issue that discusses the change
If you use a code review system such as GitHub pull requests or Phabricator you can enforce this kind of commit culturally - in your review point out that the test is missing or the documentation hasn't been updated or there's no link to an issue.
I like building pull requests up from several commits and then using the "Squash and merge" option to merge them into a single commit to master that includes all of the above.
Doing this is great for institutional knowledge, because "git blame" can always lead you to a comprehensive explanation of the change, including a link to the underlying ticket where the change was originally requested and discussed.
I'm more inclined than most of my team to do cleanup commits, but even I sometimes avoid them just for the extra cost of the regular review process.
I think a better approach is to have a culture that encourages making context dependent judgement calls, which is also what I try to do.
If it's something trivial like fixing a typo, I ask that this is made clear in the title, so investigators of an issue know that this CL is unlikely to be relevant.
If it's a minor change in behaviour, I ask for a commit message, and/or a comment in code, with a motivation of why it's needed.
If it's a bigger change in behaviour I want an issue linked to it, to make tracking easier in case there's followups needed or there's some regression due to this.
All this is of course based, not on some platonic ideal of what makes for good documentation, but rather on real experience of tracking down issues and adding features.
I know how annoying it can be to track down the commit of some functionality that looks really odd, only to find an empty message without even a reference to the issue that was being solved. But I also don't have this problem with commits that are clearly labeled "Fixed typo in X", those I can simply ignore.
Encode your knowledge into software, into data structures, into tests and active documentation.
Human organisations have faced these problems for thousands of years. And never solved them well. Maybe we need the new kid on the block to help
All comments shown.
Couldn't load more comments. Check your connection and try again.