NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
cursing in code (Score:1)
As for the f-bomb (and associated ordinance), there's a more pragmatic reason to avoid it. Once, I saw someone accidentally commit profanity to a page and push it into production; it was an accident, the equivalent of leaving debugging statements in code. Obviously, it would've been just as useful to the designer to write "IT WORKS" as to write "IT FUCKING WORKS" (or whatever), but it didn't occur to him that it might get into production.
With something like t/bowdlerize.t, you can fail a test if any source file contains bad words. Testing for this made me realize that some proprietary JavaScript code that we'd bought contained a functioned called something like eliminate_stupid_fucking_khtml_bug -- good work, guys!
It's funny, even though I'm a coder and know the urge to write something like that, I immediately had a gut reaction that the authors were less professional than I had thought. Huh!
rjbs
Reply to This