Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I feel that the simplicity of just building on the server and pushing the updates across the wire is where we are heading. So a lot less double up, with regards needing to write both for the server and client. Validation especially will just need to be written once.

Although I do feel Phoenix Liveview is a better option because they implement sockets.

Also saw this update today they will allow you to trigger javascript on the client without the sever round trip, it's one of the things people get a bit stuck understanding. Generally they think to pop open a modal or menu requires a round trip to the server but really you should be using Alpine.js or similar for such things. This new pending update remove the requirement of needing a framework like Alpine. https://github.com/phoenixframework/phoenix_live_view/pull/1...



I write a lot of apps in Blazor. And I also think this is where we are heading. Just write code in C# and it works. Unfortunately Blazor feels a step back compared to something like VueJs but I really like that I don't have to write JavaScript anymore.


The idea isnt new though, GWT has been around since 2006 (the ancient Java version of writing the frontend code in Java, which is then served as JS to the client)

I dont think we're going to go back to that anytime soon, the performance hit is just too big compared to a well written js implementation.

To be fair, Blazor uses wasm, which is significantly better then the cross-compilation of GWT back then. nonetheless, the performance (esp. time to first render) is just not good enough for a lot of consumer facing apps

It definitely has its niche though. Especially if you're able to cache the .net runtime that gets executed through wasm locally (PWA style)


I really like the Blazor tech, but with all the activity around Blazor WASM I'm not sure this is really where things are heading. It's neat that both options work with the same underlying tech(even if converting an app between the two wouldn't be so simple).

I've built frontends in React and feel I have a fairly high level of expertise in VueJS; I actually got the sense that Blazor borrows quite a few ideas from VueJS. A major missing component IMHO is a good reactive state store like MobX..




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: