> an app that uses SELECT * or has INSERT statements without
> a column list should not have been deployed, and they
> deserve to fail.

<SHOUT type="from the mountain tops">

    AMEN, BROTHER!  Preach it!

</SHOUT>

That's a serious hot button for me, can you tell?

> Only adding new tables, and making FK columns pointing
> to those tables NOT NULL, will cause a failure in
> un-modified code. Even if such columns are NOT NULL,
> if they have a default value -- e.g. 0 -- that matches
> a "default record" in the new table (e.g. one with
> "No such animal" in its description field), that won't
> break existing code.

Wow, I can tell you've done medical development, where data is forever...
nice to see a kindred spirit.  This is the "Null-object" pattern, and it's
saved my bacon in code and database more times than I can count.  The
coolest thing is that because it's a "typed" null object, each one can
expose the appropriate behavior.  In databases, you can allow "unknown
animal" match to lab result ranges for male's 30-36 or whatever makes sense
:)

Marc

===================================
This list is hosted by DevelopMentor�  http://www.develop.com
Some .NET courses you may be interested in:

NEW! Guerrilla ASP.NET, 26 Jan 2004, in Los Angeles
http://www.develop.com/courses/gaspdotnetls

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to