Category Archives: PHP

PHP vs Python

$What is $easier to $read?  {A $document of $commands in a $pseudo $English $language $strewed with ($dollar $sign $symbols ($$), $French $Braces ({), and $semi-colons)?  Or a $document $without all $that?}

What is easier to read?  A document of commands in a pseudo English language strewed with dollar sign symbols ($), Flower Braces ({), and semi-colons?  Or a document without all that?

PHP

$logger = new Logger();
if ($error) {
   $logger->info('Problemo');
}

4 lines.  70 characters.

Python

logger = Logger()
if error:
   logger.info('Problemo')

3 lines. 50 characters