distantcam

@distantcam@hachyderm.io

Nerd. Programmer.
C# dotnet opensource

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

mikegoatly, to dotnet
@mikegoatly@toot.community avatar

Random question. Can a source generator emit code that another source generator then processes?

This generator generates a [GeneratedRegex] https://gist.github.com/mikegoatly/fe36bc559e01b757c6ccb33d4020c8e9 , but the RegularExpressions generator doesn't pick it up, so compilation fails with the error:

Partial method 'RegexGeneratedClass.CapitalizedWords()' must have an implementation part because it has accessibility modifiers.

My guess is it's a limitation, but I might be doing something wrong!

distantcam,

@mikegoatly No. It's a known issue as you can't specify the order of generators.

mez, to blazor
@mez@mastodon.nz avatar

If I have to resort to Wikipedia to understand your product naming conventions and history, I just feel like either you aren’t doing a great job organising your product, or it isn’t ready for primetime.

I’m honestly still not sure what problem for is solving aside from C# / backend developers don't want to learn front-end code (understandable, I didn't want to learn C#) or use untyped JavaScript (solvable, calm down).

Yay, the C# ties to the FE, is that really that good?

distantcam,

@mez As someone who works on a C# backend and a TS (vue) frontend, it would be nice to have the shared objects in one language. Currently we have a converter from C#->openapi->TS but if we used blazor that wouldn't be needed.

distantcam,

@mez Oh ok, I think I get the confusion now. I'm new to Blazor myself, so I don't know the full history, but AFAIK Blazor server vs WASM is just where is the front-end C# is being run, server vs in-browser.

The deciding factors then is for server you need a websocket connection to have the server feed updates and handle interactiveness, whereas with WASM the browser has to download and start a potentially large payload.

distantcam, to random

A screenshot of a tweet, with a screenshot of a facebook post, without alt text, is the modern equivalent of a fax of a fax.

bradwilson, to random
@bradwilson@mastodon.social avatar

Why do I have to live in the timeline where y'all have corrupted the meaning of "begs the question" as well as "ensure" vs. "insure"?

I just want a little order in here! 😭 😂

distantcam,

@bradwilson for all intensive porpoises they’re the same thing

khalidabuhakmeh, to dotnet
@khalidabuhakmeh@mastodon.social avatar

When developers see a new object mapping library.

distantcam,

@khalidabuhakmeh @Nick_Craver Isn't that like CSS? C# Script?

khalidabuhakmeh, to dotnet
@khalidabuhakmeh@mastodon.social avatar

Service: “We provide an SDK for all major languages.”
Me: “Cool, let me try it out in …”
Service: "Well……….”
Me: "Fuuuuuuuuuuuuuuu…”

distantcam,

@khalidabuhakmeh So what major languages do you support?
Python and Go.
:/

thomasfuchs, to random
@thomasfuchs@hachyderm.io avatar

Somebody just replied to me telling me that I essentially understood my own post wrong. ¯_(ツ)_/¯

distantcam,

@thomasfuchs A fun new twist on death of the author.

hazel, to fediverse

well, well, well. If it isn't the consequences of my own actions.

distantcam,

@hazel Hi. I wanted to ask, what are you using to handle the json-ld serialisation? Custom or NuGet?

mastodonmigration, to random
@mastodonmigration@mastodon.online avatar

Does it seem like Elon Musk is getting even more erratic? Do you think he's losing his mind? Any explanation for #X that makes any sense at all?

distantcam,

@mastodonmigration I wonder if it's to avoid liability with Twitter. If X is a different company then Twitter is free to declare bankrupcy and default on all it's debts.

distantcam,

@mastodonmigration Hopefuly not, but I've seen dumber stuff.

thomasfuchs, to random
@thomasfuchs@hachyderm.io avatar

What are some of the seven tips? Wrong answers only.

distantcam,

@thomasfuchs Take care of it with loving baths by candlelight. Consider using a bath bomb or other essential oils too.

billseipel, to random

Educate me:

If you are already using MVC then why use the Mediator pattern?

Both use 'routing'....

distantcam,

@billseipel For testing it can be easier/nicer having a single handler to test rather than a whole controller.

distantcam,

@billseipel I just thought of another reason. It makes everything look the same. Controllers call mediator handlers. Azure functions call mediator handlers and tests call mediator handlers. The pattern is easy to pick up on for new devs. Same code.

distantcam,

@TimPurdum @billseipel azure functions has a minimal api?

bitbonk, to programming
@bitbonk@mastodon.social avatar

The code that needs to be written to generate complex C# code with source generators becomes hard to read and maintain very quickly.

Wouldn't it make sense to have some sort of templating engine, like Razor or Mustache, but for C# source code?

Maybe it even already exists?

distantcam,

@bitbonk I ended up using a custom class to handle indentation, similar to the style of StringBuilder.
https://github.com/distantcam/AutoCtor/blob/main/src/AutoCtor/CodeBuilder.cs

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