Re: [PHP] Re: PHP in HTML code

[email protected] (tedd)
Newsgroups php.general
Message-ID <p06240807c7c5757410eb@[192.168.1.102]>
At 5:54 PM +0000 3/15/10, Jochem Maas wrote:
>Op 3/13/10 3:49 PM, Jorge Gomes schreef:
>>  First of all, i recommend the use of normal php tags (<?php ...  ?>) because
>>  the short tags are atm marked as* **DEPRECATED*.
>
>that's a documentation error.
>
>>
>>  You should also echo your values to the page, instead using the shortcut <?=
>>  (stop being a lazy ass! :P):
>
>it's not lazy, it's succinct and much easier to read (once you know 
>what it means),

Yes, but like all web languages, they don't live in a vacuum -- they 
must play well with others to survive. Programming is dynamic not 
static.

While using "<?=" identifies what follows "to you", it doesn't "to 
others" and therein lies the problem. If XML (and possibility others) 
don't accept the short term tag, then why use it?

Using "Standards" like this help promote better communication between 
all languages -- what's wrong with that? Simply put, either 
communicate better or don't -- that's your choice -- but your 
decision is also a demonstration to your client/employer/peers as to 
your desire to produce the "best" possible code.

I look at code containing "<?=" the same way as I see html containing 
tables and embedded styling for presentation -- "This must be old 
code OR the programmer still doesn't get it".

Cheers,

tedd

-- 
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.