Google recently has launched Speed — a campaign to make the web fast — showing the web-developers the "best" practices. With the launch of Page Speed, such a campaign was inevitable. When Yahoo! launched Yslow for firebug, they also babbled about best practices drawing much flak from the developer-community. This time, unfortunately, it's Google who's getting all the blame.

A video on how Google feels to speed up the web.

PHP Worst Practices

The site contains some advise on PHP best practices which claim to significantly speed up PHP scripts. But the PHP team feels otherwise. Looks like Google has either ignored the latest versions of PHP or been lagging behind. To quote the PHP team:

Most of these points may have been true in ancient versions (PHP 3, or very early versions of PHP 4), but they are definitely untrue in modern PHP. The PHP team urges the author of the article to check his facts more carefully, and to investigate where his claims of extra speed are truly coming from (as certain coding patterns, combined with specific PHP settings, can sometimes make some of the above points partially true).

CSS Nightmare

It's pathetic to see how Google advises to write "logical" CSS rather than maintainable CSS. A serious developer can easily tell you which one of the two code blocks is more maintainable.
h1, h2, h3 { font-weight: normal; }
a strong { font-weight: normal !important; }
strong { font-style: italic; font-weight: normal; }
#nav { font-style: italic; }
.note { font-style: italic; }
And this one...
h1, h2, h3, strong { font-weight: normal; }
a strong { font-weight: normal !important; }
strong, #nav, .note { font-style: italic; }
When everyone's talking about maintaining CSS stylesheets, it's horrible to see Google talk like that.

No Such Thing As Best Practice

It's all about personal preferences. Millions of articles are written on "Best Practices" and a lot of them contradict a lot other articles. If it's a best practice for you it can be worst for someone else. Also with the advent of broadband connection, the web has become fast if not blazing fast. Thus, projects like Speed is redundant.

Labels: , ,

blog comments powered by Disqus