Skip to content

What happened to Web Pages? will there be an ASP/PHP like straigtforward no MVC overhead version of ASP.NET? #1904

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mnns opened this issue Jan 17, 2017 · 16 comments

Comments

@mnns
Copy link

mnns commented Jan 17, 2017

I mean, some people simply don't want to deal with the huge overhead of MVC, especially in tiny websites or highly customized web sites. IMHO this is the basics of web sites and MVC should have been developed on top of it, rather than coming first. For some, MVC is an overhead, especially in code, file tree, simplicity, straightforwardness and also sometimes in performance, especially in highly tuned .NET web apps.

I would really want to see PHP/ASP like ability to code in ASP.NET Core, writing beautiful C# code and being able to run on any OS.

@imust2008
Copy link

It is a bad news for the beginner from php and linux!

@mnns
Copy link
Author

mnns commented Jan 19, 2017

This is exactly what I'm talking about. We desperately need new comers that will experience setting up a new web app in ASP.NET Core within 5 minutes top, just like NodeJS and other modern stacks. If you top NodeJS with better performance (using RIO/netmap), ease of use, straightforwardness, cross platform and cross ISA (x86/ARM), .NET Core will explode. And I'm guessing Microsoft didn't start .NET Core so it will fail or never become as popular as it could easily be.

That means starting from the basic ASP (or whatever you call it in .NET Core, "Web Pages"/"Razor Pages"), HTML, CSS & JS. Nothing more than that, no "Controller" folders, no "View" folders and nothing related to any extension or different methodology than the most basic scriptable web site.

If you want to use MVC, simply include it in your project.

@simonmurdock
Copy link

Hasn't this been discussed as an upcoming feature and been demonstrated in one of the weekly stand-ups?

@fgreinacher
Copy link
Contributor

aspnet/Mvc#494 (comment) -> https://github.com/aspnet/RazorPages

@mnns
Copy link
Author

mnns commented Jan 19, 2017

@simonmurdock IDK, but there's no updated roadmap stating anything about where Web Pages (as announced in Build) had gone to. New comers will never scrape the entire history of hour long stand-ups just to seek the whereabouts of the promised Web Pages. Microsoft is not clear about it (I suspect also internally). A blurred message from Microsoft regarding a technology stack means many companies (such as my own) will rush to use other technologies instead of waiting for Web Pages.

@fgreinacher Unfortunately, Razor Pages is a part of MVC, which has been stated in the issue you've quoted. This means as a new comer to ASP.NET Core, I still have to climb the not-that-small mountain of Microsoft's MVC technique (which is quite disputed by many developers) just to make me a tiny, simple "Hello World" website. Razor Pages will be committed to MVC repo and will expose many MVC objects and will finally be a "lightweight MVC", which is still a lot more than a simple scriptable website.

Instead of clicking "new project", having only 1 file that serves a simple lightweight website, immediately running it with F5, new comers will have to engage a huge file tree, out of scope terminology (with a lot of proprietary stuff) and will, unless they are instructed to by their boss, uninstall it quickly and rush to Node/PHP as many already have.

@jamiebvc
Copy link

@mnns :"I mean, some people simply don't want to deal with the huge overhead of MVC, especially in tiny websites or highly customized web sites"
I totally agree with you. I'm a beginner on web development but experienced on windows forms and c#. I 've started using asp.net web pages 2 years ago , i really enjoy it and i found it very easy as a framework. If my only option was mvc i don't think i would have been developing using asp.net right now

@fgreinacher
Copy link
Contributor

If you look at the "Hello World" sample from aspnet/Mvc#494 (comment) that's pretty much only one relevant file (excluding bootstrapping and project file, which can be autogenerated)

@h3smith
Copy link

h3smith commented Jan 19, 2017

As someone who was unequivocally against doing MVC, due to having done pages since .NET inception, migrating to MVC for .NET Core - id now never go back. We had huge swaths of controls in .NET we've have to migrate as well.

I think the issues I had were just understanding how things played together. Moving to MVC takes rethinking of how you've solved things before. There needs to be a better "MVC beginners" guide for pages veterans.

It is easier to build and deploy MVC, once you know what you are doing. I'd never go back and it's been 3 months since migrating. It's more maintainable. Easier to test. I don't see any draw backs - other than those who don't want to relearn (which I gladly admit I was one of).

@mnns
Copy link
Author

mnns commented Jan 20, 2017

@h3smith I'm also into ASP.NET since its first release and into MVC for 4 years, both ASP.NET MVC and client side MVC frameworks. I'm also into PHP since around 2002/3. I'm sorry to say, IMHO MVC is an extreme overhead for many types of projects. Just think about beginners who I've seen with my own eyes give up quickly on .NET MVC just because of the huge distance from a simple scriptable website like PHP/ASP. MVC doesn't fit many projects and if you have to build a simple website or a highly customized website then you have to find your way through a huge maze just to build a simple HTML file with "hello world" in it... Right now, the fact is you can't build simple straightforward websites with ASP.NET Core.

@fgreinacher
Copy link
Contributor

Sorry, but how would this not be straightforward?

 > dotnet new -t web
 > echo @page > index.cshtml
 > echo Hello @Environment.UserName! >> Index.cshtml
 > dotnet run

@ctolkien
Copy link
Contributor

@mns et. al.

The ideas behind "Web Pages" (that being a "simpler" model than MVC) is coming back as "Razor Pages". I believe this is slated for a release this year.

@sirus-codes
Copy link

@mnns
im quite agree with you, msft will lose a lot of developers because removing webpages from .nor core. although they are working on something similar (razor pages) but its too complicated rather than webpages or php. also no clear message is available about the future of asp.net and current webpages. so while msft and .net core designers are wasting the time, a lot of developers have switched php and they are happy with it's simplicity and power.

@PonchoPowers
Copy link
Contributor

Have you heard of T4? It works in a very similar way to PHP, unless mistaken it sounds like this is what you were hoping for, although it has been around for some time:
https://msdn.microsoft.com/en-us/library/bb126478.aspx

@aspnet-hello
Copy link

This issue is being closed because it has not been updated in 3 months.

We apologize if this causes any inconvenience. We ask that if you are still encountering this issue, please log a new issue with updated information and we will investigate.

@davidalpert
Copy link

davidalpert commented Dec 30, 2017 via email

@davidalpert
Copy link

davidalpert commented Dec 30, 2017 via email

@ghost ghost locked as resolved and limited conversation to collaborators Dec 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests