Skip to content

Renaming the concept of tags #200

@vmx

Description

@vmx

I've started to play around with iroh-blobs and the tags a bit. I should note that I found the A richer tags api blog post only later. Reading it first would've cleared some of my confusion earlier on how things work. Nonetheless I think having the concept of tags under a different name would make things clearer.

Please note that all this is based on my experience with the word "tag". If you have a different background, it's probably different to you. I just want to share those, in case it's something that others might feel similar about.

When I think about tags, I think about ones for blog post or social media. I can tag a post with multiple tags and multiple posts can have the same tags so that I can group them.

The iroh-blobs tags are different. You can have multiple tags per blob, but you cannot have the same tag on multiple blobs. Assigning the same tag twice even makes the first one losing the tag. In order to group things, you would use collections.

Another thing is that "tag", to me, implies some optionality. You can have them or not, use as many as you like or not. Though here the tag plays an important role. Without any tag a blob will get garbage collected.

Naming is hard, hence I propose one. What about "identifier". To me it implies that it's something unique and important. I would think twice if I want to assign the same "identifier" to two different blobs. I won't think that much when using "tags". I would also say that having blobs with multiple "identifiers" suits that word nicely.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions