News for hackers. Stuff that matters.
Re:Golang is evil on shitty networks by silisili on Friday December 30, 2022 @01:27AM (#34182456)
As one on the 'supports this decision' side, thanks for taking time from your day to give us the history.

It would be really nice if such context existed elsewhere other than a rather ephemeral forum. It would be awesome to somehow have annotations around certain decisions in a centralized place, though I have no idea how to do that cleanly.

Re:Golang is evil on shitty networks by pwdisswordfish9 on Friday December 30, 2022 @01:56AM (#34182608)
To "alter" a commit message after it has already been widely disseminated, branch from the offending commit, make a new commit with a message that contains the relevant info, switch back to mainline, and then merge that branch.
Re:Golang is evil on shitty networks by silisili on Friday December 30, 2022 @02:20AM (#34182739)
That would be an awesome start.

It would also be really nice to have a 'book' of sorts of this type of lore. Though admittedly, it would probably be hard to remember what to even include without stories like this.

Re:Golang is evil on shitty networks by wongarsu on Friday December 30, 2022 @07:42AM (#34184485)
The Arc42 documentation template hat was one of the 12 sections dedicated to "important, expensive or critical design descisions". It makes a pretty good structure for big-picture documetation in a "book" next to the code.

[1] https://news.ycombinator.com/item?id=32353500

Re:Golang is evil on shitty networks by cerved on Friday December 30, 2022 @02:37AM (#34182820)
just write a note instead
Re:Golang is evil on shitty networks by satyanash on Friday December 30, 2022 @02:55AM (#34182933)
use git notes for attaching information to important commits, after the fact, without altering their SHA
Re:Golang is evil on shitty networks by mbakke on Friday December 30, 2022 @03:16AM (#34183049)
How do you share notes with other users?
Re:Golang is evil on shitty networks by yawaramin on Friday December 30, 2022 @03:48AM (#34183227)
Notes are just objects stored in the git repo. They are distributed along with all the other objects.
Re:Golang is evil on shitty networks by mbakke on Friday December 30, 2022 @05:08AM (#34183635)
You had me worried there for a bit, but notes are not distributed by default.

For the curious, you can push/fetch

  refs/notes/*
...to share notes.
Re:Golang is evil on shitty networks by nicolast on Friday December 30, 2022 @05:04AM (#34183613)
For this kind of decisions, why not simply keep notes as comments in the code? These can easily be added later, even 14+ years after the code was written. Then, when someone dives into the codebase to figure out why something was done this or that way, the answer is right there. No need to dive into (and scavenge, sometimes) VCS history.
Re:Golang is evil on shitty networks by aae42 on Friday December 30, 2022 @05:53AM (#34183870)
Re:Golang is evil on shitty networks by joatmon-snoo on Friday December 30, 2022 @02:51PM (#34189194)