@matt@social.mattburkedev.com avatar

matt

@matt@social.mattburkedev.com

Software Engineer in Kansas City

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?

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.

jeremydmiller, to random
@jeremydmiller@hachyderm.io avatar

I went through the arguments about "persistence ignorance" in the late 00's on the "pure domain model" side of things. But just like then and now, you incur so much more ceremony with your persistence tooling that I'm dubious that it completely pays off. Older me is okay with compromising to make the persistence easier. Or to use separate types for persistence and logic if the overhead isn't too awful. Or going to an FP-lite approach that separates logic from data more.

matt,
@matt@social.mattburkedev.com avatar

@jeremydmiller @khalidabuhakmeh this is so rough in the app I’m currently helping with. Lots of mapping from entities to models, doing work in the models, then mapping back to entities to save. ORM loses all context on changes, you have to do manual work to merge lists, it’s just awful and slow

khalidabuhakmeh, to dotnet
@khalidabuhakmeh@mastodon.social avatar

Silly question for folks. Does Release mode automatically call String.Intern on strings? I only ask because I ran a benchmark, and doing it explicitly versus not doing it amounts to identical results.

It might also be a release optimization for StreamReader.

Both methods show identical results.

matt,
@matt@social.mattburkedev.com avatar

@khalidabuhakmeh interesting. I’d expect Intern to be slower bc it has to search the intern pool for a match or create a new entry. It’s a bit slower in the benchmark but not by much. What are you hoping to prove about interning? From my recollection the benefits of manual intern are extremely use-case specific and not broadly applicable

searls, to random

Ever since the LLM boom started, I've been saying that AI code generation's biggest impact will be to increase the burden on highly-skilled programmers to wade through the mountains of code created by less-skilled programmers.

The fact that I had to struggle mightily to write code when I was less skilled is how I gained the skill I have. Feels like AI code generation is stunting the development of the next generation of programmers. https://justin.searls.co/shots/2023-10-17-08h04m28s/

matt,
@matt@social.mattburkedev.com avatar

@searls my experience has been that the LLMs can be bad with the subtleties. We see it with react useEffect a lot. It often over uses the hook itself or adds wrong or missing dependencies. Devs keep relying on it no matter how much you try to educate

matt, to dotnet
@matt@social.mattburkedev.com avatar

This api call makes 11k db calls and we wonder why the app is slow

khalidabuhakmeh, to dotnet
@khalidabuhakmeh@mastodon.social avatar

It will be an exciting problem for salespeople to explain why the half of the team has to pay for VS Code while the side doesn’t have to pay for VS Code.

I could see a decision maker thinking, “Well, if JavaScript and other platforms are free, maybe we should stop using this expensive .NET thing”.

matt,
@matt@social.mattburkedev.com avatar

@khalidabuhakmeh I can’t imagine doing any significant dotnet development in VSCode. It always felt incomplete compared to VS or Rider.

matt, to dotnet
@matt@social.mattburkedev.com avatar

Using Keyed Services in 8 - some guidance and motivating examples for keyed services

https://www.mattburkedev.com/keyed-services-in-net-8/

khalidabuhakmeh, to dotnet
@khalidabuhakmeh@mastodon.social avatar

I have mixed feelings about 8 preview 7 KeyedServices, and questions.

  • FromKeyedServices only works on parameters in dependencies, not on endpoints. An oversight? (Probably).
  • Why not take a dependency on the concrete type rather than using a key? I mean, you’re already coupling to an implementation at that point.
  • Is this too much machinery?

What are your thoughts? What am I missing?

This feels like an addition because customers asked for it.

matt,
@matt@social.mattburkedev.com avatar

@khalidabuhakmeh it’s useful for a strategy pattern where I need to resolve an implementation by name. Id inject IServiceProvider, inspect some state and ask the container for the right implementation. Imagine sending a push notification: id check the users account to know if they have android or iOS and then resolve the wrapper service by name

I talk a bit about it here https://www.mattburkedev.com/why-autofac/#Keyed-services

Agree FromKeyedService is a smell.

I think they want it to help with AddHttpClient

simon, to random
@simon@simonwillison.net avatar

A tiny TIL: how run multiple servers in a single Bash script, such that when the Bash script is terminated with Ctrl+C all of the servers are terminated as well
https://til.simonwillison.net/bash/multiple-servers

matt,
@matt@social.mattburkedev.com avatar

@simon you have no idea how many google searches I sent this week looking for something like this for windows.

Asked ChatGPT to convert to powershell: https://chat.openai.com/share/952e5a0f-3769-4888-9910-93f0453bdf4d

Excited to try it tomorrow. Thanks!

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