4 ms·
> I found myself amazingly productive with Razor Pages I'm curious, compared to what?
by he0001 8y ago
> I found myself amazingly productive with Razor Pages
I'm curious, compared to what?
- pestkranker 8y agoPlain old MVC.
- elboru 8y agoSPAs too, it will depend on every project, of course, but a lot of projects don't actually need a REST API, and don't need a client side SPA with all the bindings and parameters coming and going, a lot of projects will be perfectly fine with server rendering.
- giancarlostoro 8y agoOdd statement considering you can do ASP .NET Core MVC with Razor pages too. Which is usually my main approach to ASP .NET Core.
- merb 8y agoactually I'm a java guy or to say it differently, a scala guy and i mostly use mvc to create my normal web stuff. however with razor pages I'm so much faster to do stuff. because it's a little bit simpler to setup. Your model is actually just "code behind" and you could still have a good structure. and as a bonus, razor view engine is like twirl (scala project) minus some quirks. also you can still easily add typescript, etc. Or even make a SPA with the WebApi and SpaServices (heck I even use the Webpack Middleware). It's just amazing how integrated .Net Core 2 feels. And the easy stuff is already integrated into the Framework, like Authentication/Authorization. I've never had a secure cookie authentication running that quickly. actually when I looked at .net core 1.0 I basically already tought it is abadonware, because of the new build system, because i wasn't a huge fan of c# and lot's of stuff just didn't worked, but since we needed to migrate our old WebForms application I somehow tought that before rewriting everything, it might be a good idea to look into it and it somehow clicked. c# is really moving fast and the recent additions even makes myself as a scala programmer feel more at home.