Thread: NPC-Server
View Single Post
  #1  
Old 03-30-2008, 02:29 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by Crow View Post
But I like to use temp.var, because I dont want to think up a variable name for things like that, and stuff like temp.v is too short I think.
PHP Code:
for (temp.var: temp.list)
{
  
//

... is not as clear as, say:
PHP Code:
for (temp.needletemp.haystack)
{
  
//

PHP Code:
for (temp.usertemp.userlist)
{
  
//

PHP Code:
for (temp.playerallplayers)
{
  
//

Just little things like naming variables properly can completely change the semantic value of your code.
Reply With Quote