News for hackers. Stuff that matters.
Re:What's so great about Go? by rgoulter on Friday November 06, 2020 @11:02PM (#25013133)
A point I don't see mentioned often enough is a couple of points about the compiler's poor DX for iterative development.

Go will fail to build if you have unused dependencies or variables. (And it's easy to use the convenient `:=` in a way which faces problems exacerbated by this).

If I'm debugging through something, I might be adding packages or intermediate calculations to try and figure out what's going wrong. But because the Go compiler enforces this proper style of "nothing unused", there's that much more friction when tinkering.

Re:What's so great about Go? by papaf on Saturday November 07, 2020 @03:10AM (#25013767)
I highly recommend using goimports to format your code on save: https://godoc.org/golang.org/x/tools/cmd/goimports

This will hopefully reduce some of the friction you are having.