|
Posted by jussist@gmail.com on 01/11/07 21:34
Michael Fesser wrote:
> .oO(jussist@gmail.com)
>
> >Why don't we instead tweak the whole concept of magic numbers? And
> >don't use 0 there at all - but something else, 1&2, or.
> >
> >static $STATE_ALREADY_COMPLETED = 1152; // Or whatever, was -1
> >static $STATE_COMPLETE_NOW = 1153; // Or whatever, was 0
>
> define('STATE_ALREADY_COMPLETED', 1152);
> define('STATE_COMPLETE_NOW', 1153);
Yeah! Fesser lead the way! :-)
That's the way to do IT.
That my part is for classes, right? Been working mostly with java
-lately.
t.j
Navigation:
[Reply to this message]
|