News for hackers. Stuff that matters.
Re:Go 1.18 by philosopher1234 on Tuesday March 15, 2022 @02:24PM (#30688968)
I’m glad you brought this up because I agree Rob pikes quote about go being simple for average programmers has been very provocative, because it’s been interpreted as “Google devs are too stupid for a good language like Haskell, so if you use go it’s because you’re stupid too”.

I’m partial to a different interpretation, that’s more like “go doesn’t require as much thinking as Haskell, so you can use your thinking for the problem you’re trying to solve instead of the language”.

With that interpretation, go is better not just for stupid programmers, but even for the smartest programmers.

Re:Go 1.18 by ______-_-______ on Tuesday March 15, 2022 @02:30PM (#30689066)
That line of thinking only works up to a certain point. I could say assembly language is simpler, now you don't have to think about functions or basic blocks, you can save your thinking for the problem you're trying to solve! But sometimes pushing complexity into the language instead of onto the users is the better way to go. Higher-level abstractions make things easier. I would rather spend my thought cycles on the business problem, than on reimplementing sum types, or casting interface{} everywhere, or propagating errors by hand.
Re:Go 1.18 by philosopher1234 on Tuesday March 15, 2022 @02:42PM (#30689233)
Certainly, whether or not go has made the right trade offs on simplicity is arguable. I’m not certain whether those features you mentioned would be worth adding to the language or not, but I do know that my experience interacting with Go code has been much easier than my experience interacting with Java code. Haskell & Rust have been fun for me to play with, but they were also harder for me to work with.

Anyways, I can’t give the final word on this question, but those are my two cents.

Re:Go 1.18 by tharne on Tuesday March 15, 2022 @03:02PM (#30689585)
> I’m partial to a different interpretation, that’s more like “go doesn’t require as much thinking as Haskell, so you can use your thinking for the problem you’re trying to solve instead of the language”.

I think you're being too charitable here. Rob Pike is a very smart and articulate guy. If he had wanted to say "go doesn’t require as much thinking as Haskell, so you can use your thinking for the problem you’re trying to solve instead of the language", then he would have. Instead he took a dig at google employees. Make of that what you will, but I don't think it's case of him mean anything other than exactly what he said.

Re:Go 1.18 by philosopher1234 on Tuesday March 15, 2022 @06:35PM (#30692841)
How you'd like to understand him is up to you, but even if he does think we're all idiots, I think my point stands.
Re:Go 1.18 by codr7 on Tuesday March 15, 2022 @04:51PM (#30691517)
The real problem is designing tools for people who are not as smart.

Because it's not that simple, and no one likes being judged and talked down to.