TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Learn Go: Hand-crafted Go exercises and examples

222 pointsby inancgumusabout 5 years ago

10 comments

slimsagabout 5 years ago
Observation: I see that you do 26 exercises before doing anything with pointers.<p>I often wonder if one of the reasons Go is more &quot;simple&quot; or approachable to some is because you can, to a large extent, ignore pointers and interfaces and &quot;just write that weird little * or &amp; in some places&quot; and get away with it. Whereas, I believe in other languages, this is much less possible (e.g. in Java or Rust you need to learn about less &quot;just logic&quot; traits of the language earlier on (class inheritance, generics or Options, borrow checking, etc.)<p>I&#x27;m not saying the above is a good thing, but I often wonder if there aren&#x27;t ways to make this more of an incremental learning curve in other languages in a similar way that you can largely ignore pointers in Go for a long time and be productive without understanding them. What would a similar incremental learning curve for generics be?
评论 #23211028 未加载
评论 #23206844 未加载
评论 #23208882 未加载
gotoelevenabout 5 years ago
Sure they&#x27;re hand crafted but are they artisinal and free range and carbon neutral?
评论 #23206961 未加载
ganstylesabout 5 years ago
This looks pretty cool. When I was learning Go a long time ago, I used a site called Gophercises and found it really helped me understand the language better.
efiechoabout 5 years ago
I have not yet been able to find a simple &quot;Hello World&quot; example of starting a new project with Go modules instead of $GOPATH.
评论 #23210213 未加载
评论 #23210235 未加载
评论 #23226221 未加载
gotzmannabout 5 years ago
I&#x27;ve compiled a few interesting quizzes about Go&#x27;s slices: <a href="https:&#x2F;&#x2F;medium.com&#x2F;@gotzmann&#x2F;so-you-think-you-know-go-c5164b0d0511" rel="nofollow">https:&#x2F;&#x2F;medium.com&#x2F;@gotzmann&#x2F;so-you-think-you-know-go-c5164b...</a>
notokayabout 5 years ago
Why snaps? Is apt-get not good for you already? What&#x27;s wrong with it?
crunchbang123about 5 years ago
If you&#x27;re interested in interactive language learning exercises, then try codewars(<a href="https:&#x2F;&#x2F;www.codewars.com" rel="nofollow">https:&#x2F;&#x2F;www.codewars.com</a>)
mpoteatabout 5 years ago
I can never tell whether these titles are referring to the programming language or the board game.
评论 #23206751 未加载
评论 #23206962 未加载
edemabout 5 years ago
This doesn&#x27;t ask the most important question: why would I learn Go at all?
评论 #23208785 未加载
评论 #23208048 未加载
评论 #23208438 未加载
评论 #23208332 未加载
评论 #23207054 未加载
评论 #23208269 未加载
alexandrerondabout 5 years ago
This is great, but I think it should be written in Rust.<p>It will then run way faster and be completely bug free.
评论 #23282400 未加载