This is specially true if you tie it to a database. If you make one change
to the data structure ( common in a new development project) have a look at
teh amont of work that needs to e changed.  I go with datasets unless I need
extreme performance. Actually the performacnce of datasets is not too bad -
they just suck up memory.   In 90% of apps you would not see the difference
between a dataset and handcrafted collections. So why give yourself
magnitudes more work adding functionality , debugging , stress and capacity
testing etc

I do like Ian's point on Intellisense having too many entries - and would
love to see some sort of collapsable options. The problem is worse with
Winforms and controls.

Ben



-----Original Message-----
From: Moderated discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED]]On Behalf Of Philip Nelson
Sent: Tuesday, 8 October 2002 12:38 PM
To: [EMAIL PROTECTED]
Subject: Re: [ADVANCED-DOTNET] Strongly-Typed DataSets vs. Strongly-Typed
Collections


> Since now it's easy to make/use a collection for databinding, I guess
> most of the reasons for using a dataset are eliminated.
>

It sure would be nice to see if a DataSet is significantly worse than a
collection.  When you think about it, and given an axiom I really believe:
"premature optimization is the root of all evil", I would like to think
choosing a DataSet first is the right choice.  If in some application you
discover problems because the number of simultaneous occurances causes a
memory
bloat, or massive cpu ticks are needed to create and tear down your datasets
(if it's proved that datasets are worse), the worst that can happen is that
you
refactor and use a custom collection.  In the meantime, one less block of
code
to check into source control, one less library to maintain, one less skill
to
teach junior programmers, etc, etc, etc...

You would want to do as similar comparison as possible, one simple table
with
one column, strongly typed, rows added at runtime, enforceconstraints off
and
the like.

__________________________________________________
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com

You can read messages from the Advanced DOTNET archive, unsubscribe from
Advanced DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced 
DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to