科技行者

行者学院 转型私董会 科技行者专题报道 网红大战科技行者

知识库

知识库 安全导航

至顶网软件频道ASP.NET MVC - 一次思想解放

ASP.NET MVC - 一次思想解放

  • 扫一扫
    分享文章到微信

  • 扫一扫
    关注官方公众号
    至顶头条

思想解放1 - REST是什么

作者:James Zhou 来源:blog【原创】 2008年1月11日

关键字: REST application MVC James Zhou 软件

  • 评论
  • 分享微博
  • 分享邮件
思想解放1 - REST是什么

People like to equate REST and SOAP in the same sentence, as if it’s an option for web service architecture. The truth is, REST is an architectural principle in and of itself that is as old as the web and, In fact, the Web itself is the REST poster child. More accurately: REST is a state of mind.

思想解放2.1 - 没有"Pages"只有"Remote Procedure Calls"

you should throw the notion of “pages” away, since these “resources” should be consumable by whatever client is calling on them (so the information might be an XML or JSON stream). To summarize: stop thinking “pages”, start thinking “Remote Procedure Call”.

思想解放2.2 - 没有"Form"

The important thing to remember at all times is that  you are building an instruction set for the web - a collection of consumable “Methods” that are displayed via “Views”.

思想解放3 - 没有"Site"

it’s not a collection of pages. It’s an application and as such, the logic can be plugged into other MVC applications.

If you move this to a new MVC Application, or combine it with another, you just reset some routes in your Global.asax and drop in your Views (these are static content pages) - and you’re all set!

原文链接:http://blog.csdn.net/jameszhou/archive/2008/01/08/2031062.aspx

    • 评论
    • 分享微博
    • 分享邮件
    邮件订阅

    如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。

    重磅专题
    往期文章
    最新文章