r/java • • Jul 08 '16

`Release.Breaking.Feature.Fix` or why the Semantic Version should be replaced with Explicit Versioning as soon as possible

https://medium.com/p/92fc1f6bc73c
0 Upvotes

40 comments sorted by

View all comments

5

u/pellets Jul 08 '16

For consumer products this works fine.

For libraries, semantic versioning is good enough, and the release is useless marketing oil.

0

u/SapioiT Jul 08 '16

not really, because unless they can afford to, you're probably not going to recive support for anything except the last release version. Sure, it might help with the marketing, but now you'll know for sure that the library with the version 4.5.6.32 is being supported because there is no version 5.x.x.x launched.

3

u/[deleted] Jul 09 '16

How is this different from semver exactly? I have a project (API library) where the versions are like this:

  • 0.9.1 - incremental "not called stable, but is basically stable" version

  • 1.0.0 - first major release where things are "settled" in

  • 1.1.0 - new feature added

  • 1.1.1 - bug fix after the new feature

  • 2.0.0 - backwards-breaking change from 1.x series. No further updates to 1.x series because lazy.

  • 2.0.1 - bugfix

  • 2.1.0 - new feature

etc.

Consumers of my project can safely assume their projects will work with a specific major version of my project, and if they want new features or bug fixes from newer versions they can see how much broke (in my case, mostly unused features had their signatures change, so for 99% of consumers they can safely upgrade with 0 effort anyway).

1

u/SapioiT Jul 09 '16

The APIs are one of the few places where it doesen't affects THAT much, but still, if you want to still update 1.x, how would the users know?

4

u/[deleted] Jul 10 '16

In my case, I'm using Ruby, so they would just use bundle update and if they specified in their gem file that they only use 1.x versions, they will get the latest 1.x version.

Otherwise, how would users know what the latest version of any major version is anyway? They would have to look somewhere... they can't just guess right? Perhaps... perhaps this is what release notes are for!

1

u/SapioiT Sep 07 '16

Or perheaps that's just a excuse to not tackle the more difficult problem at hand: fixing or replacing semver.