--9zSXsLTf0vkW971A Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Feb 14, 2006 at 04:32:18AM +0900, James Britt wrote: > But consider what Holub has to say on objects being responsible for > rendering themselves. That works great when there's only one kind (or a few kinds) of rendering. But it doesn't scale well with the number of output formats, which is what's needed in this case. If you have n classes and m ways to render them, you'll write n*m methods. Instead, you can write a single canonical output method in each class and then implement renderers separately. This gives you n+m methods. Much more scalable. regards, Ed --9zSXsLTf0vkW971A Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFD8ODenhUz11p9MSARAgJjAJ983dvVpW7wOfUEmX7Q2u6HZYNaKQCg1u5U kMykvrASEx/6P5wcOGtcemw eh -----END PGP SIGNATURE----- --9zSXsLTf0vkW971A--