News for hackers. Stuff that matters.
Re:Spec-ulation – Rich Hickey [video] by jjnoakes on Friday December 02, 2016 @08:46PM (#13093764)
Perhaps, but he repeatedly claimed that the minor and patch numbers conveyed no meaning, while dismissing the semver spec as a manifesto.

But if he read and understood it, he'd know those were important numbers. Maybe moreso than the major version.

Perhaps he should have argued his actual stance more, instead of the strawman stance. That put me off.

Re:Spec-ulation – Rich Hickey [video] by sheepmullet on Friday December 02, 2016 @09:22PM (#13093911)
From the point of view of a library consumer why should they care about the patch or minor versions at all?

Isn't later = better?

Re:Spec-ulation – Rich Hickey [video] by jjnoakes on Friday December 02, 2016 @09:45PM (#13093984)
Because if you start relying on something new or fixed in x.2.z of your dependency you want to make sure anyone using your code isn't using x.1.y.
Re:Spec-ulation – Rich Hickey [video] by sheepmullet on Friday December 02, 2016 @09:53PM (#13094001)
And doesn't automatic dependency resolution make this a non-issue for your consumer?

Edit: I.e. If you declare your own dependencies then tooling should ensure anyone who uses your code uses the same dependencies.

It doesn't work this way in Java world due to technical limitations, but it can in JS world

Re:Spec-ulation – Rich Hickey [video] by jjnoakes on Friday December 02, 2016 @10:12PM (#13094062)
Consumers may want to use a different version.

Perhaps they want a newer one (bug fix, security fix).

Perhaps they want an older one (since another dependency was tested against an older version of the dep in question).

Semver gives you a way to decide what ranges of versions should be safe to move between in order to satisfy all of those occasionally conflicting requirements.

Re:Spec-ulation – Rich Hickey [video] by sheepmullet on Friday December 02, 2016 @10:34PM (#13094124)
Explicitly limiting your consumers to a specific version of another library is a breaking change. You have introduced a very specific dependency and are requiring the consumer to honour it.

By semvar rules you should be updating the major version?

Re:Spec-ulation – Rich Hickey [video] by jjnoakes on Friday December 02, 2016 @11:20PM (#13094284)
What?

If my library requires X version 1.2 or higher, how is it a breaking change if I don't work with version 2.0 or 1.0 or anything except 1.2 through 1.99999?

That's the whole point of software versioning, no matter what you call it (renaming things, semver, git hashes, anything). At some point you require something of someone else, and you can only use the versions of that other library which provide what you require (or more). Semver is just a way to lock those requirements into a machine-readable number scheme.

Re:Spec-ulation – Rich Hickey [video] by prodigal_erik on Friday December 02, 2016 @10:09PM (#13094049)
That limitation is healthy. If versions 1.1 and 1.2 of a class exist and I'm foolish and determined enough to use both in the same process (via multiple classloaders), Java will still ensure that I can't accidentally give a 1.1 instance to a callee expecting a 1.2 instance, or vice versa. Version mismatches at call sites fail quickly and loudly with classloading exceptions.

I think a hell of a lot of NPM packages only appear to work by accident, and over time they'll fail because of sloppiness about this.