by exmadscientist · 3y ago · 0 comments
Incidentally, that means that Apache is not, in fact, using SemVer. They're using the old-school even-odd system.
The x number (in x.y.z) was still used to denote a major upgrade but jumps between y were usually considered breaking changes too.
It’s also worth noting that it used to be common to have 4 sets of numbers, x.y.z.n with n being automatic build numbers.
Lastly, there’s still another common trend to have version numbers based on release date. Ubuntu do this, for example. I personally quite like this approach as it communicates a little more than just a release version. For internal projects I often go even further and recommend a git hash included as part of the release version.
So yes, versioning schemes are older than the web. However agreed standards in how to use version numbers have always varied a significantly (and still do now). And the Apache httpd project does predate the rise in popularity of semantic versioning.
I do like when first number change signals need to read the changelog (as in "backward-incompatible changes"). Semver or not.
For something like Ubuntu, signalling the age of a release to end users is more valuable than following semver strictly (not to mention that the patch part of semver wouldn’t even apply).
Whereas if your software is being consumed by other software, such as an API, then you need to communicate where interfaces might change in ways that are verifiable via other software interfaces.
So it really depends on who is consuming your software interface. You might even want multiple different version schemes for different parts of your application. You’ll sometimes see applications have one versioning scheme for their end user facing interface while their developer APIs, which are still bundled as part of their application, might follow another.
Going back to the original point about dates as version numbers, the biggest appeal for me is it takes human error out of the equation. I’ve lost track of the number of companies I have joined which were very good at supporting versioning but terrible at remembering to increment that version number. So having a system which can auto-increment version numbers takes one problem away from developers. And if you’re auto-incrementing private packages then the question becomes: “how strictly are you now following semver?” At which point you might as well have a timestamp and then have the bonus feature of communicating to your team when a specific build was committed.
I don’t think there is a right or wrong way to do these things though. You just need to pick a standard, document it and be committed to following it.