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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: What would you like to see in the Golang course?

16 点作者 atrust超过 9 年前
I'm working on a training course (text/video) devoted to Golang. Curious if there are any (advanced?) topics, which would definitely be worth to add to the course. Any ideas/recommendations?

6 条评论

patio11超过 9 年前
Relevant to my interests! Here&#x27;s some stuff I would have enjoyed learning prior to learning it the hard way:<p>a) Databases. What&#x27;s the right way to work with them in Golang?<p>b) Suppose you&#x27;re building an API which has some shared state. (Like, I don&#x27;t know, a stock exchange&#x27;s order book or something, to pick an example randomly.) What&#x27;s the best way to model that such that you can access it concurrently in an arbitrary number of simultaneous HTTP requests?<p>c) Supposing that one understands goroutines at a Golang 101 level, where does one go from there? I ended up having lots of fun on e.g. fanning out data incoming from N sources to one channel back out to M consumers which each need a copy of everything on that channel. This felt excessively painful to me. How do I do it in a way which is not excessively painful?
评论 #10123687 未加载
评论 #10122331 未加载
lsiebert超过 9 年前
Go concurrency and distributed programming patterns, with examples for different problems that devs often face, including how to test them.<p>Database examples need to provide instructions for getting to a working configuration, testing with a different database, etc.<p>honestly go look at Stack overflow and see where people get stuck.
lazyfunctor超过 9 年前
1. Better understanding of goroutines &amp; channels (what patio11 already mentioned). 2. Some more insight into error handling (maybe something on the lines of <a href="http:&#x2F;&#x2F;www.golangpatterns.info&#x2F;error-handling" rel="nofollow">http:&#x2F;&#x2F;www.golangpatterns.info&#x2F;error-handling</a>)
tmaly超过 9 年前
I would like to see practical use cases. A step beyond the gobyexample site. Something more like the Perl cookbook
评论 #10131173 未加载
daxfohl超过 9 年前
Evolution? Okay, maybe this is political, but in a training course I&#x27;d really need to see how a language has evolved to meet new challenges. Because if it&#x27;s not a top-5 language, and it&#x27;s not evolving, then why should someone care?
senthilnayagam超过 9 年前
for most developers Golang is not the first or primary language.<p>how to port a ruby, python or java code to golang would be useful.<p>there are libraries like gox, but I would like a good tutorial to cross platform applications.<p>personally I would like to learn to build gui apps, android apps in go.
评论 #10122390 未加载
评论 #10121822 未加载