4 ms·
This is why I like Go and the stdlib. Its very much "do it yourself" unless we are talking about monumental libraries for very specific applications. Outside of
by sweeter 3y ago
This is why I like Go and the stdlib. Its very much "do it yourself" unless we are talking about monumental libraries for very specific applications. Outside of that if we are talking about simple libraries that do one simple thing, its better to just roll your own using the stdlib. Almost all of the building blocks are there.
On the other hand its really nice that any git repo can host a Go lib and anyone can use it from that url
- MrDresden 3y agoNever used Go, but I much more prefer a proper stdlib that covers most base cases so that there isn't a need for rolling-your-own each time, or worse using a badly made/maintained bloated third party lib. Examples of excellent stdlibs in my opinion would be for instance Kotlin and Python.
- LamaOfRuin 3y agoI think that's what they were saying (and what I would agree with). The Go std lib is very complete for important things, especially in the context of networked services. So the default is that you don't have to pull in many libraries for common needs.
- scubbo 3y ago> The Go std lib is very complete for important things Important thing like sets[0], or get-with-default from maps[1], or enums[2], or appending-to[3] or mapping-over[4] slices? [0] https://stackoverflow.com/questions/34018908/golang-why-dont-we-have-a-set-datastructure/34020023#34020023 https://stackoverflow.com/questions/34018908/golang-why-dont... [1] https://www.digitalocean.com/community/tutorials/understanding-maps-in-go#checking-existence https://www.digitalocean.com/community/tutorials/understandi... [2] https://stackoverflow.com/questions/14426366/what-is-an-idiomatic-way-of-representing-enums-in-go https://stackoverflow.com/questions/14426366/what-is-an-idio... [3] https://go.dev/tour/moretypes/15 https://go.dev/tour/moretypes/15 [4] https://stackoverflow.com/questions/71624828/is-there-a-way-to-map-an-array-of-objects-in-go/71624929#71624929 https://stackoverflow.com/questions/71624828/is-there-a-way-...
- MrDresden 3y ago> This is why I like Go and the stdlib. Its very much "do it yourself" unless we are talking about monumental libraries for very specific applications. I took this to mean that Go's stdlib required a lot of 'do-it-yourself' implementations.
- scubbo 3y agoI too have noticed this tendency for the GoLang community to prefer for everyone to reimplement basic functionality from scratch rather than have it provided.