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

khalidabuhakmeh, to javascript
@khalidabuhakmeh@mastodon.social avatar

Folks who do development with a frontend framework (, , ), is your frontend code part of the solution, or have you split the backend and frontend into separate isolated folders?

I have thoughts, but would love to hear what your thoughts are. Boosts are appreciated.

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

I don’t know who wants this, but this is #HTMX in a Blazor Server App, invoking an endpoint that returns a Server-Rendered Blazor component.

cc @alexzeitler

#dotnet #aspnetcore #web #development

Blazor and HTMX

andrewlock, to dotnet
@andrewlock@hachyderm.io avatar

Blogged: Short-circuit routing in .NET 8 - Exploring the .NET 8 preview - Part 11

https://andrewlock.net/exploring-the-dotnet-8-preview-short-circuit-routing/

In this post I describe the new short-circuit routing feature, how it differs from normal routing, discuss why it's useful, and look at how it's implemented.

khalidabuhakmeh, to dotnet
@khalidabuhakmeh@mastodon.social avatar

Playing around with 8 with @maartenballiauw and .

I can finally flex my ADO.NET skills on Maarten. We’ve gotten old enough that what was not cool is now the only way to be cool. 😎

andrewlock, to dotnet
@andrewlock@hachyderm.io avatar

Blogged: Updates to Docker images in .NET 8 - Exploring the .NET 8 previews - part 10

https://andrewlock.net/exploring-the-dotnet-8-preview-updates-to-docker-images-in-dotnet-8/

In this post I describe the changes to .NET 8 docker files in .NET 8 including changes to images, new image types, changes to image tagging, and breaking changes

khalidabuhakmeh, to javascript
@khalidabuhakmeh@mastodon.social avatar

Round 2 of making #shoelace components work with #htmx. #javascript #aspnetcore

khalidabuhakmeh, to dotnet
@khalidabuhakmeh@mastodon.social avatar

I wouldn’t be surprised to see #dotnet 9 drop #bootstrap and start pushing #FluentUI as the design approach for #aspnetcore web applications.

Just sayin’.

Please come back to this toot when I'm right. 😅

khalidabuhakmeh, to dotnet
@khalidabuhakmeh@mastodon.social avatar

I have mixed feelings about 8 preview 7 KeyedServices, and questions.

  • FromKeyedServices only works on parameters in dependencies, not on endpoints. An oversight? (Probably).
  • Why not take a dependency on the concrete type rather than using a key? I mean, you’re already coupling to an implementation at that point.
  • Is this too much machinery?

What are your thoughts? What am I missing?

This feels like an addition because customers asked for it.

khalidabuhakmeh, to javascript
@khalidabuhakmeh@mastodon.social avatar

I’d just like to point out to folks that offers the same experience. 😅

khalidabuhakmeh, to design
@khalidabuhakmeh@mastodon.social avatar

Web design is my passion.

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

Update: It does work. See the second screenshot.

—-

So, I’m exploring server streaming, but I realize that doesn't support IAsyncEnumerable (so far that I've found).

This means that while streaming the rendered results is async, you still have to have all the data at the time of rendering. A slow dependency can still affect your Time to first byte (TTFB). :\

This feature improves the UI layer but not necessarily the backend layer.

khalidabuhakmeh, to dotnet
@khalidabuhakmeh@mastodon.social avatar

is running a 65% off the first year for . That’s $4/mo! 😱

We also offer perpetual fallback licenses. This should get you into the 8 era for development on , , and .

Rider supports , @avaloniaui, , , and other .NET stuff.

Check it out before firing up the grill for Labor Day. 🇺🇸🌭🍺

https://www.jetbrains.com/store/#personal

khalidabuhakmeh, to blazor
@khalidabuhakmeh@mastodon.social avatar

I created a sample with all the paradigms in 8:

  • Server rendered (no web sockets or Wasm)
  • Server-rendered streaming (no web sockets or Wasm, but faster TTFB)
  • Blazor Server (web socket)
  • Blazor Wasm isolated components (Wasm)

This gives devs more options for building experiences with Blazor.

Which of these do you find most compelling, and why?

Blazor application for dotnet 8

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, (edited ) to dotnet
@khalidabuhakmeh@mastodon.social avatar

So I got my Razor Pages demo working with boost concept and view transitions. And with a few lines of CSS and no backend changes, I get this sweet transition animation. What do you think, folks?

khalidabuhakmeh, to blazor
@khalidabuhakmeh@mastodon.social avatar

, after 5 years, still only sees 16% of usage in the crowd.

It supports my assumption that putting all the eggs in the Blazor basket might hurt overall ASP.NET Core adoption with folks looking for familiar paradigms like MVC or HTML.

khalidabuhakmeh, to dotnet
@khalidabuhakmeh@mastodon.social avatar

When you realize the default template excludes the period from the link.

khalidabuhakmeh, to blazor
@khalidabuhakmeh@mastodon.social avatar

I’m using the dispose pattern in a sample to mark whether I'm busy or not busy doing work (like calling the database).

A using statement that sets the current working state.

pixelpanda, to dotnet

As i just registered today due to here's a little

I'm Daniel, an Austrian Software Engineer, mostly working with and

Currently I'm focusing on , and

Besides work, I love to travel and

khalidabuhakmeh, to dotnet
@khalidabuhakmeh@mastodon.social avatar

I uploaded a sample project for united showing all the paradigms in the next release of .

There are four that stick out, but I may have missed some:

  • Server-side (Plain-old HTML)
  • Server-side Streaming (HTML, but streamed as processing occurs on the server)
  • Blazor Server (Web sockets)
  • Blazor Wasm

Give it a try :)

https://github.com/khalidabuhakmeh/Blazor-United

khalidabuhakmeh, to dotnet
@khalidabuhakmeh@mastodon.social avatar

I got working with , but there are some caveats—time to write another blog post.

Overall, I could see this being really helpful for folks building .

khalidabuhakmeh, to dotnet
@khalidabuhakmeh@mastodon.social avatar

I set up a multi-launch sample where the console application only runs after the web application has started and is reachable at a specific port. That's a beneficial feature.

I can see this being helpful for folks working with microservices and web APIs.

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

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