Re: Re: PHP code generation

From: Date: Sat, 06 Sep 2003 14:36:15 +0000
Subject: Re: Re: PHP code generation
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-161857@lists.php.net to get a copy of this message
I think http://www.meta-language.net/ might be something similar. 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:scott@abcoa.com] Sent: Friday, September 05, 2003 9:30 AM To: php-general@lists.php.net 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" <chris@wildcharacters.com> wrote in message news:AMEHIMKKMFIMCOJPPEEEKEPNCEAA.chris@wildcharacters.com...
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 chris@wildcharacters.com www.wildcharacters.com 425 481 2020 php based web application development Y! hoponpopontoponmoponcop@yahoo.com MSN another_ganesha@hotmail.com AIM ganeshacph
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.general (#161857) next »