255 karma · joined March 11, 2008
Statistics can be molded to fit whatever the statitician wants to say, but anecdotes are worse.
function lambda( $code )
{
if( !preg_match( '/return/', $code ) )
{
$code = preg_replace('/^(.*;(?!\s*$))?/s', "$1 return ", $code);
}
$code .= ';';
$response = create_function('$_=null,$_1=null,$_2=null,$_3=null,$_4=null,$_5=null', $code);
if( !$response )
{
error_log("lambda($code) failed");
}
return $response;
}
This converts: $func = create_function('$v','return htmlenties($v,ENT_QUOTES);');
array_map($func, $data);
Into: array_map(lambda('htmlenties($_, ENT_QUOTES)'), $data);For example, if you decide at some point you want all page titles to be bright green and placed below the main text of the page, how much work will it be?
The whole argument about separating content and presentation is about speed. If they are separate, and changes need to be made to one, then you don't have to get knee deep in the other to change what needs to change.
CSS based layouts mean the changes might only require editing the one .css file. Table based layouts might mean that you have to edit each page, or if you are using a decent templating system, it might be a single page
The same goes for accessibility. Will it take more time to make your site usable by screen readers and small screens while using one layout or another? What types of accessibility are even important to you?
My favorite quote from the pseudo science fear mongering article: "researchers who have raised concerns say that just because science can’t explain the mechanism doesn’t mean one doesn’t exist."
Firefox has Google
IE has Microsoft
Safari has Apple
Opera only has Opera backing it.