MVW代表什么? [英] What does MVW stand for?

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

问题描述

这是AngularJS页面的内容描述:

Here's the content description for AngularJS page:

AngularJS就是HTML的原本,如果它是为构建Web应用程序而设计的.具有数据绑定,MVW,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等争吵,我猜是无论如何",Model-View-Whatever = P)

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

推荐答案

它确实代表任何内容,例如

It stands indeed for whatever, as in whatever works for you

MVC与MVVM与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-$ scope对象 可以认为是由 我们称为控制器的功能.

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 代表使用 框架.它还可以帮助建立供以下人员使用的术语: 开发人员.

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".

Angular为您提供了很大的灵活性,可以很好地分离演示文稿 逻辑来自业务逻辑和表示状态.请用它加油 您的生产力和应用程序的可维护性,而不是热情 在一天结束时有关事情的讨论并不重要 很多.

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.

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

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