Scatological Programming
Management at my company recently freaked out over the abundance of four-letter words in our source code. Some random examples (paths hidden to protect the innocent):
…java:281: “Why the fuck did you pass a null repository?” ); …jsp:50: // alert(“fuck”); …scm:187: ;; the case fucking me here is when (java.math.BigDecimal:instance? x) …scm:127: (if (assq ‘fuckup args-alist) …scm:915: ;; *CURRENT-SQL-MANAGER*, we will now fuck up …scm:47: (list->parray (unfuck-query-results …java:101: “fucketyfuck” ); …txt:41: set, resulting in obscure and often quiet fuckage) …scm:131: (else ‘what-the-living-fuck))))))))
And my fave:
…whoami.jsp:18: whoever the fuck you are
The unfortunate QA engineer tasked with fixing the problem wrote this script:
for bad_word in fuck shit piss bitch # [etc.] do find $CVS_TREE -type f \ | egrep ‘\.(scm|java)$’ \ | xargs grep -i ‘”[^"]*’$bad_word’[^"]*”‘ done
FYI: I am fully aware that I am a dork for posting this under “humor.”
