Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2002:
[Freeciv-Dev] Re: AI cleanup Version 3
Home

[Freeciv-Dev] Re: AI cleanup Version 3

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Petr Baudis <pasky@xxxxxxxxxxx>
Cc: freeciv development list <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: AI cleanup Version 3
From: Gregory Berkolaiko <gberkolaiko@xxxxxxxxxxx>
Date: Mon, 7 Jan 2002 13:51:19 +0000 (GMT)

 --- Petr Baudis <pasky@xxxxxxxxxxx> wrote: 
> > 
> > Because is was quite hard to decipher the AI code. I just don't want
> > to loose the knowledge the people have gained in the last month
> again.
> Well, if there is a doubt about the mean of the variable, there should
> be a
> comment near its declaration. The variable name should just represent
> its
> content, not explain it, IMHO.


I agree with Raimar here.
The comment you have to search for, the name is always there.
Although I would have gone for "turns_to_dest"

G.


__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com


[Prev in Thread] Current Thread [Next in Thread]