scorpion53061,
Will my project size be smaller than it was? Will my performance be better
than it was?
Does it really matter?
I tend to prefer shortening developer time over optimizing for size or
speed. One way to shorten developer time is to favor strong OOP concepts.
VB.NET fully supports strong OOP concepts. Strong OOP concepts can shorten
both initial development along with subsequent maintenance. Of course you
may spend some extra time in design, with Refactoring and some other Extreme
Programming concepts (Unit Tests) you can "reduce" the design time some,
however I still feel you need to have a good idea of what the design should
be. Plus you and your staff may need further training.
Another way to shorten developer time is to use all the tools available in
VS.NET. For example using the Forms designer instead of using "notepad" to
code the form.
I prefer to write semantically correct (OOP) programs first, then when a
routine is proven to be slow (via profiling) I will address that routine.
Of course this also implies that you select the correct tool for the correct
job. For example: knowing when to select an untyped dataset, over a typed
dataset, over an XML document, over an actual object Domain model.
To actually answer your question, compare the code that you create with the
code that the designer creates (its in a collapsed region). I'm sure you
will find the designer sets a few more properties then you do, also the
designer stores information it will need the next time you design the form,
neither should actually amount to much. I'm sure it varies by control of how
much 'extra' stuff the designer may include...
the reason I ask is I notice when I add a graphical object in the designer
the size of my exe generated has a noticeable increase. But if I create the
item in code the increase is negligible...
By graphical object, do you mean any control, or do you specifically mean an
Image? The designer will embed your image in your executable, which is a
good thing! There is no chance of it getting lost, plus its "easier" to
internationalize. However this image will cause a significant increase in
the size of your assembly.
Hope this helps
Jay
scorpion53061 said:
Thanks for your response Jay...
Tell me this.....
Lets say I build an app and take the code out of that app and build a new
app with the same name. I dont add any graphical objects in the designer but
all I add is the code.
Will my project size be smaller than it was? Will my performance be better
than it was?
the reason I ask is I notice when I add a graphical object in the designer
the size of my exe generated has a noticeable increase. But if I create the
item in code the increase is negligable...
<<snip>>