第十天 框架之痛-前端框架CorMVC(一)

            3月29日,晴天,小桃花发春风起,,花谢花飞飞满天奋斗

        1、开源前端MVC框架-CorMVC

       CorMVC is a jQuery-powered Model-View-Controller(MVC) framework that can aide in the development of single-page jQueryapplications. It evolved out of my recent presentation, Building Single-PageApplications Using jQuery And ColdFusion, and will continue to evolve as Ithink more deeply about this type of application architecture.

            CorMVC,基于jQuery的MVC框架,可用于开发单页面应用程序,它源自于我最近使用jQuery和 ColdFusion(动态Web服务器)建立的一个单页面应用,我将持续完善这个框架。

             CorMVC stands for: Client-Only-Required Model-View-Controller, and is my laboratory experiment in application architecture held completely seperate fromserver-side technologies.

      CorMVC是客户端的基于MVC请求的应用,是实验室应用架构的前端,与服务器无关。

       corMVC Philosophy
       corMVC 的设计理念     

        Building frameworks in jQuery (or any other language for that matter) is very new to me; I don't claim to be any good at it. In fact, when I started looking into jQuery-based frameworks, I had no intention of creating my own. As I started to do my research, however, I quickly encountered two major problems with what was available:

           实际上,当俺开始考虑基于JQuery的架构时,俺就没打算自己弄,主要是对JQuery不熟,也不想装B。可当俺往下继续时,却很快遇到两个需要抉择的问题,如果使用现成的

         1)Most examples wereso small that I could not see how they might be applied to the kind of software I build.

         2)Most frameworks were enormous and required command line utilities and some additional server-side technology (like Ruby On Rails) just to experiment with.

            一些应用太小,不合适在俺的应用上。可另外一些框架又太大,又是命令行,又是服务器,太麻烦。

        I didn't even know how to begin learning. So, rather than wade through what was available, I decided to try and create something from scratch. What I came up with is corMVC. The philosophies that I put into the corMVC framework are those that were hopefully a remedy to the problems I encoutered above:

       我不知从哪入手,所以放弃现成的烦扰,决定从头开始,自己写一个corMVC,并把我的设计理念放入,来克服上述烦恼。奋斗

      1、A large sample application. This whole demo site (including the contacts section) runs off of corMVC as a single-page application.

        一个大的样例。全部演示(包括联系人页面)使用corMVC完成一个单页面应用使用。

      2、No server required. This demo application does not require any additional server-side technologies. If you have a web browser, you candownload and run this application immediately.

        服务器无关演示无需服务器端技术。使用web浏览器,下载运行即可。

     3、No building required. This framework does not require you to build the application using scaffolding or any other command-line executables. You just download it and open it up in a browser.

           无其它要求。框架无需辅助技术和使用命令行来执行,在浏览器打开即可。         

     4、Small Framework. This framework is very small (andexcessively commented). It doesn't do anything more than it is supposed to.

           小的应用框架。框架不大,不要指望它能干什么,玩玩而已。尴尬

      While I want to keep the corMVC framework as small as possible, I am sure that as I begin to more fully understand the various needs of single-page applications, the framework will have to evolve as necessary. In the end though, I want the corMVC framework to be an aide and not a constraint- affording the programmer the freedom to pile their own jQuery magic on top of this foundation.

      虽然我尽可能使corMVC 框架小一些,但俺可以肯定单页面应用的不同需求,框架改进是必须的。最后,我想corMVC 框架是给大家的助手,而不是束缚,你可以自由自在的创建更炫的jQuery应用。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值