Well, if you're at the point of "my contract doesn't explicitly say", the relationship is probably, although not certainly, beyond repair.

As to your questions:

Should you provide the source code?
Absolutely. In almost every case -- employee or contractor -- the code belongs to the company, not you.
Should you comment it thoroughly?
Yes, to the best of your ability. You owe your client, jerk or not, nothing less.
Should you comment every single line?
Point out that it'll cost time and money to do that, and if they still want it, yes, do that too. However, try to talk to your client in a non-adversarial way, and see if they'd be OK with a block of comments before every logical section.

There's not enough to tell why your relationship has gone so sour, but I can venture some guesses.

In any case, it sounds like you should chalk this one up to experience. Try to leave a good relationship: contracting is a small world. You'll probably encounter these people again, so try not to piss them off on your way out.


In reply to Re: Perl contract problems by VSarkiss
in thread Perl contract problems by blackadder

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.