Re: PostTrack Updates

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jason Pruim írta:

On Apr 5, 2008, at 1:48 AM, Robert Cummings wrote:


On Fri, 2008-04-04 at 22:39 -0700, Jim Lucas wrote:
Robert Cummings wrote:
<?php echo "On Fri, 2008-04-04 at 17:23 -0400, Daniel Brown wrote:\n" ?>
<?php echo "> Some changes take effect with the PostTrack metrics\n" ?>
<?php echo "> system with this week (will show up in next week's\n" ?>
<?php echo "> report). There's one bug fix and a new feature added,
\n" ?>
<?php echo "> in which some of you may be really interested.\n" ?>
<?php echo ">\n" ?>
<?php echo ">     CHANGELOG\n" ?>
<?php echo "\n" ?>
<?php echo ">         Fixed a bug that would (seemingly random)\n" ?>
<?php echo "> split a user's post recording over multiple entries.\n" ?>
<?php echo "> (See this week's report: Zoltan Nemeth for example)\n" ?>
<?php echo ">         Added a new CodeCount feature.  Explained\n" ?>
<?php echo ">         below.\n" ?>
<?php echo ">\n" ?>
<?php echo ">     The CodeCount feature will, from now on, track\n" ?>
<?php echo "> the amount of [pseudo]code everyone posts to the\n" ?>
<?php echo "> list. However, for a variety of reasons (including\n" ?>
<?php echo "> enforcing Good Coding Practices[tm], there will be\n" ?>
<?php echo "> some rules:\n" ?>
<?php echo ">\n" ?>
<?php echo ">         * short_open_tags code will not be counted.\n" ?>
<?php echo ">           It must begin with <?php, not <?, and\n" ?>
<?php echo ">           <?=\$variable;?> things won't count.\n" ?>
<?php echo ">         * All code must be properly closed as well as
\n" ?>
<?php echo ">           opened. Thus, <?php must be followed
by ?>.\n" ?>
<?php echo ">         * You can include multiple blocks of code,\n" ?>
<?php echo ">           and all will be tallied. So:\n" ?>
<?php echo ">             <?php\n" ?>
<?php echo ">                 // Block one\n" ?>
<?php echo ">             ?>\n" ?>
<?php echo ">             .... and ....\n" ?>
<?php echo ">             <?php\n" ?>
<?php echo ">                 // Block two\n" ?>
<?php echo ">             ?>\n" ?>
<?php echo ">             .... will both be counted.\n" ?>
<?php echo ">\n" ?>
<?php echo ">     Some notes that should be obvious:\n" ?>
<?php echo ">         * HTML won't be counted unless included in an
\n" ?>
<?php echo ">           echo/print construct or a HEREDOC/NOWDOC\n" ?>
<?php echo ">           (when used). Only the code between the\n" ?>
<?php echo ">           <?php and ?> tags will be counted.\n" ?>
<?php echo ">         * The CodeCount procedure *does* count\n" ?>
<?php echo ">           comments as code. This can be changed if\n" ?>
<?php echo ">           there's enough desire.\n" ?>
<?php echo "> * CodeCount *will not* differentiate between\n" ?> <?php echo "> \"Good\" and \"Bad\" code. If you forget a\n" ?>
<?php echo ">           semicolon, it'll still count.\n" ?>
<?php echo ">\n" ?>
<?php echo "> --\n" ?>
<?php echo "> </Daniel P. Brown>\n" ?>
<?php echo "> Ask me about:\n" ?>
<?php echo "> Dedicated servers starting @ \$59.99/mo., VPS\n" ?>
<?php echo "> starting @ \$19.99/mo., and shared hosting starting @
\n" ?>
<?php echo "> \$2.50/mo. Unmanaged, managed, and fully-managed!\n" ?>

I don't know about anyone else, but I am absolutely stoked about this
development!

Cheers,
Rob.

wait you forgot the semi-colon...  ah, that's right, he said grammar
mistakes were not counted...

Perfectly valid to omit the last semi-colon when closing a PHP block.

<?PHP echo 'So does the new code count all quoted code as well? :)';?>
<?PHP echo 'If so... Then we are going to have a ton of code to start with!';?>



<?php echo "Just continue answering to this topic.\n"; ?>
<?php echo "The last answer wins the weeks 'most code' award :)";?>

greets,
Zoltán Németh



:)

;)

Cheers,
Rob.
--http://www.interjinn.com
Application and Templating Framework for PHP


--PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




--PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux