top | item 9770456

(no title)

NickPollard | 10 years ago

Indeed:

  static const int eight = 8;

  x * eight;
Sometimes magic numbers are just that - numbers. Adding constant definitions is often a good thing, but sometimes just adds noise.

discuss

order

nickzoic|10 years ago

I think you mean

    static const int days_per_week = 8;
:-).