TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

The Go Programming Language by Brian W. Kernighan, Alan Donovan

396 点作者 davecheney大约 10 年前

32 条评论

vezzy-fnord大约 10 年前
What made Go click for me is a simple realization: it&#x27;s a language made by systems people, not by PL researchers.<p>Everything makes sense after that. The language in isolation is boring and perhaps even anachronistic: a modern ALGOL dialect with first-class green threads.<p>But as many people have said, the tooling and the libraries are simply top-notch. This is unsurprising: the people behind Go all have experience with things such as Research Unix, Plan 9 and just infrastructure in general. They&#x27;ve been instrumental in shaping up the lower level workings of our present systems, so they&#x27;re intimately aware of those aspects. 9P, Acme, rio, the Acid debugger, the Plan 9 compiler collection... among other tools, reflect that their brilliance is in engineering rather than science.<p>But more importantly: these people are experts in managing complexity and <i>integrating</i> things. Thus, in isolation, Go&#x27;s components look bland and uninteresting. Cumulatively, they form a unique experience. Hence why Go has such a strong culture of &quot;pragmatism&quot; that a lot of PL geeks scoff at.<p>So I&#x27;ve pretty much stopped thinking of Go the language, but rather Go the toolchain.
eric_bullington大约 10 年前
I&#x27;ve not been a huge fan of Go (more of a Rust person). However, seeing these authors, I&#x27;m now itching to get my hands on a copy of this book and give Go another shot.<p>I wish I didn&#x27;t have to wait until the summer for it!<p>Edit: Also, I realize it&#x27;s unfair to compare Rust to Go, since they really fill two different PL niches. I actually think there is plenty of room for both languages. By my statement above, I just meant that I&#x27;m more drawn to Rust&#x27;s functionally-influenced approach than Go&#x27;s modern take on the imperative paradigm.
评论 #9150560 未加载
评论 #9150607 未加载
评论 #9150868 未加载
评论 #9150841 未加载
sesteel大约 10 年前
Go, with its simplicity, is a gift from the generation of masters to today&#x27;s professionals, but many of today&#x27;s professionals appear too ignorant to see the wisdom of the language. It used to drive me crazy when I would read negative comments in r&#x2F;programming and HN, but I don&#x27;t even pay attention to the negative comments anymore. The adoption is far better than I was afraid it was going to be.
评论 #9152029 未加载
评论 #9150948 未加载
评论 #9151356 未加载
评论 #9150872 未加载
评论 #9151417 未加载
评论 #9151277 未加载
评论 #9151582 未加载
评论 #9150855 未加载
评论 #9152937 未加载
评论 #9152955 未加载
评论 #9150889 未加载
评论 #9150860 未加载
评论 #9155272 未加载
评论 #9151963 未加载
评论 #9151059 未加载
评论 #9153497 未加载
jgrahamc大约 10 年前
Oh. Thank goodness for that.<p>Now I can resist every publisher that wants me to write a book on Go, and tell myself that was OK to do because I&#x27;d never write as good a book as those two.
评论 #9150506 未加载
sgt大约 10 年前
For those of you who are not familiar with &quot;The C Programming Language&quot; (also written by Kernighan), see: <a href="http://www.amazon.com/C-Programming-Language-2nd/dp/0131103628/ref=sr_1_1?s=books&amp;ie=UTF8&amp;qid=1425561072&amp;sr=1-1&amp;keywords=the+c+programming+language" rel="nofollow">http:&#x2F;&#x2F;www.amazon.com&#x2F;C-Programming-Language-2nd&#x2F;dp&#x2F;01311036...</a>
aikah大约 10 年前
I have mixed feelings about Go.<p>For those who didn&#x27;t try it yet here are the biggest advantages of Go:<p>- it&#x27;s totally easy to learn and can be mastered in a day<p>- it&#x27;s fast and typesafe<p>- the concurrency model is great,no question<p>- I personally like the error system, no exceptions but you can still &quot;bubble up&quot; errors with multiple return types<p>- it has, in my opinion a comprehensive standard library,you can even do websockets and image compression with it.<p>The draw backs :<p>- no generics clearly the biggest drawback, which means a lot of copy and paste<p>- the lack of idiomatic way to deal with dependencies(no defacto package manager)<p>I think the ease of use justifies Go adoption in any team. It doesn&#x27;t replace ruby or python for web programming ( little value in coding a CMS in Go , rails makes more sense),but when it comes to backend or webservices, it&#x27;s a killer tool.<p>compared to java, it&#x27;s as fast and consumes WAY less memory.
评论 #9154524 未加载
评论 #9154697 未加载
评论 #9154921 未加载
评论 #9155016 未加载
评论 #9155221 未加载
评论 #9154517 未加载
chrisallick大约 10 年前
I was a bit surprised by the length. Not a huge difference, but one of the best things about the K&amp;R book was how short it was. But, I too have been been curious to look into Go. This might be the excuse I needed.
评论 #9150734 未加载
rdegges大约 10 年前
YES. I read and re-read the original K&amp;R (The C Programming Language) book many times as a child. It&#x27;s one of my favorite tech books ever written: clear, concise, challenging, useful.<p>I&#x27;ve recently started writing more and more code in Go, for simple performance reasons, and it&#x27;d be amazingly great to relive the K&amp;R wonders of my childhood with a new language =)<p>Just pre-ordered a copy, can&#x27;t wait.
meddlepal大约 10 年前
I look forward to the time when Go adds generics and all the people who told me that you don&#x27;t need generics in Go start telling me how awesome and super-duper useful generics are.
评论 #9151717 未加载
评论 #9151577 未加载
评论 #9152263 未加载
评论 #9151760 未加载
kylek大约 10 年前
Awesome. For those who don&#x27;t know, Kernighan is the &quot;k&quot; in &quot;awk&quot; :)
评论 #9151205 未加载
wsloth514大约 10 年前
It&#x27;s Brian Kernighan, enough said. I am sold.
评论 #9150944 未加载
评论 #9150711 未加载
cyber1大约 10 年前
Good news! I think Go is the best alternative between C speed and simplicity of Python!
chiph大约 10 年前
320 pages vs. 274 for the 2nd edition of <i>The C Programming Language</i>. Not bad, considering how much more &quot;stuff&quot; Go has in it vs. K&amp;R C.
frou_dh大约 10 年前
Anyone know if Kernighan has written a lot of Go code himself, or is he onboard more for his technical writing skills?<p>(There&#x27;s the Bell Labs connection of course)
评论 #9153037 未加载
评论 #9151850 未加载
评论 #9151901 未加载
waitingkuo大约 10 年前
That&#x27;s really a good news. &quot;The C Programming Language&quot; is one of my favourite book. This should the next one!
pjmorris大约 10 年前
&quot;Good Programming is not learned from generalities, but by seeing how significant programs can be made clean, easy to read, easy to maintain and modify, human-engineered, efficient, and reliable, by the application of common sense and good programming practices. Careful study and imitation of good programs leads to better writing.&quot; - [1]<p>I&#x27;m a huge fan, have nearly everything Kernighan&#x27;s been involved with, and have profited greatly from his writing. I look forward to picking up the Go book, and modernizing a bit.<p>[1] &#x27;Software Tools&#x27;, Brian Kernighan, P.J. Plauger, 1976
tempodox大约 10 年前
In my personal view, I find it disappointing that someone like Brian Kernighan, as a co-author of C, only got as far as Go. I would have loved it much more to see him working on a language like Rust, that actually seems to point to the future of programming languages (or does its best at it), while Go looks like a stopgap and a dead end right from the beginning.<p>Go seems a fine piece of engineering in so far as it directly implements Google politics &amp; some of their technical interests, but it&#x27;s of little use outside of that, despite all the hype. A pity, really.
评论 #9150916 未加载
评论 #9150911 未加载
评论 #9153320 未加载
评论 #9150802 未加载
评论 #9150920 未加载
评论 #9150837 未加载
评论 #9150940 未加载
LVB大约 10 年前
It has been a long time since I bought a hardcopy programming book. Alternate forms of documentation and a Safari subscription have replaced these semi-frequent purchases. And although I can&#x27;t argue against the practicality and economics of this new way, it certainly evokes none of the excitement of getting the new language book home, cracking the binding, and spending the rest of the evening curled up on the couch.<p>Go has been my most used new language and the timing of this book is good. I&#x27;m looking forward to adding it to my (real) bookshelf.
crncosta大约 10 年前
I would like to take a glance. Does any one know where is the Table of Content? Thanks.
评论 #9150869 未加载
FanaHOVA大约 10 年前
The book is the #1 Best Seller in Computer Programming Languages and it&#x27;s not even been released yet.. wow! I&#x27;m studying their C book right now for a university class, probably going to pick this one up right after.
rjammala大约 10 年前
Thanks Dave for the link. I just pre-ordered the book :-)
signa11大约 10 年前
for folks who don&#x27;t know it (yet), here is the toc: <a href="http://www.informit.com/store/go-programming-language-9780134190440" rel="nofollow">http:&#x2F;&#x2F;www.informit.com&#x2F;store&#x2F;go-programming-language-978013...</a>
zapf大约 10 年前
No Kindle edition? :-(
评论 #9152669 未加载
评论 #9150766 未加载
touristtam大约 10 年前
Honest question here: Why do I need a book about Go when all the doc is living online? that just feels so 90&#x27;s.
ChuckMcM大约 10 年前
Too bad you can&#x27;t buy it in a Kindle edition, I would have bought that.
enahs-sf大约 10 年前
All the fun of The C Programming Language with none of the K&amp;R braces!
e12e大约 10 年前
Am I blind, or is there only a paperback edition, no digital version?
dsuth大约 10 年前
Great, now I have to learn Go to justify getting this book!
xasos大约 10 年前
Does anyone know if they are selling a digital version?
评论 #9152847 未加载
chrisdotcode大约 10 年前
There&#x27;s a common saying that, &quot;Everything about Go is great - except the language&quot;.<p>I guess a book written by Kernighan himself shows how wonderful the ecosystem is.
评论 #9150978 未加载
ProfOak_大约 10 年前
So when do we start calling this K&amp;D?
wyc大约 10 年前
Well, goodbye $40.