74 points · by radimm · 5y ago · 71 comments
I wonder why that is.
Note: I could have facts wrong but this is the general impression left which is just as important for respondents on this survey item.
I'd be happy to expand upon that if you would like.
That's not even accounting for how perhaps the focus exclusively on American issues could leave the the rest of the world feeling less welcome?
Some folks actively avoid politics, and seeing it at Go doesn't increase my confidence in the judgement of the folks leading Go.
The "you're actively with us, otherwise you're against us" mindset must learn nuance. Not everybody has to be political all of the time.
It's true that some companies might do diversity poorly and hire solely to hit diversity numbers. I don't personally feel good about that. However, in practice I've seen companies that focus on diversity adopt the practice of putting more effort into reaching out to diverse candidates, but have the exact same hiring process & hiring bar applied to them. Those reasonable companies don't make the news -- after all, the unreasonable stories tend to be the ones that get attention.
Again, it's not to say that your concern never happens. However, framing diversity as if it was fundamentally at odds with competence, especially in a completely unrelated thread about a programming language, does a disservice to both diversity _and_ competence.
This is in the context of open-source projects where identity does not matter (and is often not known).
Golang is an extremely simple language (a good thing, IMHO!), but that means two things:
1) a simple language may lack safety features (e.g. anyone can ignore an err or forget to check for nil pointers), which lead to the need to compensate in other ways, which leads to:
2) the bikeshedding bar is very low in simple languages, and it can lead to institutionalizing opinions in the form of styleguide gospels or other types of "improvements" (think overuse of patterns in Java, another relatively simple language), to the point where the institutional rules put off newcomers who were expecting a breath of fresh air but instead find an "old boys club" (in the sense that they don't feel they have leverage to discuss whatever rules have been set).
I also see this phenomenon in other areas, for example, in Javascript, eslint/prettier are supposed to curb bikeshedding, yet there's an awkward dynamic when a new employee wants a new rule, and what follows is 2 hours of bikeshedding with the old guard.
Mozilla got it right on that one.
Setting aside "right" from a technical perspective, the Prettier response to the issue was very, very disappointing.
68% is a lot and I hope it lead to have more mature web libraries in the future. I'm comparing it to other languages Java(e.g. Spring), PHP(e.g. Laravel & Symfony), Ruby(e.g. Rails), NodeJS(e.g. NestJS & NextJS) and I think Go community has a long way to go.
We had a discussion recently about building an internal web app and I had no chance to even defend Spring against Laravel yet alone Golang (My current team mainly uses Spring). It's just crazy how much scaffolding they have in place for web development. You get clean authentication with email verification and 2FA, and profile, team and roles management running in 5 minutes. And their collection library has most if not all of the Java Stream features. Then you spend another 5 minutes to add a scaffolding for building administration panels. And they are together just 3 months of development work if you ask me.
So as much as I love the idea of building your own stuff, I can't defend it when it comes to raw components for web development like authentication and admins panels.
Rather than editors being at fault, could these indicate that Go is a bit too verbose? I wonder if generic functions will affect this. I rarely write Go, but I can imagine autocompletion macros for `err != ...` could help.
GoLand does a better job and is more stable and reliable than VSCode here, even having to restart the daemon from time to time for VSCode. Of course it could also be what you said, I can only write for myself. I hope they will be able to introduce stability and reliability of the former.
No, I think it’s just that the Go language server, last I used it, had lots of trouble dealing with completion for code that lives in another module. GoLand did much better in this regard, but I suspect it’s not used nearly as much as VSCode, hence the response.
I wonder what everyone else is doing.
if err != nil { return |, err }
I can't believe how much I need this, on the one hand I love how error handling is explicit, but also the amount of times I handle an error and just pass it means the above code is used a lot.
We could generate Go from some other language, but I can’t assume any team will buy into that.
Recently I wrote something very different, more low level. Rather than handlers it had a number of goroutines looping, selecting, and sending to channels. In this case explicit errors were a lot more useful. If it had been a language with exceptions and I had forgotten a try/catch, it could have killed one of my loops. Not good!
This is the kind of use case that fits well for Go. I think it’s a systems glue language that just happens to be friendly enough to invite abuse in mundane backend business logic tasks. But using it that way is setting yourself up for frustration.
Java's Checked Exceptions was less invasive and API polluting than this is because at least it didn't get in the way of these types of calls where the error should just shortcut. More importantly in Java you could hide the errors behind a generic RuntimeException if from that point up there was nothing anything could do but generically deal with the error. Panic/Recover is similar but very discouraged for this sort of usage pattern.
Go could do with a decent GUI framework, I think a lot of people would like something that isn't Visual Studio C#/C++ for this purpose but its not Go (or rust) at this point.
It's interesting to read comments by employees of american corporations that act like members of a national-socialist organization(of workers).
There are people from Europe(not western) that became almost suicidal after working in those environments in US. Main principles of some organizations are pathological lying and suppression of free speech in any forms.
That banner is like a test of obedience. Anyone who questions it - is problematic, "toxic". It doesn't matter what that banner contains.
Obey. "They Live" movie.(1988, John Carpenter)
That's way more than what I could guess!
That seems completely fine to me, really.
The articles are a semi-random selection of what is on the internet. The comments are from the HN community, which by being part of, is almost self-selecting interesting and stimulating content for yourself.