ultimate-go
Learning and science
programming language notes
SHOW HN2020
185points
82comments
#308of 3,028 in 2020
Top 11%of 2020 by points
How HN took it
DebatedReal support and real criticism
5 positive, 7 neutral or asking, 0 mixed, 8 critical, out of 20 comments about the project. Thread score -0.08.
Docs: 3 for, 6 againstExecution: 0 for, 2 againstIdea: 1 for, 0 against
The thread, comment by comment
Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.
positive neutral or mixed critical about another commenter or something else the maker
What HN said
What people liked
Useful notes and examples for learning Go
From 3 comments
Thank you. I am just beginning to learn Go. This will be very useful to me. If anyone knows similar notes for Python & C#, please reply.
mylinkedlist on HNIt has Go code with comments which are notes to the author. just like the title of this post. would be useful to somebody, seems like a good idea to me.
colesantiago on HNThanks for the work. It's quite some materials to compile. I love how you organize your thoughts and knowledge together and I've just started doing that too.
oldgun on HN
Objections
Enum and array examples contain non-idiomatic or incorrect Go
From 4 comments
Warning: opinions inbound I clicked one part (enums) and noticed a pretty glaring issue. The way you are doing enums is really _not_ conventional Go code and probably not…
sjroot on HNI checked out the example code for arrays…
sauerbraten on HN> in Go there are no uninitialized arrays (or slices) This is a little murky and misleading. In Go, you can actually save memory by 'declaring' only. For example, if you do var x…
axaxs on HNMuch like the github link, you're confusing slices with arrays. Slices can be nil (data=nil, len=cap=0) or non-nil (data points somewhere, len and cap are what they are), but…
yencabulator on HN
Examples lack explanation, e.g. unexported identifier examples
From 1 comment
My first click was the link for "Accessing a value of an unexported identifier". Figured I'd see some reflection trick or similar. In looking at that code I still have no idea…
cy_hauser on HN
Requests
Clearer exposition in examples
From 1 comment
My first click was the link for "Accessing a value of an unexported identifier". Figured I'd see some reflection trick or similar. In looking at that code I still have no idea…
cy_hauser on HN
Questions
Whether iota or string constants are better for enums
From 2 comments
I use this pattern without iota; tending towards constants as strings. This allows it to "serialize" to strings nicely instead of exposing useless (without context) integers Do…
arwineap on HNWhat is the advantage of building out enums your way vs OPs? I've done both ways, and I didn't find any situations where one was demonstrably better than the other. Is it that…
curryst on HN
Alternatives named
Go by Example and learnxinyminutes
From 1 comment
I haven't looked through all of them, but I came across this website recently. https://learnxinyminutes.com/ I think it's more geared towards people who have experience in one…
lattalayta on HN
Go 101
From 1 comment
good stuff, there is another really good GO online book: Go 101,https://go101.org/ a lot of details, has been really helpful for me to advance in Go
hujun on HN