Simple Question...

  • Thread starter Thread starter Luis
  • Start date Start date
L

Luis

Hi,
I just want to know if I have an application, it could be a Windows or
Web application, doesn't matter, is it faster if I made all the objects by
code, or is it the same if I use TypeDataset (xsd dataset objets), and the
things the wizards do?

Thanks.

Luis.
 
I think the answer is, "It depends." If you are very skillful, your code
may be faster and more efficient than that generated by the wizards. And,
perhaps, not.

--
Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition,
ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
2006.
See www.hardandsoftware.net for details and contact information.
 
Hi Louis,

I generally try to code everything as much as possible. I don't like
the wizards because it may initially be fast to produce an application,
but from a maintainablity perspective it is easier to debug my
application if something doesn't work. I like to see exactly what is
happening and coding it instead of relying on the wizards allows me to
do this. It also means I develop a better understanding of how it works.
It also gives you an opportunity to optimize your code for speed

This is just my opinion, your experience may vary

Regards

Scott
 
Hi,
I just want to know if I have an application, it could be a Windows or
Web application, doesn't matter, is it faster if I made all the objects by
code, or is it the same if I use TypeDataset (xsd dataset objets), and the
things the wizards do?

Thanks.

Luis.

Hi luis,
make an application with an autogenerated code, and have a look on the
code lengeth. For me using 2008 version it takes more than 1000 line.
Think : how long will be my code ?.
If your manually code is smaller, it's better
Omar Abid (www.omarabid.uni.cc)
Express Dot Net site
http://expressdotnet.freehostia.com
 
Hi luis,
make an application with an autogenerated code, and have a look on the
code lengeth. For me using 2008 version it takes more than 1000 line.
Think : how long will be my code ?.
If your manually code is smaller, it's better
Omar Abid (www.omarabid.uni.cc)
Express Dot Net sitehttp://expressdotnet.freehostia.com

make an application with an autogenerated code, and have a look on the
code lengeth. For me using 2008 version it takes more than 1000 line.
Think : how long will be my code ?.
If your manually code is smaller, it's better

No, number of lines is not a good way of determining code-efficiency.

Consider a multithreaded solution - which are very common in database
intensive projects. Very rarely does an asynchronous implementation
have less lines of code than the synchronous version. But the async
version would be able to handle requests easier and allow a much
smoother UI. Or consider the use of transactions and closing/disposing
of the Db objects. Sure, I could cut out 3 lines by scrapping the
Transaction declaration and completion, and 2 to 4 lines depending on
how I implement the Dispose pattern. After all if the shorter code is
more efficient it must handle things like database integrity
(transactions) and memory usage (Dispose) right?

Thanks,

Seth Rowe
 
Back
Top