Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP Bug, who's seen it?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00304389
Message ID:
00304860
Vues:
36
Hi George,

>If performance isn't an issue with the code, then don't, because you ultimately do harm to the readability. I've always maintained that, "If it ain't readable, it ain't maintainable." Further, I realize that I'll spend more time in maintenance and modification (updates, etc.) than anywhere else.

IMHO, early outs are may be more readable:
if lCond1 or lCond2
    *Get out now if not enough stuff
    MessageBox('hey dummy!  You messed up')
    return .f.
endif

*200 lines of Code

return .t.
And when is performance not an issue? ;-)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform