Assuming that records with a "blank" value for this particular field are intended to indicate the abscense of information (ie: null) then you should do your part to try and fix the data, and ensure that the integrity of the system.

If you're designing a new schema, and you tell a developer that they should assume any "blank" string field should be treated the same as null, is like telling a developer that this varchar(2) column is a "boolean", and "if the value looks like the word 'no' (or 'N' or ' N' or 'n ', etc...) then it's 'false', otherwise consider it 'true'."

However...

It sounds like you are talking about an existing system, with a lot of existing data, and a lot of existing code that uses that data ... in which case, any new code should try to "play by the rules" -- whatever those rules are.

I don't really blame this guy for not being happy with your answer, and escalating the issue ... but I hope he did that in addition to making his code more robust, and liberal in what it accepts.

If he just complained to get out of changing his own code, then he sounds like a real Ass.


In reply to Re: (OT) Am I weasel or just right? by hossman
in thread (OT) Am I weasel or just right? by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.