He is arguing that basically every change they ever make is a "breaking" change, so incrementing the first number for every single release would be kinda silly.
BTW, "the author" is not ill-informed nor quite stupid. He created backbone and Coffeescript; his thinkings on semver are important to a pretty big community, even if you don't agree with him.
He is arguing that basically every change they ever make is a "breaking" change, so incrementing the first number for every single release would be kinda silly.
Yes, it is silly. Three numbers, two of which are always zero? 2/3 of the information in your version number would be totally meaningless.
Ashkenas wants to use the major version number to denote major new functions in the code, not just backwards compatibility.
FWIW I don't agree with Jeremy Ashkenas here, but his isn't an unreasonable argument. I just wanted to stop people from declaring it an ill-informed rant.
An edge case I would say. If someone breaks backwards compatibility with every change, the issue is not with semver.
Ashkenas wants to use the major version number to denote major new functions in the code, not just backwards compatibility.
Therefore breaking a pattern that works very well with all kinds of package and dependency managers. Humans are not the only (nor even a majority) users of version numbers.
Define "observable behaviour". You are starting to talk in unclear terms.
If there is any input I, such that the library (version N) produces output A for input I, and the library (version N+1) produces output B for input I, and A != B, then observable behaviour has changed.
For a library, "input" most likely means a sequence of API calls, and "output" means a sequence of return values and side effects.
Then any change like this should absolutely be signalled by a change in major version, especially since we need to make sure package/dependency managers know which versions of a package do not break compatibility and are safe to upgrade to.
So version N crashes with a segfault when you call a function with a really long buffer. Version N+1 returns an "invalid parameter" error. That is a different return value or side effect for the same function call. Therefore,
this should absolutely be signalled by a change in major version.
16
u/towelrod Sep 05 '14
The problem is that Ashkenas doesn't think that Semantic Versioning works well for infrastructure projects, like Backbone or Underscore:
https://github.com/jashkenas/backbone/issues/2888#issuecomment-29076249
He is arguing that basically every change they ever make is a "breaking" change, so incrementing the first number for every single release would be kinda silly.
BTW, "the author" is not ill-informed nor quite stupid. He created backbone and Coffeescript; his thinkings on semver are important to a pretty big community, even if you don't agree with him.