khalidabuhakmeh, to CSharp
@khalidabuhakmeh@mastodon.social avatar

I updated the Hydro sample to use for anyone interested in seeing the sample with a persistence layer implemented.

It’s pretty nice, actually, especially with 12 features.

https://github.com/hydrostack/hydro-todo/pull/2

khalidabuhakmeh, to dotnet
@khalidabuhakmeh@mastodon.social avatar

I may be late to the #aspnetcore party here, but this Hydro project looks very cool. #dotnet

https://usehydro.dev/

cc @alexzeitler

khalidabuhakmeh, to random
@khalidabuhakmeh@mastodon.social avatar

The great tragedy of #aspnetcore is that it probably would have wider adoption if it stayed the course with MVC and Razor pages now that SSR is the latest trend.

The cycle returned to ASP.NET's strength, and Blazor had to pivot back to SSR to keep up.

Instead of being ahead of the curve, it's now behind it. 🤷‍♂️

khalidabuhakmeh, to blazor
@khalidabuhakmeh@mastodon.social avatar

I'm back to playing with #Blazor and #HTMX with the @egil Htmxor library. The Counter sample is nice and clear.

He has something exciting here for the #aspnetcore and #dotnet audience.

Check it out! https://github.com/egil/Htmxor

THe counter sample running in a browser with a current count of 12

rockylhotka, to blazor
@rockylhotka@fosstodon.org avatar

Is there any way to create/maintain a unique user id value for that goes across server-static and server-interactive pages? Other than a cookie, because that's too broad - I want something that is more per-tab than per-browser.

khalidabuhakmeh, to dotnet
@khalidabuhakmeh@mastodon.social avatar

Should the community read this list in an order of priority?

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@elan @KirillOsenkov @bradwilson

Give me static site generation in #aspnetcore for one.

Build more hooks into Razor compilation for pre and post processing of pages.

Make the CLI a top priority.

Also, stop shadow dropping projects.

poppastring, to dotnet
@poppastring@dotnet.social avatar

A brief but important reminder that .NET 7 goes out of support today. ⚠️

If like me you were using the .NET 6 LTS, that goes out of support later this year in November.

I recently upgraded my main projects to .NET 8 to ensure I get the latest security & quality of life fixes. 🎉

More details here: https://dotnet.microsoft.com/platform/support/policy/dotnet-core

#dotnet #aspnetcore

khalidabuhakmeh, (edited ) to webassembly
@khalidabuhakmeh@mastodon.social avatar

I thought I would take up the challenge of getting @enhance_dev working with with the ability to SSR web components directly into the request pipeline.

Yep... it works. TagHelpers make this nice and natural part of the web stack.

Update: You can try it out for yourself at this repo. https://github.com/khalidabuhakmeh/EnhanceWebComponents

khalidabuhakmeh, to dotnet
@khalidabuhakmeh@mastodon.social avatar

Only a few years ago, there was a considerable effort in #dotnet to make interoperability with #nodejs a thing... now it seems like all those projects are gone or woefully behind. Bummer :(

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@filipw Considering the collapse of OSS solutions in the .NET space, leaning on ecosystems like Node would be beneficial in supplementing the void.

I had a use case today to introduce a static search index to #aspnetcore apps, but the tooling is a node module.

Alas... not meant to be.

khalidabuhakmeh, to random
@khalidabuhakmeh@mastodon.social avatar

Every few months, I come back to rewriting a app in , sometimes it's with Blazor, sometimes it's Razor Pages, and this time with (although I may have already done HTMX 😅)

I got some quality-of-life improvement issues entered to help make better, too. So that's a win!

Htmx-powered todo app.

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@jonstj Woah, a lot of questions. I’ll answer them one at a time. 1. “Do you consider Razor Page with HTMX the best production-ready tech stack for HTMX-powered SSR web?” I think Razor Pages and MVC are great options, and they give you the most control over the HTTP response (which is essential to get the most out of HTMX). My HTMX.NET library is designed to work with #aspnetcore in helpful ways that I haven't seen in other ecosystems. (1/3)

khalidabuhakmeh, to random
@khalidabuhakmeh@mastodon.social avatar

ability to help you find assemblies and fix TagHelper registrations is just 👨🏻‍🍳💋.

It is a lifesaver for developers since these registrations can cause unexpected behaviors and, worst of all, no errors.

I've found these registration mistakes in many projects, including popular OSS solutions.

khalidabuhakmeh, to random
@khalidabuhakmeh@mastodon.social avatar

This a question I have for #htmx #aspnetcore users ( @alexzeitler and @egil) who are attempting to reduce repetition with components.

Do you think less components and more reusability is better, or are you losing some benefits of breaking down the UI into optimized functions?

I thought about this building my JetBrains store sample, too. I'm unsure where to draw the line of reuse vs. bespoke endpoints.

khalidabuhakmeh, to blazor
@khalidabuhakmeh@mastodon.social avatar

I’m looking at @egil HTMXOR library that combines #aspnetcore #Blazor and #HTMX in a very sensible solution.

If you're a #dotnet dev, I think there's something here you should take a look at.

http://github.com/egil/htmxor/

poppastring, to fediverse
@poppastring@dotnet.social avatar

Has anyone implemented Activity Pub with ASP.NET Core?

Not just types and objects but something that could be used for basic federation.

#activitypub #csharp #aspnet #aspnetcore

khalidabuhakmeh, to blazor
@khalidabuhakmeh@mastodon.social avatar

An user asked for help this week regarding a blog post I had written, which made me revisit a demo I did and think about @alexzeitler HX-Trigger post.

After some exploration, I managed to uncover a solution for Blazor Components. This solution allows you to set headers, enabling the triggering of HTMX requests upon response.

Bonus HTML, anyone?

khalidabuhakmeh, to random
@khalidabuhakmeh@mastodon.social avatar

If you're curious about #HTMX and #aspnetcore and how they can work together, check out this sample using Hx-Trigger to trigger other elements to update from a single request.

This is nice if you have global shared state like a shopping cart, score, etc.

https://github.com/khalidabuhakmeh/HxTriggerSample

khalidabuhakmeh, (edited ) to javascript
@khalidabuhakmeh@mastodon.social avatar

Big shout out to @alexzeitler for writing this blog post on #htmx and #aspnetcore.

It's pretty amazing how little code (and no #JavaScript) it takes to create a #Blazor like counter experience. All with HTML and some C# code.

https://alexanderzeitler.com/articles/listening-to-htmx-hx-trigger-response-header-events-from-alpine-js/

Updated with sample: https://github.com/khalidabuhakmeh/HxTriggerSample

khalidabuhakmeh, to dotnet
@khalidabuhakmeh@mastodon.social avatar

Look at all that #htmx in the #aspnetcore and #dotnet ecosystem. That's pretty cool.

khalidabuhakmeh, to dotnet
@khalidabuhakmeh@mastodon.social avatar

I’ll repeat it. #aspnetcore should cater harder to the web designer community with static site generation, razor build steps for prerendering JS/Web components, and more JS build-tool integration.

It's a missed opportunity for #dotnet as these folks use their talents elsewhere.

khalidabuhakmeh, to dotnet
@khalidabuhakmeh@mastodon.social avatar

Yes! #htmx #dotnet #aspnetcore https://endjin.com/blog/2024/04/aspnet-core-razor-htmx-chartjs

Cool post by @HowardvRooijen. Probably could use the HTMX.NET to make it even sweeter.

khalidabuhakmeh, to dotnet
@khalidabuhakmeh@mastodon.social avatar

One of my favorite #aspnetcore features in the latest #JetBrainsRider release is resolving addTagHelper and removeTagHelper assemblies for developers.

You wouldn't believe how often I've seen folks get these wrong (even in popular OSS projects). The default behavior is to ignore unresolved registrations, so folks are left debugging this in frustration. WELL NO MORE!

#dotnet developers are going to love this.

zachleat, to random
@zachleat@zachleat.com avatar

I wonder if y’all can help me out—I’m trying to collect a list of web development communities (not related to any one specific tool or framework), can you reply with your favorites?

(if you don’t have a favorite I will also accept communities you’re familiar with 😅)

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@zachleat and specifically.

yeep, to dotnet
@yeep@mastodon.nl avatar

So, it turns out, ASP.NET Core applications without Open Telemetry still send a traceparent header, with the tracing flag off. It also turns out that an ASP.NET Core application that does use OTEL will not send traces if they receive a traceparent header with the tracing flag off. And it also turns out, that the documentation on how to change this behaviour, by using the OTEL_TRACES_SAMPLER environment variable, is incorrect. This variable is not used yet. Fun.
#OpenTelemetry #DotNet #ASPNETCore

khalidabuhakmeh, to webdev
@khalidabuhakmeh@mastodon.social avatar
  • 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