您如何知道要使用的版本号? [英] How do you know what version number to use?
问题描述
这是我一直想知道的一个...
Here's one I have always wondered about...
请原谅我的天真,但是-您如何确定使用哪个版本号来命名您的软件?
Please excuse my naivety, but - How do you decide what version number to name your software?
我认为,当有人创建应用程序/程序的最终"版本时,它就是1.0版本吗? -然后,当您对其进行更新时会发生什么,如何决定将其称为1.1或1.03等,等等.
I assume, when somebody creates a "final" version of an application/program it is version 1.0? - Then, what happens when you update it, how do you decide to call it 1.1 or 1.03 etc etc.
这主要是为开发人员准备的吗?
Is this mostly for the developer?
推荐答案
I've recently heard a pithier versioning strategy, that I first encountered at Eric Elliot's Medium account. It's more weighted towards library versioning that customer facing version numbers, but it has the advantage of simplicity. Use a three part version number, where each number means:
breaking.feature.fix
- 破坏:发生了某些变化,这意味着代码/期望必须发生变化
- 功能:添加了一些新功能,但是旧代码/期望仍然可以正常工作.
- 修复:没有新内容,但已修复错误.
- breaking: Something has changed that means code/expectations must change
- feature: Something new is added, but old code/expectations will still work fine.
- fix: Nothing's new, but a bug has been fixed.
我将我的旧答案留在下面,因为它仍然与面向客户的版本有关.
I leave my old answer below, as it's still relevant to customer facing versions.
我倾向于按如下方式对有效数字进行加权....
I tend to weight the significant digits as follows....
w.x.y.z(或w.xyz)
w.x.y.z (or w.xyz)
- w-主要版本,其中包括许多新版本 特征.付费升级.首先 公开发布的软件是1.X (预发行版本为0.X)
- x- 重大发布,但无 突破性的新功能.
- y- 错误修正版本
- z-补丁级别 发布(修复紧急错误, 也许只针对一个客户).
- w - Major version, with many new features. A paid upgrade. The first public release of software is 1.X (pre-release versions are 0.X)
- x - Significant release, but without groundbreaking new features.
- y - Bugfix releases
- z - Patchlevel releases (fixing an emergency bug, perhaps just for one client).
如果选择使用w.xyz格式,则溢出前只能得到9位数字.但是,如果您经常发布,可能会遇到更大的问题.
If you choose to use the w.xyz format, you only get 9 digits before overflow. However, if you're releasing that often, you may have a bigger problem.
让我们用我的新产品FooApp进行说明!
Let's illustrate with FooApp, my new product!
- 0.9-首次公开测试版
- 0.91-第二个公开测试版
- 0.911-紧急beta版本修复了Motorola 68010的崩溃
- 1.0-首次公开发布
- 1.1-添加了新的BlahBaz功能
- 1.11-错误修正
- 2.0-完全重新开发的界面.
这篇关于您如何知道要使用的版本号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!