My thoughts exactly Comrade

--Navid Yar

-----Original Message-----
From: Kurt Lieber [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 10, 2001 9:27 AM
To: Maxim Maletsky; [EMAIL PROTECTED]
Subject: [PHP] Removing quotes (was stripping white space?)


Will IE 6 support this non-standard coding style?  What about mozilla 1.0?
Opera?  Konqueror?

I think the point is that standards give you a pre-defined style guide that
everyone can code to and know that their applications will (or at least
should) work across multiple platforms.  While removing quotes will work
today, it may not tomorrow or the next day.  However, by adhering to
standards, you have a much better chance of your code not breaking as new
browsers get released.

An ancillary point is the size savings that you likely get on a single page
is 30-40 *bytes*.  So you're saving a whopping.000001 second of download
time.  (ok, maybe a bit more, but you get the point)

As someone else pointed out, this is a holy war type of thing, so not
everyone will agree.  However, the points above are why I adhere to coding
standards as much as possible.

--kurt



----- Original Message -----
From: "Maxim Maletsky" <[EMAIL PROTECTED]>
To: "'Mark Charette'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, July 09, 2001 11:18 PM
Subject: RE: [PHP] stripping white space?


> Here we are talking about our coding styles:
>
> When the PHP output is going to be an HTML page, why not getting rid of
> double quotes with an integer? Even a string is fine, but I just don't
feel
> as confident.
>
> I know it makes some very few difference doing so, but I just don't see
why
> not if it is easier for me to develop this way.
>
>
> Give me a valid reason and I'll stop.
>
> (I am talking about simple plain HTML, no XML or anything else, just HTML)
>
>
> -maxim maletsky
>
>
>
> -----Original Message-----
> From: Mark Charette [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 10, 2001 3:09 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] stripping white space?
>
>
> From: "Maxim Maletsky" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Tuesday, July 10, 2001 1:05 AM
> Subject: RE: [PHP] stripping white space?
>
>
> > I think it IS a good practice
> > if you only practicing HTML to be outputted by PHP.
>
> Why, if you know that it's illegal XHTML and XML, would you ever conclude
> that it's _good_ practice to break the rules? Saving 20 or 30 bytes/page?
If
> you really want some space saving on many browsers and you're running
Apache
> why not just install the zlib package? Effective throughtput on my (over
> 100,000) pages on my site jumped 8-fold for those people able to receive
and
> decode zlib-compressed pages, and I didn't have to change anything ...
>
> Mark C.
>
>
> --
> 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]
>
>


--
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