Renderer or Writer?
| From: | Wolfram Kriesing | Date: | Thu, 25 Sep 2003 21:11:04 +0000 |
| Subject: | Renderer or Writer? | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-22039@lists.php.net to get a copy of this message | ||
I am curious what you guys think.
i dont really know when to use "Renderer" and when "Writer" for a package. Just two examples:
- Mail_Message_Writer
writes mails i.e. to files
- Query_Renderer
renders a query into a string which is SQL.
But shouldnt "Query_Renderer" not be called "Query_Writer" since it might also be able to have a method toFile() which writes the query to a file, which is a writer in this case. Right? But it of course also renders the query from the object presentation to a string (SQL).
Or shall "Query_Writer" be an extra package (besides "Query_Renderer"), which writes queries to different destinations?
i would be intersted in opinions, thanks
--
Wolfram
http://opensource.visionp.de
... authentication system ....
http://sf.net/projects/auth