My "mentor" tells me "Nulls are tricky".
I disagree. Nulls follow a different set of rules, but these rules are not unknowable, they're not even that hard.
So instead of using Nulls on a column that allows Nulls, a co-worker is using 1/1/9999 on this datetime field. This makes absolutely no sense to me.
I'm pissed. I write a program to modify 3 of the date attributes, Effective, Expiration, and Filing, and now other programs have problems because they rely on "Null" being 1/1/9999.
Well nobody fucking told me this! What sense does that make anyways?!? If you didn't want Nulls, why is it a Nullable field!?! It should be Not Null, Default 1/1/9999!
The two coders I'm working with (we're also in charge of building the db), use the db like it were a big messy text file. numeric/decimal when the field should be tinyint, varchar/nvarchar intermixed with no discernable pattern, DateCreated[datetime] instead of Timestamp, Sorting_Sequence[numeric] when that's really program specific, only a 0 or 1, and should be *in the program*.
It's a huge mess.
I'm so incredibly fustrated. I'm thinking I need to take control of the db, but it's not like I'm a pro or anything... it just seems the other two (who are far more experienced than myself) just don't have the dicipline (will?) to do it as I see fit... Again, I could be way wrong on my views, but these seem so glaringly obvious to me...
comments?
I disagree. Nulls follow a different set of rules, but these rules are not unknowable, they're not even that hard.
So instead of using Nulls on a column that allows Nulls, a co-worker is using 1/1/9999 on this datetime field. This makes absolutely no sense to me.
I'm pissed. I write a program to modify 3 of the date attributes, Effective, Expiration, and Filing, and now other programs have problems because they rely on "Null" being 1/1/9999.
Well nobody fucking told me this! What sense does that make anyways?!? If you didn't want Nulls, why is it a Nullable field!?! It should be Not Null, Default 1/1/9999!
The two coders I'm working with (we're also in charge of building the db), use the db like it were a big messy text file. numeric/decimal when the field should be tinyint, varchar/nvarchar intermixed with no discernable pattern, DateCreated[datetime] instead of Timestamp, Sorting_Sequence[numeric] when that's really program specific, only a 0 or 1, and should be *in the program*.
It's a huge mess.
I'm so incredibly fustrated. I'm thinking I need to take control of the db, but it's not like I'm a pro or anything... it just seems the other two (who are far more experienced than myself) just don't have the dicipline (will?) to do it as I see fit... Again, I could be way wrong on my views, but these seem so glaringly obvious to me...
comments?