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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Do you worry that changes in .Net could leave people behind?

5 点作者 D_Guidi将近 6 年前

2 条评论

UglyToad将近 6 年前
Interested to hear of other people&#x27;s experiences with async await either in C# or other languages. It took a while to click for me in C# but now I understand it, it seems intuitive and usable and I&#x27;d be interested to know if there are superior alternatives.<p>The thing about ConfigureAwait, for those who aren&#x27;t familiar with .NET is, as far as I understand it, about the context on the thread prior to the async call (this used to include things like the User in an HTTP context) being restored on the thread which resumes after the call. In a sync block on async calls this could cause deadlocking due to the waiting thread not being able to get the context since it never got released. But as far as I&#x27;m aware in .NET Core 2 this is no longer a problem for Web apps anyway.<p>I know there&#x27;s been a lot of talk about Rust adopting a slightly different approach and JavaScript seems to have gone through about 3 iterations so there are definitely different models out there, I just find it hard to picture how different models work so it would be good to know some guides or tutorials to check out for other good systems.
qes将近 6 年前
&gt; I think EF needs to expand its reach far beyond relational databases.<p>I&#x27;m not sure I could disagree more. I don&#x27;t think it&#x27;s feasible to abstract away the underlying realities of different data stores. That tends to end in a mediocre API that handcuffs you from utilizing the advantages of choosing varying data stores in the first place.<p>ORMs in general already suffer this criticism with relational data stores. Trying to make an ORM cover documents and graphs and whatever else will be worse.<p>I also thought the Microsoft and the .Net community were moving away from stuffing everything and the kitchen sink in together.