Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Yoda coding styles
Message
De
21/04/2006 10:13:08
 
 
À
21/04/2006 09:30:27
Mike Yearwood
Toronto, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01115355
Message ID:
01115372
Vues:
9
And trimmed part of the composite code is, thus for varying width key is made!

>Everytime I see someone else's code I'm left scratching my head.
>
>Take this line of code:
>
>Index Tag shiprate On province+Allt(city) Uniq
>
>
>Besides the data modelling no-no of province and city in a table - permitting various incorrect spellings of province and city and impossible combinations of non-existant cities/provinces, and the questionable practice of having multiple shiprates per city+prov in the table only to ignore any but the first one, the code is written as if by Yoda.
>
>The help clearly shows
>
>INDEX ON eExpression TO IDXFileName | TAG TagName [BINARY]
> [COLLATE cCollateSequence] [OF CDXFileName] [FOR lExpression]
> [COMPACT] [ASCENDING | DESCENDING] [UNIQUE | CANDIDATE] [ADDITIVE]
>
>So while that line of yodacode works, it throws me for a loop. So I hereby request that we coin the term yodacode to apply to any yoda-like programmers.
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform