Open main menu

CDOT Wiki β

Changes

Team !YOU - OOP344

492 bytes added, 12:21, 25 January 2010
m
Discussion: Variable names
|-
| 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.
|-
|}