News for hackers. Stuff that matters.
Re:Go Replaces Interface{} with 'Any' by meowface on Tuesday December 14, 2021 @04:52PM (#29558448)
My favorite has become just making the version number the release date.
Re:Go Replaces Interface{} with 'Any' by ViViDboarder on Tuesday December 14, 2021 @05:24PM (#29558945)
See CalVer. The date is definitely helpful for something with fairly stable APIs where breaking changes aren’t really happening.

Perfect for things like Ubuntu, pytz, and ca-certificates.

Less for something like a library who’s API could change and break your implementation.

Re:Go Replaces Interface{} with 'Any' by eru on Tuesday December 14, 2021 @11:32PM (#29562116)
CalVer is useful for Ubuntu. But not because it's stable, just the opposite:

It's useful for Ubuntu, because each Ubuntu release is a hodgepodge of lots of unrelated updates. Some will be breaking, some will be fine.

Re:Go Replaces Interface{} with 'Any' by ljm on Wednesday December 15, 2021 @05:14AM (#29563976)
Also for systems relying on continuous delivery in some form, like websites and web apps and SaaS. Because as a user you don't actually have a choice to use an update or stay on an old one.

Considering most places I've worked at just bump the minor number in perpetuity, a date-based version conveys a bit more info. Also so much easier to know when it's going out if you have a release cycle (e.g. you don't have to guess what date 3.12354.0 is going to prod, you would know it already from a version like 2021.12.25).

Re:Go Replaces Interface{} with 'Any' by abendstolz on Tuesday December 14, 2021 @06:09PM (#29559426)
For binaries, I agree. For libs, I prefer semver
Re:Go Replaces Interface{} with 'Any' by klyrs on Tuesday December 14, 2021 @09:57PM (#29561517)
Not the git hashcode?
Re:Go Replaces Interface{} with 'Any' by ljm on Wednesday December 15, 2021 @05:29AM (#29564076)
Semver and calver are sequential, so you can easily sort them and compare versions in terms of age. So you would know that jumping from 1.8 to 3.0 for example could be quite large.

You can't do the same with git commit hashes because you can't sort them based on the hash alone. I have no idea how to compare deadbeef and cafebabe without checking the code itself.