23.10 Module Design Guidelines

I l @ ve RuBoard

Although there are no strict rules when it comes to laying out the modules for a program, here are some general guidelines:

  • The number of public functions in a module should be small.

  • The information passed between modules should be small.

  • All the functions in a module should perform related jobs.

  • Modules should contain no more than 1,500 lines. With more lines, they become difficult to edit, print, and understand.

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