I had a non productive evening last night. I have been reading a book on Go and it assumed that I had previous knowledge in programming.
I, however, was okay with this since I have done a bit of python before. I also took a comp101 course a long time ago with Processing. I read up until pointers on the book I linked before and then it became too hard to follow, specially with channels, interfaces etc. I actually had to study what pointers and closures are from various online sources instead of the book. (I still don't fully understand how returning functions work because of the lack of exercise). So I have been searching a good golang book that's a bit more verbose and explains what those are. So far I have came across books that are either
too short: does not discuss the topic at hand at all, only describes how to perform certain things in Go (instead of describing what those certain things at first)
too verbose, while it doesn't really describe what the topic is, the book goes into the deepest detail of Golang itself.
I guess my option is to learn C or Java first although I was really fascinated with Golang or give up on Golang. What are your tips?
You may be tempted to say things like
"Oh, Go is not a beginners language"
I beg to disagree, what makes C, C++, Java, Python, Javascript etc a beginners language? A good introductory book? Am I wrong to choose my favourite language? How did people learn those languages when there was no introductory books?
"Why are you choosing go over [x]"
I like the philosophy described here
"How new are you"
Very. I understand what what basic things like conditional statements are. But I don't know what Channels, Interfaces, Closures and Lambdas, Methods, hashes etc are.
TLDR: What's a good Golang book to read for complete novice programmer? (First "big boy" language)
评论:
scottjbarr:
bruce3434:Have a look at The Little Go Book. It sounds like it would suit what you're looking for. http://openmymind.net/The-Little-Go-Book/
Also, take a look at the Go by Example website https://gobyexample.com/
IMHO, Go is a great language to get started with as it is quite a "small" language.
I suggest that you don't worry too much about Channels and advanced topics until you can read and write simpler Go programs. The concurrency model that Go provides is amazing, but get through more basic concepts first.
snippet2:Go by Example website
That website was very helpful as I was looking through topics. Thanks for your book suggestion. I will look into it.
bruce3434:Davy is great. https://dave.cheney.net/resources-for-new-go-programmers
Todd is awesome too. https://youtu.be/c7XMV2HM6IQ
https://mobile.twitter.com/todd_mcleod?lang=en
Newstack is great http://thenewstack.io/make-a-restful-json-api-go/
Books on it. https://github.com/dariubs/GoBooks
Nice resource on structs and interfaces https://www.golang-book.com/books/intro/9
Just golang news https://golangnews.com
I see you are a Linux guy. May I suggest the new Ubuntu budgie? https://budgie-remix.org
schoenobates:I tried budgie in my Arch install couple of years ago and I could have sworn ubuntu budgie was not a thing last December.
I'll give it a try on my spare partition, I'm currently on Ubuntu GNOME LTS.
bruce3434:Hey /u/bruce3434 - welcome aboard :)
I would recommend the following for beginners that have some experience with another language:
1) http://www.gopl.io/ - this is a great reference gives you everything, nuts, bolts, kitchen sink and the house. It's worth keeping this on the side to dip into 2) The go tour https://tour.golang.org - I really would start here first 3) As /u/scottjbarr already pointed out, https://gobyexample.com/ just super handy
Of course, always post to reddit and we can help as well :)
HTH!
Thanks /u/schoenobates. It seems we have a nice community here.
