banner image
Sedang Dalam Perbaikan

Five guidelines using for Code

Five guidelines using for Code


  1. Names representing types must be nouns and written in mixed case starting with upper case. Line, FilePrefix
  2. Variable names must be in mixed case starting with lower case. line, filePrefix 
  3. Names representing constants must be all uppercase using underscore to separate words. MAX_ITERATIONS,COLOR_RED
  4. Names representing methods and functions should be verbs and written in mixed case starting with lower case.
    getName(),
    computeTotalWidth() 
  5. Names representing template types in C++ should be a single uppercase letter.
    template<class C, class D>
Five guidelines using for Code Five guidelines using for Code Reviewed by MCH on July 17, 2012 Rating: 5

No comments:

Powered by Blogger.