* John Denker -- Wednesday 04 July 2007:
> On 07/03/2007 06:09 PM, Melchior FRANZ wrote:
> > What I don't really understand is why local variables need to be ii and
> > nnn. What's wrong with just i and n, like everyone else uses?
> Skilled programmers double the i and triple the n so that the
> variable name can be _searched for_ with much-reduced risk of
> finding it as a substring in other words and symbols.
Sorry, that doesn't fly. These are local loop counters/vars with a scope
of a few lines. Nobody searches for them, and *if* so, then a meaningful
name in the first place would be better. And for "nnn" you could spend
another letter and write just "node". Something that can actually
be spoken and understood. Besides, I have no problems searching for
a single letter in my editor. I buy you that you are a skilled
programmer, of course, but I wouldn't use code like this to prove it:
+ nnn = props.globals.getNode("/sim/presets/" ~ varname, 1);
+ ttt = nnn.getType();
+ value = nnn.getValue();
But that was not my an objection at all, just a point that I'm
not happy with. (Yes, the three lines are from another of your
contributions. :-)
> Let me also point out that the word "gremlin" is in the dictionary.
> Its primary meaning explains exactly the purpose of gremlins.nas.
Actually, I looked it up before I criticized it. In Wikipedia:
http://en.wikipedia.org/wiki/Gremlin_(disambiguation)
> If anybody has constructive suggestions as to a better name, I
> will be happy to consider them. Non-constructive sniping will
> be ignored.
Just failure.nas? One wouldn't need a dictionary for it. :-)
m.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel