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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: HaxlSharp – Concurrent data fetching and request deduplication in C#

32 点作者 ppcsf将近 9 年前

3 条评论

zzzcpan将近 9 年前
&gt; Writing asynchronous code is error-prone; Asynchronous code obscures the meaning of what we&#x27;re trying to achieve; Programmers are bad at reasoning about asynchronous code<p>This is simply incorrect. There is a lot of FUD about this, but it doesn&#x27;t make a smallest difference for a code with essential complexity of a typical CRUD app. But once you need to deal even with slightly more essential complexity, like managing a pool of connections, cancelling them, reconnecting, asynchronous code comes to the rescue, with all the callbacks and higher-order functions. Synchronous looking code cannot help with asynchronous problems, no matter how hard you try. It can only introduce additional accidental complexity. It&#x27;s better to have and get used to a solid asynchronous foundation to begin with.
评论 #11905309 未加载
bbcbasic将近 9 年前
This style of programming reminds me of SQL where you specify intent and let a query optimiser work out the execution plan. I like it. Not sure this is production ready but it&#x27;d be fun to try at work.
NKCSS将近 9 年前
When reading, I thought: do I really need a framework for this? I&#x27;ve written simular batching before in c# but for the more elaborate cases, it makes sense and the de-duplication and only retrieving once to ensure all instances are the same looks nice; well done!
评论 #11904376 未加载