Daniel Brown írta:
Some changes take effect with the PostTrack metrics system with
this week (will show up in next week's report). There's one bug fix
and a new feature added, in which some of you may be really
interested.
CHANGELOG
Fixed a bug that would (seemingly random) split a user's post
recording over multiple entries. (See this week's report: Zoltan
Nemeth for example)
oh I see. ignore my previous error report ;)
Added a new CodeCount feature. Explained below.
The CodeCount feature will, from now on, track the amount of
[pseudo]code everyone posts to the list. However, for a variety of
reasons (including enforcing Good Coding Practices[tm], there will be
some rules:
* short_open_tags code will not be counted. It must begin
with <?php, not <?, and <?=$variable;?> things won't count.
* All code must be properly closed as well as opened. Thus,
<?php must be followed by ?>.
* You can include multiple blocks of code, and all will be tallied. So:
<?php
// Block one
?>
.... and ....
<?php
// Block two
?>
.... will both be counted.
Some notes that should be obvious:
* HTML won't be counted unless included in an echo/print
construct or a HEREDOC/NOWDOC (when used). Only the code between the
<?php and ?> tags will be counted.
* The CodeCount procedure *does* count comments as code. This
can be changed if there's enough desire.
* CodeCount *will not* differentiate between "Good" and "Bad"
code. If you forget a semicolon, it'll still count.
that's a cool feature!
greets,
Zoltán Németh
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php