News for hackers. Stuff that matters.
Re:Lies we tell ourselves to keep using Golang by kgeist on Friday April 29, 2022 @11:58AM (#31206838)
We have tens of microservices written in Go.

Go is good for onboarding new devs because it's simple. Our existing PHP devs were taught Go and it was painless. Jumping from PHP straight into Rust would be pretty painful, I think. Finding Rust devs isn't easy in our town.

But I agree with most of the points. You got to be very careful when writing in Go, because there are many gotchas. So many gotchas that I had to write a large document describing all the conventions and rules to remember to write bug-free (hopefully) Go. This "Go with conventions" reminds of the days when you'd try to simulate OOP in C - it works but error-prone.

Many of the problems are caught early with good unit and integration testing, however, just like with scripting languages. In my experience, most of the bugs in production in our Go microservices come from logical mistakes, not from misusing Go.

Re:Lies we tell ourselves to keep using Golang by frou_dh on Friday April 29, 2022 @12:22PM (#31207212)
That means Go was easy for those devs to pick up, not that Go is simple.

Rich Hickey gave an all time classic presentation about this seemingly nitpicky but important distinction https://www.youtube.com/watch?v=SxdOUGdseq4

Re:Lies we tell ourselves to keep using Golang by themantri on Friday May 06, 2022 @05:23PM (#31289739)
Interestingly, I have always heard Go is simple, but not easy.
Re:Lies we tell ourselves to keep using Golang by oxnrtr on Sunday May 01, 2022 @10:25AM (#31225251)
I readily believe that PHP devs struggle with anything more complex with Go, but that makes me question how people end up with the lack of will to learn and improve in this profession.
Re:Lies we tell ourselves to keep using Golang by aidaman on Friday April 29, 2022 @09:40PM (#31212605)
can you shoot me the doc?