@georgekinsman@hachyderm.io avatar

georgekinsman

@georgekinsman@hachyderm.io

Hi there! I'm an aussie software engineer living in London, working on electric vehicle charging.

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

georgekinsman, to blazor
@georgekinsman@hachyderm.io avatar

peeps, is it possible to use LinkGenerator to generate links to Razor Component Pages (i.e. a .razor file with a @page attribute)?

From what I can tell there's no way to add an EndpointNameMetadata to a razor page, which means the LinkGenerator can't do its thing.

Surely this is a common scenario - is everyone just hardcoding their page URL's?

cc @khalidabuhakmeh

georgekinsman,
@georgekinsman@hachyderm.io avatar

@khalidabuhakmeh Thanks for the response! I think razor components work a bit differently than razor pages right? I don't think razor components use the same conventions pages do, and I don't see any of those metadatas in the collection. It doesn't even seem to generate an endpoint name for the blazor page :/.

khalidabuhakmeh, to dotnet
@khalidabuhakmeh@mastodon.social avatar

Trying out provider. It seems to work in this sample, but has an easy-to-miss caveat. You need to generate your ObjectId before storing the object or else you won't have an ID to use from the side.

georgekinsman,
@georgekinsman@hachyderm.io avatar

@khalidabuhakmeh What happens if you try using a Guid as the Id? Does this use the Mongo driver under the covers, requiring BsonDefaults.GuidRepresentationMode = GuidRepresentationMode.V3; ?

georgekinsman,
@georgekinsman@hachyderm.io avatar

@khalidabuhakmeh it's a real thorn in the official driver so might have to see if this handles it any better! 😁

andrewlock, to dotnet
@andrewlock@hachyderm.io avatar

Blogged: Form binding in minimal APIs - Exploring the .NET 8 preview - Part 7

https://andrewlock.net/exploring-the-dotnet-8-preview-form-binding-in-minimal-apis/

In this post I discuss the new form binding support for minimal APIs, the current limitations and rough edges, and how to work with antiforgery tokens

georgekinsman,
@georgekinsman@hachyderm.io avatar

@andrewlock @jchannon @khalidabuhakmeh I've kinda found that forms beyond anything incredibly basic are made much simpler with a dash of JavaScript, to @jchannon's great dislike 😁. Validation, dynamic options (e.g. show when checkbox/radio is chosen), multiple steps, etc. When you have a little, it's then trivial to add a plain JSON post instead of using submit and you remove all of this awful form binding stuff.

Maybe just me 🤷‍♂️

georgekinsman,
@georgekinsman@hachyderm.io avatar

@jchannon @andrewlock @khalidabuhakmeh you'd enable it just to get them 😘

georgekinsman,
@georgekinsman@hachyderm.io avatar

@jchannon @andrewlock @khalidabuhakmeh but, there's a reasonable expectation that js is required to submit a form. Fine to not have it to read a site but the internet uses JavaScript now, the battle is over.

georgekinsman,
@georgekinsman@hachyderm.io avatar

@khalidabuhakmeh @jchannon @andrewlock sure you can do basic things, but I've had to build forms with much more complex requirements, like mutually exclusive inputs, co-dependent inputs, non-numeric max/mins. I bought into big-javascript long ago with ng1 and now vue so I choose the better UX of real-time feedback and interactive progress of js over page reloads. I realise it has its place and not for every use case but the UX advantages can be enormous.

georgekinsman, to random
@georgekinsman@hachyderm.io avatar

@khalidabuhakmeh in Rider is there a way to navigate between C# and proto files? Can see a few issues on the issue tracker for other langs but can't see anything about C#. Would be super useful to navigate directly to .proto file instead of the decompiled src 😁

georgekinsman,
@georgekinsman@hachyderm.io avatar

@khalidabuhakmeh Thanks for the response! Will add an issue 👍

khalidabuhakmeh, to programming
@khalidabuhakmeh@mastodon.social avatar

I'm really proud of the for babies book I created at with @maartenballiauw and Arina Kovrizhkina.

We're gearing up to make physical copies of this book, but you can get a digital copy now, for free.

https://lp.jetbrains.com/csharp-for-babies/

georgekinsman,
@georgekinsman@hachyderm.io avatar

@khalidabuhakmeh @maartenballiauw
Is this available in hardcopy anywhere? Would love a copy for my nephew! 😁

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