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

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 to make interoperability with 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 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 in helpful ways that I haven't seen in other ecosystems. (1/3)

khalidabuhakmeh, to random
@khalidabuhakmeh@mastodon.social avatar

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

It is a lifesaver for #aspnetcore 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 and in a very sensible solution.

If you're a 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.

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 and 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 and .

It's pretty amazing how little code (and no ) it takes to create a 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 in the and ecosystem. That's pretty cool.

khalidabuhakmeh, to dotnet
@khalidabuhakmeh@mastodon.social avatar

I’ll repeat it. 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 as these folks use their talents elsewhere.

khalidabuhakmeh, to dotnet
@khalidabuhakmeh@mastodon.social avatar

Yes! 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 features in the latest 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!

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 #dotnet and #aspnetcore 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.

khalidabuhakmeh, to webdev
@khalidabuhakmeh@mastodon.social avatar
khalidabuhakmeh, to random
@khalidabuhakmeh@mastodon.social avatar

#JetBrainsRider found a referencing bug with tag helpers in OrchardCore that's been there for at least four 4 years in the project. It shows there's still room to improve the dev experience regarding #aspnetcore.

khalidabuhakmeh, to dotnet
@khalidabuhakmeh@mastodon.social avatar

I wish the #dotnet localization story would get a modern facelift. Instead, we deal with 20-year-old XML files, numeric placeholders, and object arrays.

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@b4ux1t3 It’s partly the file format and the IStringLocalizer interface that’s janky. The issue is that IStringLocalizer is threaded through a lot of #aspnetcore that needs to be redone by the #dotnet team.

I like where this guy was going, where there was syntax that could be post-processed, but the model changed so much that it was abandoned (like many projects).

https://github.com/turquoiseowl/i18n

poppastring, to dotnet
@poppastring@dotnet.social avatar
alexzeitler, to dotnet
@alexzeitler@mastodon.social avatar

We're so back with MVC

Stack is
→ ASP.NET Core MVC
@htmx_org
→ Alpine.js

#dotnet #aspnet #aspnetcore #alpinejs

alexzeitler, to dotnet
@alexzeitler@mastodon.social avatar

Today I started a new little thing for /

🌲 Pines.TagHelpers is a collection of ASP.NET Core Tag Helpers based on the Pines UI components library using Alpine.js and Tailwind CSS.

It all starts with a "copy to clipboard" tag helper, more will be added over time:

https://github.com/AlexZeitler/Pines.TagHelpers

Code how to insert the Copy to Clipboard Tag Helper

zachleat, to random
@zachleat@zachleat.com avatar

📮 New post:

The Good, The Bad, The Web Components

https://www.zachleat.com/web/good-bad-web-components/

A full crash course on the state of web components, where they fit in JavaScript frameworks landscape, and how to make use of them moving forward!

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@mattwilcox @zachleat Welp… I got nerd-sniped. I hope you are happy now!

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