Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • 3
    We also have continuous deployment, and we use a major version + the date. It's simply the easiest way to keep track of what's going on. Quite frankly it's easier to query version control to pull out the source files for a given date than it is to constantly have to tag files and query that way. Commented Jan 4, 2014 at 1:37
  • You shared code that does a direct numerical comparison of versions as if versions were numbers. I just want to point out the caveats that this would only work if you start with all the significant digits you would ever need (e.g. 1.0001) or if the minor version never goes above 9. In your example, (numerically,) 1.1024 < 1.1. (Usually versions are not considered numbers, as they are allowed to have more than one period character, and are not compared numerically.) Commented Jan 27, 2022 at 1:18