Re:One Year After Switching from Java to Go: Our Experiences
by throwaway2037 on Tuesday February 18, 2025 @10:19PM
(#43098194)
Can we read this somewhere?
[ Parent
| on HN ]
Re:One Year After Switching from Java to Go: Our Experiences
by Saser on Wednesday February 19, 2025 @12:29AM
(#43098893)
https://google.github.io/styleguide/go/ is the public version of it. Having read both I'd say the differences are small. The main thing missing, though, are the GoTip episodes that haven't been made public, and which are excellent.
Re:One Year After Switching from Java to Go: Our Experiences
by starquake on Wednesday February 19, 2025 @02:47AM
(#43099698)
I think the Google Go style guide is really nice and pragmatic. There are some references to the GoTips for some advanced subjects. I hope they release it someday.
I made an issue for it: https://github.com/google/styleguide/issues/881
Re:One Year After Switching from Java to Go: Our Experiences
by konart on Wednesday February 19, 2025 @12:54AM
(#43099040)
I'm not sure about Google style guild but Go's context package docs state:
"Use context Values only for request-scoped data that transits processes and APIs, not for passing optional parameters to functions."
Using context as a some sort of a mule is an antipattern.
Re:One Year After Switching from Java to Go: Our Experiences
by throwaway2037 on Wednesday February 19, 2025 @08:02PM
(#43109870)
> Using context as a some sort of a mule
I never saw the term "mule" used in this way. Very succinct!