Maybe that's because yield was already taken (at least in C#, which I think was one of the originators of the whole async/await stuff).
06.08.2025 09:35 โ ๐ 2 ๐ 0 ๐ฌ 0 ๐ 0@joao.antunes.dev
Code, headbang, grouch, repeat! ๐จโ๐ป๐ค๐๐ Writing and talking about code, headbanging @ concerts, ranting @ anywhere. He/him https://antunes.dev & https://blog.codingmilitia.com
Maybe that's because yield was already taken (at least in C#, which I think was one of the originators of the whole async/await stuff).
06.08.2025 09:35 โ ๐ 2 ๐ 0 ๐ฌ 0 ๐ 0Nope, still there with you
05.08.2025 21:23 โ ๐ 2 ๐ 0 ๐ฌ 0 ๐ 0For a moment, I naively thought (hoped?) the PR got merged, then looked more closely ๐
26.07.2025 09:25 โ ๐ 0 ๐ 0 ๐ฌ 1 ๐ 0Screenshot of a portion of .NET documentation about dictionaries, reading: "Use AI to initialize a dictionary You can use AI tools, such as GitHub Copilot, to generate C# code to initialize a dictionary with a collection initializer. You can customize the prompt to add specifics per your requirements. The following text shows an example prompt for Copilot Chat:" Then a "code" box appears with a prompt reading: "Generate C# code to initialize Dictionary<int, Employee> using key-value pairs within the collection initializer. The employee class is a record class with two properties: Name and Age." Wraps up with the usual warnings about generative AI being crap, reading: "GitHub Copilot is powered by AI, so surprises and mistakes are possible. For more information, see Copilot FAQs"
What in the actual hell is this ๐ฉ?
Saw someone sharing it, thought it was a joke, but alas, this is really there in the docs. I don't even have words to describe the utter nonsense that this is.
#DotNet #CSharp
learn.microsoft.com/en-us/dotnet...
Learned this, the hard way, a few years back ๐
blog.codingmilitia.com/2022/09/01/b...
Blogged: Unexpected inconsistency in records - codeblog.jonskeet.uk/2025/07/19/u... - if you use C# records and the "with" operator, I'd suggest reading this to avoid a footgun you may be unaware of
19.07.2025 13:08 โ ๐ 56 ๐ 13 ๐ฌ 5 ๐ 2๐ฐ dotnet cake.cs - Cake.Sdk Preview!
New way to get Cake .NET tool scripting in .NET console apps:
โ
File-based builds (.NET 10)
โ
Project-based builds (.NET 8/9/10)
โ
Auto-generated aliases
โ
Full addin/module support
Early feedback wanted!
cakebuild.net/blog/2025/07...
#CakeBuild #DotNet
"dotnet cake.cs"
#dotnet #cake #devops #itshappening #staytuned
New one up ๐๏ธ
"Adopting Problem Details for HTTP APIs"
In which I rant a bit, but also provide a glimpse into how we're approaching it at work.
#OpenApi #HttpApi #ProblemDetails #DotNet #CSharp
blog.codingmilitia.com/2025/07/15/a...
WeTransfer just changed their TOS giving themselves permission to train AI on any content you transfer and produce derivative works based on content you transfer that they are allowed to monetize and you are not allowed payment for.
Stop using WeTransfer.
Does nobody care about providing information about what went wrong when handling an API request? I'd think this should be a must from the get go, but given its complete absence from the framework and lack of folks asking for it, maybe I'm the minority here.
14.07.2025 18:46 โ ๐ 0 ๐ 0 ๐ฌ 0 ๐ 0Kind of sad that the linked issue, about being able to tailor a nice 400 response with actionable information for the API client, doesn't seem to even come close to be a priority.
#DotNet #CSharp #MinimalApis
github.com/dotnet/aspne...
In preparation for publishing v3 3.0.0, we've switched over to the new website at xunit.net (and new.xunit.net is no longer published).
The new content lives at github.com/xunit/xunit.... (the old `gh-pages` branch of xunit/xunit will be deleted soon).
Let us know of any issues with the new site!
Creating #DotNet new templates is such a pain ๐ฎโ๐จ
Either Rider could use some improved support there, or I'm "holding it wrong" ๐
I just published a blog post about the OpenCLI initiative. I think it's time we had a way to standardize CLI automation!
Feedback, suggestions, and thoughts are more than welcome.
patriksvensson.se/posts/2025/0...
Link to the (terse) release notes github.com/YakShaveFx/o...
07.07.2025 13:36 โ ๐ 0 ๐ 0 ๐ฌ 0 ๐ 0Not much user facing going on (other than renaming some metrics), but the new version has some resiliency improvements to help when there are infrastructure issues (i.e. problems with the database or message broker).
07.07.2025 13:36 โ ๐ 0 ๐ 0 ๐ฌ 1 ๐ 0New version of #OutboxKit out, focused on resiliency.
#DotNet #CSharp #OutboxPattern
outboxkit.yakshavefx.dev
In mid 2010's? I still have to fight/workaround this resistance to using different stacks and we're mid 2025 ๐
Folks probably missed the memo around these parts ๐
we have never been more back than right now, at this very moment, as you read this
01.07.2025 02:19 โ ๐ 26 ๐ 5 ๐ฌ 0 ๐ 0Yeah, makes total sense!
It's just that, out of habit, I defaulted to want to touch the application and not the collector config ๐
Many thanks for the input!
30.06.2025 09:29 โ ๐ 0 ๐ 0 ๐ฌ 1 ๐ 0Ok, I think I see what you mean. Instead of touching the application, I could improve the sampling logic to keep these traces (e.g. HTTP requests with 4xx responses).
30.06.2025 09:27 โ ๐ 2 ๐ 0 ๐ฌ 1 ๐ 0Would it make sense to set the request span status to error, or would that be a dirty hack, which would do the trick, but isn't a good practice?
30.06.2025 09:08 โ ๐ 0 ๐ 0 ๐ฌ 1 ๐ 0However, we're using tail sampling, sampling a small percentage of the total traces, as well as any trace that has an error status.
This means there's a high likelihood the trace id won't be found, cause the problem details are returned as part of the normal flow of the request handling.
Hey @martindotnet.bsky.social , would love a quick opinion ๐
We're using problem details to provide our API clients with information about issues with the requests (validation, domain, etc), including a trace id in the payload.
Can't find information in the code, comments, docs, nothing. Ideally, the unit should be encoded with a type (strongly typed languages and all that), but at least give me a clearer parameter name or a comment ๐
30.06.2025 08:42 โ ๐ 0 ๐ 0 ๐ฌ 0 ๐ 0A screenshot of a Java method named setSizeThreshold, which has a single parameter named sizeThreshold. This method is part of a FileCompactionStrategy.Builder class, and serves to set the maximum file size before compaction is triggered. Nowhere in the code does it say the unit associated with this size threshold.
Gotta love methods and parameters with vague names.
What's the unit for this size threshold? I have to assume it's bytes, but as the saying goes "assumption is the mother of all f***-ups", so I shouldn't be assuming anything ๐
Absolutely incredible turnout for Budapest Pride! So proud of all the organizers, including some old friends, who estimate hundreds of thousandsโ major embarrassment to Orban
28.06.2025 17:23 โ ๐ 39082 ๐ 8185 ๐ฌ 520 ๐ 818The worst part is that we have an administration now that wants people to use fossil fuels. Trump would have children shoveling coal into the data center hatch if it made him money somehow.
Iโm so tired of people handwaving the environmental impact. They did the same thing with web3.