ssbc / ssb-tangle

8 stars 2 forks source link

Is it recommended (or not) to put content in the root message #6

Open Powersource opened 4 years ago

Powersource commented 4 years ago

From reading the code here I get the impression that you put contents into the root message as well.

In ssb-wiki so far I've had the root message always look like

    {
      type: 'wikiwiki',
      tangle: {
        root: null,
        previous: null
      }
    }

Maybe a dumb question, it's probably mostly a habit I've picked up from git where my first commit in a repo is usually empty. Can't argue for it a ton atm but there is probably some article online arguing for it that I read at some point.

mixmix commented 4 years ago

not a dumb question. At the moment it's personal taste. Some devs in ssb think it's wasteful to not put content in the original message, but I am more of your mind - starting with a clean init is good IMO.

I think the clean init is gonna be particularly important when there's more complex tangle stuff going on. e.g. you have multiple tangles going on ... like an authorship one + a content editing one + a private group one. But so far this is just a gut feeling