The Wagner Blog
Development Notes, News and Trivia









Subscribe to "The Wagner Blog" in Radio UserLand.

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.
 

 

Friday, May 31, 2002
 

New Scientist: Obsessive-Compulsive Disorder Linked to Piety
10:35:16 PM    

CNN.com: British Professor proves that time is money
10:33:04 PM    

Want to skin a VB app? Yes you can!
10:24:32 PM    

Daniel had a son. His name is Adam. Thats poetic in a sad way.
6:01:01 PM    

Very Funny. "God Save the Queen" - Contains Flash.
5:49:38 PM    

Jeroen Bekkers: "Building Collaborative Decentralized Applications with Visual Studio.NET and Groove. In this technical webinar, we will outline Groove's current support for Windows Forms, and give a first glimpse at the upcoming Groove for Visual Studio.NET add-in module" [ Extremely Groovey! Don't you think? ]
5:42:20 PM    

I've been diggin The Java Geek lately. Here is a good one.

Tomcat is dead redux

Mike over at rebelutionary has put up a summary of the whole Is Tomcat Crap? furor - see Bashing the Cat - A Summary of results. [Java Geek]


5:33:32 PM    

Albert Einstein. "My religion consists of a humble admiration of the illimitable superior spirit who reveals himself in the slight details we are able to perceive with our frail and feeble mind." [Quotes of the Day] [Pythoz.com :: Jørgen Larsen's Internet Profile]
5:26:19 PM    

Dan Gilmor: "Microsoft Don't Blame Us"
11:28:53 AM    

Lets Talk About XML and ADO.NET

As I've been reading posts on various sites over the past 6 months I noticed a slight change in the way people address ADO.NET datasets. Last year it was all about accessing information from a DB and storing it in datasets, while lately I see more references to reading XML files into datasets. 

My personal feeling is that many articles are written by folks who come from a scripting / web dev angle and miss the bigger picture that NET makes available. Time and again I see the equivalent of 2 tier designs in which datasets are pressed into the service that is normaly reserved for business objects, and vital business logic is pushed into the presentation layer. Lets face it, "code-behind" in aspx files makes that very appealing.  

The key point to remember is that a dataset is an "in memory copy of the db tier" for lack of better words. It contains a stored proc result set or tables, relationships metadata etc. It is not a business object.

Why would you want to design a 2 tier system in which your web pages are driven by datasets? The Internet is full of examples that list a web page / control calling ADO. That approach might have worked in the days of classic ASP where it was actually possible to write a web page that performed faster than VB/COM (because of threading and marshalling etc), but it is not good design practice in .NET.

Personally I see a much greater value in properly modeling a given business into a set of objects that embody a good application architecture, rather than substituting this model with the built in functionality offered by ADO.NET datasets.

Some might argue that using strongly typed datasets can accomplish the same goals as a business object tier. But what is being strongly typed? A Table or a stored procedure! Proper business objects are often composed of the contents of several datatier elements - several stored procs and tables , for example an invoice with line items. It is the rarest of circumstances when you have a 1-1 mapping between a table and an object.  See the difference? I sure hope I'm not missing something vital here.

Until the release of ObjectSpaces I will continue to hold fast to my idea. After the release of Object Spaces I will re-evaluate. And as far as XML is concerned, you don't necessarily need a dataset to serialize an object - do you? Anyway, I have a feeling that no matter what, in the last analysis a properly developed model of an application may include more work than many developers would want to undertake, which makes the datasets and 2 tier web development all the more inviting.....


6:56:10 AM    


Click here to visit the Radio UserLand website. © Copyright 2004 Thomas Wagner.
Last update: 5/2/2004; 4:44:05 PM.
This theme is based on the SoundWaves (blue) Manila theme.
May 2002
Sun Mon Tue Wed Thu Fri Sat
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  
Apr   Jun