News for hackers. Stuff that matters.
Re:The Principles of Versioning in Go by dilap on Tuesday December 03, 2019 @03:25PM (#21696315)
Why should I care about upgrading versions, though? From my perspective making some program P where I've decided to pull in a dependency on library L, I'm only interested in getting a new version of L if (1) it has some new feature I want or (2) there is a relevant security vulnerability. I don't see what is gained by trying to ask for newer versions of libraries than those I've specifically requested.
Re:The Principles of Versioning in Go by cesarb on Tuesday December 03, 2019 @03:41PM (#21696485)
Or (3) it has fixed bugs (including ones we haven't hit yet) or (4) it has better compatibility with the surrounding ecosystem (which is not static).

More than once, the fix for a mysterious bug we encountered in production was just "upgrade a particular dependency to a newer minor release" (changing nothing on our code), since another user of that dependency had already encountered that same obscure bug, and together with the developers had already investigated it and found a fix. Had we been more diligent in keeping our dependencies up to date, even when they have no new features we want or security fixes, we would not have encountered that bug.

Re:The Principles of Versioning in Go by dilap on Tuesday December 03, 2019 @05:09PM (#21697350)
That’s very optimistic! In my experience, software doesn’t actually get less buggy with time, just differently-buggy, and sometimes even more buggy (which makes sense, if bugs go like complexity, and software gains complexity with time).
Re:The Principles of Versioning in Go by pcwalton on Tuesday December 03, 2019 @03:38PM (#21696443)
Bug fixes and performance improvements!
Re:The Principles of Versioning in Go by Skinney on Wednesday December 04, 2019 @02:48AM (#21700372)
But in this case. Don't you already have an idea, through profiling or debugging, which package causes bugs or is slow? And if you do, figuring out if theres a newer version that improves your situation should be rather simple.

I've stopped blindly updating my dependencies, as people seem to have very different ideas what semver means. minor and patch upgrades in node and ruby programs have broken my applications several times.

Even when semver is done correctly, a breaking change in a package usually also means that you have to upgrade to the breaking change to get other goodies like improved performance and bug-fixes. This is something that takes a lot of time. At work we've basically stopped doing breaking changes in our private packages, opting instead in for a scheme similar to what you have to do in Go for everything to work.

Versioning is, at the end of the day, a cultural problem. And not having the tools to do breaking changes well can actually turn out well.

At least, that's my current thinking. I may very well be, and often am, wrong.

Re:The Principles of Versioning in Go by mfer on Tuesday December 03, 2019 @03:30PM (#21696368)
How do you know about security fixes (or even relevant bug fixes) in dependencies? How do you know about them in transitive rather than direct dependencies?

If you don't know to update how will you get the fixes?

Re:The Principles of Versioning in Go by dilap on Tuesday December 03, 2019 @03:39PM (#21696468)
By periodically looking at release notes for my dependencies, and, (if I'm being diligent or don't trust my dependencies to be doing audits of their own dependencies), transitive dependencies.

In general I never want to change any dependencies w/o explicitly thinking about the change and setting aside time for testing and breakage.

And at the time I'm adding some new direct dependency L, I will pick the version I want (presumably the latest). As for its dependencies, why should I want them to be the latest? I just want the versions that are most likely to work correctly w/ the version of L I have selected. Right?

Re:The Principles of Versioning in Go by mfer on Tuesday December 03, 2019 @03:45PM (#21696521)
I totally respect that. I also know that many (most) aren’t like that. There are a variety of reasons like some not having time. What can they do? The experience for those is often more time consuming than in the past. This decreases their productivity and happiness with the tooling.