Live data from Hacker News

A Farewell to Go

churchwood.at

51–60 of 85 posts

Re: A Farewell to Go

#51
post #42
post #39

Earlier quoted context omitted.

What is the Go way to implement a generic data structure that can't be trivially realised by wrapping a couple maps and arrays into a struct (without using interface{} and throwing away the safety Go's type system, such as it is, provides)?

You first reconsider your need to make a generic data structure and evaluate on a case by case basis.

That's a glib answer. You end up with a bunch of duplicated code when you do this.

Re: A Farewell to Go

#52
post #42

Earlier quoted context omitted.

You first reconsider your need to make a generic data structure and evaluate on a case by case basis.

That's a glib answer. You end up with a bunch of duplicated code when you do this.

How often do you implement generic data structures in your code? The last time you wrote one was probably in your data structures class.

Re: A Farewell to Go

#53
post #34

1. Strict Enforcement of the Google Code Guidelines People who are undisciplined typically don't like discipline when they first encounter it. This doesn't restrict "Coding style" like the author suggests. Coding style and code format shouldn't be conflated. 2. Broken Package Management It's not broken; it's intentionally limited. A "vendor" directory is natively supported by Go to account for this; use Glide or simi…

Except go does have inheritance... basically:

https://play.golang.org/p/yDejKzS4EQ

Re: A Farewell to Go

#54
I'm learning Go for working with distributed systems and blockchains, but I'm basically another C#/.NET dude. Apart from the requirements to follow and maintain certain Google Guidelines, I don't mind the language to be honest. Looks neat to me.

Re: A Farewell to Go

#55
I might as well use this thread as an announcement that I'm extremely excited to be working in Go in the near future.

Go appears to have all but monopolized most of the really exciting / modern Cloud Infrastructure open source projects, and from what I can tell it's going to be a joy to work with given the number of solid web frameworks that exist.

Re: A Farewell to Go

#56
post #54

I'm learning Go for working with distributed systems and blockchains, but I'm basically another C#/.NET dude. Apart from the requirements to follow and maintain certain Google Guidelines, I don't mind the language to be honest. Looks neat to me.

Interestingly, I've been learning Go by reading the goethereum codebase. Any more awesome codebase pointers would be appreciated too. Thanks all.

Re: A Farewell to Go

#57

Haven't used Go in about a year and change, is Google going to pull an Angular and pull the rug out from under developers for Go 2.0?

I certainly hope not. Can't speak for Angular, but in Python land, ~9 years later, people are still cleaning up the fallout of the changes from Python 2 to Python 3. It wouldn't bode too well for such a young language as Go to go through the same process. My personal observations are that Go is gaining a lot of steam in many places. Announcing that they will break compatibility would make those places strongly recons…

> Announcing that they will break compatibility would make those places strongly reconsider their commitment to Go.

Umm, they've actually announced the opposite. Not sure why you say that.

Re: A Farewell to Go

#58
post #52

Earlier quoted context omitted.

That's a glib answer. You end up with a bunch of duplicated code when you do this.

How often do you implement generic data structures in your code? The last time you wrote one was probably in your data structures class.

There are many, many, many "legitimate" "real-world" situations where you need data structures ouside of the two or three Go gives you by default. Queues? Dequeues? Trees, for the love of $DEITY? Tries? Sets?

Effective use of Golang is really teaching yourself to think that anything beyond the language is a useless distraction or some kind of academic pretension. I won't go so far as to call it S________ S_______, but this is textbook Blub.

Re: A Farewell to Go

#59
post #3

I disagree with the authors feelings on code formatting. Gofmt is one of the best features of Go, especially when reading others code.

I can agree with gofmt being great, but I can't agree that a simple newline before a brace should be treated as a syntax error. You're forced to use Google's coding style, whether you like it or not. Preferred coding style is subjective, and Go ignores the fact that not everyone works for Google.

I don't know why they are modding you down, but is true, code formatting is subjetive and Google enginers do not hold universal truth.

Re: A Farewell to Go

#60
post #31

Go's most impressive feature to me is it's build ecosystem. Took one of Tyler Treat's experiments and had it running within 30 minutes, no real previous Go build experience. The language itself? Meh. Python/Haskell/C/LLVM IR cover my use cases. I see Go as another wrapper on top of LLVM IR when it is convenient and that is it.

I thought go compiled to native directly? Does it use LLVM under the hood?
Post reply on HN