Open main menu

CDOT Wiki β

Changes

OOP344 - !YOU

5,726 bytes added, 12:34, 25 January 2010
Moving all info into this new team's page
This is Team !YOU's Project Page

You will find all project related information here

== Team Members ==
{| class="wikitable sortable" border="1" cellpadding="5"
|+ OOP344 - 2010 Team !YOU
! Last Name !! Name !! Seneca ID !! Section !! Blog URL !! IRC nick !! My Contributions
|-
| Adams|| [http://zenit.senecac.on.ca/wiki/index.php/User:Mdadams1 Matthew]|| [mailto:mdadams1@learn.senecac.on.ca mdadams1]|| A || http://www.tandemwebdesign.ca/blog || MattAdams|| [[Special:Contributions/mdadams1 | Contributions]]
|-
| Catibog|| [http://zenit.senecac.on.ca/wiki/index.php/User:Tjcatibog Timothy]|| [mailto:tjcatibog@learn.senecac.on.ca tjcatibog]|| A|| http://tjprogramming.blogspot.com/ || tjcatibog|| [[Special:Contributions/tjcatibog | Contributions]]
|-
| Daniels|| [http://zenit.senecac.on.ca/wiki/index.php/User:Mddaniels Matthew]|| [mailto:mddaniels@learn.senecac.on.ca?subject=OOP344 mddaniels]|| A || http://cdnpadawan.wordpress.com/ || CDNPadawan || [[Special:Contributions/mddaniels | Contributions]]
|-
| De Oliveira|| [http://zenit.senecac.on.ca/wiki/index.php/User:fmdeoliveira Felipe]|| [mailto:fmdeoliveira@learn.senecac.on.ca fmdeoliveira]|| A || http://feliploko.wordpress.com/ || fmDeOliveira || [[Special:Contributions/fmdeoliveira | Contributions]]
|-
| Misko|| [http://zenit.senecac.on.ca/wiki/index.php/User:ammisko Andrew]|| [mailto:ammisko@learn.senecac.on.ca ammisko]|| A || http://ammisko.blogspot.com || ammisko || [[Special:Contributions/ammisko | Contributions]]
|-
| Simmalavong|| [http://zenit.senecac.on.ca/wiki/index.php/User:nsimmalavong Niki]|| [mailto:nsimmalavong@learn.senecac.on.ca nsimmalavong]|| A || http://oop344-niki.blogspot.com/ || nsimmalavong || [[Special:Contributions/nsimmalavong | Contributions]]
|-
| Ward|| [http://zenit.senecac.on.ca/wiki/index.php/User:Amward1 Amy]|| [mailto:amward1@learn.senecac.on.ca amward1]|| A || http://amward1.wordpress.com/ || award|| [[Special:Contributions/amward1 | Contributions]]
|-
| Ziaei|| [http://zenit.senecac.on.ca/wiki/index.php/User:Mziaei1 Minoo] || [mailto:mziaei1@learn.senecac.on.ca mziaei1]|| A || http://minooz.wordpress.com/ || Minooz || [[Special:Contributions/mziaei1 | Contributions]]
|-
|}

== Name Discussion ==
So we should decide our final name as soon as possible. The suggestions I remember we had after last class were the ones below. Please add some if you have new ideas.

* !us (not us)
* !you (not you)
* !done (not done)
* !fail (not fail)
* !F (not F)
* !A++ (not A++)
* !C++ (not C++)
* 344++
* Overloaded Operators
* OOPs we did it again
* fardad.giveUs(A++ );
* Bjarne's Angels

{| class="wikitable" border="1"
|+ Discussion
! Name !! Comment
|-
| fmDeOliveira || I like !A++ from these options, and I find fardad.giveUs(A++) really funny.
|-
|}

== Team Programming Standards ==
An area for listing our teams programming standards that we will use when constructing the project. Please follow these rules when writing code for this project. This will make it easier for us to help each other and collaborate in the whole process.

=== Declare only one variable in each line. ===
This makes it easier to scan the code and find the type of a variable that you see somewhere else in the code.

Do:
int a;
int b = 0;
int c = a;

Don't:
int a, b = 0, c = a;

=== Do not use tabs when indenting. ===
The tab space is interpreted different across different software and operating systems. Use normal spaces to add indentation instead.

=== Put the pointer identifier(*) right after the target variable type. ===
Pointers are hard enough to deal with. It only makes it more complicated if they are declared differently throughout the code.

Do:
int* p1;
char* p2;

Don't:
int *p1;
char *p2;

=== (Discussion: Use of iterating variables on for loops) ===
There are two major ways of dealing with the iteration variable on '''for''' loops. We should come to a consensus on how to deal with it on our project.

Option 1: Declare the variables outside the loop; initialize them inside the loop; keep their exit values for future use.
int i;
for (i = 0; i<5; i++) printf("."); // Prints .....
printf("%d",i); // Prints 5

Option 2: Declare and initialize variables inside the loop; lose the variable at the end of the loop scope;
for (int i = 0; i<5; i++) printf("."); // Once the loop is done, variable i cannot be accessed anymore.

{| class="wikitable" border="1"
|+ Discussion
! Name !! Comment
|-
| fmDeOliveira || I definitely prefer option 2. It is much easier to keep recycling the loop variables without having to worry if they already exist or not. In case we need the value of the loop variable after the loop is done, we should just copy it to another variable before the end of the loop.
|-
|}

=== (Discussion: Variable names) ===
How should we name the variables that we create on our project?


{| class="wikitable" border="1"
|+ Discussion
! Name !! Comment
|-
| fmDeOliveira || I suggest we avoid abbreviations, since what might be obvious for some could be confusing for others. Full words or short expressions could be used where the first letter is always lower case, and the first letter of the following words are upper case. Examples: cost, totalPrice, numberOfPeople.
|-
|}

=== (Discussion: Use of comments) ===
When should we use double slash (//) and when should we use slash-asterisk (/* */)?


{| class="wikitable" border="1"
|+ Discussion
! Name !! Comment
|-
| fmDeOliveira || I prefer using // for single-line comments and /* */ for blocks of commented code. This would avoid problems commenting out blocks of code that already have single-line comments (the end of the single-line comment would not be interpreted as the end of the block comment).
|-
|}
1
edit