Hacker GitHub

← All repos

davidfowl/AspNetCoreDiagnosticScenarios

View on GitHub ↗ ★ 8,505 C#

This repository has examples of broken patterns in ASP.NET Core applications

18 mentions on Hacker News by 13 people: 4 stories, 14 comments · first 2021-08-20 · latest 2025-02-12

Mentions per year 18 mentions · busiest year 2023 (9)
20082026
  1. …model is complex enough to warrant a FAQ, https://devblogs.microsoft.com/dotnet/configureawait-faq https://github.com/davidfowl/AspNetCoreDiagnosticScenarios/b...
    comment by pjmlp · 2024-07-17 · in Java Virtual Threads: A Case Study
  2. Important: following #prefer-asyncawait-over-directly-returning-task from https://github.com/davidfowl/AspNetCoreDiagnosticScenarios/b... is not correct. The concerns raised are niche and edge case and task must always be forwarded as is…
    comment by neonsunset · 2024-04-30 · in Asynchronous Programming in C#
  3. …by the .NET architects, and there was a research project to add Go/Java co-routines as well. https://github.com/davidfowl/AspNetCoreDiagnosticScenarios/b... https://twitter.com/davidfowl/status/1532880744732758018?lan...…
    comment by pjmlp · 2023-09-25 · in The State of Async Rust: Runtimes
  4. This one? https://github.com/davidfowl/AspNetCoreDiagnosticScenarios/b...
    comment by throwaway2037 · 2023-09-17 · in Java 21 makes me like Java again
  5. Here, https://github.com/davidfowl/AspNetCoreDiagnosticScenarios/b... https://github.com/dotnet/runtimelab/issues/2398
    comment by pjmlp · 2023-09-17 · in Java 21 makes me like Java again
  6. …fine in C#, there is a reason why one of ASP.NET architects has written a guide of best practices. https://github.com/davidfowl/AspNetCoreDiagnosticScenarios/b... Ironically, C++'s design is heavily related to C#, as the initial proposal…
    comment by pjmlp · 2023-08-13 · in The Downsides of C++ Coroutines
  7. …into Task.Run() or similar. There is a best practices guideline from one of the ASP.NET architects, https://github.com/davidfowl/AspNetCoreDiagnosticScenarios/b... During last year they researched adding Go/Java's approach to .NET, but now…
  8. …This is the best practices of async/await in .NET as written by one of the ASP.NET architects, https://github.com/davidfowl/AspNetCoreDiagnosticScenarios/b...
  9. …of a completed Task in C#. To make this simple they introduced async Main[2] a few years ago. [1]: https://github.com/davidfowl/AspNetCoreDiagnosticScenarios/b... [2]: https://github.com/dotnet/csharplang/blob/main/proposals/csh...
  10. …the hell is going on? Do you remember ConfigureAwait(false)? Years later such guidance compiled: https://github.com/davidfowl/AspNetCoreDiagnosticScenarios/b...
    comment by serguzest · 2023-03-18 · in How Async/Await Works in C#
  11. FYI, if you plan to do this in ASP netcore, combine with AsyncLazy for the most optimal results https://github.com/davidfowl/AspNetCoreDiagnosticScenarios/b...
  12. Unfortunately, there are problems with both of those approaches: https://github.com/davidfowl/AspNetCoreDiagnosticScenarios/b... I don't know if it extends to other language implementations, but C# does not seem to have a reliable…
  13. …it pays to avoid the async state machine. I'm curious if others could expand on this one. [1] https://github.com/davidfowl/AspNetCoreDiagnosticScenarios/b...
    comment by cmpb · 2021-09-24 · in Asynchronous Programming in C#
  14. …being written eons ago. I'd recommend David Fowler's async guidance for a modern take: https://github.com/davidfowl/AspNetCoreDiagnosticScenarios/b... `.GetAwaiter().GetResult()` is generally considered the best way to do it if you must do…
    comment by Hawxy · 2021-08-20 · in Performance Improvements in .NET 6