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

bradwilson

@bradwilson@mastodon.social

#Code #Motorcycles #Music #BoardGames #VideoGames #Photography #AntiFascist #AntiRacist #PostTheist #Feminist #EV #GreenEnergy #BlackLivesMatter | https://dotnet.social/@xunit's caretaker | He/him | 0.00115 miles tall

Previously: GitHub, Microsoft, and others.
Now: Living that retired life.

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 😂

bradwilson, to random
@bradwilson@mastodon.social avatar

Just a reminder: Voting in the primaries is about trying to find your perfect candidate. Voting in the general is about picking the one that's better than the other.

And in 2024, one is trying to end democracy. You don't get to sit this vote out just because neither is the perfect candidate, because your inaction may mean there are no more votes, ever.

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 vscode
@bradwilson@mastodon.social avatar

Does anybody know if there's a way in VS Code to tell the HTML and Markdown editors what the "root" of the site is?

I have a project where the web root lives under /site rather than / in the project, but the HTML and Markdown editors assume the root of the project == the root of the site. Short of opening just the site folder, is there a way to tell the editors where to look when doing Intellisense for links and to resolve static content in the Markdown preview?

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 random
@bradwilson@mastodon.social avatar

One thing that never occurred to me until retirement is how much my awareness of holidays was driven by my work schedule. Last night my sister asked me what I was doing for Memorial Day and of course I had totally forgotten it was coming up. That never happened when it was also tied to the all important bonus day off. 😂

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

Pretty sure I'm not old enough to forget my birthday yet.

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.

bradwilson, to github
@bradwilson@mastodon.social avatar

How do I remove the button from 2022 17.10 menu bar?

bradwilson,
@bradwilson@mastodon.social avatar

@ythos Your settings window looks very different, visually, from mine.

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
  • ethstaker
  • rosin
  • mdbf
  • DreamBathrooms
  • khanakhh
  • magazineikmin
  • GTA5RPClips
  • InstantRegret
  • everett
  • Youngstown
  • modclub
  • slotface
  • kavyap
  • normalnudes
  • ngwrru68w68
  • thenastyranch
  • osvaldo12
  • tacticalgear
  • cubers
  • tester
  • anitta
  • Leos
  • Durango
  • cisconetworking
  • provamag3
  • megavids
  • lostlight
  • All magazines