Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP editor
Message
De
27/04/2016 17:53:03
 
 
À
27/04/2016 17:47:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01635477
Message ID:
01635508
Vues:
82
Too much isn't based on lines of code. It's based on functionality. Each method should do one thing and one thing only. In case of a form, Methods are really triggered by an event. If the code in the form method does more than respond to the event, it's probably doing too much and the code should be shuffled off to another method somewhere. And even that method should one thing and one thing only. It's called Single Responsibility Principle. http://www.dotnetcurry.com/software-gardening/1148/solid-single-responsibility-principle


>How much is too long, and what is the editor's limit? Anything over a page and a half is a pain, and it ought not choke on that, surely. Doesn't anyone else have this problem? It is the same in VFP7, so it doesn't appear to be anything specific to the installation I am using..
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform