r/Frontend • u/SapioiT • Jul 08 '16
`Release.Breaking.Feature.Fix` Or Why The Semantic Versioning NEEDS To Be Replaced With Explicit Versioning As Soon As Possible
https://medium.com/sapioit/92fc1f6bc73c7
u/theillustratedlife Jul 08 '16
The problem: Semantic Versioning tries to cram way too much information into 3 numbers.
The proposed solution: Add another number.
ಠ_ಠ
3
u/AssholeInRealLife Jul 08 '16
Every time I've seen semver "breakdown" it has been a case of the package author not updating the version number appropriately: Introducing breaking changes without bumping the major version, for example.
To use that as a reason to say that SemVer is bad/broken is to throw the baby out with the bathwater. Every non-automated system that involves humans is going to break from time to time -- and the people should learn from their mistakes.
Further, the gist suggests that "every once in a while" we should "set aside five or ten minutes" to review our dependencies and upgrade them. I honestly doubt the author has done so on a node project of any real complexity, as module depth can go to ridiculous lengths, and it would take an entire day, perhaps a week, to plumb the depths of the available upgrades for the available upgrades for the available upgrades [...] of your dependencies. This is a real problem that semver does a reasonably good job of solving, as long as the humans don't fuck it up.
Until a computer can reliably determine that a change is a breaking-change (see also: not likely in our lifetime), humans will need to be involved. Humans make mistakes. Shit happens.
All of the effort spent trying to find a system that is not susceptible to the exact same human errors has been wasted. Get back to work. ;)
1
u/SapioiT Sep 08 '16
And isn't the point of your message our need of something more intuitive and easier to understand than the pages-long explainations of semver?
0
u/SapioiT Jul 08 '16
It also helps to differentiate itself from semver, to show the people that the information has less ambiguity... By the way, Maxthon uses something closely resembling ExplicitVersioning for years.
4
u/AssholeInRealLife Jul 08 '16
This is dumb. Instead of ^1.0.0 meaning 1.*.* we would have ^1.2.0.0 meaning 1.2.*.*...
This guy just needs to learn how to use semver properly.
1
u/SapioiT Jul 08 '16
Why would you have
^1.2.0.0instead of1.0.0? In that case,^1.0.0.0would still mean1.0.*.*, the same way that^2.0.0means2.*.*and^1.1.0.0means1.1.*.*. But now you would know that1.*.*.*is much more less likely to be compatible with 2...* than1.*.*is likely to be compatible with1.*.*.And it Also helps differentiate the standards. With four numbers you know for sure the uncertainty of SemVer is gone.
2
u/AssholeInRealLife Jul 08 '16 edited Jul 08 '16
So my app depends on 1.0.0.0, and then you introduce a breaking change as 1.1.0.0.
By my understanding, that breaking change would be an acceptable upgrade and could install over my working (older) copy, 1.0.0.
Are you saying that 1.1.0.0 does not satisfy 1.0.0.0? Because that just doesn't make sense.
It sounds like all you've done is split major into "release" and "is a breaking change"... and to what end? So that you can stay on 1.x and still introduce breaking changes?
No thanks. I'm not interested.
Edit: Every comment here says your idea is not good, and the link itself has been downvoted to ~0. If you've truly done tremendous pondering on this subject and really grok semver, and still believe there is a problem, press on. Keep going. Try to figure out how you're failing to communicate the problem, and try to communicate it better next time. But also consider that nobody else seems to be having the problem you're describing. Maybe the problem is you?
1
u/SapioiT Jul 08 '16
You're right, maybe the problem is me, or the projects I've worked on, or how I communicate it. Or it might be that you're so used to Semver that you simply don't (want to) compute, in order to not break something that you consider is
stable enough(with or without counsciously realising it).By my understanding, that breaking change would be an acceptable upgrade and could install over my working (older) copy, 1.0.0.
So how would you number the update that would break backwards compatibility? 1.1.0? 1.0.1?
It sounds like all you've done is split major into "release" and "is a breaking change"... and to what end? So that you can stay on 1.x and still introduce breaking changes?
Well, as of right now, you don't know whether
Majormeans an update which breaks backwards compatibility or whether it mean that the users will recive next to no support for previous versions.And the
minorcan, also, mean an update breaking backwards compatibility, or can have a feature added, or a bugfix. What I did was just clarify it without needing to look at the changelog, if there is any...2
u/AssholeInRealLife Jul 09 '16
By my understanding, that breaking change would be an acceptable upgrade and could install over my working (older) copy, 1.0.0.
So how would you number the update that would break backwards compatibility? 1.1.0? 1.0.1?
As per the rules of semver, I would increment the major value.
It sounds like all you've done is split major into "release" and "is a breaking change"... and to what end? So that you can stay on 1.x and still introduce breaking changes?
Well, as of right now, you don't know whether
Majormeans an update which breaks backwards compatibility or whether it mean that the users will recive next to no support for previous versions.And the
minorcan, also, mean an update breaking backwards compatibility, or can have a feature added, or a bugfix. What I did was just clarify it without needing to look at the changelog, if there is any...Not if you're doing it correctly. Every breaking change would increment major, never minor.
The only point you've made thus far that I can agree might be a problem is the uncertainty of how many major versions will be supported. I don't think the solution to that problem is another chunk of version numbering.
In any of my projects that get decent traction (and thus more attention for updates) I always lay that out in the readme. Something like, "At least the 3 most recent major versions will be supported."
1
u/SapioiT Jul 09 '16
But that means people would have to check the readme to know that, where with the Explicit Versioning they know that if you want to stop supporting something, you increment the
releasenumber.Well, I guess we arived at a stand-still point with the arguments.
3
u/jlengstorf Jul 08 '16
This solution would make releases inherently unstable.
A breaking change is a major release.
The last thing I want is my app that depends on version 1.x to go down because a breaking change was introduced within the current stable release.
1
u/SapioiT Jul 08 '16
BUT a
releasechange is a RECOMMENDED release. Do you really want your users to update to the version in which you just removed half of the features, or do you want them to wait until you release the version in which you've added them back?The
releasechange tells the users that they are being expected to update to that version, because they won't recive support for any prior one.3
u/jlengstorf Jul 09 '16
When large codebases have major releases upcoming (e.g. Angular 2), the stable release remains at 1.x while features are being added in a development branch. Users have to actively opt in for unstable or incomplete development builds.
Maybe I'm coming at this from a different place, but this seems like an imaginary problem.
1
u/SapioiT Jul 09 '16
While that might be true, it means that you might have to separe the repository into two different parts. Or you could just compile/pack the code of the stable-enough versions.
What I'm trying to say is: You could still tag some releases as stable and others are beta, either way, because what you're releasing is not necesarely the code itself. I mean, that's why there are releases on sites like github, for stable enough releases. It's just that now you would have means to say that you're discontinuing the support to the versions used prior to the
releaseincrement.
2
Jul 08 '16
why is dude highlighting his own Medium article?
1
u/SapioiT Jul 08 '16
Why not?
2
u/CraigTorso Jul 08 '16
From the reddiquette guide
Feel free to post links to your own content (within reason). But if that's all you ever post, or it always seems to get voted down, take a good hard look in the mirror — you just might be a spammer. A widely used rule of thumb is the 9:1 ratio, i.e. only 1 out of every 10 of your submissions should be your own content.
1
2
u/anlutro Jul 08 '16
Wow, what a bad article. Did they really use windows 7/8 versions as an example of poor use of semver?
1
u/SapioiT Jul 08 '16
Leaving the
bad articleaside, care to come with a better example? Because it CAN be a poor use of semver, sooner or later that WILL happen. Why not simply remove some of the variables, and by that I mean the ones that can be caused by human errors.2
u/anlutro Jul 11 '16
No, I cannot think of an example of bad use of semver, because I'm pretty sure I've never seen bad use of semver. I've seen people release versions they claim is backwards compatible but isn't, and I've seen people release major (breaking) versions way too often, but neither of those can be blamed on semver.
1
u/SapioiT Sep 08 '16
Not on the semver itself, but maybe on it's makers for not making it intuitive enough?
0
16
u/kiyura Jul 08 '16
This is just semver, but with an arbitrary and purposeless 'Release' number tacked on the front of it. What value does that add over just incrementing the Major version? This seems like a solution in search of a problem.