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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Programming vs. Software Engineering (Rust vs. Go)

42 点作者 stareatgoats9 个月前

8 条评论

dannersy9 个月前
It is hard for me to rebut all the points in this article because my experience is entirely the opposite save for the point of simple syntax.<p>In opposition to another comment here claiming the UUID example is fantastic, the author admits that their criticism is surface level at best:<p>&quot;Here is a telling example: Go&#x27;s most popular UUID library ... has 165 commits and 0 dependencies. Rust&#x27;s most popular UUID library ... has 1594 commits. *I didn&#x27;t analyze* why so many commits were needed to generate UUIDs, *but* something is clearly wrong.&quot;
评论 #41254418 未加载
remkop229 个月前
Quantum number of dependencies for the uuid crate? By default it actually has none. If you were to enable the `v4` feature, it only pulls in `getrandom` for platform independent rng. All other dependencies are disabled by default or are dev dependencies used in tests.
评论 #41257479 未加载
matly9 个月前
Very fun article to read! There&#x27;s one catch: Go styleguides strongly recommend short variable names. They do have a whole chapter about single&#x2F;double letter vars [1] which boils down to: They have their place, as receiver variables and in any place where the short name would be too repetitive.<p>1: <a href="https:&#x2F;&#x2F;google.github.io&#x2F;styleguide&#x2F;go&#x2F;decisions.html" rel="nofollow">https:&#x2F;&#x2F;google.github.io&#x2F;styleguide&#x2F;go&#x2F;decisions.html</a>
jmartin26839 个月前
I couldn’t possibly disagree with every point in this post any more. Rust is bad because.. people update things? What?
评论 #41255052 未加载
bfrog9 个月前
State typing is there to enforce rules at build time. This can be an amazing thing to put on a problem where valid states aren’t obvious. Maybe I’m alone but I like stuff that enforces rules at compile time.<p>What I don’t like is getting phone calls in the middle of vacations or weekends. I like to optimize for that.
kaycey20229 个月前
I&#x27;m also at the early stages of learning Rust, but looking at the comments regarding a large number of transient dependencies I can&#x27;t help but wonder if a tradeoff is being ignored.<p>For example take the implementation of the New Relic agent in elixir lang. There the maintainers at some point swung between using httpc or httpoison as the HTTP client. Neither of these clients are perfect and in some cases don&#x27;t account well for scenarios like the presence of a Proxy. It would be better to able to switch to better, newer clients but unfortunately the project has the client baked in.<p>Now this problem can be simply attributed to the project, but something tells me while rust&#x27;s &quot;use your own building blocks&quot; approach has bled into projects beign used here. This might result in some exessive tediousness for an end user, it is still a better approach to building apps in a language environment that is obviously still in early days.
acl7779 个月前
great article highlighting how a programming language&#x27;s design philosophy can make such a big difference - the UUID example, fantastic.<p>I found it funny when I was reading, in the middle article there was an ad for a book to be a production grade Rust programmer - if anything, that article convinced me to go with Go ;-)
zeristor9 个月前
Looking at this from my work machine and a malware detection warning came up.
评论 #41254228 未加载