the central point behind all this html-mixing-php stuff is this:

_if_ you are going to release code to a population of developers, and you
hope that it will be useful to them - that code must be flexible enough for
an individual developer to change it to suit their needs.

let's assume you're working on a site, where there are php coders, and html
people: _every_single_ html production person prefers to have code embedded
in html, not the reverse.

As soon as you embed html in code, the html production staff has to do a
significant amount of work to extract that markup from you code - and that
process is prone to error. I know that from long experience with perl apps,
jsp, cfml, php, etc.

The entire point behind these "web-oriented" scripting languages is to
_avoid_ mixing markup with logic to the extent possible - which facilitates
quick "style" changes to markup, while avoiding problems with html
production staff screwing up code.

Whatever your production process, whether you are a lone developer, or
working within a large commercial web development team: if you intend to
release your codek, the more flexible you can make your application, the
better. That includes facilitating quick changes to all of the markup
associated with your application.

echoing large chunks of that markup does not achieve the latter.

best,

_alex



--
Alex Black, Head Monkey
[EMAIL PROTECTED]

The Turing Studio, Inc.
http://www.turingstudio.com

vox+510.666.0074
fax+510.666.0093

Saul Zaentz Film Center
2600 Tenth St Suite 433
Berkeley, CA 94710-2522




> From: [EMAIL PROTECTED] (Jason Murray)
> Newsgroups: php.general
> Date: 11 Jan 2001 16:33:19 -0800
> Subject: RE: [PHP] mixing HTML and PHP code
> 
>> it's valid to use single-quotes, double-quotes, or NO quotes.
> 
> If you're going to use no quote, make damn sure you don't have any
> spaces :)
> 
> Jason
> 
> -- 
> Jason Murray
> [EMAIL PROTECTED]
> Web Design Team, Melbourne IT
> Fetch the comfy chair!
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to