[Typo3-dev] New coding standard idea - error codes
dan frost
dan at danfrost.co.uk
Wed May 5 14:40:57 CEST 2004
Hello all,
I wonder if it would be ok to use an error code standard. Basically,
every error message an extension / core thing throws (e.g. a debug or
die) has a code of the form:
[your initials][Date][time]
You just write this as you're writing the code. E.g. if i was writing
some code now, the error code would be:
df0504041339
Which i might use like:
if($mustBeTrue) {
// do stuff
} else {
die('Something bad happened df0504041339');
}
Then, when i see this i just grep for "df0504041339". The alternative
could be "some error messgage".__LINE__.__FILE__;
What do you think?
dan
More information about the TYPO3-dev
mailing list