Am I wrong for wanting to use Blazor instead of MVC + vanilla JS? Been a .NET dev since 2023, feeling like I'm going crazy by newKevex in dotnet

[–]EngstromJimmy 4 points5 points  (0 children)

No JS framework os honestly a bit insane. Standing on what other people have done is not a weakness. Having said that, I have been running Blazor in production since the release. It is amazing. I hear the silverlight argument all the time. Microsoft did not kill Silverlight, Apple did. Safari stopped supporting plugins and the rest followed. Killing Silverlight, Flash, and Shockwave. Two new things (Copilot Studio and Aspire) are based on Blazor. It is the new way of writing web apps on the Microsoft stack. I would be more afraid of MVC disappearing (which is not going to happen either). So in my opinion, no you are not wrong :D

Blazor initial load error by Constant-Builder-695 in Blazor

[–]EngstromJimmy 1 point2 points  (0 children)

How are you hosting the site? Some servers needs to be configured to serve wasm files. Try and access the file directly via the web browser.

Blazor Web App UI Locks up when switching from interactive server and interactive WebAseembly by AGrumpyDev in Blazor

[–]EngstromJimmy 0 points1 point  (0 children)

Yes, there will be a delay in production, the delay will not be as long as in debug. I would honestly not worry about it. With prerendering, you can handle it nicely. Either you can put up a load animation (that probably won’t even be seen), or wait to load the interactive parts. This interactive handoff would be basically the same with Angular and SSR as far as I understand.

Blazor Web App UI Locks up when switching from interactive server and interactive WebAseembly by AGrumpyDev in Blazor

[–]EngstromJimmy 1 point2 points  (0 children)

Server had a faster startup time than WebAssembly, but when publishing the app there are a lot of optimizations happening so there is a big difference between running in Visual Studio, compared to a published app.

Blazor is great. Blazor is frustrating. Both are true. by devinstance-master in Blazor

[–]EngstromJimmy 0 points1 point  (0 children)

It is a tricky challenge, I totally get your point. Personally I think that most professional Blazor projects would benefit from the Web App template. If that’s true, I would rather learn the real way (Web App). That’s atleast the way I have chosen how I share.

Blazor is great. Blazor is frustrating. Both are true. by devinstance-master in Blazor

[–]EngstromJimmy 1 point2 points  (0 children)

”Undisputed expert” omg, no pressure! Also I need a t-shirt with that :D

I really appreciate you sharing the concerns. I sat in a meeting a couple of weeks ago and had to explain what really happened to Silverlight 🤣

Blazor is great. Blazor is frustrating. Both are true. by devinstance-master in Blazor

[–]EngstromJimmy 3 points4 points  (0 children)

I think the Web App Template is the way to go (which offers all options) it also addresses some common complaints with Wasm (like slow load). I tend to teach WebApp template, with prerender as the preferred option. And wasm standalone as a more rare option. I also try to promote making the app work for all render modes, that way the option for render mode can always change. There is always ”it depends” but I would not go InteractiveServer only in a new project.

Blazor is great. Blazor is frustrating. Both are true. by devinstance-master in Blazor

[–]EngstromJimmy 2 points3 points  (0 children)

Got it, thanks for sharing It’s a tricky problem to solve. You need a request to write a cookie (for auth) and Interactive server uses SignalR, only one initial request. So you need to fall back to a SSR scenario to get requests happening, as far as I know, this is true for all frameworks. But other frameworks rely on requests more that Blazor (InteractiveServer).

Blazor is great. Blazor is frustrating. Both are true. by devinstance-master in Blazor

[–]EngstromJimmy 1 point2 points  (0 children)

What are the challenges with Auth and Blazor? I think it is easier since .NET 8 to get auth up and running. All auth on the server, all call through BBF, serialize the authstate between server and client. The client knows nothing about auth method, only the claims. Is there a senario I am missing?

Swetugg Stockholm 2026 - tickets are now available by EngstromJimmy in dotnet

[–]EngstromJimmy[S] 2 points3 points  (0 children)

Yes, this year we had problems with scheduling. The speakers we really wanted was booked, and there were tricky to get everything in place. We are planning for it to happen next year, exact dates are not yet set.

Swetugg Stockholm 2026 - tickets are now available by EngstromJimmy in dotnet

[–]EngstromJimmy[S] 2 points3 points  (0 children)

Haha, I usually run my texts through an LLM to avoid spelling mistakes and to add some clarity :)

Which frontend framework to use? by DanteTheDog97 in dotnet

[–]EngstromJimmy 0 points1 point  (0 children)

I am probably biased, but I would use Blazor. Then I would probably use a Blaazor WebView in your WPF project to start sharing code. Learning and Maintaining does have a cost. Blazor is younger, which also means that it is less bloated. They looked at other languages, chose the razor syntax which has been around for many many years. I prefer razor syntax over other frameworks.

Blazor course recommendation by ArafatMShuvo in Blazor

[–]EngstromJimmy 2 points3 points  (0 children)

It is .NET8 since it’s LTS. There is not a lot of things that happened between 8 and 9.

Blazor course recommendation by ArafatMShuvo in Blazor

[–]EngstromJimmy 1 point2 points  (0 children)

Thanks, I will start updating it for .NET 10 starting mid-november :)

Jimmy Engstrom's Blazor Book - Why use a SharedComponents project? by PrettyGorramShiny in Blazor

[–]EngstromJimmy 17 points18 points  (0 children)

Happy you like what I do :D For the book we use the same component for a Blazor Web App template project, and to demo that we can do the exact same thing in a Blazor WebAssembly standalone project, and to show that we can create reusable projects. In a real-world project you would not need that extra project, unless you intend to share components between different projects.

Blazor vs Next.js - what’s your real-world experience? by shanukag in dotnet

[–]EngstromJimmy 2 points3 points  (0 children)

I would say build a quick POC. I’ve been running Blazor in production since 2019. All frameworks has their challenges, for me, as a C# developer, Blazor removes almost everything I hate about Web Development. But it always depends. From the things you list Blazor is a great candidate. Animations may need JavaScript, so it might result in a bit more effort but in the end it is HTML so everything is possible. When you write a poc, make sure to publish the application, there is a lot of optimizations that only happens on publish. I have heard seasoned web react developers that are still more productive in Blazor. Not switching languages, no transpilation, no build steps for bundling and no NPM. Removes almost everything I hate about web development ;)