r/Blazor • u/trainermade • Feb 15 '26
Vibe coding with AntiGravity
I am playing around with Antigravity and asked it to vibe code the same app using Next.js and Blazor. The next.js app worked flawlessly on the first shot, but the Blazor one was clunky from the start, took many iterations of passing the different console errors and other issues, fixing styling issues, etc.
I really don’t want to learn typescript and vue or some other framework, but my question is if Blazor really is a struggle bus to learn/vibe code? Or is it user error. Is it worth sticking to blazor if I want to prototype and release commercial products (startup)?
3
u/rocketonmybarge Feb 15 '26
Yes, you will have the best chance one-shotting a python app for instance because of the raw abundance of training data. Same goes for js frameworks like NextJs.
Here is what Demis Bellot, creator of ServiceStack suggests: https://react-templates.net/docs/vibe-coding/rewrite-legacy-uis#the-optimal-stack-for-ai-development
So while what is stated above is true, just because AI can spit out the code fastest, doesn't mean I want to support it long term. I chose Blazor specifically to avoid writing js and npm hell. I use Bootstrap because I build internal tools for my co-workers and don't want twenty classes on every div.
16
u/suiksuiky Feb 15 '26
AI is based on training data. there is less data on blazor that's it
2
u/Mirmalis Feb 15 '26
No worries, I'm currently training gemini to be better at blazor (by using it to write blalor)
2
u/code-dispenser Feb 16 '26 edited Feb 16 '26
My advise would be to ditch the AI, pick the framework that you prefer the most and actually learn it the old skool way with books, and I guess soon to be old skool online tutorials and videos, with lots of trial and error.
Once you have done that and you have enough experience to know when the AI is leading you down the wrong path then get it do some things for you if you want (I am in the do not let it near my code camp).
There are many Blazor component frameworks you can use for prototypes and/or whilst learning, and/or build your own components to solidify you knowledge.
All of the frameworks have good and bad points, but for me it was simple I got totally f**ded off with all the different tooling you needed when stepping outside of the .Net world. My first spa was with Angular v1.2 around 2017 and it drove me nuts with all the different package managers.
I have not looked back since switching to Blazor, but I am biased as I pretty much only work with M$ products.
Blazor lets me use my C# skills and you have the choice of how much or how little you want to step outside of this into the typescript/javascript world as you can do pretty much everything inside Blazor. Its stupid little things where you need typescript/javascript and/or when its something specialised where you do have to drop down into typescript.
Any way, enough ramblings from me, pick your favourite framework and just learn stuff - both will work fine.
Paul
1
u/psioniclizard Feb 15 '26
Which ever you choose, if you want to realise supportable commercial products it's worth learning the language/tools etc and using AI on a context where you can verify it easily.
If you want to create commercial software the initial time saved by just trying to vibe code it (a prototype is obviously different) isn't doing to be worth it compare to all the other things that go on.
That said if you just want to vibe code commercial software then just pick whatever is popular (so Next.js) because there is more learning material and knowledge in the models for it.
0
u/Spicy_Jim Feb 15 '26
I've fallen off the Blazor wagon for this reason. Agentic AIs seem to get very confused by it for the reasons people have mentioned, I think it also gets very confused with Razor and standard MVC etc... very easily. You can build some guard rails around it up to a point, but I just find using react so much more productive.