30.2 Design

I l @ ve RuBoard

  • If you come to a choice between a relatively "quick hack" or a somewhat more involved but more flexible solution, always go for the more flexible solution. You're more likely to reuse it or learn from it. You're also more likely to be thankful later on when requirements shift a little and your code is ready for it.

  • Never trust any user input to be what you expect. What would your program do at any given point if a cat walked across the keyboard, several times?

  • Watch out for signed unsigned conversions and overflow/underflow conditions.

I l @ ve RuBoard


Practical C++ Programming
Practical C Programming, 3rd Edition
ISBN: 1565923065
EAN: 2147483647
Year: 2003
Pages: 364

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net