egil,
@egil@mastodon.social avatar

Usssh, now I’ve done it. I actually have to talk about htmx and blazor next monday. So I need all you folks help, what are the libraries you are using? What are the good and bad things about that combo?

https://www.youtube.com/live/-Mc9pROA0Ho?si=mpxSGkSTVV2MJT5_

Pinging @khalidabuhakmeh and my and friends!

egil,
@egil@mastodon.social avatar

@khalidabuhakmeh aaand that's a wrap. Did call you out a bunch of times (in a good way I hope) and quoted you quite a bit. Thanks for the input.

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@egil Thanks! Although you can also say whatever you like about me, others do :P

It’s exciting to have these kinds of discussions because they involve new ideas. I love it!

egil,
@egil@mastodon.social avatar

@khalidabuhakmeh so when I say call out, I just mean I referenced you a bunch, not in a disagreeing way 😊

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar
khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@egil just finished watching the stream. Really cool progress and excited to see where you take Htmxzor.

The support for events on SSR components is really cool.

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@egil oh, btw I've written some blog posts about integrating web components with Htmx. You're 99% right, but it depends on the component and how it conveys value back to the server.

egil,
@egil@mastodon.social avatar

@khalidabuhakmeh here is a pretty concise example of template fragments, routing, callbacks, setting response headers: https://github.com/egil/Htmxor/blob/main/samples/MinimalHtmxorApp/Components/Pages/Counter.razor

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@egil neat. A technique I've learned with Htmx is to think in terms of Forms. Since any click/submit bubbles up and submits a form, it tends to be easier to think about it that way.

Forms also represent logical units, so you don't have to figure out how to get values bundled up and sent together.

egil,
@egil@mastodon.social avatar

@khalidabuhakmeh agreed. Good point. Still learning, but did figure out that trick with blazing pizza and the orders and configure logic.

brtkdotse,
@brtkdotse@hachyderm.io avatar

@egil @khalidabuhakmeh Looking forward to this!

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@brtkdotse @egil This might be controversial, but here are my thoughts on why you technically may want to use and together and why you wouldn't.

I have social reasons why you may want to prefer one over the other, too. But that's more opinion ;)

https://gist.github.com/khalidabuhakmeh/84beff0adf2d49092a9a7769207d4084

egil,
@egil@mastodon.social avatar

@brtkdotse @khalidabuhakmeh I agree with all your points actually. That’s also why my library Htmxor will solve all the points in the “reason not to” list. I am heavily modifying the component discovery logic, as well as the renderer, to make it’s aware of how htmx works.

egil,
@egil@mastodon.social avatar

@brtkdotse @khalidabuhakmeh well ok, still prototyping, so “I hope it will” solve all the things is probably more precise 😊

brtkdotse,
@brtkdotse@hachyderm.io avatar

@egil @khalidabuhakmeh those are all great points @khalidabuhakmeh, I’ve heard similar things from @patriksvensson. That’s why I’m super interested in seeing what Egil will present on Monday.

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@brtkdotse @egil @patriksvensson I’m concerned about the lack of control over the HTTP response. Adding headers is a pretty obtuse process.

Blazor has a few areas that need improvement, and despite its existence for over 5 years, it still feels like a work in progress.

egil,
@egil@mastodon.social avatar

@brtkdotse @khalidabuhakmeh @patriksvensson the headers I have a solution for 🙂

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@egil @brtkdotse @patriksvensson I have one too. It’s not nice. 😅

egil,
@egil@mastodon.social avatar

@patriksvensson @khalidabuhakmeh @brtkdotse yeah I have looked at your stuff too. Have a custom HtmxContext that has a HtmxRequest and a HtmxResponse properties that provides access to incoming and outgoing headers. The context can be accessed in components. That's my best solution for now.

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@egil @patriksvensson @brtkdotse If I were the god-king of Razor, I’d let you define “directive helpers”. These directive helpers would act like attributes on a Blazor component and let you define functionality.

egil,
@egil@mastodon.social avatar

@khalidabuhakmeh @patriksvensson @brtkdotse something like that is almost possible. Cannot do custom directives until the razor compiler team enables that, but this is possible for the headers that are static (i.e., won't change based on request):

@attribute [Header("some header", "some value")]

egil,
@egil@mastodon.social avatar

@patriksvensson @brtkdotse @khalidabuhakmeh ill add header control through attributes to my todo list. It's a good idea.

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@egil @patriksvensson @brtkdotse I’m all good ideas.

Now let me tell you about driving licenses for dogs. Hey! Where are you going?!

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@egil nice 👍

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