JustAnyones / Plugin-creator-website

The repository for the 4th version of the plugin creator website for TheoTown.
https://pca.svetikas.lt
MIT License
1 stars 3 forks source link

Figure out a better automatic ID generator #5

Closed JustAnyones closed 11 months ago

JustAnyones commented 11 months ago

As it stands now, part of the ID can be considered random and not easily readable. A good choice would be to choose an ID that is readable and editable by the plugin creator.

LobbyDivinus commented 11 months ago

Ideally each author uses like a prefix e.g. $lobby_ that can be somewhat persistent by storing it in the browser. Assuming that different authors would use different prefixes this would reduce the need for strong random ids.

JustAnyones commented 11 months ago

So my current idea would be to have it something like

$authorName.pca.draftType.dateWithTime

This keeps it readable and ensures that it doesn't collide with plugins made a while ago by the same author.

JustAnyones commented 11 months ago

Actually, ditch the pca part. PCA plugins are identified by the meta tag.

LobbyDivinus commented 11 months ago

Looks nice