Do you know any examples of a PAC design pattern?

2019-04-06 04:01发布

Can anyone point to any websites or web applications that are using the Presentation-Abstraction-Control design pattern rather than MVC? Desktop applications are easy to find like this (e.g.; GIMP) but I'm looking for something on the web.

5条回答
唯我独甜
2楼-- · 2019-04-06 04:36

You have difficulty to get Web application that use PAC because PAC inheritance pattern work well on custom component and custon dialog box that is not really present in the web.

Many framwework use PAC that let you override the presentation, abstraction or control but when used in the web, mostly transform to MVC for it's simplicity (for example, you do not need to have a new level of PAC to change the appearance of a grid... you can use CSS file).

This is the best answer that I can give you.

查看更多
beautiful°
3楼-- · 2019-04-06 04:45

I suspect most sites written using what is called MVC are in fact using a version of PAC but with a single triad. MVC specifically requires the view to be able to communicate with the model directly without going via the controller. I think many web developers would expect this to always go via the controller regardless of the direction of communication.

查看更多
老娘就宠你
4楼-- · 2019-04-06 04:47

Drupal is a PAC based web framework in written in PHP. :)

查看更多
淡お忘
5楼-- · 2019-04-06 04:50

There are more sites using PAC than, I think, people realize. For example, drupal uses the PAC pattern and there are a lot of sites (and a lot of big sites) built with drupal. Many people confuse MVC and PAC. Larry Garfield does a good job explaining the difference and how drupal uses PAC.

In my research on this topic I found more than one open source app/framework that called themselves a MVC architecture when they more accurately fit the PAC pattern. Specifically in the way the model/abstraction, presentation/view, and controller interacted with each other.

查看更多
登录 后发表回答