In my time, I have potentially written code that some legal jurisdictions might classify as a "crime against humanity" due to the quality.