Posts

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.

agocke,
@agocke@hachyderm.io avatar

@tannergooding @khalidabuhakmeh @bradwilson yes. That was the core design of the previous feature. But I want the opposite.

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@agocke @tannergooding @bradwilson If you want it, that’s all the reason we need. Ship it!

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.

BadPrepper,

@bradwilson They're both trying to kill America in their own ways but I suppose we probably shouldn't give power to the literal criminal tyrant. At least Biden's just trying to balkanize the US into falling apart and maybe we can do something like the EU after that.

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

khalidabuhakmeh, (edited )
@khalidabuhakmeh@mastodon.social avatar

@bradwilson They are available in prerelease right now. I just added them to a local language server.

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.

maartenballiauw,
@maartenballiauw@mastodon.online avatar

@bradwilson @SmartmanApps Found it faster but a minor difference. Seems to have more to do with Defender being async on dev drive

bradwilson,
@bradwilson@mastodon.social avatar

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

bradwilson, to random
@bradwilson@mastodon.social avatar

Oh no, it seems like the analyzer support in Visual Studio 2022 17.10 is broken.

Previously when you changed the target selector in the drop-down (see the screenshot), the analyzers would only show issues related to that target. Now it's showing all analyzer issues related to all targets, all the time.

This makes it almost impossible for me to interactively test how my analyzers work for a given target.

Hope there's a way for me to undo this somehow.

bradwilson, to github
@bradwilson@mastodon.social avatar

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

mihamarkic,
@mihamarkic@mastodon.social avatar

@bradwilson My first thought as well after updating VS :)

ythos,
@ythos@dotnet.social avatar

@bradwilson Options->All Settings->Visual Experience->Hide Copilot Badge

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

I don't understand why @bot exists when you can subscribe to hashtags. What's the value-add?

matt,
@matt@social.mattburkedev.com avatar

@bradwilson @dotnetbot for small instances, hashtag search is not good. Only shows posts that somehow federated to your instance which in my case is just me. But I can follow the bot directly to make sure they get here.

bradwilson,
@bradwilson@mastodon.social avatar

@matt @dotnetbot I guess you're assuming that all the hashtags would end up on dotnet.social, which isn't necessarily true either, but probably more true for your small instance. So you're still not getting everything... just more.

Reasonable use case then, I guess, but it sort of suggests that such bots should be on the biggest possible server.

bradwilson, to random
@bradwilson@mastodon.social avatar

I love TDD but sometimes I hate following the hashtag (purposefully not linked here) because of the posts by Scrum Shills. (Apologies if you're really into Scrum, but from my perspective it's nothing but Agile Amway.)

bradwilson,
@bradwilson@mastodon.social avatar

Hmm, maybe I should just filter Scrum.

bradwilson,
@bradwilson@mastodon.social avatar

😂

bradwilson, to dotnet
@bradwilson@mastodon.social avatar

Pro-tip for the day:

dotnet does not appear to require a trailing backslash when you define a custom NuGet package cache path via env var NUGET_PACKAGES but Visual Studio does.

Good:
NUGET_PACKAGES=X:.nuget\packages\

Bad:
NUGET_PACKAGES=X:.nuget\packages

jaredpar,
@jaredpar@hachyderm.io avatar

@bradwilson we had to start normalizing away the \ in the compiler to avoid this problem

bradwilson,
@bradwilson@mastodon.social avatar

@jaredpar I assume the answer is replacing string-concatenated paths with Path.Combine. More typing for more safety. MSBuild files tend to be all about the string concatenated paths. 😔

bradwilson, to TeslaMotors
@bradwilson@mastodon.social avatar
banana,
@banana@hachyderm.io avatar

@bradwilson there are a lot of BYD and GWM/Haval cars on the roads here (australia) these days. of course, we don’t have a local industry to protect - but surely the u.s. would be better off subsidising its own carmakers and exposing them to some competition, rather than giving them no incentive to improve…

bradwilson,
@bradwilson@mastodon.social avatar

@banana It sort of does with the (means limited) $7500 instant rebate, assuming the car meets the rules (half for US assembly, and half for US battery components).

  • 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