Re: Re: how to write good code

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

 



Ross McKay <rosko@xxxxxxxxxxx> wrote:
> Find out what "bad" is by reading this:
>
> http://thedailywtf.com/Series/CodeSOD.aspx
>
> Then, don't do it like that!

What I enjoyed most on that page was this comment:

> One day, after a code review by one of our 'senior' developers this little beauty showed up...
> #define NUMBER_OF_BITS_IN_BYTE 8
> The justification was... that the byte might change.... and no 'magic' numbers should appear in the code...

-- 
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