Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Best Practices
Message
From
15/06/2001 07:59:05
 
 
To
14/06/2001 12:45:03
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00519494
Message ID:
00519868
Views:
12
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform