Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Best Practices
Message
De
15/06/2001 07:59:05
 
 
À
14/06/2001 12:45:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00519494
Message ID:
00519868
Vues:
14
As you are already aware from my previous messages, a Best Practice is what I am trying to achieve at the moment. Coding efficiently, effectively. Keeping it maintainable, also in a way others can easily read/absorb it. Will it still be as efficient in a couple of years time? Is it making the most of the tools/functions available? Not using 3 lines of code when 1 will do nicely.

I've seen a lot of programmers who tend to just write code to get the job done and leave an awful lot of crap behind them for others to pick up - that is a good example of BAD practice.

Another good practice is to use the "FULL" Function/command name:

USE Table ORDE 1 ALIA Name SHAR
SELE Table
TABLEU(.T.)

I've seen a LOT of that, there is just ZERO consideration for other programmers, but then, not everyone has to deal with that.

The n-Tier reply you gave the other day is an excellent example - the UI is kept in Forms/Reports etc, the Validation in a Business Object, the Data in a Database - extremely effective/efficient/economical yet easy to manage, easy to absorb, easy to maintain, easy to search through.

Kev
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform