Difference between revisions of "OOP344 - Team Nothing - 20102"

From CDOT Wiki
Jump to: navigation, search
(3.0 IRC Chatlogs / Meeting Logs)
m (Cleaned up display of Table of Contents)
Line 1: Line 1:
 
{{OOP344 Index}}
 
{{OOP344 Index}}
  
=1.0 Participants=
+
=Participants=
==1.1 Team Members==
+
==Team Members==
 
{| class="wikitable sortable" border="1" cellpadding="5" align="center"
 
{| class="wikitable sortable" border="1" cellpadding="5" align="center"
 
|+ OOP344 - Team Nothing - 20102
 
|+ OOP344 - Team Nothing - 20102
Line 20: Line 20:
  
  
== 1.2 Team Contact Person ==
+
==Team Contact Person==
  
 
'''[mailto:kmsingh@learn.senecac.on.ca Kerry Singh]''' <br/>
 
'''[mailto:kmsingh@learn.senecac.on.ca Kerry Singh]''' <br/>
Line 26: Line 26:
  
  
=2.0 Project Development Page=
+
=Project Development Page=
 
[[OOP244 - Team Nothing Project Dev Page - 20101 | Project Development Page]]
 
[[OOP244 - Team Nothing Project Dev Page - 20101 | Project Development Page]]
  
  
=3.0 IRC Chatlogs / Meeting Logs=
+
=IRC Chatlogs / Meeting Logs=
 
[[OOP344 - Team Nothing IRC Logs - 20102 | IRC meeting logs]]
 
[[OOP344 - Team Nothing IRC Logs - 20102 | IRC meeting logs]]
==3.1 30-May-10==
+
==30-May-2010==
 
[[OOP344_-_Team_Nothing_IRC_Logs_-_20102#30-May-10 Channel: #Team-Nothing|Channel #Team-Nothing]]
 
[[OOP344_-_Team_Nothing_IRC_Logs_-_20102#30-May-10 Channel: #Team-Nothing|Channel #Team-Nothing]]
==3.2 10--June10==
+
==10-June-2010==
 
[[OOP344_-_Team_Nothing_IRC_Logs_-_20102#10-June-10 Channel: #Team-Nothing|Channel #Team-Nothing]]
 
[[OOP344_-_Team_Nothing_IRC_Logs_-_20102#10-June-10 Channel: #Team-Nothing|Channel #Team-Nothing]]
  
=4.0 Conventions and Styles=
+
=Conventions and Styles=
==4.1 Function Conventions==
+
==Function Conventions==
===4.1.1 Function Naming Convention===
+
===Function Naming Convention===
 
Function names are all lowercase and each word is separated by an underscore character.
 
Function names are all lowercase and each word is separated by an underscore character.
  
Line 49: Line 49:
 
</pre>
 
</pre>
  
===4.1.2 Function Comments===
+
===Function Comments===
 
Each function definition should include a comment above it that includes the function name, a brief and clear description of what each variable does in the function, and a clear and concise description of what the function does.
 
Each function definition should include a comment above it that includes the function name, a brief and clear description of what each variable does in the function, and a clear and concise description of what the function does.
 
<pre>
 
<pre>
Line 66: Line 66:
 
</pre>
 
</pre>
  
==4.2 Variable Conventions==
+
==Variable Conventions==
===4.2.1 Naming Convention===
+
===Naming Convention===
 
Similar to the [[OOP344_-_Team_Nothing_-_20102#4.1 Function Naming Convention|4.1 Function Naming Convention]]
 
Similar to the [[OOP344_-_Team_Nothing_-_20102#4.1 Function Naming Convention|4.1 Function Naming Convention]]
  
Line 82: Line 82:
 
</pre>
 
</pre>
  
===4.2.2 Variable Definitions===
+
===Variable Definitions===
 
Define each variable on a speparate line.
 
Define each variable on a speparate line.
  
Line 90: Line 90:
 
</pre>
 
</pre>
  
==4.3 File Headings==
+
==File Headings==
 
Each file with the extension of *.cpp, *.c, and *.h must include a comment heading at the beginning of the file stating the file name, author (and username), date created, last modified date, and description of what the file does.  The description should be clear and concise.  This must be enclosed using /* and */.
 
Each file with the extension of *.cpp, *.c, and *.h must include a comment heading at the beginning of the file stating the file name, author (and username), date created, last modified date, and description of what the file does.  The description should be clear and concise.  This must be enclosed using /* and */.
  
Line 104: Line 104:
  
  
==4.4 Indentation Level==
+
==Indentation Level==
 
Use an indentation level of two spaces in all situations. Do not use TAB for indentation.
 
Use an indentation level of two spaces in all situations. Do not use TAB for indentation.
  
Line 117: Line 117:
 
</pre>
 
</pre>
  
==4.5 Curly Braces==
+
==Curly Braces==
 
Each { and } for a code block, such as in an if statement or a for loop, should be placed on its own separate line, with the { and } lined up with the first character of the line above it.  If the code block consists of only one line of code, continue to use the curly braces for clarity and in case additional code is added afterwards.
 
Each { and } for a code block, such as in an if statement or a for loop, should be placed on its own separate line, with the { and } lined up with the first character of the line above it.  If the code block consists of only one line of code, continue to use the curly braces for clarity and in case additional code is added afterwards.
 
<pre>
 
<pre>
Line 138: Line 138:
 
</pre>
 
</pre>
  
==4.6 Conditional Compilation==
+
==Conditional Compilation==
===4.6.1 Naming Convention for Header Files===
+
===Naming Convention for Header Files===
 
Prefix the names of header files that we create with "tn" (initials of Team Nothing) followed by an underscore character. For example, tn_headerfile.h
 
Prefix the names of header files that we create with "tn" (initials of Team Nothing) followed by an underscore character. For example, tn_headerfile.h
  

Revision as of 14:18, 12 June 2010


OOP344 | Weekly Schedule | Student List | Teams | Project | Student Resources

Participants

Team Members

OOP344 - Team Nothing - 20102
ID First Name Last Name Section Seneca Id wiki id IRC nick Blog URL
A Alex Chung A acchung1 acchung1 acchung1 my blog
B Don Armin Napao A danapao danapao danapao My Blog
C Robin Co A rco1 imadorki3 rco1 My Blog
D Bhavanesh Patel A bapatel5 bapatel5 Bhavanesh My Blog
E Kerry Singh A kmsingh sinker sinker My Blog


Team Contact Person

Kerry Singh
IRC Nick: sinker


Project Development Page

Project Development Page


IRC Chatlogs / Meeting Logs

IRC meeting logs

30-May-2010

Channel #Team-Nothing

10-June-2010

Channel #Team-Nothing

Conventions and Styles

Function Conventions

Function Naming Convention

Function names are all lowercase and each word is separated by an underscore character.

int do_something()
{
  code;
}

Function Comments

Each function definition should include a comment above it that includes the function name, a brief and clear description of what each variable does in the function, and a clear and concise description of what the function does.

/*
 * Function Name: function_name
 * Description: This is a clear and concise function description.
 * Variable: variable1 - this variable holds the value of something for some purpose
 *           variable2 - this variable holds the value of something else for some other purpose
 */
int function_name()
{

  code;

}

Variable Conventions

Naming Convention

Similar to the 4.1 Function Naming Convention

For Compound Variable Names:

int some_var;

OR

For Non-compound Variable Names:

int var;

Variable Definitions

Define each variable on a speparate line.

int var1;
int var2;

File Headings

Each file with the extension of *.cpp, *.c, and *.h must include a comment heading at the beginning of the file stating the file name, author (and username), date created, last modified date, and description of what the file does. The description should be clear and concise. This must be enclosed using /* and */.

/*
 * File Name: example.cpp
 * Author: Name (seneca id)
 * Date Created: 23-May-10
 * Last Modified Date: 11-Nov-10
 * Description: This is a clear and concise description of the file.
 */


Indentation Level

Use an indentation level of two spaces in all situations. Do not use TAB for indentation.

int some_function()
{

   code;
   more code;

}

Curly Braces

Each { and } for a code block, such as in an if statement or a for loop, should be placed on its own separate line, with the { and } lined up with the first character of the line above it. If the code block consists of only one line of code, continue to use the curly braces for clarity and in case additional code is added afterwards.

void function()
{
   if(some-condition)
   {
      code;
   }
}

if(some-condition)
{
   code;
}
else
{
   code;
}

Conditional Compilation

Naming Convention for Header Files

Prefix the names of header files that we create with "tn" (initials of Team Nothing) followed by an underscore character. For example, tn_headerfile.h

When using conditional compilation, use the following format for a file named tn_headerfile.h:

#ifndef _tn_headerfile_h_
#define _tn_headerfile_h_