Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Argument starter - The roots of all evil
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00938079
Message ID:
00941001
Vues:
26
I agree.


>>I like a clean look in programs but there are times when troubleshooting problems or locating where something specific occurs in a program is time consuming and frustrating when you have something like the below which starts to resemble the 'GOTO' command:
>>
>>*some processing
>>
>>Do program1  && program1 calls program9 which calls function2, function9,etc
>>Do program2  && program2 calls another procedure and function, etc.
>>Do program3  && etc
>>
>>*some more processing
>>
>>Do program4
>>Do program5
>>Do program6
>>
>>*etc
>>
>>It's ideal to have commonly used functions in their own prgs or a procedure file but in some cases I have seen every single function and procedure in a separate prg and not only were there literally hundreds of prgs in the project but I was forever opening up separate prgs locating stuff...
>
>Tracy,
>
>The problem is not with the princples, but rather the design. If the design had adhered to the principles, then you wouldn't be having the problem.
>
>Well designed system make it easier (because of information hiding and functional cohesion) to debug situations like this.
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform