Skip to main content

Command Palette

Search for a command to run...

PureMVC | Prior for Episode 5

Published
L

Full stack web 3D developer

PureMVC will be included in next episode.

PureMVC is a framework for creating applications based upon the well-established model–view–controller (MVC) design pattern. The free, open source framework was originally implemented in the ActionScript 3 language for use with Adobe Flex, Flash and AIR, and it has since been ported to nearly all the major web development platforms.

puremvc.jpg

Advantages and disadvantages of PureMVC:

  • Advantages

  • Use intermediaries, agents and commands to realize decoupling, which reduces the coupling among model, view and controller and improves the reuse of some codes

  • The view interface can be reused

  • Model data can be reused

  • Disadvantages

  • Code redundancy is large. For simple functions, you have to create view, mediator, command, facade, proxy and model scripts

  • The operation process is a cumbersome process, and the code in mediator will appear complex and difficult to understand, unless you are familiar with the implementation principle of PureMVC

  • PureMVC features

  • The notice shall be delivered through the operation of packing and unpacking
  • The command / notification is implemented in the observer mode. The command / notification uses the reflection acquisition method in the observer and is executed
  • No service (this module for network communication can be added according to the structure of MVC)
  • Data is transmitted through notification. Sendnotification has only one object type parameter. It will feel that the data transmission is limited. You can combine the data into a type / structure for transmission, or expand another parameter for notification.

More from this blog

如何将静态页面部署到Github Page,并绑定自定义域名

在仓库主页选择setting 点击pages 选择分支branch 输入自定义域名custom domain(设置好后点击save,系统将自动在项目根目录生成CNAME文件,文件内容为设置的当前域名) 在域名提供商处,添加DNS设置(以阿里云为例) 配置CNAME 配置IP,创建一个A类记录指向185.199.108.153 github将根据访问域名路由项目仓库(仓库名称为iddz.fun,并且根目录有CNAME文件) 最后,通过访问自定义域名,完成静态网站的部署...

Oct 4, 2023
如何将静态页面部署到Github Page,并绑定自定义域名

熟悉熟悉官方文档,逐步深入Babylon.js

文档的组织结构 通过前一篇文章的了解,我们会对Babylon.js有了一个大致的了解,整个文档主要是想带你逐步深入掌握这个Babylon.js所提供的所有内容。 内容主要分为一个概览和9个主要部分,这些部分包含章节,还有API详解和强大的文档和playground搜索功能。 - 1.Babylon.js特性 - Babylon.js是一个功能完备的游戏和渲染引擎,具有广泛的特性。这个部分将带你了解这些特性,并帮助你编码和使用它们。- 2.将Babylon.js添加到你的Web项目中 - 有多种...

Sep 25, 2023
熟悉熟悉官方文档,逐步深入Babylon.js

Lizhiyu's Blog

33 posts

Bringing the world closer together through play