Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP editor
Message
From
27/04/2016 17:53:03
 
 
To
27/04/2016 17:47:32
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01635477
Message ID:
01635508
Views:
90
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform