Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Commonly misused and abused VFP features
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00310951
Message ID:
00311035
Vues:
26
>Here's the beginning of a list of commonly misused and abused features, functions, and commadns fo VFP.
>2: SET FILTER TO ... is very often used where another construct would do the job much more efficiently and with better performance.
You're right - but it gets a class room projects completed!
>
>3: & the macro expansion feature is too often used where it is either not necessary or ther is a bettter way to accomplish the same goal.
But it's powerful - it's save me miles and mile of "IF" constructs, but I try to pass by reference, when I can.

>4: Filtered indexes, are often used where they are not necessary. The same result can be obtained using SQL without the overhead of having an extra index tag around all the time.
But SQL is slow - why normalize if you SQL?
>
>5: UNIQUE indexes, not only are they misused but they could easily be totally removed from the product without any alteration in capabilities.
I don't think so - this guy helps when you have the same child key associated with differnt parents in a time line. If you need the childs history - you don't necessarily need to see the detail for the child for every parent.

>6: PUBLIC variables are often used in situations where they are totally not required.
Tru - but there great for trace routing and testing.
>
>7: SET EXACT is often used to cover for not understanding the way strings are compared in xBase. This causes the loss of a lot of functionality that is inherent in the product in order to adapt to a lack of knowledge.
Yes, but its great when you need to instance partial keys!

>
>8: == is often NOT used where it should be. See SET EXACT above.
>
>9: Reports used for producing a screen display of readable data. Reports are for printing on paper, forms are for showing on screen. Report Preview is for eyeballing before committing to paper.
>
>10: PACK is too often sued in situations where any benefit it porovides is far outweighted by the costs associated with it.
PACKing DBFs should only be done as a periodic maintenance, or after large batches of deletions (an admin function). Every so often the DBF should be SORTED on the "main" key field(s)!
>
>There's 10 of them, add to the list.
Imagination is more important than knowledge
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform