3 ms·
> A 30 byte version string is totally fine. As long as it maintains total ordering. The primary job of a version number is so that you can compare two of them
by TeMPOraL 6y ago
> A 30 byte version string is totally fine.
As long as it maintains total ordering. The primary job of a version number is so that you can compare two of them to tell whether one version is behind or ahead the other one (and, preferably, by roughly how much).
I've seen people using VCS commit hashes as version numbers, which defeats the purpose of having such a number.
- eminence32 6y agoBut if you have access to the code repository, the VCS commit hashes do allow for total ordering. It's just that the ordering is only available to those with access to the repo
- account42 6y agoMost VCS are a tree, which implies a partial ordering, not necessarily a total one. Unless you meant to order by the commit date, in which case you could just include that in the version.
- eminence32 6y agoGood point, that is true
- kristopolous 6y agoSure I alluded to sequence numbering multiple times