views:

635

answers:

14

Hi,

Suppose I have a web application with some basic functions. I want to market it. So I would like to assign a version number - something like 0.0.1. What I want to know is are there any constraints that should apply to that numbering system?

Hope you understood my question, thanks in advance.

A: 

You can use any form of version numbering you desire.

I just recommend using something that makes sense. The Major.Minor.Revision numbering is popular, but any numbering scheme you wish is "valid".

Reed Copsey
yeah, see for example MS Windows: 95, 4.0, 98, 2000, XP, Vista, 7
just somebody
@just: Those are "commercial versioning". If you dig somewhere you will find the official development version.
Stefano Borini
Those were product names, not version numbers.
Agent_9191
Are you holding Microsoft up as an example of good programming practice to be emulated?
Jay
my comment was in jest! i'm very well aware that w2k is 5.0, xp is 5.1 etc...
just somebody
+6  A: 

You can use whatever numbers you want in your versioning - who's going to constrain you?

If you want your first version to be 0.0.0.0.0.0.0.1, that's fine, albeit a little silly. If you want your first version to be 106.3, you can do that too, but that's a little more ridiculous.

Check out the Wikipedia article on Software Versioning for some tried-and-true ideas of realistic version numbering schemes.

Mark Rushakoff
+12  A: 

Most places use something like this:

Major Release.Minor Release.Hot Fix.Build

Your version numbers would look like 1.5.0.15, etc.

AaronS
And a major release is something that breaks compatibility. Minor releases just add features or remove bugs.
Christian
Unless you're java then you drop the build number and replace the second . With a _
RCIX
+1  A: 

Hi,

You might want to start by taking a look at the Software versioning article on wikipedia, which gives some informations about the possibilities you have ;-)

It might give you some ideas of what you could do in your specific case...

Pascal MARTIN
+2  A: 

I've always used (rewrite).(feature added).(bug fix).

But set your own rules and make them public so your users understand them.

dacracot
+1  A: 

I've used

Major.Minor.Release.Build 1.02.4.15

and also

Year.Month.Date

2009.12.10

but anything that allows you to individually track releases would work. As long as you're consistent.

Chuck
+1  A: 

We use major.minor.revision.build where revision is the SVN revision and build is the build number which is based on the current date (in YYDDD format where YY is the year and DDD the day number, so 18001 would be Jan 1st 2018.)

Having the SVN revision is incredibly useful and has saved us on more than one occasion.

Rob
+2  A: 

Take a look here. python setuptools has a very interesting and clear specification for version numbering. I'm sure you can obtain some very insightful hints from it.

Stefano Borini
+1  A: 

To the best of my knowledge, there is as yet no government agency dictating how you number versions. But don't worry, I'm sure it will come soon enough.

Ditto on those suggesting major-dot-minor-revision. My general approach is: Major changes get a new major version. Like, if we've added important new features. Small changes, like added some little convenience features or one new report, get a minor revision. Hot bug fix changes get a revision.

I would definately avoid calling your first published version "0.l" for simple marketing reasons: Numbers less than 1.0 sound like a preliminary version or a beta version. I've known people to call their first version 2.3 or some such just to make it sound like it's been around a little while to inspire more confidence, though that strikes me as a little dishonest.

Jay
+1  A: 

Version numbers are not a concrete specification in software development.

In other words, one team may use 1.0.0.0, others may use 1.0.0 and so on. It matters not.

Just choose something that works for you.

Typically major.minor.revision is the most simple and straight forward method to use. Visual Studio for example can assign version numbers automatically for you, as can other tools. So all you are required to update is the major/minor values. The build/revision numbers are updated automatically.

Finglas
+9  A: 

A lot of free software uses a three point system: X.Y.Z where

  • X is for compatibility breaking releases.
  • Y is for other releases, with even numbers being stable and odd numbers being unstable.
  • Z is for fixes.

This way version 0.28.1 is a stable release with one fix and 2.9.0 is an alpha release with zero fixes.

Some people also have fun developing their own schemes. E.g. Tex which by each release approxed Pi, with version numbers: 3, 3.1, 3.14, etc.

Thomas Ahle
+4  A: 

It does not really matter, as long as you can use the version number to identify your versions (i. e. either add your source control system's internal revision number into the version number) or use it for tagging your releases.

When you do so, you might want to use that number as your third (or fourth) component. It looks confusing if some product jumps from version 1.12345 to 2.12346, but jumping from 1.4.12345 to 2.0.12345 is more common.

About which number to start, I just want to quote Eric S. Raymond:

In the closed-source world, Version 1.0 means "Don't touch this if you're prudent."; in the open-source world it reads something more like "The developers are willing to bet their reputations on this."

mihi
+1 for the end ()
RCIX
+1  A: 

I seem to remember that in the old days (I am talking Commodore here) we used a syntax like release.version.revision which could be appended with either fix and/or build, where fix would usually be a letter stuck directly to the revision. So a full number would read something like:

2.1.44a.786

But like most have already said, it doesn't really matter, there is no true standard for this. Just use whatever is most convenient for you.

Yuvalik
+1  A: 

how about the software which is not distributed to public like a webmail source code? do you think that the build or bug fix number is still important in this case?

Brian