A few months ago, Microsoft Comic Chat was released as open source. Comic Chat was an IRC client that rendered the conversation in the style of a comic book, with automatic placement of characters, speech balloons, and character expressions. Perhaps its most notable (though perhaps not necessarily greatest) contribution to the world is that it introduced the widely-derided font Comic Sans. (Though to be honest, the derision is not directed at the font itself, which is a perfectly fine font, but rather to its misuse and overuse.)
In the README for the Comic Chat repo, it notes,
v1.0-pre and v1.0 share the same internal version number (rup 206, “Beta 2”)…
In response to this, someone asked with disbelief, “How can Microsoft have messed up the version numbering? Don’t they use version control?”
Version control is not the same as version numbering.
Version control is for recording an accurate history of the source code, and allowing developers to make changes to that source code in a coordinated manner.
Version numbering is where you stamp a number into a file to declare “This is version 1.0.” You have to put it in a place that the build process itself can access, such as a version resource or a manifest.¹ And it is typically updated by editing a value in a file that is part of the source code, like a resource script or a manifest file. (Or a data file that is in turn used to generate the version resource or manifest or whatever.)
In other words, version numbering is a release management problem, not a source control problem.
Somebody decided to publish a new version of Comic Chat but didn’t go through the full release management checklist, so they missed the step that says “Update the internal version number.”
Comic Chat was a product of the Research division, and my understanding is that projects over in Research are not often put in a situation where they require release management diligence at a level suitable for mass-market software. Their primary audience is other researchers, and it’s usually sufficient to say that the “version number” is just “whatever code drop I sent to you most recently.”
So yeah, the internal version number didn’t get incremented before a public release. Don’t blame the version control system. Blame the release management team. (Which for a project in the Research division is probably the same people who did the coding.)
¹ Alternatively, you could have the build process attempt to infer the version number from some other source. You can’t use just the branch name because that would cause all commits from that branch to have the same version number. You could try to build a version number from git describe, though you will have to remember to handle the case where there are uncommitted local changes, since they don’t show up in git describe. And even git describe won’t help you figure out whether v1.2-15-g314159 is older or newer than v1.2-15.g271828
.
I once thought about using `git rev-list –all –count` as the build number, but abandoned this idea because not all DAGs can be extended to a linear order.
> where there are uncommitted local changes
When I release a version, I always compile 3 times (1. after git clean -dxf; 2. again on top of the first compilation; 3. again after git clean -dxf) and make sure they all match, for reproducibility.
“it introduced the widely-derided font Comic Sans”
I beg to differ. Comic Chat came out in 1996. The Comic Sans font was the primary font in Microsoft’s 3D Movie Maker, which came out in 1995.
I would argue that it was 3DMM that introduced the font, not an app release later.
This is why I joined the gang that uses yy.mm.dd as their version number; the build system then can automatically figure out and stamp the version in, with the only constraint being that I’d have to do something manual if I wanted to release twice on the same day, but it’s hard to imagine.
It’d have been really weird for desktop software in the ’90s though, give or take the obvious precedent of Windows 95. Much more suited to the continuous release cadence of now.
I find the major.minor.revision pattern to be helpful, specially if you stick to incrementing the minor or major numbers when introducing features, as it is informative at a glance. However, for library internal version numbers I tend to use yymmdd as the revision. That helps me determine which version was current in a timeframe, which helps diagnosing bugs caused by a library, and also helps collecting library changes in the main changelog when making a build. I also use it for websites' changelog (useful to show the client the work done) because of the more frequent releases, as you point...