On TechRepublic: 10 cool USB flash drive tricks
BNET Business Network:
BNET
TechRepublic
ZDNet
TalkBack 44 of 53:
Next »
« Previous
Reason: database applications
The main reason for nullable types is for database applications. Currently, if you try to extract a null value from a data field into a variable, you always get an exception. This is especially inconvenient when dealing with a feature that's been in .Net since 1.0, called strongly typed datasets. In these, you typically extract multiple rows of data from a database, and I've found that dealing with null values with datasets can be unwieldy. You can get rows back fine that contain null values, but it's difficult to assign null values back into them.

I think what they're trying to do is lessen the amount of translation that currently goes on between your business logic and your data access code. You know, in your business logic you use variables like int, DateTime, string, etc., which must be assigned a value (except for string), and in the database realm you have values that have type integer, varchar, and datetime, etc., all of which are nullable. So if you can have nullable types in with your business logic, there's less translation needed between the two.

Doesn't mean anyone has to use them. The same old int, string, etc. variables will still be there if you want them.
Posted by: Mark Miller   Posted on: 08/18/05 You are currently: a Guest | Members login | Terms of Use

Alert moderator to an offensive message

Subscribe to this discussion via Email or RSS

A suggestion for developers...  lawryll@... | 08/15/05
just following the trend...  linuxoverwindows | 08/15/05
Another suggestion for developers...  Hugh Jass | 08/15/05
Bad precedent  Yagotta B. Kidding | 08/15/05
Bad code  node357 | 08/15/05
Faulty Products  Middle of the Road | 08/15/05
but...  linuxoverwindows | 08/15/05
I'm Still Waiting for the Recall  coffeenite | 08/16/05
Crown Vics  jknight_z | 08/16/05
What company other then MS??  michaeldschmidt | 08/15/05
dont forget...  linuxoverwindows | 08/15/05
Sounds like they'll be doing a lot of over time  george_ou | 08/15/05
Where's the news here?  Rick_K | 08/15/05
bugs is not the issue  NemesisNL | 08/15/05
They could be like Oracle  george_ou | 08/15/05
WHAT?!  drbentonquest | 08/16/05
here's what  theprofessor | 08/17/05
They'll be working overtime AND there will be lots of bugs  GreatInca | 08/15/05
Microsoft's Changing Slogan  itanalyst | 08/15/05
Huh?  yyuko@... | 08/15/05
Here we go again  waltharvey@... | 08/15/05
Why would anyone buy a questionable product ?  stan@... | 08/15/05
good question...  linuxoverwindows | 08/15/05
Cars can be serviced for a long time  yanus7 | 08/15/05
So, which software parts "wear out"?  stan@... | 08/15/05
Things wear out (according to MS and others)  Dazza_z | 08/15/05
This is another reason  stan@... | 08/15/05
only for 7 years  ekimeloc | 08/15/05
hence the reason  jmills@... | 08/15/05
MS gice priority into getting the show on the road ASAP and  michael_t | 08/15/05
More of the same.. Defective products abound  jwschull@... | 08/15/05
Well, I'm glad...  Cardinal_Bill | 08/15/05
Since When Do Y'All Think That Users of MS Tools Know Anything?  PMC-CON | 08/15/05
My short experience with Visual Studio...  SiliconSorcerer | 08/15/05
New worm affecting windows XP  joeanc | 08/15/05
Here we go again  Tiggster | 08/15/05
Are they kidding?  nightshade0143 | 08/15/05
I'd love to get VS 2k5.  Grayson Peddie | 08/15/05
Don't worry - - - Just have some more KoolAid  Plain Logic | 08/15/05
Not a new feature!  david_douglass@... | 08/15/05
I'm not anti-Microsoft or anything...  kForceZero | 08/15/05
Considering we use 2000...  rpmyers1 | 08/16/05
Nullable types?  CobraA1 | 08/15/05
Reason: database applications  Mark Miller | 08/18/05
Buy VS2005 Now!!!....  IT_Critic | 08/16/05
Wait for Presentation  rmac_z | 08/16/05
Where's the usual M$hills?  Roger Ramjet | 08/16/05
Given...  John L. Ries | 08/16/05
MS doesn't listen customer  oblivionxyz@... | 08/16/05
Why would anyone whine and moan  rock06r | 08/17/05
Other options!  pec@... | 08/17/05
Yes, very true  oblivionxyz@... | 08/17/05
Java's better.  cld71@... | 08/18/05

What do you think?

SponsoredWhite Papers, Webcasts, and Downloads

advertisement
advertisement

IT Solutions for 2010

  • Get cost-effective strategies and roadmaps on the most important issues facing IT leaders in 2010! Learn how to easily cut costs and deliver greater efficiency starting with your database, IT compliance management and data center. Visit the IT Leaders Dashboard. Visit the IT Leaders Dashboard.
  • Read about top issues IT decision-makers face every day, plus get cost effective solutions to real life IT problems. Oracle Topline