-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2 Apr 2007, at 22:29, Yuval Kogman wrote:
There's still only one WebForm object: $wide_form and $narrow_form are
proxies for $form that modify its behaviour. It's a bit like currying
but for objects rather than functions.

That's pretty much vanilla prototype OO (know any js?).

Yeah, I know you can do it easily with prototype based OO but I thought it was more than merely proto based OO.

See Class::Classless, Class::Prototyped and friends.

Sure.

In some ways it's similar to MVC with $wide_form and $narrow_form being two views attached to the $form controller. The difference is that the two views actually inherit their behavior from the controller and can be
used interchangeably with it.

Eh, how?

How is it like MVC? Or how may they be used interchangeably?

It's like MVC in the sense that their both views of the same underlying object.

- --
Andy Armstrong, hexten.net

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (Darwin)

iD8DBQFGEXaawoknRJZQnCERApF5AKDRe2Czj+QrOY8Bm9NbRvZb3hdjRgCdEs1R
kztxoptYdRBMtIyKKNgQYsM=
=eRG6
-----END PGP SIGNATURE-----

Reply via email to