News for hackers. Stuff that matters.
Re:The Problem with Go by silisili on Wednesday November 02, 2022 @01:38PM (#33439840)
My experience with contributing there is that they are too 'Google'-ized. I guess they pay for the language, so that's their right.

Myself and another non-Googler wrote and worked on a portion of the code. We'd of course have to get it blessed and merged by G, which wasn't that bad.

My problem became when a Googler started messing around in that portion of the code, changed it, got it approved, without it notifying the two of us who wrote it. Not that we'd need to be approvers or anything, just would have been nice to have gotten some heads up so we could see how it was changing. I only know as it ended up having bad behavior, went to see what changed, and wrote a rant on the mailing list about it :).

Re:The Problem with Go by endorphine on Wednesday November 02, 2022 @01:45PM (#33439966)
Care to share the link to that particular discussion?
Re:The Problem with Go by silisili on Wednesday November 02, 2022 @01:57PM (#33440194)
In the name of what anonymity I've tried to keep here, I'm going to refrain, sorry.
Re:The Problem with Go by dcormier on Wednesday November 02, 2022 @01:59PM (#33440227)
Sounds like the tests around what you were trying to achieve with your changes weren’t complete enough, possibly?
Re:The Problem with Go by silisili on Wednesday November 02, 2022 @02:12PM (#33440423)
IIRC, it was an overhaul and improvement some months later. I didn't mean to at all imply that our code was better or that we knew better - the overhaul was much needed, only that the review process seemed broken. This was 8-9 years ago, so not exactly fresh in my brain.
Re:The Problem with Go by sangnoir on Wednesday November 02, 2022 @07:56PM (#33444633)
> I didn't mean to at all imply that our code was better or that we knew better

>> [...]when a Googler started messing around in that portion of the code, changed it,[...] it ended up having bad behavior

Your word choice did no favors to your intention.

Re:The Problem with Go by afandian on Wednesday November 02, 2022 @02:10PM (#33440401)
Did you have test cases provided an intended contract for the code? Did they break? And did they provide a justification for the change of contract?
Re:The Problem with Go by ajgrover on Wednesday November 02, 2022 @03:01PM (#33441217)
is your expectation that if you contribute to an open source project that you would get notified if your code is later modified?

if I was in your shoes, I would assume that once the feature is merged, the maintainers have final say and can modify or remove your code as they wish. An RFC for a breaking change would surely be nice but I wouldn’t expect any kind of notification if the change was some kind of minor update or enhancement.

Re:The Problem with Go by flir on Wednesday November 02, 2022 @03:21PM (#33441525)
Would be a nice feature though, wouldn't it... sort of git-blame-by-email.

"Hi, this PR is modifying a line of code that you submitted. You don't have to do anything, we're just notifying you in case you want to weigh in on the PR".

You could extend it into a general purpose "subscribe" mechanism - if someone raises a PR against this bock of code, please email me.

Re:The Problem with Go by kevincox on Wednesday November 02, 2022 @03:37PM (#33441751)
Sounds like a great way to help share knowledge about a particular bit of code.

I can even imagine something like take the top 3 authors of code changed or removed by the PR and if they aren't already the author or reviewer CC them. That way you can pull in some people with context.

Re:The Problem with Go by bborud on Wednesday November 02, 2022 @04:50PM (#33442737)
Yeah, I think this is something that has to be solved by the tooling. It isn't reasonable to expect people to do a git blame and remember to email everyone whose code you want to change.

That being said: I don't even expect people to notify me when changing code I have written at work. In fact, if people bothered me about code someone else should be perfectly capable of reviewing without me, I'd be a bit annoyed. I really don't need MORE interruptions.

The fact that a breaking change was introduced is really an orthogonal issue. It isn't a given that the original authors would catch the problem. Maybe in this case they would, but I don't think this is a given.

I have certainly experienced reviewing pull requests against code I have written only to let breaks slip by me. :-)

To me this sounds more like the code didn't have sufficient tests to catch the breakage. If I had written the code I would probably have looked at improving the tests after helping fix the breakage so at least it doesn't happen again. But of course, that's just speculation since I don't know what was broken and how.

Re:The Problem with Go by tracker1 on Wednesday November 02, 2022 @06:12PM (#33443640)
For that matter, simply attaching a @notify to the pull request (assuming it's a public repo) then the repository manager can notify you with the PR.

There are automation tools that do this already.

Re:The Problem with Go by benhoyt on Saturday November 05, 2022 @10:18AM (#33481701)
Yeah, I agree with that. I had a significant feature included in the Python stdlib (os.scandir and related changes) and after it was included in 3.5, the core developers have made significant improvements to it (added "with statement" and "close" support, and so on), and I don't think I was contacted at all. I wouldn't have minded being contacted, but I'm actually quite happy I could write the initial proposal and feature and don't have to maintain it after that. :-)
Re:The Problem with Go by guynamedloren on Wednesday November 02, 2022 @03:20PM (#33441499)
Without any additional context (which may be critical to understanding fully!) this sounds like an unreasonable expectation on your part. Imagine the sheer number of contributors to a large open source project (that number is nearly 2000 for golang), and then managing the web of contributions and subsequently triaging notifications whenever a change is made. Sounds like a nightmare. Granted I've never contributed to a project of this scale personally, my but experience (as a developer working with other developers for many years) is that the existing processes and tooling are sufficient enough to stay in the loop on things as a contributor.
Re:The Problem with Go by kevincox on Wednesday November 02, 2022 @03:36PM (#33441733)
If GP wrote a significant part of the code that is being modified it seems like it would be a good idea to involve them in the review. It is a chance to share their expertise and catch bugs early. I don't think it shuold be required or blocking but automatically CCing a few people who have recently changed the code seems like a smart idea.

I don't think "managing the web of contributions" seems too impractical. If for example you CC the top 3 contributors who authored the lines that were changed or modified (excluding large automate or "tree-wide" changes) then for any line you write you are getting notified at most once. In practice it will be much less than that since multiple lines will be changed at a time and you won't always be in the top 2 or 3. Plus consider that many of these people are qualified to review the code and would need to be in that discussion anyways. What I'm trying to say is that the data is there and available automatically and the cost of reviewing follow-ups is bounded.

Re:The Problem with Go by eberkund on Wednesday November 02, 2022 @04:17PM (#33442356)
Doesn't sound like that much of a nightmare to me. Maybe I am missing something but when making a change, you could just use `git blame` and you would see the previous author of the portion of code and add them as a reviewer.
Re:The Problem with Go by peyton on Wednesday November 02, 2022 @04:30PM (#33442525)
It’s pretty normal to give a heads up in a project of this size.
Re:The Problem with Go by marcosdumay on Wednesday November 02, 2022 @04:42PM (#33442637)
> Imagine the sheer number of contributors to a large open source project (that number is nearly 2000 for golang), and then managing the web of contributions and subsequently triaging notifications whenever a change is made.

Imagining the Linux repository (because I have no idea how the golang one looks), creating this doesn't look like a big deal.

I don't think it's reasonable to expect to be contacted, because most projects don't do it. But it's also not unreasonable to contact everybody that touched the code either.

Re:The Problem with Go by infogulch on Wednesday November 02, 2022 @03:31PM (#33441664)
This is an interesting problem for any kind of significant contribution made to a big project. To summarize, you seem to have some expectation that you would at least be notified when your past contribution is undergoing changes, with the intention to provide feedback at your discretion. Personally I find this expectation relatable and reasonable, but I'm not exactly sure why.

To counterpoint, it's pretty easy to explain why you might not have been pinged; if every engineer was pinged every time any of the code they wrote changed I expect they'd be buried in notifications. Also, whose responsibility is it to send the notifications? the org's? the engineer making the changes? This seems like a lot of organizational and/or social complexity that has no chance of actually being implemented.

Maybe the solution is that it's the engineer's responsibility to watch the code they care about. This model is better aligned with everyone's goals, but it highlights the lack of tooling to watch for proposed changes and manage your desired notifications.

Re:The Problem with Go by perrygeo on Wednesday November 02, 2022 @07:49PM (#33444536)
So, if the correct behavior was known, why did you not write a test asserting the correct behavior? I understand that it can get complicated, just legitimately curious if the behavior could or could not be easily captured by the test suite.