Discussão:Development/Programming Standards

Da Norganna's AddOns

Loial 18:21, 29 March 2009 (EDT): With variable declaration placement, I suggest we place variables at the beginning of the scope section that they are used in. We should limit scope to the minimum possible. Placing the declarations at the beginning makes it obvious what's used in a section of code. I often use the list of variables at the start of a code block to find what i'm searching for within that block.

On the flip side Shirik said that placing variable declaration directly before its use makes it easier to see what the variable is used for and may help limit scope on variables.


--brykrys 08:44, 8 September 2010 (EDT): In the Coding Style section elsewhere in this wiki, it specifies: Tab indent; 4 space tab stops; no semi-colon at instruction end; no whitespace at line end

Ferramentas pessoais