by jjdeveloper · 5y ago · 0 comments
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 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'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..