I don't know if any of you have been following the release of Microsoft's code into the wild (call the Orkin man), but on a /. discussion there were a few people amazed at the profanity they found grepping through the MS code. So somebody else pointed out that:

% grep -Hirn "bleep" /usr/src/linux/*
or the milder:
% grep -Hirn "bleep" /usr/src/linux/* | wc -l

yields some interesting results if you substitute bleep with your favorite vulgarity. I was thinking about it, and although I think it's very unprofessional for any employees of any business to swear where it might offend, I'm not so sure I find their conduct apprehensible. (Come on, we've all had bad days where we just wanted to bang out @#*!@$ on our keyboard until our hearts content somewhere in comment tags). Since comments are discarded during compilation, and M$ doesn't let anybody see the code (willingly), it's not as if the M$ employee(s) added vulgarities to the menu of Office.

So this begs the question, how clean is your code (in regards to profanity), and what are your thoughts about profane code (esp in a professional enviornment)?


Want to support the EFF and FSF by buying cool stuff? Click here.

In reply to How clean is your code by Vautrin

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.