RE: [PHP] Removing quotes (was stripping white space?)
| From: | Maxim Maletsky | Date: | Tue, 10 Jul 2001 15:16:29 +0000 |
| Subject: | RE: [PHP] Removing quotes (was stripping white space?) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-57165@lists.php.net to get a copy of this message | ||
you're right, it is the saving of only 3-5% of the whole page. Not very
relevant. But still, I see too few reasons changing that into the 100%
standart.
Though, I am starting agreeing with you guys...
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
maxim@phpbeginner.com
www.phpbeginner.com
-----Original Message-----
From: Kurt Lieber [mailto:php@internalcombustion.com]
Sent: Tuesday, July 10, 2001 11:27 PM
To: Maxim Maletsky; php-general@lists.php.net
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" <maxim@japaninc.com>
To: "'Mark Charette'" <charette@sneezy.org>;
<php-general@lists.php.net>
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:charette@sneezy.org]
> Sent: Tuesday, July 10, 2001 3:09 PM
> To: php-general@lists.php.net
> Subject: Re: [PHP] stripping white space?
>
>
> From: "Maxim Maletsky" <maxim@japaninc.com>
> To: <NavidYar2@home.com>; <php-general@lists.php.net>
> 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: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net