ASP.NET MVC reminds me of old Classic ASP spaghetti code

后端 未结 14 755
借酒劲吻你
借酒劲吻你 2020-12-24 07:50

I just went through some MVC tutorials after checking this site out for a while. Is it just me, or does MVC View pages bring back HORRIBLE flashbacks of Classic ASP spaghet

14条回答
  •  时光说笑
    2020-12-24 08:46

    Because the people behind MVC really liked ASP/JSP pages and want to implement it all over again. They appear to hate:

    • ViewState
    • Existing ASP.Net Controls
    • Clean Html
    • Existing User Controls
    • Postbacks

    They appear to love:

    • Re-inventing the wheel
    • REST-ful urls

    MVC essentially is a way of forcing a separation of code from presentation. If a developer actually cared enough, this could be easily acheived with normal Asp.Net. It is possible to punk the whole "separation" system anyway, so I don't really see the point.

    That being said, there is some merit to it.. but not enough to outweigh the problems. MVC version 3 I'm sure will be awesome.

    And before anyone marks me down -1, see how many MVC questions I've answered. I know what i'm talking about.

    UPDATE If you are taking your separation seriously, upon looking at it, chaiguy1337 is onto a good thing. String Template looks great because it does not allow any code in your front end! In my opinion, the ASP.net MVC team dropped the ball on MVC.

提交回复
热议问题