Open main menu

CDOT Wiki β

OOP344 20131 - Nevi

Revision as of 10:59, 25 February 2013 by Bo Li (talk | contribs) (Programming Styles)

Nevi

Members

OOP344 - Winter of 2013 student list
First Name Last Name Team Name Section Seneca Id wiki id IRC nick GITHUB ID Blog URL
Bo Li Nevi B bli64 Bo Li Kelan Nelain Meta-OOP344
Ran Li Nevi B rli64 Ran Li ranli RanLii 22yue6
Zhenyang Chen Nevi B zchen91 Zhenyang Chen crans crans Leash


Repository

Programming Styles

  • Indentation
  2 spaces for each level
  • Blocks
  if(){
  }
  else{
  }
  • Variable Naming
  _nameOfVar for data members
   nameOfVar for local variables
  no special characters in variable (e.g. '_')
  single characters variable names (e.g. 'i', 'j', 'k') for loops only
  • Misc


  use the string functions in bconsole instead of <string.h>



  cast everything to the function parameter type
       For example: 
             Function header:   char* strcpy(void* des, const void* src);
             Function call:   strcpy(_data, (const void*) Str);

Agenda

Discussion