News for hackers. Stuff that matters.
Re:One Year After Switching from Java to Go: Our Experiences by 3uler on Wednesday February 19, 2025 @02:43AM (#43099670)
And yet Uber wrote fx[1] to support DI in their golang services. It’s clearly a useful pattern when working on large services.

[1]: https://github.com/uber-go/fx

Re:One Year After Switching from Java to Go: Our Experiences by 65a on Wednesday February 19, 2025 @02:48AM (#43099702)
I really cannot say Uber's use of Go is particularly idiomatic to me, having started writing Go more than a decade ago now. It just strikes me as overwrought, and I've worked on big services.
Re:One Year After Switching from Java to Go: Our Experiences by roncesvalles on Wednesday February 19, 2025 @02:46AM (#43099689)
I disagree with the premise of that whole project. It shouldn't exist.
Re:One Year After Switching from Java to Go: Our Experiences by Cthulhu_ on Wednesday February 19, 2025 @08:15AM (#43101782)
Just because a known company uses it doesn't mean it's authoritative; there's likewise functional programming libraries built by big companies, but FP should also be avoided in Go because it's not a functional language and not optimized for it.