明合文吉 - 它所代表不? [英] MVW - What does it stand for?

查看:208
本文介绍了明合文吉 - 它所代表不?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下面是AngularJS页内容描述:

Here's the content description for AngularJS page:

AngularJS是HTML本来,如果它被设计用于构建Web的应用程序。与数据绑定,明合文吉,MVVM,MVC,依赖注入和伟大的可测试性的故事全部用纯客户端JavaScript!实施

AngularJS is what HTML would have been, had it been designed for building web-apps. Declarative templates with data-binding, MVW, MVVM, MVC, dependency injection and great testability story all implemented with pure client-side JavaScript!

那么,是什么MVW立场?
(考虑到MVC,MVVW,MVP等拌嘴,我猜无所谓,模型 - 视图 - 不管= P)

So what does MVW stand for? (Considering the MVC, MVVW, MVP etc squabble, I would guess "whatever", Model-View-Whatever =P)

推荐答案

这的确代表,如无论什么工作你

MVC VS MVVM VS MVP。什么一个有争议的话题,很多开发商
  可以花几个小时辩论和争论。

MVC vs MVVM vs MVP. What a controversial topic that many developers can spend hours and hours debating and arguing about.

几年来,+ AngularJS更接近于MVC(或相当它的一个
  客户端的变体),但随着时间的推移和感谢许多重构
  和API改进,它现在更接近MVVM - $的对象范围
  可以认为是由一个装饰视图模型
  我们称之为一个控制器的功能。

For several years +AngularJS was closer to MVC (or rather one of its client-side variants), but over time and thanks to many refactorings and api improvements, it's now closer to MVVM – the $scope object could be considered the ViewModel that is being decorated by a function that we call a Controller.

如果能够分类的框架,并把它放入MV中的一个*
  水桶有一定的优势。它可以帮助开发者获得更多的
  熟悉它的API通过使其更容易地创建一个心智模式
  那些重新presents正在与构建的应用程序
  框架。它也可以帮助建立所使用的术语
  开发者。

Being able to categorize a framework and put it into one of the MV* buckets has some advantages. It can help developers get more comfortable with its apis by making it easier to create a mental model that represents the application that is being built with the framework. It can also help to establish terminology that is used by developers.

尽管如此,我宁愿看到开发人员构建踢屁股的应用程序是
  精心设计,并按照关注点分离,不愿看到他们身上浪费
  时间争论MV *无稽之谈。基于这个原因,本人特此声明
  AngularJS是MVW框架 - 模型 - 视图 - 不管。 无论在哪里
  代表你什么作品

Having said, I'd rather see developers build kick-ass apps that are well-designed and follow separation of concerns, than see them waste time arguing about MV* nonsense. And for this reason, I hereby declare AngularJS to be MVW framework - Model-View-Whatever. Where Whatever stands for "whatever works for you".

角度为您提供了很大的灵活性很好地独立presentation
  从业务逻辑和presentation状态逻辑。请使用燃料
  您的工作效率和应用程序的可维护性,而不是加热
  的事情,在这一天的结束并不重要的讨论
  多。

Angular gives you a lot of flexibility to nicely separate presentation logic from business logic and presentation state. Please use it fuel your productivity and application maintainability rather than heated discussions about things that at the end of the day don't matter that much.

这篇关于明合文吉 - 它所代表不?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆