Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

MVC thoughts

$
0
0

After dive into MVC for a while, I feel like we are going backwards.

1. Spaghetti code. It seems MS is promoting to have code embedded in view again. A very powerful engine allow you embed a lot code in view. Even in MS demo project, it even tries to eliminate the controller, and all code in CSHTML. What is the point?

2. CodeBehind. For cshtml, it still support code behind. Some people don't know it, but we do have code behind, and I am hesitating how far I will go with it.

With asp.net webform, we used to have: Codebehind, business layer. Now we have

Code embedded in view, code in code behind, Controller, business layer. Sometimes I have to think hard where to put my code?

Calvin


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>