Is ASP.net Model View Presenter worth the time?

后端 未结 5 1200
失恋的感觉
失恋的感觉 2021-01-31 10:56

I\'m reading about ASP.net MVP pattern over this weekend and it seem like even the most simple task take too much effort if do it in MVP pattern the pay off seem to be at larger

5条回答
  •  醉话见心
    2021-01-31 11:57

    my personal opinion is that if there's a lot of code in the code behind, there still are ways other than adopting M-V-P in order to slim it down, refactor and make it testable.

    if your page has extensive user interaction (like buttons/links enabling/disabling, panels and controls appearing/disappearing) M-V-P would be worth the hassle.

提交回复
热议问题