Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFPConversion.com BLOG is now available
Message
De
08/06/2005 01:38:21
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01020508
Message ID:
01021226
Vues:
19
>I guess we have different opinions about this <s>.<

Yep! Not that there's anything wrong with that. <g>

>>What is the downside of having multiple files? <

There's not really any downside, other than having a lot of files! <s>

>To see problems with multiple files in the same editor, try putting two forms in the same file and then edit them through the visual editor.<

Ah, ok ... you were talking about visual editing. I was talking about code editing. You're definitely right about the visual editors. I typically don't put multiple classes in a file that contains a visual class.

>>Keep in mind that even individual control classes can end up fairly large. Just fixing the DataGrid control to a point where it is usable is fairly lengthy for instance.<

True about the DataGrid. And those kinds of things should be in their own file, I agree. I just don't agree with putting *everything* in it's own file. <s>


~~Bonnie


>
>What is the downside of having multiple files? There certainly is less overhead in that than having multiple records in a VCX file for instance.
>
>To see problems with multiple files in the same editor, try putting two forms in the same file and then edit them through the visual editor.
>
>Keep in mind that even individual control classes can end up fairly large. Just fixing the DataGrid control to a point where it is usable is fairly lengthy for instance.
>
>Regards,
>Markus
>
>
>
>>>I think the piece of technical advice about classes and individual files is particularly relevant to VFP developers for the reasons you state. <
>>
>>Well, I gotta disagree with Markus on this one and since his blog doesn't allow replies, I guess I'll have to say it here. <g> Yeah, I know he mentions that there are exceptions to this "rule", but he doesn't even mention the exception for your base control sub-classes (like your TextBox, ComboBox, etc.). These really should all be in one file. Can you imagine having a separate file for each of these base controls? That's definitely overkill, IMHO.
>>
>>There's no problem with the VS.NET editor handling multiple classes in one file, I'm not sure why Markus said that's a problem.
>>
>>Bottom line ... I don't think that this should be a hard and fast rule.
>>
>>~~Bonnie
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform