8 ms·
Avoid blazer like the plague. I use it in my work and the only reason why is because everyone uses C# and can’t be bothered to learn a second language. Take a w
by aardvarkr 3y ago
Avoid blazer like the plague. I use it in my work and the only reason why is because everyone uses C# and can’t be bothered to learn a second language. Take a wild guess which company that is. It’s an awful architecture that only exists because some exec at Microsoft willed it into existence. There’s a reason why Java doesn’t get used to program real website front ends and I’d never use C# for web dev if I weren’t forced to.
- deleted 3y ago[deleted]
- kumarvvr 3y agoCurious to know more. I have developed a few web apps using it. I actually like the pages + Components separation paradigm and asp.net is pretty fast. Could you explain your perspective on Blazor?
- DaiPlusPlus 3y agoBlazor is based on a build of .NET (CLR + BCL) for WASM - though it is highly optimized and unused code is aggressively removed from the WASM bundles it still means your users will need to download (at least) 6MB of WASM while your SPA loads - which makes Angular look anorexic in comparison. ...which basically restricts Blazor's use to corporate LAN environments, kiosk applications, and (maybe) PWAs - but it's otherwise completely unsuitable for use on the wider public Internet. ...but we know it'll end-up being used on the public web eventually anyway because developer time is worth more than the end user UX.
- mgh95 3y agoThis is just the adage software is a gas. linkedin.com now takes 5.1mb; users are simply becoming accustomed to larger web based applications.
- blackoil 3y agoWhich may look huge but not big problem for enterprise web apps. First load may be slow but it is then cached.
- xky 3y agoThe .Net team has made pretty significant strides in minimizing the bundle size and I would expect that to continue. It’s now also possible to combine pre-rendering and streaming with web assembly to improve the loading experience.
- 4rt 3y agoYou're talking specifically about Blazor client-side framework which is designed for e.g. games or drawing apps where 6mb of downloads isn't particularly onerous. The far more common use-case is Blazor server-side which doesn't have this huge download overhead and works like server-side rendering in e.g. React, the download is approximately 150kb.
- kgeist 3y ago>it still means your users will need to download (at least) 6MB of WASM Isn't it like 1 second of scrolling through Instagram?
- jmkni 3y agoAngular has really improved in this area, the addition of standalone components mean your initial payload can be very small indeed, and then just lazy load the rest as/if you need it.
- xky 3y agoWe evaluated a few options and settled on Blazor after tiring of the build chain and dependency complexity of the TypeScript world. So far, it’s been nothing but a breath of fresh air to work with. It’s important to clarify which model you’re working with when discussing Blazor. A lot of complaints seem to stem from using the Blazor server websocket model outside of its specific use cases. The web assembly and prerendered models are more comparable to modern developments in other ecosystems.
- yungporko 3y agoi'm currently working on a large blazor project, and it's pretty much been the same experience as all other shitty microsoft frameworks i've used, where its super nice to work with at first when there isn't too much complexity or edge cases, and all the magic under the hood makes everything super convenient and you find yourself asking why everyone doesn't use this for everything, but by the time the application is too big to consider scrapping it or rewriting it with different technologies, the cracks start to show and it's so much work to even develop the rest of it that you start looking for another job
- bouke 3y agoSo what are the cracks that have started to show that have made you start looking for another job?
- CharlieDigital 3y ago> I’d never use C# for web dev if I weren’t forced to .NET Web API is where it's at. I built an Express backend today and it feels primitive. The new minimal templates Web API templates are really good and even easier to get rolling than Express.
- jmkni 3y agoI've been using NestJS recently and it is a nice middle ground between the 2. You get the power of Types with the flexibility of Express (as well as access to the entire node ecosystem), I like it.
- CharlieDigital 3y agoI've used Nest and what really got me was that it seemed like a weird compromise. It performs almost an order of magnitude worse than ASP.NET Core and isn't any simpler (TechEmpower; considering only the EF + PG non-middleware cases). I feel like if a team is comfortable with TypeScript and considering Nest.js, C# and .NET Core Web APIs are not any harder, but you get much better throughput for your compute spend.
- DarkNova6 3y ago> There’s a reason why Java doesn’t get used to program real website front ends. The reason being native browser support for JS and nothing else. Java assumes a powerful runtime and c# much less so. WASM is a godsend for interoperability in the browser and I personally hope it delivers us from the curre scourge in the long run.
- merb 3y agoJava is/was heavily used in the browser. GWT is actually a thing. Since Google dropped it, it lost a lot of users basically. But there are still some big users.