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

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

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

bradwilson,
@bradwilson@mastodon.social avatar

@SmartmanApps The worst part is there's a perfectly good API (Path.Combine) that would let them ignore the problem wholesale.

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. 😔

StevenJV, to dotnet
@StevenJV@curmudgeon.cafe avatar

Am I the only one who wants dotnet format to be usable against just a single file, rather than [<PROJECT | SOLUTION>] ? I'm only working in one file, I really don't want 732 files changed in this commit. We'll get to them when we get to them.

bradwilson,
@bradwilson@mastodon.social avatar

@StevenJV I am thoroughly displeased with "dotnet format" and have continued to use "dotnet-format" instead (despite the fact that it's sorely out of date w/ C# versions).

I don't know if it can do just one file, but it can definitely do just one folder.

https://www.nuget.org/packages/dotnet-format

bradwilson,
@bradwilson@mastodon.social avatar

@JoeyRobichaud @StevenJV Just FYI, dotnet format does not support --folder, that's the older dotnet-format.

The performance difference between the two is staggering to the point of dotnet format being unusable.

bradwilson,
@bradwilson@mastodon.social avatar

@KirillOsenkov @JoeyRobichaud @StevenJV Seems like I should investigate using CSharpier... Thanks!

marick, to emacs
@marick@mstdn.social avatar

I am being a good little programmer and adding docstrings to some Elixir code. I hate looking at it. It so gets in the way of the code; see below.

I want an keypress that hides all lines between two regexps (One for @…doc…”””; one for the ending “””.) Weirdly, I can’t find anything. I used to be good at Elisp/Emacs programming, but I pretty much stopped doing that around 30 years ago. So looking for something similar I can hack on (or package that obviates the need to).

Any pointers?

bradwilson,
@bradwilson@mastodon.social avatar

@marick I am mostly pleased with the XML Doc Comments in C# because the compiler (and the IDE, in real time) can tell you when you're missing things (like an undocumented parameter) or screwing things up (like documenting a parameter that doesn't exist). Not perfect, but I wouldn't want it to live somewhere else just because I like the proximity to the signature to see the issues in real time.

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

@banana It's kinda ridiculous actually.

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).

bradwilson, to windows
@bradwilson@mastodon.social avatar

Found my first issue with using a Dev Drive, and wanting to have access to it from WSL: apparently the way Dev Drives mount in Windows is not compatible with the WSL auto-mounting.

Why does this matter? Docker Desktop (in WSL 2 mode) can't mount a Dev Drive folder.

Do I dump WSL 2 mode for Docker? Or do I dump Dev Drive? Tough choice, but I suspect I dump the Dev Drive.

#DevDrive #Windows #WSL #Docker

In WSL 2, /mnt/c/Dev gets an I/O error because "cannot read symbolic link".
Trying to mount C:\Dev on Docker in Windows (running in WSL 2 mode) claims it can't create /run/desktop/mnt/host/c/Dev because the file exists (but in reality, the error is that it can't read that folder from WSL).

bradwilson,
@bradwilson@mastodon.social avatar

I can verify that if your Dev Drive is mounted as a drive instead of as a sub-folder, then Docker can do its thing just fine.

bradwilson,
@bradwilson@mastodon.social avatar

@heaths I don't understand what you're saying.

At the end of the day, I'm trying to run Docker mounting a folder under my C:\Dev folder (which is a mounted Dev Drive). What does VHDX or containers have to do with that?

bradwilson,
@bradwilson@mastodon.social avatar

@jakecarpenter No full Visual Studio == no Brad

(Don't bother recommending alternatives; there aren't any for someone who needs to build and test Visual Studio extensions.)

bradwilson,
@bradwilson@mastodon.social avatar

@heaths The build times with Dev Drives is definitely faster, but not so much faster that it actually matters. The easiest path seems to be to just dump Dev Drive.

bradwilson,
@bradwilson@mastodon.social avatar

Okay, final piece of the puzzle.

If I use a Dev Drive mounted as a drive letter, then use MKLINK /J to make a junction point from my desired local location to the Dev Drive, that's something WSL 2 does understand, and transparently translates that to a symbolic link in Linux terms. So it's really just using Disk Manager to mount it directly into the file system that's the problem.

So I can keep my Dev Drive and get Docker to volume mount things for me again! 🎉

Screen shot showing C:\Dev is now a junction rather than a raw filesystem mount, and Docker in WSL 2 mode does not have any problem mounting it now.

bradwilson, to github
@bradwilson@mastodon.social avatar

There is something wrong with this #GitHub #UX that I can't quite understand how to fix, but the problem is this:

Almost 100% of the time when I'm writing a response in a discussion, I want it to be in response to an existing thread, not as a new post. But this UI just screams "new post please!" and relegates the "reply" functionality to visual second class.

bradwilson,
@bradwilson@mastodon.social avatar

Am I alone in this workflow?

  • Write a response and post it

  • Realize it's a "new answer" instead of a "reply"

  • Click "edit" on the new answer

  • Copy the Markdown into the "reply" field

  • Click cancel on the "edit"

  • Post the content in the "reply" box where you meant to in the first place

  • Delete the "new answer"

It's basically happening 100%. My brain is just not remembering how I fuck this up Every. Single. Time.

bradwilson,
@bradwilson@mastodon.social avatar

@jaykul The complaint I consistently heard about Teams (this is several years ago now) was that their chat model basically forced everything into threads. It was very bad at just "stream of consciousness" chatting, which was how 99% of team channels in Slack worked.

bradwilson, to random
@bradwilson@mastodon.social avatar

Trike prepped, need to take it out for a quick spin today before the rain hits to make sure everything is running okay. And I cleaned it because it had been my constant shame to see it sitting dirty in my garage for the last 6 months. 😂

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