Best book to pick up Go for an advanced developer?

polaris · · 647 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>I&#39;m a developer with more than 15 years experience, fairly efficient in C, C++, Java, Perl, Python, and played around with a couple of others. Looking to pick up Go. </p> <p>I specifically would like a short book that won&#39;t get into what a loop is, what OOP is, or how a garbage collector works. Rather, something in the style &#34;here&#39;s the syntax, here are the tools, and that&#39;s the Go-ish way of writing things.&#34;</p> <p>I remember to like &#34;Dive into Python&#34; very much when I was learning Python.</p> <p>Thanks!</p> <hr/>**评论:**<br/><br/>kaeshiwaza: <pre><p>&#34;The Go programming Language&#34; from Kernighan and Donovan is what you need.</p></pre>callcifer: <pre><p><a href="http://www.amazon.com/Programming-Language-Addison-Wesley-Professional-Computing/dp/0134190440/" rel="nofollow">Link</a> to said book.</p></pre>Injunire: <pre><p>This is a great book, I&#39;ve been working through it over the past month and have learned a ton.</p></pre>dominotw: <pre><p>This book is really boring. Who want to read through boring babble about one feature after another. This book is nothing like the &#39;The C programming language&#39; , totally misleading book title.</p> <p>Just read <a href="https://golang.org/doc/effective_go.html" rel="nofollow">effective go</a> and fill in the holes in your knowledge as you go.</p></pre>lkjhgfds2: <pre><p>No need for a book for that sort of thing.</p> <p>Do the <a href="https://tour.golang.org/welcome/1" rel="nofollow">tour</a>, and read <a href="https://golang.org/doc/code.html" rel="nofollow">How to Write Go Code</a>, then read <a href="https://golang.org/doc/effective_go.html" rel="nofollow">Effective Go</a>.</p></pre>nyoungman: <pre><p>Effective Go and the <a href="https://golang.org/ref/spec" rel="nofollow">Language Spec</a> are great resources.</p> <p><a href="http://www.gopl.io/" rel="nofollow">The Go Programming Language</a> by K&amp;D and <a href="http://goinactionbook.com/" rel="nofollow">Go In Action</a> are the two most recently published books for the working developer picking up Go.</p> <p>If you like, you can also follow Gopher Book on Twitter where I mention new books as I hear about them. <a href="https://twitter.com/gopherbook" rel="nofollow">https://twitter.com/gopherbook</a></p></pre>weberc2: <pre><p>I think I picked up Go in a couple hours, mostly via the <a href="https://tour.golang.org/welcome/1" rel="nofollow">tour</a>. A book seems like overkill and then some.</p></pre>kromem: <pre><p>You actually will want something that delves into OOP in Go. </p> <p>Go is actually quite different in how you abstract code than most other OOP languages I&#39;ve worked with. The two big points are that there is no inheritance and that interfaces are automatically satisfied as long as the object has the appropriate methods. </p> <p>These two differences will be a huge pain when you start working in Go, but once you adjust to it, you&#39;ll wish other languages were the same. Go is more than syntax - there are major philosophical differences as well. (Not as extreme as, say, a functional programming language vs object language, but significant nonetheless). </p> <p>&#34;The Go Programming Language&#34; is your most comprehensive bet. Also, take some time to read over the standard library when you understand the principles to see some best practices in action. </p></pre>nyoungman: <pre><p>This is a very important point. Also key is that methods can be attached to any (user-defined) type, not just structures. That includes integers, strings, even maps and arrays.</p> <p>Go isn&#39;t like languages that provide every feature of existing languages. It&#39;s a minimal language in the style of C. To enjoy Go, it&#39;s necessary to throw out preconceptions of &#34;how it&#39;s done&#34;.</p> <p>For anyone wanting a taste of OOP in Go, I wrote an article three years ago, but I believe it&#39;s still relevant: <a href="https://nathany.com/good/" rel="nofollow">https://nathany.com/good/</a></p></pre>RevMen: <pre><p>I just started digging into Go a couple of weeks ago, so I&#39;m in a similar situation.</p> <p>I think <a href="http://openmymind.net/The-Little-Go-Book/" rel="nofollow">The Little Go Book</a> is the kind of thing you&#39;re asking about, and I found it helpful.</p> <p>I picked up quite a bit by watching some videos.</p> <p>The 53-minute <a href="https://youtu.be/CF9S4QZuV30" rel="nofollow">Go Programming</a> by Derek Banas is a really good way to go over all of the important parts of the language. He moves at a speed that is appropriate for a developer with experience in other languages.</p> <p>I also got a lot out of watching various videos by <a href="https://www.youtube.com/channel/UCElzlyMtkoXaO3kFa5HL0Xw" rel="nofollow">Todd McLeod</a></p></pre>ardanstudios: <pre><p>If you would like a free copy of the Go In Action book, please send me an email and tell me which format you prefer. That goes for anyone. <a href="mailto:bill@ardanlabs.com" rel="nofollow">bill@ardanlabs.com</a></p></pre>srbufi: <pre><p>Don&#39;t think anything like that exists at the moment for Go. The Go Programming Language by Donovan and Kernighan probably has the best examples, though. </p></pre>benjabs: <pre><p>Here is an upcoming Golang book that could help you out: <a href="http://goprogramminglanguage.com/golang-books" rel="nofollow">Simple Golang: Learn By Doing Practical Exercises</a></p></pre>uncreativemynameis: <pre><p>Along with others said, gobyexample.com is good for learning the syntax.</p></pre>

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

647 次点击  
加入收藏 微博
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传