Replies

This profile is from a federated server and may be incomplete. Browse more on the original instance.

bradwilson, (edited ) to dotnet
@bradwilson@mastodon.social avatar

This is super duper extra important.

C# Nullable Reference Types are a compile-time thing, not a runtime thing. "string?" and "string" are both just "string" at runtime.

This means:

  • Always guard against your users passing null even for types that shouldn't allow it, because it's not a runtime guarantee.

  • You can't create overloads that differ only on nullability (i.e., Method(string) vs. Method(string?)) because they're the same type at runtime.

bradwilson,
@bradwilson@mastodon.social avatar

@peterritchie This toot was inspired by a back and forth going on right now in an issue for xUnit.net. 😂

bradwilson,
@bradwilson@mastodon.social avatar

@range_marten That's because int isn't a reference type, so we're not talking about nullable reference types (where null was already implicitly allowed). Value types could never be null, so even in .NET 1.0 "int" could not be null.

bradwilson,
@bradwilson@mastodon.social avatar

@tannergooding @khalidabuhakmeh We already have an analyzer that catches this for you, and it only flags public/protected APIs: https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1062

It seems trivial to convert this into an auto-generated guard. /shrug

bradwilson,
@bradwilson@mastodon.social avatar

@khalidabuhakmeh @tannergooding I don't understand why you think that.

bradwilson,
@bradwilson@mastodon.social avatar

@khalidabuhakmeh @tannergooding BTW, I'm talking about the compiler doing this, not a Roslyn source generator.

hotdogsladies, to random
@hotdogsladies@mastodon.social avatar

Release it on Blu-Ray, you fucking cowards.

https://www.youtube.com/watch?v=q0xkMfiHIec

bradwilson,
@bradwilson@mastodon.social avatar

@hotdogsladies What a fantastic restoration 😍

AtheistIntelligence, to random
@AtheistIntelligence@mas.to avatar

What world do we live in where dogs are permitted to drive?

bradwilson,
@bradwilson@mastodon.social avatar

@AtheistIntelligence He's a good doggo, you leave him alone 😂

too_little_caffeine, to Palestine
@too_little_caffeine@dotnet.social avatar

At this point, Biden is either:

  1. Unwillfully ignorant of the wanton slaughter of civilians in Gaza
  2. Willfully ignorant of the wanton slaughter of civilians in Gaza
  3. Complicit in the wanton slaughter of civilians in Gaza

Any one of these being true means that he is not fit to be President of the United States.

bradwilson,
@bradwilson@mastodon.social avatar

@too_little_caffeine Still better than the alternative who wants to end democracy.

bradwilson, to LEGO
@bradwilson@mastodon.social avatar

A little more than halfway through and it's starting to take shape.

bradwilson,
@bradwilson@mastodon.social avatar
bradwilson, to dotnet
@bradwilson@mastodon.social avatar

Anybody know when we get the 4.10 NuGet packages (like Microsoft.CodeAnalysis)?

I'm assuming they're going to follow the "even" pattern and declare 17.10 as LTSC, which means I will want to officially support Roslyn 4.10. Both of these pages are currently out of date:

https://learn.microsoft.com/en-us/visualstudio/productinfo/vs-servicing

https://learn.microsoft.com/en-us/visualstudio/extensibility/roslyn-version-support?view=vs-2022

bradwilson,
@bradwilson@mastodon.social avatar

@khalidabuhakmeh I know, but I'm not shipping @xunit analyzers linked against a pre-release library.

bradwilson, to dotnet
@bradwilson@mastodon.social avatar

I've been noticing whole-machine slow downs whenever I heavily use my Dev Drive (for example, building source) that are just unacceptable.

A common example is I'll start a full build in Visual Studio and then go to type in Windows Terminal and everything I type will be delayed by multiple seconds. Even pasting will show only a few characters at a time.

So, back to raw SSD and (sigh) NTFS for now.

bradwilson,
@bradwilson@mastodon.social avatar

@rockylhotka I was using a physical partition.

bradwilson,
@bradwilson@mastodon.social avatar
bradwilson,
@bradwilson@mastodon.social avatar

@SmartmanApps @maartenballiauw These were the numbers I got for building xUnit.net. https://mastodon.social/@bradwilson/111350356901810814

bradwilson,
@bradwilson@mastodon.social avatar

@maartenballiauw @SmartmanApps I always exclude my source folder from Defender.

khalidabuhakmeh, to dotnet
@khalidabuhakmeh@mastodon.social avatar

Should the community read this list in an order of priority?

bradwilson,
@bradwilson@mastodon.social avatar

@khalidabuhakmeh @elan @KirillOsenkov The real problem is that Microsoft tries a lot in the developer UX space that ends up abandoned. Being wary of MAUI is smart, given how many false starts they've had trying to replace WinForms. Aspire is too new to know if it'll stick. I'm just glad I don't have to think about web development ever again. 😂

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • slotface
  • ethstaker
  • cubers
  • khanakhh
  • Durango
  • rosin
  • tacticalgear
  • magazineikmin
  • thenastyranch
  • DreamBathrooms
  • Youngstown
  • mdbf
  • InstantRegret
  • provamag3
  • kavyap
  • cisconetworking
  • modclub
  • osvaldo12
  • normalnudes
  • everett
  • GTA5RPClips
  • ngwrru68w68
  • Leos
  • anitta
  • megavids
  • tester
  • lostlight
  • All magazines