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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Web Development in Go

139 点作者 kevinburke大约 8 年前

10 条评论

atarian大约 8 年前
&gt;Compared with Ruby, PHP, Python, or Javascript, you&#x27;re going to get great memory and latency performance, and libraries that do what you expect.<p>Isn&#x27;t picking a language to solve memory&#x2F;latency issues a pre-optimization? Also I&#x27;m not sure if one can argue that libraries from one particular language are better at doing what you expect than libraries from another language.<p>Disclaimer: I&#x27;m trying to understand how much of what people are saying about Go is hype. People are telling me things like you can cross-compile on different platforms and output a binary, but I fail to see how these things are important for most API&#x27;s and web apps.
评论 #14081258 未加载
评论 #14081415 未加载
评论 #14081070 未加载
评论 #14081095 未加载
评论 #14081293 未加载
评论 #14081690 未加载
评论 #14081321 未加载
评论 #14081477 未加载
评论 #14083340 未加载
评论 #14081083 未加载
评论 #14084577 未加载
fideloper大约 8 年前
I personally prefer whatever language&#x2F;framework gets value out the door quickest on the side of handling HTTP requests (e.g. rails or laravel for the front-facing items) and something like Golang for plumbing or work that requires speed&#x2F;CPU optimization - queue workers, file manipulation, data streaming, whatever.<p>Golang (and NodeJS) both feel really kludgy to me when getting into things like handling form submissions (validating input, redirecting with error&#x2F;success messages, and all those tedious things that the popular frameworks abstract away the best they can).
评论 #14081251 未加载
评论 #14081566 未加载
评论 #14081505 未加载
patrickmn大约 8 年前
NaCl&#x27;s secretbox for encrypting the session cookie - nice
weberc2大约 8 年前
What&#x27;s lacking in the HTTP library? The stock router isn&#x27;t great, but it&#x27;s pluggable. Also, serving static files has never been a problem http.StripPrefix(&quot;&#x2F;tmp&quot;, http.FileServer(http.Dir(&quot;&#x2F;tmp&quot;))) (or something like that, I forget the details). I guess I didn&#x27;t find it very hard to get into web development in Go with the standard library; I&#x27;m not sure there&#x27;s enough friction to justify diving into third party libraries. :&#x2F;
评论 #14080839 未加载
Gonzih大约 8 年前
What about templating, middlewares, security, authentication, authorization? Do I need to glue this from custom libraries to the web server myself every time I start a new project?
评论 #14082172 未加载
positr0n大约 8 年前
Is the flash message setup a standard way implement that type of functionality?? Encrypting the cookie with a key that is delivered client side anyway seems like it doesn&#x27;t buy you anything.
评论 #14080497 未加载
评论 #14080797 未加载
meow_mix大约 8 年前
How good are the ORMs options in Go? One of the reasons Rails is my go-to for web development is how easy Active Record it makes configuration and changing databases.
评论 #14081187 未加载
评论 #14081122 未加载
评论 #14081192 未加载
评论 #14081180 未加载
评论 #14081176 未加载
评论 #14085032 未加载
conroy大约 8 年前
On the subject of Go web development, I&#x27;ll plug one of my favorite libraries: <a href="https:&#x2F;&#x2F;goji.io" rel="nofollow">https:&#x2F;&#x2F;goji.io</a>. It&#x27;s a super-fast HTTP router that supports middleware and pattern matching.
评论 #14081796 未加载
评论 #14081294 未加载
hasenj大约 8 年前
Does go have any advantage over other compiled languages, like say, swift?<p>For example: <a href="https:&#x2F;&#x2F;vapor.codes" rel="nofollow">https:&#x2F;&#x2F;vapor.codes</a>
评论 #14080825 未加载
评论 #14081111 未加载
评论 #14080958 未加载
评论 #14080945 未加载
评论 #14082243 未加载
update大约 8 年前
&gt; You should write your next web server in Go<p>Are people writing their own web servers these days? is that a thing? Seems like everyone uses nginx.
评论 #14081158 未加载