Chris Hubbard wrote:
No, not random character generation.
Currently the application I'm working does the following: 1. from an array that defines HTML components (like a table row, input field, file upload, etc), and, 2. from an array that defines PHP components (like sql queries, file upload, assigning values to variables, etc), and, 3. a library of HTML components (like the HTML to display; a table row, a search box, a text area, etc), 4. take all three of the above and do a (fairly) complex suite of str_replaces and then file writes, output .php and .tpl files, resulting in a (hopefully) functional application.
Primary advantage: as the application developer (as distinct from the code generation developer), you only have to build arrays. The arrays can be built from HTML forms, or XML, or ...?
Secondary advantage: if you need to build multiple instances of the application with minor changes, it's trivial to build and maintain.
Tertiary advantage: you have a common "framework" (though not technically a framework) for all deployed applications. It's relatively easy to "upgrade" the applications, or swap out sections of the code with improved code.
chris
-----Original Message----- From: Scott Fletcher [mailto:[EMAIL PROTECTED] Sent: Friday, September 05, 2003 9:30 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: PHP code generation
What are the example of code generation project? Are you referring to the generation of the random characters?
"Chris Hubbard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
I'm working on a code generation project. Is there anyone on the list who has experience building these things, and, would like to discuss architecture/patterns/structure of code generation off-list?
Chris Hubbard [EMAIL PROTECTED] www.wildcharacters.com 425 481 2020
php based web application development
Y! [EMAIL PROTECTED] MSN [EMAIL PROTECTED] AIM ganeshacph
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php