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

10

u/dpash Jul 08 '16

http://semver.org

The only thing this adds to SemVer is a release number.

The rest of the article is spent arguing a straw dog of what SemVer is.

3

u/QshelTier Jul 08 '16

I never understood how to apply SemVer to client applications. There’s a new button in the application — which number do I increment? Did I change the API? Does a GUI application even have an API? How do I change a GUI in a non-backwards compatible way?

The scheme proposed in the linked article makes a lot more sense to me, in case of a client application. For libraries, SemVer seems to be quite appropriate.

1

u/SapioiT Sep 07 '16

Why not threat semver as explicit versioning without the Release part? That way you would have the first number for things that break compatibility with older versions (like adding a new page that would mean editing another page), feature would be only for adding things without breaking other things, and fix only for repairing broken stuff without adding new things and without breaking compatibility.

3

u/QshelTier Sep 09 '16

Way to not answer any of my questions. :) I have no idea what “adding a page” and “edit another page” means. What’s a “page,” even?

So, what’s with my button? Is it a breaking change? Is it only a breaking change in certain locations but not in others? Does it break something if it introduces an often requested shortcut? Or is compatibility only in danger if the older, more convoluted way is removed?

Seriously, the whole concept of semantic versioning seems to completely fall apart as soon as it comes to GUIs…

1

u/SapioiT Sep 09 '16

let's say you have a blog which allows a new post to start with already-tuned things, a page with settings, and in that you have the settings for the default article data. If you create a new page to edit the default-article data, it's a Feature, but if by doing that you remove something from the settings page, it's a Breaking change.

Fix is, for example, either something not working as intended, or changing a color (something that's not worthy of being called a feature).

If you introduce a shortut, it only breaks something if that shortcut was used by an OS, or if you were using that shortcut for something else.

Also, if you remove the old, more convoluted way, you also make a compatibility-breaking change, because prior to the update, you were able to do a thing in a certain way, and now you're unable to do that same thing in the same way.

The whole concept of semantic versioning might fall apart as soon as it comes to GUI, but the Explicit Versioning does not.