UMBC CMSC 202
UMBC CMSC 202 CSEE | 202 | current 202

CMSC Coding Standards Summary

The following summary of CMSC 202 coding standards is provided as a checklist for your project submittals. Please read the fully detailed coding standards.

Coding standards make up 15% of each programming project. Although every attempt is made to summarize each coding standard, some may have been inadvertently left off this list. It is your repsonsibility to read and understand the complete coding standards document.

Minor deviations from the standard carry a 1 or 5 point deduction depending on how many infractions are found.
Major deviations from the standard carry a 5 or 10 point deduction depending on how many infractions are found.
Serious deviations from the standard carry a 10 or 15 point deduction depending on how many infractions are found.

For example, if 1 to 3 function name(s) does/do not follow the function naming convention, expect a 1-point deduction. If more than three function names fail to follow the function naming convention, expect a 5-point deduction.

You should expect to have points deducted from your project score for each of the following line items.

    Minor Infractions (1 or 5 points)

  1. use of file extensions other than .cpp and .h
  2. primary file ( the one with main() ) not named projN.cpp (e.g. Proj1.cpp)
  3. executable not named ProjN (e.g. Proj3)
  4. .h files not guarded
  5. unnecessary inclusion of header files
  6. failure to follow naming conventions for
  7. use of poorly named variables, constants or functions
  8. function prototypes with unnamed parameters
  9. functions with empty parameter list that is not explicity "void"

    Major Infractions (5 or 10 points)

  10. multiple classes defined in one header file
  11. multiple classes implemented in one .cpp file
  12. multiple private and/or public sections in class definition
  13. insufficient or improper use of const for parameters and methods
  14. insufficient or improper use of reference parameters
  15. default values for parameters not specified in the prototype
  16. use of magic numbers and magic strings
  17. improper use of single-letter variable names
  18. code that is unreadable
    This would include such items as
  19. incomplete or missing file header comments
  20. incomplete or missing function header comments

    Serious Infractions (10 or 15 points)

  21. class method(s) implemented in header file
  22. class data members that are not private
  23. use of global variables
  24. untested pre-conditions


Last Modified: Wednesday, 20-Aug-2003 09:32:58 EDT