6

I'm interested in learning about the alternative patterns to Model-View-Controller, specifically the Model-View-Adapter and Application-View-Controller patterns.

Google results tend to be either a high-level overview or Java-based.

Can anyone either provide, or point me to, an example of these patterns in either PHP, Python or JavaScript?

Georg Fritzsche
  • 97,545
  • 26
  • 194
  • 236
Phillip B Oldham
  • 18,807
  • 20
  • 94
  • 134
  • There's nothing "wrong" with MVC, but sometimes the problem doesn't fit exactly with that pattern. MVA seems as though it could help with my particular task, but I could do with an example to be sure. – Phillip B Oldham Mar 13 '10 at 12:33
  • 1
    look also at the DCI (data, contexts and interactions) architecture – Gabriel Ščerbák Apr 06 '10 at 22:57
  • there is also PAC (Presentation Abstraction Controller) described in POSA1 and MVVM (Model View ViewModel) and MVP (Model View Presenter) by Martin Fowler. – Gabriel Ščerbák Apr 08 '10 at 15:37

3 Answers3

1

These are some alternatives lurking about my bookmarks. They're mostly Java based but you shouldn't have any problems in understanding the underlying patterns.

Richard Perfect
  • 208
  • 2
  • 7
0

This could be "python" enough: http://en.wikipedia.org/wiki/Application_View_Controller You should look at that framework, although patterns aren't frameworks and understanding frameworks won't necessary make you understand the pattern.

Gabriel Ščerbák
  • 18,240
  • 8
  • 37
  • 52
  • The GoF authors suggest we understand patterns in the perspective we implement them, including languages, including frameworks. – Radek Jun 09 '10 at 21:44
  • @Radek Patterns can be described as solutions for problems in a certain context. What I say is that you get different solutions for the same problem in different contexts, what you say is that you need to know the context to apply the solution I guess. I saw people many times think the solutions only are the patterns and therefore I want to stress their wider scope. – Gabriel Ščerbák Jun 10 '10 at 07:20
0

As I understand from AVC description on its site, AVC is not a design pattern, it's a framework for python (and for jython as well).

That's why I think that your question is incorrect.

Roman
  • 64,384
  • 92
  • 238
  • 332