Re: Category-Proposal: Patterns
| From: | Xavier Noguer | Date: | Fri, 21 Feb 2003 20:07:33 +0000 |
| Subject: | Re: Category-Proposal: Patterns | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-13599@lists.php.net to get a copy of this message | ||
El Vie 21 Feb 2003 15:42, Tony Bibbs escribió:
> > which I think is particularly well fitting for GUI development, but nor
> > for web development...
>
> Don't take this personal, but I couldn't disagree more. What parts of GUI
> development lend itself better to the MVC pattern that aren't present in
> many web applications?
Don't worry I try not to take it personal :)
My previous statement was wrong. What I was trying to say is, the actual
implementations of MVC (*) are a good fit for java, but they don't add much
value to php.
The templating part is more than covered already by several different
packages (Smarty and the pear templating engines).
Forcing all actions to be handled by Action objects seems to me like Sun is
trying to shove servlets down my throat all over again so that JSP remains
just as a "templating technology" ("scripting considered harmful"?)
If pages are dangerous because they don't have the strict (?) interfaces that
object methods have, then I don't think dismissing the power of scripting is
the solution. Having a framework to specify interfaces (proper input) for all
pages seems like a much better solution to me (In fact, I have some
experimental code which does just that).
This opinions come from my limited experience with JSP/Struts/servlets, and
are probably tainted by my visceral hate for all things java, so feel free to
correct me.
* Phrame is "based on the design of Jakarta Struts", so I'm not considering it
(this is not a statement on the merits of Phrame).